You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.2 MiB
2 lines
2.2 MiB
/*! For license information please see 43.2eadfd40.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[43],Array(439).concat([function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"h",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return f}));function i(e){0}function o(e){return"function"==typeof e.dispose&&0===e.dispose.length}function r(e){return Array.isArray(e)?(e.forEach((function(e){e&&(i(),e.dispose())})),[]):e?(i(),e.dispose(),e):void 0}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(i),{dispose:function(){return r(e)}}}function a(e){var t={dispose:function(){i(),e()}};return t}var l=(u.prototype.dispose=function(){this._isDisposed||(i(),this._isDisposed=!0,this.clear())},u.prototype.clear=function(){this._toDispose.forEach((function(e){return e.dispose()})),this._toDispose.clear()},u.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return i(),this._isDisposed||this._toDispose.add(e),e},u);function u(){this._toDispose=new Set,this._isDisposed=!1}var c=(d.prototype.dispose=function(){i(),this._store.dispose()},d.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},d.None=Object.freeze({dispose:function(){}}),d);function d(){this._store=new l}var h=(Object.defineProperty(p.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&i(),this._value=e)},enumerable:!0,configurable:!0}),p.prototype.clear=function(){this.value=void 0},p.prototype.dispose=function(){this._isDisposed=!0,i(),this._value&&this._value.dispose(),this._value=void 0},p);function p(){this._isDisposed=!1}var f=(g.prototype.dispose=function(){},g);function g(e){this.object=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(450),o=(r.prototype.isEmpty=function(){return r.isEmpty(this)},r.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},r.prototype.containsPosition=function(e){return r.containsPosition(this,e)},r.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)},r.prototype.containsRange=function(e){return r.containsRange(this,e)},r.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)},r.prototype.strictContainsRange=function(e){return r.strictContainsRange(this,e)},r.strictContainsRange=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)},r.prototype.plusRange=function(e){return r.plusRange(this,e)},r.plusRange=function(e,t){var n,i,o,s;return i=t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,e.startColumn),s=t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,e.endColumn),new r(n,i,o,s)},r.prototype.intersectRanges=function(e){return r.intersectRanges(this,e)},r.intersectRanges=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),u<o?(o=u,s=c):o===u&&(s=Math.min(s,c)),o<n||n===o&&s<i?null:new r(n,i,o,s)},r.prototype.equalsRange=function(e){return r.equalsRange(this,e)},r.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},r.prototype.getEndPosition=function(){return new i.a(this.endLineNumber,this.endColumn)},r.prototype.getStartPosition=function(){return new i.a(this.startLineNumber,this.startColumn)},r.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},r.prototype.setEndPosition=function(e,t){return new r(this.startLineNumber,this.startColumn,e,t)},r.prototype.setStartPosition=function(e,t){return new r(e,t,this.endLineNumber,this.endColumn)},r.prototype.collapseToStart=function(){return r.collapseToStart(this)},r.collapseToStart=function(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},r.fromPositions=function(e,t){return void 0===t&&(t=e),new r(e.lineNumber,e.column,t.lineNumber,t.column)},r.lift=function(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},r.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},r.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)},r.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)},r.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n!=i)return n-i;var o=0|e.startColumn,r=0|t.startColumn;if(o!=r)return o-r;var s=0|e.endLineNumber,a=0|t.endLineNumber;return s!=a?s-a:(0|e.endColumn)-(0|t.endColumn)}return(e?1:0)-(t?1:0)},r.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},r.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},r);function r(e,t,n,i){n<e||e===n&&i<t?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return _})),n.d(t,"f",(function(){return y}));var i,o,r=n(446),s=n(880),a=n(439),l=n(786),u=(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)});function c(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}!function(e){function t(e){return function(t,n,i){void 0===n&&(n=null);var o,r=!1;return o=e((function(e){if(!r)return o?o.dispose():r=!0,t.call(n,e)}),null,i),r&&o.dispose(),o}}function n(e,t){return s((function(n,i,o){return void 0===i&&(i=null),e((function(e){return n.call(i,t(e))}),null,o)}))}function i(e,t){return s((function(n,i,o){return void 0===i&&(i=null),e((function(e){t(e),n.call(i,e)}),null,o)}))}function o(e,t){return s((function(n,i,o){return void 0===i&&(i=null),e((function(e){return t(e)&&n.call(i,e)}),null,o)}))}function r(e,t,i){var o=i;return n(e,(function(e){return o=t(o,e)}))}function s(e){var t,n=new d({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e,t,n,i,o){var r;void 0===n&&(n=100),void 0===i&&(i=!1);var s=void 0,a=void 0,l=0,u=new d({leakWarningThreshold:o,onFirstListenerAdd:function(){r=e((function(e){l++,s=t(s,e),i&&!a&&(u.fire(s),s=void 0),clearTimeout(a),a=setTimeout((function(){var e=s;a=s=void 0,(!i||1<l)&&u.fire(e),l=0}),n)}))},onLastListenerRemove:function(){r.dispose()}});return u.event}function u(e){var t,n=!0;return o(e,(function(e){var i=n||e!==t;return n=!1,t=e,i}))}e.None=function(){return a.a.None},e.once=t,e.map=n,e.forEach=i,e.filter=o,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),a.e.apply(void 0,e.map((function(e){return e((function(e){return t.call(n,e)}),null,i)})))}},e.reduce=r,e.snapshot=s,e.debounce=l,e.stopwatch=function(e){var i=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-i}))},e.latch=u,e.buffer=function(e,t,n){function i(){o&&o.forEach((function(e){return s.fire(e)})),o=null}void 0===t&&(t=!1),void 0===n&&(n=[]);var o=n.slice(),r=e((function(e){o?o.push(e):s.fire(e)})),s=new d({onFirstListenerAdd:function(){r=r||e((function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){o&&(t?setTimeout(i):i())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return s.event};var c=(h.prototype.map=function(e){return new h(n(this.event,e))},h.prototype.forEach=function(e){return new h(i(this.event,e))},h.prototype.filter=function(e){return new h(o(this.event,e))},h.prototype.reduce=function(e,t){return new h(r(this.event,e,t))},h.prototype.latch=function(){return new h(u(this.event))},h.prototype.debounce=function(e,t,n,i){return void 0===t&&(t=100),void 0===n&&(n=!1),new h(l(this.event,e,t,n,i))},h.prototype.on=function(e,t,n){return this.event(e,t,n)},h.prototype.once=function(e,n,i){return t(this.event)(e,n,i)},h);function h(e){this.event=e}e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n){function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var o=new d({onFirstListenerAdd:function(){return e.on(t,i)},onLastListenerRemove:function(){return e.removeListener(t,i)}});return o.event},e.fromDOMEventEmitter=function(e,t,n){function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var o=new d({onFirstListenerAdd:function(){return e.addEventListener(t,i)},onLastListenerRemove:function(){return e.removeEventListener(t,i)}});return o.event},e.fromPromise=function(e){var t=new d,n=!1;return e.then(void 0,(function(){return null})).then((function(){n?t.fire(void 0):setTimeout((function(){return t.fire(void 0)}),0)})),n=!0,t.event},e.toPromise=function(e){return new Promise((function(n){return t(e)(n)}))}}(o=o||{}),c.prototype.dispose=function(){this._stacks&&this._stacks.clear()},c.prototype.check=function(e){var t=this,n=-1;if("number"==typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var i=(new Error).stack.split("\n").slice(3).join("\n"),o=this._stacks.get(i)||0;if(this._stacks.set(i,o+1),--this._warnCountdown,this._warnCountdown<=0){var r;this._warnCountdown=.5*n;var s=0;this._stacks.forEach((function(e,t){(!r||s<e)&&(r=t,s=e)}))}return function(){var e=t._stacks.get(i)||0;t._stacks.set(i,e-1)}}};var d=(Object.defineProperty(h.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t,n,i){e._listeners||(e._listeners=new l.a);var o=e._listeners.isEmpty();o&&e._options&&e._options.onFirstListenerAdd&&e._options.onFirstListenerAdd(e);var r,s,u=e._listeners.push(n?[t,n]:t);return o&&e._options&&e._options.onFirstListenerDidAdd&&e._options.onFirstListenerDidAdd(e),e._options&&e._options.onListenerDidAdd&&e._options.onListenerDidAdd(e,t,n),e._leakageMon&&(r=e._leakageMon.check(e._listeners.size)),s={dispose:function(){r&&r(),s.dispose=h._noop,e._disposed||(u(),e._options&&e._options.onLastListenerRemove&&(e._listeners&&!e._listeners.isEmpty()||e._options.onLastListenerRemove(e)))}},i instanceof a.b?i.add(s):Array.isArray(i)&&i.push(s),s}),this._event},enumerable:!0,configurable:!0}),h.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new l.a);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;0<this._deliveryQueue.size;){var i=this._deliveryQueue.shift(),o=i[0],s=i[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){Object(r.e)(n)}}}},h.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},h._noop=function(){},h);function h(e){this._disposed=!1,this._options=e,this._leakageMon=void 0}var p,f=(u(g,p=d),g.prototype.pause=function(){this._isPaused++},g.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var e=this._eventQueue.toArray();this._eventQueue.clear(),p.prototype.fire.call(this,this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)p.prototype.fire.call(this,this._eventQueue.shift())},g.prototype.fire=function(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):p.prototype.fire.call(this,e))},g);function g(e){var t=p.call(this,e)||this;return t._isPaused=0,t._eventQueue=new l.a,t._mergeFn=e&&e.merge,t}var m=(Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(e){var t=this,n={event:e,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),Object(a.h)(Object(s.a)((function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)})))},v.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},v.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},v.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},v.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v);function v(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}var _=(b.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)}},b.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},b);function b(){this.buffers=[]}var y=(Object.defineProperty(C.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}),C.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},C);function C(){var e=this;this.listening=!1,this.inputEvent=o.None,this.inputEventListener=a.a.None,this.emitter=new d({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}},function(e,t,n){"use strict";n.d(t,"t",(function(){return b})),n.d(t,"R",(function(){return y})),n.d(t,"M",(function(){return C})),n.d(t,"I",(function(){return x})),n.d(t,"f",(function(){return N})),n.d(t,"g",(function(){return k})),n.d(t,"P",(function(){return E})),n.d(t,"Q",(function(){return I})),n.d(t,"Y",(function(){return M})),n.d(t,"j",(function(){return R})),n.d(t,"o",(function(){return F})),n.d(t,"n",(function(){return j})),n.d(t,"h",(function(){return W})),n.d(t,"i",(function(){return V})),n.d(t,"k",(function(){return B})),n.d(t,"l",(function(){return H})),n.d(t,"U",(function(){return z})),n.d(t,"W",(function(){return U})),n.d(t,"m",(function(){return ie})),n.d(t,"z",(function(){return oe})),n.d(t,"y",(function(){return re})),n.d(t,"b",(function(){return le})),n.d(t,"F",(function(){return ue})),n.d(t,"C",(function(){return ce})),n.d(t,"e",(function(){return de})),n.d(t,"H",(function(){return pe})),n.d(t,"B",(function(){return fe})),n.d(t,"A",(function(){return ge})),n.d(t,"G",(function(){return me})),n.d(t,"K",(function(){return ve})),n.d(t,"x",(function(){return _e})),n.d(t,"N",(function(){return ye})),n.d(t,"E",(function(){return Ce})),n.d(t,"w",(function(){return we})),n.d(t,"v",(function(){return Le})),n.d(t,"O",(function(){return De})),n.d(t,"L",(function(){return xe})),n.d(t,"d",(function(){return Ne})),n.d(t,"c",(function(){return ke})),n.d(t,"V",(function(){return Ee})),n.d(t,"T",(function(){return Ie})),n.d(t,"Z",(function(){return Re})),n.d(t,"q",(function(){return Ae})),n.d(t,"a",(function(){return Be})),n.d(t,"X",(function(){return He})),n.d(t,"J",(function(){return ze})),n.d(t,"S",(function(){return Ue})),n.d(t,"D",(function(){return Ke})),n.d(t,"u",(function(){return qe})),n.d(t,"ab",(function(){return Ge})),n.d(t,"p",(function(){return Ye})),n.d(t,"s",(function(){return Ze})),n.d(t,"r",(function(){return Xe}));var i,o=n(478),r=n(686),s=n(701),a=n(595),l=n(453),u=n(446),c=n(442),d=n(439),h=n(452),p=n(459),f=n(596),g=n(820),m=(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)}),v=function(){return(v=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(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function b(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function y(e){e.parentNode&&e.parentNode.removeChild(e)}function C(e){for(;e;){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}var w=(S.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;0<=(s=n.indexOf(t,s+1));){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(0<s&&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},S.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},S.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)}))}))},S.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},S.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))},S.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)}))}))},S.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)},new S);function S(){this._lastStart=-1,this._lastEnd=-1}var O=(L.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},L.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)}))}))},L.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},L.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},L.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)}))}))},L.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},new L);function L(){}var D=o.i?w:O,x=D.hasClass.bind(D),N=D.addClass.bind(D),k=D.addClasses.bind(D),E=D.removeClass.bind(D),I=D.removeClasses.bind(D),M=D.toggleClass.bind(D),T=(P.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)},P);function P(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}function R(e,t,n,i){return new T(e,t,n,i)}function A(e){return function(t){return e(new a.b(t))}}var F=function(e,t,n,i){var o,r=n;return"click"===t||"mousedown"===t?r=A(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=n,r=function(e){return o(new s.a(e))}),R(e,t,r,i)},j=function(e,t,n){return W(e,A(t),n)};function W(e,t,n){return R(e,h.c&&g.a.pointerEvents?Ne.POINTER_DOWN:Ne.MOUSE_DOWN,t,n)}function V(e,t,n){return R(e,h.c&&g.a.pointerEvents?Ne.POINTER_UP:Ne.MOUSE_UP,t,n)}function B(e,t){return R(e,"mouseout",(function(n){for(var i=n.relatedTarget;i&&i!==e;)i=i.parentNode;i!==e&&t(n)}))}function H(e,t){return R(e,"pointerout",(function(n){for(var i=n.relatedTarget;i&&i!==e;)i=i.parentNode;i!==e&&t(n)}))}var z,U,K,q,G,Y,Z=null,X=($.prototype.dispose=function(){this._canceled=!0},$.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Object(u.e)(e)}},$.sort=function(e,t){return t.priority-e.priority},$);function $(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}function J(){for(q=K,Y=!(G=!(K=[]));0<q.length;)q.sort(X.sort),q.shift().execute();Y=!1}function Q(e,t){return t}q=null,Y=G=!(K=[]),U=function(e,t){void 0===t&&(t=0);var n=new X(e,t);return K.push(n),G||(G=!0,function(e){Z||(Z=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout((function(){return e((new Date).getTime())}),0)}),Z.call(self,e)}(J)),n},z=function(e,t){if(Y){var n=new X(e,t);return q.push(n),n}return U(e,t)};var ee,te=(m(ne,ee=d.a),ne);function ne(e,t,n,i,o){function r(){u=(new Date).getTime(),n(a),a=null}void 0===i&&(i=Q),void 0===o&&(o=16);var s=ee.call(this)||this,a=null,u=0,c=s._register(new l.e);return s._register(R(e,t,(function(e){a=i(a,e);var t=(new Date).getTime()-u;o<=t?(c.cancel(),r()):c.setIfNotSet(r,o-t)}))),s}function ie(e,t,n,i,o){return new te(e,t,n,i,o)}function oe(e){return document.defaultView.getComputedStyle(e,null)}function re(e){if(e!==document.body)return new le(e.clientWidth,e.clientHeight);if(h.c&&window.visualViewport){var t=window.visualViewport.width,n=window.visualViewport.height-(o.l?24:0);return new le(t,n)}if(window.innerWidth&&window.innerHeight)return new le(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new le(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new le(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var se=(ae.convertToPixels=function(e,t){return parseFloat(t)||0},ae.getDimension=function(e,t,n){var i=oe(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),ae.convertToPixels(e,o)},ae.getBorderLeftWidth=function(e){return ae.getDimension(e,"border-left-width","borderLeftWidth")},ae.getBorderRightWidth=function(e){return ae.getDimension(e,"border-right-width","borderRightWidth")},ae.getBorderTopWidth=function(e){return ae.getDimension(e,"border-top-width","borderTopWidth")},ae.getBorderBottomWidth=function(e){return ae.getDimension(e,"border-bottom-width","borderBottomWidth")},ae.getPaddingLeft=function(e){return ae.getDimension(e,"padding-left","paddingLeft")},ae.getPaddingRight=function(e){return ae.getDimension(e,"padding-right","paddingRight")},ae.getPaddingTop=function(e){return ae.getDimension(e,"padding-top","paddingTop")},ae.getPaddingBottom=function(e){return ae.getDimension(e,"padding-bottom","paddingBottom")},ae.getMarginLeft=function(e){return ae.getDimension(e,"margin-left","marginLeft")},ae.getMarginTop=function(e){return ae.getDimension(e,"margin-top","marginTop")},ae.getMarginRight=function(e){return ae.getDimension(e,"margin-right","marginRight")},ae.getMarginBottom=function(e){return ae.getDimension(e,"margin-bottom","marginBottom")},ae);function ae(){}var le=function(e,t){this.width=e,this.height=t};function ue(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=be(e)?null:oe(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=se.getBorderLeftWidth(e),n+=se.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function ce(e){var t=e.getBoundingClientRect();return{left:t.left+de.scrollX,top:t.top+de.scrollY,width:t.width,height:t.height}}var de=(Object.defineProperty(he.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),new he);function he(){}function pe(e){var t=se.getMarginLeft(e)+se.getMarginRight(e);return e.offsetWidth+t}function fe(e){var t=se.getBorderLeftWidth(e)+se.getBorderRightWidth(e),n=se.getPaddingLeft(e)+se.getPaddingRight(e);return e.offsetWidth-t-n}function ge(e){var t=se.getBorderTopWidth(e)+se.getBorderBottomWidth(e),n=se.getPaddingTop(e)+se.getPaddingBottom(e);return e.offsetHeight-t-n}function me(e){var t=se.getMarginTop(e)+se.getMarginBottom(e);return e.offsetHeight+t}function ve(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function _e(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(x(e,t))return e;if(n)if("string"==typeof n){if(x(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function be(e){return e&&e.host&&e.mode}function ye(e){return!!Ce(e)}function Ce(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return be(e)?e:null}function we(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 Se=null;function Oe(){return Se=Se||we()}function Le(e,t,n){void 0===n&&(n=Oe()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function De(e,t){if(void 0===t&&(t=Oe()),t){for(var n,i=(n=t)&&n.sheet&&n.sheet.rules?n.sheet.rules:n&&n.sheet&&n.sheet.cssRules?n.sheet.cssRules:[],o=[],r=0;r<i.length;r++)-1!==i[r].selectorText.indexOf(e)&&o.push(r);for(r=o.length-1;0<=r;r--)t.sheet.deleteRule(o[r])}}function xe(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var Ne={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:o.m?"webkitAnimationStart":"animationstart",ANIMATION_END:o.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:o.m?"webkitAnimationIteration":"animationiteration"},ke={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function Ee(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function Ie(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}var Me,Te=(m(Pe,Me=d.a),Pe);function Pe(e){var t=Me.call(this)||this;function n(){s=!1,o||(o=!0,t._onDidFocus.fire())}function i(){o&&(s=!0,window.setTimeout((function(){s&&(o=s=!1,t._onDidBlur.fire())}),0))}t._onDidFocus=t._register(new c.a),t.onDidFocus=t._onDidFocus.event,t._onDidBlur=t._register(new c.a),t.onDidBlur=t._onDidBlur.event;var o=ve(document.activeElement,e),s=!1;return t._refreshStateHandler=function(){ve(document.activeElement,e)!==o&&(o?i:n)()},t._register(Object(r.a)(e,Ne.FOCUS,!0)(n)),t._register(Object(r.a)(e,Ne.BLUR,!0)(i)),t}function Re(e){return new Te(e)}function Ae(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 Fe,je,We=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function Ve(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r=We.exec(t);if(!r)throw new Error("Bad use of emmet");n=v({},n||{});var s,a=r[1]||"div";return s=e!==Fe.HTML?document.createElementNS(e,a):document.createElement(a),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),Object(p.d)(i).forEach((function(e){e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))})),s}function Be(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return Ve.apply(void 0,_([Fe.HTML,e,t],n))}function He(){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 ze(){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 Ue(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e instanceof HTMLElement&&e.hasAttribute("tabIndex"))return e;e=e.parentNode}return null}(e.parentElement);t&&t.focus()}e.removeAttribute("tabindex")}}function Ke(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function qe(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Ge(e){if(h.f||o.g)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function Ye(e){var t=U((function n(){e(),t=U(n)}));return Object(d.h)((function(){return t.dispose()}))}function Ze(e){return e&&f.b.vscodeRemote===e.scheme?f.a.rewrite(e):e}function Xe(e){return e?"url('"+Ze(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}(je=Fe=Fe||{}).HTML="http://www.w3.org/1999/xhtml",je.SVG="http://www.w3.org/2000/svg",Be.SVG=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return Ve.apply(void 0,_([Fe.SVG,e,t],n))},f.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}function o(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("")}n.d(t,"x",(function(){return i})),n.d(t,"F",(function(){return o})),n.d(t,"r",(function(){return s})),n.d(t,"o",(function(){return a})),n.d(t,"p",(function(){return l})),n.d(t,"Q",(function(){return u})),n.d(t,"K",(function(){return c})),n.d(t,"k",(function(){return d})),n.d(t,"N",(function(){return h})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"I",(function(){return g})),n.d(t,"H",(function(){return m})),n.d(t,"q",(function(){return v})),n.d(t,"t",(function(){return _})),n.d(t,"D",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return C})),n.d(t,"B",(function(){return w})),n.d(t,"C",(function(){return S})),n.d(t,"n",(function(){return L})),n.d(t,"O",(function(){return x})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return k})),n.d(t,"z",(function(){return E})),n.d(t,"A",(function(){return I})),n.d(t,"u",(function(){return M})),n.d(t,"E",(function(){return P})),n.d(t,"G",(function(){return R})),n.d(t,"i",(function(){return F})),n.d(t,"g",(function(){return W})),n.d(t,"v",(function(){return B})),n.d(t,"h",(function(){return H})),n.d(t,"y",(function(){return z})),n.d(t,"w",(function(){return U})),n.d(t,"a",(function(){return K})),n.d(t,"P",(function(){return q})),n.d(t,"L",(function(){return G})),n.d(t,"J",(function(){return Y})),n.d(t,"j",(function(){return Z})),n.d(t,"M",(function(){return X})),n.d(t,"s",(function(){return $})),n.d(t,"b",(function(){return J}));var r=/{(\d+)}/g;function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(r,(function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function l(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(e,t){return void 0===t&&(t=" "),c(function(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)}(e,t),t)}function c(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 d(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function h(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 p(e,t){var n=e.length-t.length;return 0<n?e.indexOf(t,n)===n:0==n&&e===t}function f(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=l(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"),n.unicode&&(i+="u"),new RegExp(e,i)}function g(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function m(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function v(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 _(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 b(e,t){void 0===t&&(t=e.length-1);for(var n=t;0<=n;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function y(e,t){return e<t?-1:t<e?1:0}function C(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r){S(o)&&(o+=32),S(r)&&(r+=32);var s=o-r;if(0!=s)return w(o)&&w(r)?s:y(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function w(e){return 97<=e&&e<=122}function S(e){return 65<=e&&e<=90}function O(e){return w(e)||S(e)}function L(e,t){return e.length===t.length&&D(e,t)}function D(e,t,n){void 0===n&&(n=e.length);for(var i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r)if(O(o)&&O(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 x(e,t){var n=t.length;return!(t.length>e.length)&&D(e,t,n)}function N(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 k(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}function E(e){return 55296<=e&&e<=56319}function I(e){return 56320<=e&&e<=57343}function M(e,t,n){var i=e.charCodeAt(n);if(E(i)&&n+1<t){var o=e.charCodeAt(n+1);if(I(o))return o-56320+(i-55296<<10)+65536}return i}function T(e,t){var n=e.charCodeAt(t-1);if(I(n)&&1<t){var i=e.charCodeAt(t-2);if(E(i))return n-56320+(i-55296<<10)+65536}return n}function P(e,t){var n=Q.getInstance(),i=t,o=e.length,r=M(e,o,t);t+=65536<=r?2:1;for(var s=n.getGraphemeBreakType(r);t<o;){var a=M(e,o,t),l=n.getGraphemeBreakType(a);if(J(s,l))break;t+=65536<=a?2:1,s=l}return t-i}function R(e,t){var n=Q.getInstance(),i=t,o=T(e,t);t-=65536<=o?2:1;for(var r=n.getGraphemeBreakType(o);0<t;){var s=T(e,t),a=n.getGraphemeBreakType(s);if(J(a,r))break;t-=65536<=s?2:1,r=a}return i-t}var A=/(?:[\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 F(e){return A.test(e)}var j=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function W(e){return j.test(e)}var V=/^[\t\n\r\x20-\x7E]*$/;function B(e){return V.test(e)}function H(e){for(var t=0,n=e.length;t<n;t++)if(z(e.charCodeAt(t)))return!0;return!1}function z(e){return 11904<=(e=+e)&&e<=55215||63744<=e&&e<=64255||65281<=e&&e<=65374}function U(e){return 127462<=e&&e<=127487||9728<=e&&e<=10175||127744<=e&&e<=128591||128640<=e&&e<=128764||128992<=e&&e<=129003||129280<=e&&e<=129535||129648<=e&&e<=129651||129656<=e&&e<=129666||129680<=e&&e<=129685}var K=String.fromCharCode(65279);function q(e){return!!(e&&0<e.length&&65279===e.charCodeAt(0))}function G(e){return btoa(encodeURIComponent(e))}function Y(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function Z(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function X(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function $(e){return Q.getInstance().getGraphemeBreakType(e)}function J(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}var Q=(ee.getInstance=function(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE},ee.prototype.getGraphemeBreakType=function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;for(var t=this._data,n=t.length/3,i=1;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0},ee._INSTANCE=null,ee);function ee(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},function(e,t,n){"use strict";function i(e,t){for(var n,i,o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return n=t,0===(i=o).length?n:n.replace(/\{(\d+)\}/g,(function(e,t){var n=t[0];return void 0!==i[n]?i[n]:e}))}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function i(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var o=new(i.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},i.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},i.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},i);function r(e){u(e)||o.onUnexpectedError(e)}function s(e){u(e)||o.onUnexpectedExternalError(e)}function a(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var l="Canceled";function u(e){return e instanceof Error&&e.name===l&&e.message===l}function c(){var e=new Error(l);return e.name=e.message,e}function d(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function h(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i="undefined"==typeof monaco?self.monaco:monaco,o={},r={},s=(a.getOrCreate=function(e){return r[e]||(r[e]=new a(e)),r[e]},a.prototype.whenLoaded=function(){return this._lazyLoadPromise},a.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},a);function a(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}function l(e){var t=e.id;o[t]=e,i.languages.register(e);var n=s.getOrCreate(t);i.languages.setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),i.languages.onLanguage(t,(function(){n.load().then((function(e){i.languages.setLanguageConfiguration(t,e.conf)}))}))}},function(e,t,n){"use strict";var i,o;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l})),(o=i=i||{}).serviceIds=new Map,o.DI_TARGET="$di$target",o.DI_DEPENDENCIES="$di$dependencies",o.getServiceDependencies=function(e){return e[o.DI_DEPENDENCIES]||[]};var r=a("instantiationService");function s(e,t,n,o){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:o}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:o}],t[i.DI_TARGET]=t)}function a(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);function t(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(t,e,i,!1)}return t.toString=function(){return e},i.serviceIds.set(e,t),t}function l(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(e,t,i,!0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return D})),n.d(t,"j",(function(){return N})),n.d(t,"e",(function(){return k})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return I})),n.d(t,"g",(function(){return M})),n.d(t,"f",(function(){return T})),n.d(t,"i",(function(){return P})),n.d(t,"h",(function(){return R})),n.d(t,"d",(function(){return O}));var i,o=n(446),r=n(479),s=n(504),a=n(450),l=n(598),u=n(787),c=n(755),d=n(489),h=n(456),p=n(788),f=n(571),g=n(821),m=n(465),v=(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)}),_=(b.prototype.register=function(){var e=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?h.a.and(t,this.precondition):this.precondition),p.a.registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else d.a.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},b.prototype._registerMenuItem=function(e){c.c.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title},when:e.when,order:e.order})},b);function b(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}var y,C=(v(w,y=_),w.bindToContribution=function(e){return v(t,n=w),t.prototype.runEditorCommand=function(t,n,i){e(n)&&this._callback(e(n),i)},t;function t(e){var t=n.call(this,e)||this;return t._callback=e.handler,t}var n},w.prototype.runCommand=function(e,t){var n=this,i=e.get(s.a),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext((function(e){if(e.get(h.c).contextMatchesRules(Object(m.n)(n.precondition)))return n.runEditorCommand(e,o,t)}))},w);function w(){return null!==y&&y.apply(this,arguments)||this}var S,O,L,D=(v(x,S=C),x.convertOptions=function(e){var t;function n(t){return t.menuId||(t.menuId=7),t.title||(t.title=e.label),t.when=h.a.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push.apply(t,e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e},x.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},x.prototype.reportTelemetry=function(e,t){e.get(g.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},x);function x(e){var t=S.call(this,x.convertOptions(e))||this;return t.label=e.label,t.alias=e.alias,t}function N(e,t){d.a.registerCommand(e,(function(e,n){return t(e,n||{})}))}function k(e,t){N(e,(function(e,n){var i=n.resource,s=n.position;if(!(i instanceof r.a))throw Object(o.b)("resource");if(!a.a.isIPosition(s))throw Object(o.b)("position");var c=e.get(l.a).getModel(i);if(c){var d=a.a.lift(s);return t(c,d,n)}return e.get(u.a).createModelReference(i).then((function(e){return new Promise((function(i,o){try{i(t(e.object.textEditorModel,a.a.lift(s),n))}catch(i){o(i)}})).finally((function(){e.dispose()}))}))}))}function E(e,t){d.a.registerCommand(e,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0],s=n[1];Object(m.a)(r.a.isUri(o)),Object(m.a)(a.a.isIPosition(s));var c=e.get(l.a).getModel(o);if(c){var d=a.a.lift(s);return t(c,d,n.slice(2))}return e.get(u.a).createModelReference(o).then((function(e){return new Promise((function(i,o){try{i(t(e.object.textEditorModel,a.a.lift(s),n.slice(2)))}catch(i){o(i)}})).finally((function(){e.dispose()}))}))}))}function I(e,t){d.a.registerCommand(e,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0];Object(m.a)(r.a.isUri(o));var s=e.get(l.a).getModel(o);return s?t(s,n.slice(1)):e.get(u.a).createModelReference(o).then((function(e){return new Promise((function(i,o){try{i(t(e.object.textEditorModel,n.slice(1)))}catch(i){o(i)}})).finally((function(){e.dispose()}))}))}))}function M(e){return A.INSTANCE.registerEditorCommand(e),e}function T(e){A.INSTANCE.registerEditorAction(new e)}function P(e){A.INSTANCE.registerEditorAction(e)}function R(e,t){A.INSTANCE.registerEditorContribution(e,t)}(L=O=O||{}).getEditorCommand=function(e){return A.INSTANCE.getEditorCommand(e)},L.getEditorActions=function(){return A.INSTANCE.getEditorActions()},L.getEditorContributions=function(){return A.INSTANCE.getEditorContributions()},L.getSomeEditorContributions=function(e){return A.INSTANCE.getEditorContributions().filter((function(t){return 0<=e.indexOf(t.id)}))},L.getDiffEditorContributions=function(){return A.INSTANCE.getDiffEditorContributions()};var A=(F.prototype.registerEditorContribution=function(e,t){this.editorContributions.push({id:e,ctor:t})},F.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},F.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},F.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},F.prototype.getEditorActions=function(){return this.editorActions.slice(0)},F.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},F.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},F.INSTANCE=new F,F);function F(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}f.a.add("editor.contributions",A.INSTANCE)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=(o.prototype.with=function(e,t){return void 0===e&&(e=this.lineNumber),void 0===t&&(t=this.column),e===this.lineNumber&&t===this.column?this:new o(e,t)},o.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},o.prototype.equals=function(e){return o.equals(this,e)},o.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},o.prototype.isBefore=function(e){return o.isBefore(this,e)},o.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},o.prototype.isBeforeOrEqual=function(e){return o.isBeforeOrEqual(this,e)},o.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},o.compare=function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;return n!=i?n-i:(0|e.column)-(0|t.column)},o.prototype.clone=function(){return new o(this.lineNumber,this.column)},o.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},o.lift=function(e){return new o(e.lineNumber,e.column)},o.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},o);function o(e,t){this.lineNumber=e,this.column=t}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f}));var i=n(448),o=n(439),r=n(571),s=n(442),a=Object(i.c)("themeService");function l(e){return{id:e}}var u="hc";function c(e){switch(e){case"dark":return"vs-dark";case u:return"hc-black";default:return"vs"}}var d={ThemingContribution:"base.contributions.theming"};function h(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.a}var p=new(h.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(o.h)((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},h.prototype.getThemingParticipants=function(){return this.themingParticipants},h);function f(e){return p.onThemeChange(e)}r.a.add(d.ThemingContribution,p)},function(e,t,n){"use strict";(function(e,i){n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return _})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"i",(function(){return C})),n.d(t,"a",(function(){return w}));var o=!1,r=!1,s=!1,a=!1,l=!1,u=!1,c=void 0,d=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||d){if("object"==typeof e){o="win32"===e.platform,r="darwin"===e.platform,s="linux"===e.platform;var h=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).VSCODE_NLS_CONFIG;if(h)try{var p=JSON.parse(h);p.availableLanguages["*"],p.locale,p._translationsConfigFile}catch(e){}a=!0}}else o=0<=(c=navigator.userAgent).indexOf("Windows"),r=0<=c.indexOf("Macintosh"),u=0<=c.indexOf("Macintosh")&&!!navigator.maxTouchPoints&&0<navigator.maxTouchPoints,s=0<=c.indexOf("Linux"),l=!0;var f=o,g=r,m=s,v=a,_=l,b=u,y="object"==typeof self?self:"object"==typeof i?i:{},C=function(){if(y.setImmediate)return y.setImmediate.bind(y);if("function"==typeof y.postMessage&&!y.importScripts){var t=[];y.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,i=t.length;n<i;n++){var o=t[n];if(o.id===e.data.vscodeSetImmediateId)return t.splice(n,1),void o.callback()}}));var n=0;return function(e){var i=++n;t.push({id:i,callback:e}),y.postMessage({vscodeSetImmediateId:i},"*")}}if(void 0!==e&&"function"==typeof e.nextTick)return e.nextTick.bind(e);var i=Promise.resolve();return function(e){return i.then(e)}}(),w=r?2:o?1:3}).call(this,n(114),n(64))},function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"k",(function(){return _})),n.d(t,"b",(function(){return C}));var i=n(484),o=n(446),r=n(439);function s(e){return e&&"function"==typeof e.then}function a(e){var t=new i.b,n=e(t.token),r=new Promise((function(e,i){t.token.onCancellationRequested((function(){i(o.a())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),i(e)}))}));return s.prototype.cancel=function(){t.cancel()},s.prototype.then=function(e,t){return r.then(e,t)},s.prototype.catch=function(e){return this.then(void 0,e)},s.prototype.finally=function(e){return r.finally(e)},new s;function s(){}}function l(e,t,n){return Promise.race([e,new Promise((function(e){return t.onCancellationRequested((function(){return e(n)}))}))])}var u=(c.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 Promise((function(e,t){n.doResolve=e,n.doReject=t})).then((function(){if(n.completionPromise=null,n.doResolve=null,n.task){var e=n.task;return n.task=null,e()}}))),this.timeout=setTimeout((function(){n.timeout=null,n.doResolve&&n.doResolve(null)}),t),this.completionPromise},c.prototype.isTriggered=function(){return null!==this.timeout},c.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(o.a()),this.completionPromise=null)},c.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},c.prototype.dispose=function(){this.cancelTimeout()},c);function c(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}function d(e,t){return t?new Promise((function(n,i){var r=setTimeout(n,e);t.onCancellationRequested((function(){clearTimeout(r),i(o.a())}))})):a((function(t){return d(e,t)}))}function h(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Object(r.h)((function(){return clearTimeout(n)}))}function p(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var i=0,o=e.length;return function r(){if(o<=i)return Promise.resolve(n);var s=e[i++];return Promise.resolve(s()).then((function(e){return t(e)?Promise.resolve(e):r()}))}()}var f=(g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},g.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},g.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},g);function g(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}var m=(v.prototype.dispose=function(){this.cancel()},v.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},v.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},v);function v(){this._token=-1}var _,b=(y.prototype.dispose=function(){this.cancel(),this.runner=null},y.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},y.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},y.prototype.isScheduled=function(){return-1!==this.timeoutToken},y.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},y.prototype.doRun=function(){this.runner&&this.runner()},y);function y(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});_=function(t){var n=setTimeout((function(){return t(e)})),i=!1;return{dispose:function(){i||(i=!0,clearTimeout(n))}}}}else _=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 C=(w.prototype.dispose=function(){this._handle.dispose()},w.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},w);function w(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}},this._handle=_((function(){return t._executor()}))}},function(e,t,n){"use strict";var i=n(465),o=n(479),r=n(440),s=n(442),a=n(439),l=n(1075);function u(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;r<s.length;r++){var a=u(s[r],t,n,i);if(10===a)return a;o<a&&(o=a)}return o}if("string"==typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var c=e.language,d=e.pattern,h=e.scheme,p=e.hasAccessToAllModels;if(!i&&!p)return 0;if(o=0,h)if(h===t.scheme)o=10;else{if("*"!==h)return 0;o=5}if(c)if(c===n)o=10;else{if("*"!==c)return 0;o=Math.max(o,5)}if(d){if(d!==t.fsPath&&!Object(l.a)(d,t.fsPath))return 0;o=10}return o}return 0}var c=n(598);function d(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}var h=(Object.defineProperty(p.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),p.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),Object(a.h)((function(){if(i){var e=n._entries.indexOf(i);0<=e&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}}))},p.prototype.has=function(e){return 0<this.all(e).length},p.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];0<o._score&&t.push(o.provider)}return t},p.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},p.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},p.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,i=this._entries;n<i.length;n++){var o=i[n];0<o._score&&t(o)}}},p.prototype._updateScores=function(e){var t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(var n=0,i=this._entries;n<i.length;n++){var o=i[n];if(o._score=u(o.selector,e.uri,e.getLanguageIdentifier().language,Object(c.b)(e)),d(o.selector)&&0<o._score){for(var r=0,s=this._entries;r<s.length;r++)s[r]._score=0;o._score=1e3;break}}this._entries.sort(p._compareByScoreAndTime)}},p._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},p);function p(){this._clock=0,this._entries=[],this._onDidChange=new s.a}var f=n(553),g=(m.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},m.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Object(a.h)((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},m.prototype.registerPromise=function(e,t){var n=this,i=null,o=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!o&&t&&(i=n.register(e,t))}))),Object(a.h)((function(){o=!0,i&&i.dispose()}))},m.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises.get(e);return i?i.then((function(n){return t.get(e)})):null},m.prototype.get=function(e){return Object(i.o)(this._map.get(e))},m.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(f.d)(this._map),changedColorMap:!0})},m.prototype.getColorMap=function(){return this._colorMap},m.prototype.getDefaultBackground=function(){return this._colorMap&&2<this._colorMap.length?this._colorMap[2]:null},m);function m(){this._map=new Map,this._promises=new Map,this._onDidChange=new s.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}n.d(t,"r",(function(){return v})),n.d(t,"A",(function(){return _})),n.d(t,"F",(function(){return x})),n.d(t,"E",(function(){return N})),n.d(t,"y",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"G",(function(){return k})),n.d(t,"z",(function(){return D})),n.d(t,"n",(function(){return M})),n.d(t,"D",(function(){return I})),n.d(t,"u",(function(){return P})),n.d(t,"v",(function(){return R})),n.d(t,"d",(function(){return A})),n.d(t,"x",(function(){return F})),n.d(t,"p",(function(){return j})),n.d(t,"m",(function(){return W})),n.d(t,"i",(function(){return V})),n.d(t,"f",(function(){return B})),n.d(t,"e",(function(){return H})),n.d(t,"q",(function(){return z})),n.d(t,"C",(function(){return U})),n.d(t,"b",(function(){return K})),n.d(t,"a",(function(){return q})),n.d(t,"g",(function(){return G})),n.d(t,"j",(function(){return Y})),n.d(t,"t",(function(){return Z})),n.d(t,"s",(function(){return X})),n.d(t,"c",(function(){return $})),n.d(t,"w",(function(){return J})),n.d(t,"o",(function(){return Q})),n.d(t,"l",(function(){return ee})),n.d(t,"k",(function(){return te})),n.d(t,"B",(function(){return ne}));var v=function(e,t){this.language=e,this.id=t},_=(b.getLanguageId=function(e){return(255&e)>>>0},b.getTokenType=function(e){return(1792&e)>>>8},b.getFontStyle=function(e){return(14336&e)>>>11},b.getForeground=function(e){return(8372224&e)>>>14},b.getBackground=function(e){return(4286578688&e)>>>23},b.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},b.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},b);function b(){}var y,C,w,S,O,L,D,x=((y=Object.create(null))[0]="method",y[1]="function",y[2]="constructor",y[3]="field",y[4]="variable",y[5]="class",y[6]="struct",y[7]="interface",y[8]="module",y[9]="property",y[10]="event",y[11]="operator",y[12]="unit",y[13]="value",y[14]="constant",y[15]="enum",y[16]="enum-member",y[17]="keyword",y[25]="snippet",y[18]="text",y[19]="color",y[20]="file",y[21]="reference",y[22]="customcolor",y[23]="folder",y[24]="type-parameter",function(e){return y[e]||"property"}),N=((C=Object.create(null)).method=0,C.function=1,C.constructor=2,C.field=3,C.variable=4,C.class=5,C.struct=6,C.interface=7,C.module=8,C.property=9,C.event=10,C.operator=11,C.unit=12,C.value=13,C.constant=14,C.enum=15,C["enum-member"]=16,C.enumMember=16,C.keyword=17,C.snippet=25,C.text=18,C.color=19,C.file=20,C.reference=21,C.customcolor=22,C.folder=23,C["type-parameter"]=24,C.typeParameter=24,function(e,t){var n=C[e];return void 0!==n||t||(n=9),n});function k(e){return e&&o.a.isUri(e.uri)&&r.a.isIRange(e.range)&&(r.a.isIRange(e.originSelectionRange)||r.a.isIRange(e.targetSelectionRange))}(S=w=w||{})[S.Invoke=1]="Invoke",S[S.TriggerCharacter=2]="TriggerCharacter",S[S.ContentChange=3]="ContentChange",(L=O=O||{})[L.Text=0]="Text",L[L.Read=1]="Read",L[L.Write=2]="Write",function(e){var t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);var n=new Map;n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=function(e){return t.get(e)},e.toString=function(e){return n.get(e)},e.toCssClassName=function(e,t){return"codicon "+(t?"inline":"block")+" codicon-symbol-"+(n.get(e)||"property")}}(D=D||{});var E,I,M=(T.Comment=new T("comment"),T.Imports=new T("imports"),T.Region=new T("region"),T);function T(e){this.value=e}(E||(E={})).is=function(e){return Object(i.i)(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))},(I||(I={})).is=function(e){return Object(i.i)(e)&&o.a.isUri(e.resource)&&Object(i.i)(e.edit)};var P=new h,R=new h,A=new h,F=new h,j=new h,W=new h,V=new h,B=new h,H=new h,z=new h,U=new h,K=new h,q=new h,G=new h,Y=new h,Z=new h,X=new h,$=new h,J=new h,Q=new h,ee=new h,te=new h,ne=new g},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return O})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return k})),n.d(t,"e",(function(){return E}));var i,o=n(444),r=n(448),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=(l.has=function(e){return c.create(e)},l.equals=function(e,t){return h.create(e,t)},l.regex=function(e,t){return _.create(e,t)},l.not=function(e){return m.create(e)},l.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w.create(e)},l.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return O.create(e)},l.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},l._deserializeOrExpression=function(e,t){var n=this,i=e.split("||");return O.create(i.map((function(e){return n._deserializeAndExpression(e,t)})))},l._deserializeAndExpression=function(e,t){var n=this,i=e.split("&&");return w.create(i.map((function(e){return n._deserializeOne(e,t)})))},l._deserializeOne=function(e,t){if(0<=(e=e.trim()).indexOf("!=")){var n=e.split("!=");return f.create(n[0].trim(),this._deserializeValue(n[1],t))}return 0<=e.indexOf("==")?(n=e.split("=="),h.create(n[0].trim(),this._deserializeValue(n[1],t))):0<=e.indexOf("=~")?(n=e.split("=~"),_.create(n[0].trim(),this._deserializeRegexValue(n[1],t))):/^\!\s*/.test(e)?m.create(e.substr(1).trim()):c.create(e)},l._deserializeValue=function(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},l._deserializeRegexValue=function(e,t){if(Object(o.x)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return null}var n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return null}var r=e.slice(n+1,i),s="i"===e[i+1]?"i":"";try{return new RegExp(r,s)}catch(n){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+n);return null}},l);function l(){}function u(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:case 7:case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var c=(d.create=function(e){return new d(e)},d.prototype.getType=function(){return 1},d.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},d.prototype.equals=function(e){return e instanceof d&&this.key===e.key},d.prototype.evaluate=function(e){return!!e.getValue(this.key)},d.prototype.keys=function(){return[this.key]},d.prototype.negate=function(){return m.create(this.key)},d);function d(e){this.key=e}var h=(p.create=function(e,t){return"boolean"==typeof t?t?c.create(e):m.create(e):new p(e,t)},p.prototype.getType=function(){return 3},p.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},p.prototype.equals=function(e){return e instanceof p&&this.key===e.key&&this.value===e.value},p.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},p.prototype.keys=function(){return[this.key]},p.prototype.negate=function(){return f.create(this.key,this.value)},p);function p(e,t){this.key=e,this.value=t}var f=(g.create=function(e,t){return"boolean"==typeof t?t?m.create(e):c.create(e):new g(e,t)},g.prototype.getType=function(){return 4},g.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},g.prototype.equals=function(e){return e instanceof g&&this.key===e.key&&this.value===e.value},g.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},g.prototype.keys=function(){return[this.key]},g.prototype.negate=function(){return h.create(this.key,this.value)},g);function g(e,t){this.key=e,this.value=t}var m=(v.create=function(e){return new v(e)},v.prototype.getType=function(){return 2},v.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},v.prototype.equals=function(e){return e instanceof v&&this.key===e.key},v.prototype.evaluate=function(e){return!e.getValue(this.key)},v.prototype.keys=function(){return[this.key]},v.prototype.negate=function(){return c.create(this.key)},v);function v(e){this.key=e}var _=(b.create=function(e,t){return new b(e,t)},b.prototype.getType=function(){return 6},b.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:n<t?1:0},b.prototype.equals=function(e){if(e instanceof b){var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1},b.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return y.create(this)},b);function b(e,t){this.key=e,this.regexp=t}var y=(C.create=function(e){return new C(e)},C.prototype.getType=function(){return 7},C.prototype.cmp=function(e){return this._actual.cmp(e._actual)},C.prototype.equals=function(e){return e instanceof C&&this._actual.equals(e._actual)},C.prototype.evaluate=function(e){return!this._actual.evaluate(e)},C.prototype.keys=function(){return this._actual.keys()},C.prototype.negate=function(){return this._actual},C);function C(e){this._actual=e}var w=(S.create=function(e){var t=S._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new S(t)},S.prototype.getType=function(){return 5},S.prototype.cmp=function(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=u(this.expr[t],e.expr[t]);if(0!==i)return i}return 0},S.prototype.equals=function(e){if(e instanceof S){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1},S.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},S._normalizeArr=function(e){var t=[];if(e){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(o)if(o instanceof S)t=t.concat(o.expr);else{if(o instanceof O)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');t.push(o)}}t.sort(u)}return t},S.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},S.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}return O.create(e)},S);function S(e){this.expr=e}var O=(L.create=function(e){var t=L._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new L(t)},L.prototype.getType=function(){return 8},L.prototype.equals=function(e){if(e instanceof L){if(this.expr.length!==e.expr.length)return!1;for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1},L.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1},L._normalizeArr=function(e){var t=[];if(e){for(var n=0,i=e.length;n<i;n++){var o=e[n];o&&(o instanceof L?t=t.concat(o.expr):t.push(o))}t.sort(u)}return t},L.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},L.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}for(var o=function(e){return e instanceof L?e.expr:[e]};1<e.length;){for(var r=e.shift(),s=e.shift(),l=[],u=0,c=o(r);u<c.length;u++)for(var d=c[u],h=0,p=o(s);h<p.length;h++){var f=p[h];l.push(a.and(d,f))}e.unshift(a.or.apply(a,l))}return e[0]},L);function L(e){this.expr=e}var D,x=(s(N,D=c),N.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},N.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},N.prototype.toNegated=function(){return a.not(this.key)},N);function N(e,t){var n=D.call(this,e)||this;return n._defaultValue=t,n}var k=Object(r.c)("contextKeyService"),E="setContext"},,,function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(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 s(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=1+r;else{if(!(0<s))return r;o=r-1}}return-(i+1)}function a(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}function l(e,t){return function e(t,n,i,o,r){if(!(o<=i)){var s=i+(o-i)/2|0;e(t,n,i,s,r),e(t,n,1+s,o,r),n(t[s],t[1+s])<=0||function(e,t,n,i,o,r){for(var s=n,a=i+1,l=n;l<=o;l++)r[l]=e[l];for(l=n;l<=o;l++)i<s||!(o<a)&&t(r[a],r[s])<0?e[l]=r[a++]:e[l]=r[s++]}(t,n,i,s,o,r)}}(e,t,0,e.length-1,[]),e}function u(e,t){for(var n=[],i=void 0,o=0,r=l(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 c(e){return e.filter((function(e){return!!e}))}function d(e){return!Array.isArray(e)||0===e.length}function h(e){return Array.isArray(e)&&0<e.length}function p(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)}))}function f(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function g(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function m(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function v(e,t,n){void 0===n&&(n=void 0);var i=m(e,t);return i<0?n:e[i]}function _(e,t){return 0<e.length?e[0]:t}function b(e){var t;return(t=[]).concat.apply(t,e)}function y(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;t<o;o--)i.push(o);return i}function C(e,t,n){var i=e.slice(0,t),o=e.slice(t);return i.concat(n,o)}function w(e,t){var n=e.indexOf(t);-1<n&&(e.splice(n,1),e.unshift(t))}function S(e,t){var n=e.indexOf(t);-1<n&&(e.splice(n,1),e.push(t))}function O(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i,n,e))return i}}function L(e){return Array.isArray(e)?e:[e]}n.d(t,"v",(function(){return i})),n.d(t,"w",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"r",(function(){return l})),n.d(t,"o",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"n",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return b})),n.d(t,"u",(function(){return y})),n.d(t,"a",(function(){return C})),n.d(t,"t",(function(){return w})),n.d(t,"s",(function(){return S})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return L}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"Tb",(function(){return h})),n.d(t,"W",(function(){return f})),n.d(t,"U",(function(){return g})),n.d(t,"V",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return _})),n.d(t,"ec",(function(){return b})),n.d(t,"dc",(function(){return y})),n.d(t,"hc",(function(){return C})),n.d(t,"Z",(function(){return w})),n.d(t,"bb",(function(){return S})),n.d(t,"ab",(function(){return O})),n.d(t,"Y",(function(){return L})),n.d(t,"X",(function(){return D})),n.d(t,"fb",(function(){return x})),n.d(t,"hb",(function(){return N})),n.d(t,"gb",(function(){return k})),n.d(t,"ib",(function(){return E})),n.d(t,"kb",(function(){return I})),n.d(t,"jb",(function(){return M})),n.d(t,"cb",(function(){return T})),n.d(t,"eb",(function(){return P})),n.d(t,"db",(function(){return R})),n.d(t,"Ob",(function(){return j})),n.d(t,"Nb",(function(){return W})),n.d(t,"c",(function(){return V})),n.d(t,"d",(function(){return B})),n.d(t,"Vb",(function(){return H})),n.d(t,"Xb",(function(){return z})),n.d(t,"Yb",(function(){return U})),n.d(t,"Wb",(function(){return K})),n.d(t,"Sb",(function(){return q})),n.d(t,"q",(function(){return G})),n.d(t,"p",(function(){return Y})),n.d(t,"P",(function(){return Z})),n.d(t,"O",(function(){return X})),n.d(t,"H",(function(){return $})),n.d(t,"G",(function(){return J})),n.d(t,"z",(function(){return Q})),n.d(t,"y",(function(){return ee})),n.d(t,"o",(function(){return te})),n.d(t,"x",(function(){return ne})),n.d(t,"Q",(function(){return ie})),n.d(t,"S",(function(){return oe})),n.d(t,"R",(function(){return re})),n.d(t,"T",(function(){return se})),n.d(t,"K",(function(){return ae})),n.d(t,"L",(function(){return le})),n.d(t,"F",(function(){return ue})),n.d(t,"M",(function(){return ce})),n.d(t,"N",(function(){return de})),n.d(t,"r",(function(){return he})),n.d(t,"t",(function(){return pe})),n.d(t,"v",(function(){return fe})),n.d(t,"s",(function(){return ge})),n.d(t,"u",(function(){return me})),n.d(t,"w",(function(){return ve})),n.d(t,"D",(function(){return _e})),n.d(t,"A",(function(){return be})),n.d(t,"C",(function(){return ye})),n.d(t,"B",(function(){return Ce})),n.d(t,"E",(function(){return we})),n.d(t,"n",(function(){return Se})),n.d(t,"J",(function(){return Oe})),n.d(t,"I",(function(){return Le})),n.d(t,"g",(function(){return De})),n.d(t,"h",(function(){return xe})),n.d(t,"j",(function(){return Ne})),n.d(t,"l",(function(){return ke})),n.d(t,"k",(function(){return Ee})),n.d(t,"m",(function(){return Ie})),n.d(t,"i",(function(){return Me})),n.d(t,"rb",(function(){return Te})),n.d(t,"sb",(function(){return Pe})),n.d(t,"lb",(function(){return Re})),n.d(t,"mb",(function(){return Ae})),n.d(t,"xb",(function(){return Fe})),n.d(t,"yb",(function(){return je})),n.d(t,"wb",(function(){return We})),n.d(t,"ub",(function(){return Ve})),n.d(t,"vb",(function(){return Be})),n.d(t,"nb",(function(){return He})),n.d(t,"tb",(function(){return ze})),n.d(t,"ob",(function(){return Ue})),n.d(t,"qb",(function(){return Ke})),n.d(t,"pb",(function(){return qe})),n.d(t,"gc",(function(){return Ge})),n.d(t,"Ab",(function(){return Ye})),n.d(t,"Bb",(function(){return Ze})),n.d(t,"zb",(function(){return Xe})),n.d(t,"Eb",(function(){return $e})),n.d(t,"Cb",(function(){return Je})),n.d(t,"Db",(function(){return Qe})),n.d(t,"Fb",(function(){return et})),n.d(t,"bc",(function(){return tt})),n.d(t,"cc",(function(){return nt})),n.d(t,"Zb",(function(){return it})),n.d(t,"ac",(function(){return ot})),n.d(t,"Lb",(function(){return rt})),n.d(t,"Mb",(function(){return st})),n.d(t,"Hb",(function(){return at})),n.d(t,"Ib",(function(){return lt})),n.d(t,"Gb",(function(){return ut})),n.d(t,"Jb",(function(){return ct})),n.d(t,"Pb",(function(){return dt})),n.d(t,"Rb",(function(){return ht})),n.d(t,"Qb",(function(){return pt})),n.d(t,"f",(function(){return ft})),n.d(t,"fc",(function(){return gt})),n.d(t,"Kb",(function(){return mt})),n.d(t,"Ub",(function(){return _t}));var i=n(571),o=n(490),r=n(442),s=n(445),a=n(1073),l=n(453),u={ColorContribution:"base.contributions.colors"};function c(){this._onDidChangeSchema=new r.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}var d=new(c.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",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},c.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults)return _t(n.defaults[t.type],t)},c.prototype.getColorSchema=function(){return this.colorSchema},c.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")},c);function h(e,t,n,i,o){return d.registerColor(e,t,n,i,o)}i.a.add(u.ColorContribution,d);var p,f=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),g=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=h("focusBorder",{dark:o.a.fromHex("#0E639C").transparent(.8),light:o.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},s.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),_=h("contrastActiveBorder",{light:null,dark:null,hc:m},s.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),b=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s.a("textLinkForeground","Foreground color for links in text.")),y=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:o.a.black},s.a("textCodeBlockBackground","Background color for code blocks in text.")),C=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},s.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),w=h("input.background",{dark:"#3C3C3C",light:o.a.white,hc:o.a.black},s.a("inputBoxBackground","Input box background.")),S=h("input.foreground",{dark:f,light:f,hc:f},s.a("inputBoxForeground","Input box foreground.")),O=h("input.border",{dark:null,light:null,hc:v},s.a("inputBoxBorder","Input box border.")),L=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},s.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),D=h("inputOption.activeBackground",{dark:gt(m,.5),light:gt(m,.3),hc:null},s.a("inputOption.activeBackground","Background color of activated options in input fields.")),x=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:o.a.black},s.a("inputValidationInfoBackground","Input validation background color for information severity.")),N=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},s.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),k=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},s.a("inputValidationInfoBorder","Input validation border color for information severity.")),E=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:o.a.black},s.a("inputValidationWarningBackground","Input validation background color for warning severity.")),I=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},s.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),M=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},s.a("inputValidationWarningBorder","Input validation border color for warning severity.")),T=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:o.a.black},s.a("inputValidationErrorBackground","Input validation background color for error severity.")),P=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},s.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),R=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},s.a("inputValidationErrorBorder","Input validation border color for error severity.")),A=h("dropdown.background",{dark:"#3C3C3C",light:o.a.white,hc:o.a.black},s.a("dropdownBackground","Dropdown background.")),F=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:o.a.white},s.a("dropdownForeground","Dropdown foreground.")),j=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:o.a.white},s.a("pickerGroupForeground","Quick picker color for grouping labels.")),W=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:o.a.white},s.a("pickerGroupBorder","Quick picker color for grouping borders.")),V=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:o.a.black},s.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),B=h("badge.foreground",{dark:o.a.white,light:"#333",hc:o.a.white},s.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),H=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),z=h("scrollbarSlider.background",{dark:o.a.fromHex("#797979").transparent(.4),light:o.a.fromHex("#646464").transparent(.4),hc:gt(v,.6)},s.a("scrollbarSliderBackground","Scrollbar slider background color.")),U=h("scrollbarSlider.hoverBackground",{dark:o.a.fromHex("#646464").transparent(.7),light:o.a.fromHex("#646464").transparent(.7),hc:gt(v,.8)},s.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),K=h("scrollbarSlider.activeBackground",{dark:o.a.fromHex("#BFBFBF").transparent(.4),light:o.a.fromHex("#000000").transparent(.6),hc:v},s.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),q=h("progressBar.background",{dark:o.a.fromHex("#0E70C0"),light:o.a.fromHex("#0E70C0"),hc:v},s.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),G=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Y=h("editorError.border",{dark:null,light:null,hc:o.a.fromHex("#E47777").transparent(.8)},s.a("errorBorder","Border color of error boxes in the editor.")),Z=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},s.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),X=h("editorWarning.border",{dark:null,light:null,hc:o.a.fromHex("#FFCC00").transparent(.8)},s.a("warningBorder","Border color of warning boxes in the editor.")),$=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),J=h("editorInfo.border",{dark:null,light:null,hc:o.a.fromHex("#75BEFF").transparent(.8)},s.a("infoBorder","Border color of info boxes in the editor.")),Q=h("editorHint.foreground",{dark:o.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ee=h("editorHint.border",{dark:null,light:null,hc:o.a.fromHex("#eeeeee").transparent(.8)},s.a("hintBorder","Border color of hint boxes in the editor.")),te=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:o.a.black},s.a("editorBackground","Editor background color.")),ne=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:o.a.white},s.a("editorForeground","Editor default foreground color.")),ie=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),oe=h("editorWidget.foreground",{dark:f,light:f,hc:f},s.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),re=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},s.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),se=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ae=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s.a("editorSelectionBackground","Color of the editor selection.")),le=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s.a("editorSelectionForeground","Color of the selected text for high contrast.")),ue=h("editor.inactiveSelectionBackground",{light:gt(ae,.5),dark:gt(ae,.5),hc:gt(ae,.5)},s.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),ce=h("editor.selectionHighlightBackground",{light:vt(ae,te,.3,.6),dark:vt(ae,te,.3,.6),hc:null},s.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),de=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:_},s.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),he=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s.a("editorFindMatch","Color of the current search match.")),pe=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),fe=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ge=h("editor.findMatchBorder",{light:null,dark:null,hc:_},s.a("editorFindMatchBorder","Border color of the current search match.")),me=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:_},s.a("findMatchHighlightBorder","Border color of the other search matches.")),ve=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:gt(_,.4)},s.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),_e=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),be=h("editorHoverWidget.background",{light:ie,dark:ie,hc:ie},s.a("hoverBackground","Background color of the editor hover.")),ye=h("editorHoverWidget.foreground",{light:oe,dark:oe,hc:oe},s.a("hoverForeground","Foreground color of the editor hover.")),Ce=h("editorHoverWidget.border",{light:re,dark:re,hc:re},s.a("hoverBorder","Border color of the editor hover.")),we=h("editorHoverWidget.statusBarBackground",{dark:(.2,function(e){var t=_t(p,e);if(t)return t.lighten(.2)}),light:ft(p=be,.05),hc:ie},s.a("statusBarBackground","Background color of the editor hover status bar.")),Se=h("editorLink.activeForeground",{dark:"#4E94CE",light:o.a.blue,hc:o.a.cyan},s.a("activeLinkForeground","Color of active links.")),Oe=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Le=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),De=new o.a(new o.c(155,185,85,.2)),xe=new o.a(new o.c(255,0,0,.2)),Ne=h("diffEditor.insertedTextBackground",{dark:De,light:De,hc:null},s.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ke=h("diffEditor.removedTextBackground",{dark:xe,light:xe,hc:null},s.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ee=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ie=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Me=h("diffEditor.border",{dark:null,light:null,hc:v},s.a("diffEditorBorder","Border color between the two text editors.")),Te=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Pe=h("list.focusForeground",{dark:null,light:null,hc:null},s.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Re=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},s.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ae=h("list.activeSelectionForeground",{dark:o.a.white,light:o.a.white,hc:null},s.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Fe=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),je=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),We=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ve=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Be=h("list.hoverForeground",{dark:null,light:null,hc:null},s.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),He=h("list.dropBackground",{dark:Te,light:Te,hc:null},s.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),ze=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:m},s.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Ue=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:o.a.black},s.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Ke=h("listFilterWidget.outline",{dark:o.a.transparent,light:o.a.transparent,hc:"#f38518"},s.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),qe=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},s.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ge=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ye=h("menu.border",{dark:null,light:null,hc:v},s.a("menuBorder","Border color of menus.")),Ze=h("menu.foreground",{dark:F,light:f,hc:F},s.a("menuForeground","Foreground color of menu items.")),Xe=h("menu.background",{dark:A,light:A,hc:A},s.a("menuBackground","Background color of menu items.")),$e=h("menu.selectionForeground",{dark:Ae,light:Ae,hc:Ae},s.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Je=h("menu.selectionBackground",{dark:Re,light:Re,hc:Re},s.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Qe=h("menu.selectionBorder",{dark:null,light:null,hc:_},s.a("menuSelectionBorder","Border color of the selected menu item in menus.")),et=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},s.a("menuSeparatorBackground","Color of a separator menu item in menus.")),tt=h("editor.snippetTabstopHighlightBackground",{dark:new o.a(new o.c(124,124,124,.3)),light:new o.a(new o.c(10,50,100,.2)),hc:new o.a(new o.c(124,124,124,.3))},s.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),nt=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),it=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),ot=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.a(new o.c(10,50,100,.5)),hc:"#525252"},s.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),rt=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),st=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),at=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),lt=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),ut=h("minimap.errorHighlight",{dark:new o.a(new o.c(255,18,18,.7)),light:new o.a(new o.c(255,18,18,.7)),hc:new o.a(new o.c(255,50,50,1))},s.a("minimapError","Minimap marker color for errors.")),ct=h("minimap.warningHighlight",{dark:Z,light:Z,hc:X},s.a("overviewRuleWarning","Minimap marker color for warnings.")),dt=h("problemsErrorIcon.foreground",{dark:G,light:G,hc:G},s.a("problemsErrorIconForeground","The color used for the problems error icon.")),ht=h("problemsWarningIcon.foreground",{dark:Z,light:Z,hc:Z},s.a("problemsWarningIconForeground","The color used for the problems warning icon.")),pt=h("problemsInfoIcon.foreground",{dark:$,light:$,hc:$},s.a("problemsInfoIconForeground","The color used for the problems info icon."));function ft(e,t){return function(n){var i=_t(e,n);if(i)return i.darken(t)}}function gt(e,t){return function(n){var i=_t(e,n);if(i)return i.transparent(t)}}function mt(){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=_t(i[n],t);if(o)return o}}}function vt(e,t,n,i){return function(r){var s=_t(e,r);if(s){var a=_t(t,r);return a?s.isDarkerThan(a)?o.a.getLighterColor(s,a,n).transparent(i):o.a.getDarkerColor(s,a,n).transparent(i):s.transparent(n*i)}}}function _t(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?o.a.fromHex(e):t.getColor(e):e instanceof o.a?e:"function"==typeof e?e(t):void 0}var bt="vscode://schemas/workbench-colors",yt=i.a.as(a.a.JSONContribution);yt.registerSchema(bt,d.getColorSchema());var Ct=new l.d((function(){return yt.notifySchemaChanged(bt)}),200);d.onDidChangeSchema((function(){Ct.isScheduled()||Ct.schedule()}))},,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return _})),n.d(t,"m",(function(){return b})),n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return w})),n.d(t,"n",(function(){return S})),n.d(t,"o",(function(){return O}));var i="number",o="string",r="undefined",s="object",a="function";function l(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i||e.constructor!==Array)}function u(e){return typeof e===o||e instanceof String}function c(e){return!(typeof e!==s||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function d(e){return(typeof e===i||e instanceof Number)&&!isNaN(e)}function h(e){return!0===e||!1===e}function p(e){return typeof e===r}function f(e){return p(e)||null===e}function g(e,t){if(!e)throw new Error(t?"Unexpected type, expected '"+t+"'":"Unexpected type")}var m=Object.prototype.hasOwnProperty;function v(e){if(!c(e))return!1;for(var t in e)if(m.call(e,t))return!1;return!0}function _(e){return typeof e===a}function b(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)y(e[i],t[i])}function y(e,t){if(u(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(_(t)){try{if(e instanceof t)return}catch(e){}if(!f(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 C(e){for(var t=[],n=0,i=function(e){for(var t=[],n=Object.getPrototypeOf(e);Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e);n<i.length;n++){var o=i[n];"function"==typeof e[o]&&t.push(o)}return t}function w(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},i={},o=0,r=e;o<r.length;o++){var s=r[o];i[s]=n(s)}return i}function S(e){return null===e?void 0:e}function O(e){return void 0===e?null:e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i,o,r=n(450),s=n(440),a=((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)})(l,o=s.a),l.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},l.prototype.equalsSelection=function(e){return l.selectionsEqual(this,e)},l.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},l.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},l.prototype.setEndPosition=function(e,t){return 0===this.getDirection()?new l(this.startLineNumber,this.startColumn,e,t):new l(e,t,this.startLineNumber,this.startColumn)},l.prototype.getPosition=function(){return new r.a(this.positionLineNumber,this.positionColumn)},l.prototype.setStartPosition=function(e,t){return 0===this.getDirection()?new l(e,t,this.endLineNumber,this.endColumn):new l(this.endLineNumber,this.endColumn,e,t)},l.fromPositions=function(e,t){return void 0===t&&(t=e),new l(e.lineNumber,e.column,t.lineNumber,t.column)},l.liftSelection=function(e){return new l(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},l.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},l.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},l.createWithDirection=function(e,t,n,i,o){return 0===o?new l(e,t,n,i):new l(n,i,e,t)},l);function l(e,t,n,i){var r=o.call(this,e,t,n,i)||this;return r.selectionStartLineNumber=e,r.selectionStartColumn=t,r.positionLineNumber=n,r.positionColumn=i,r}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,o,r=n(456);(o=i=i||{}).editorSimpleInput=new r.d("editorSimpleInput",!1),o.editorTextFocus=new r.d("editorTextFocus",!1),o.focus=new r.d("editorFocus",!1),o.textInputFocus=new r.d("textInputFocus",!1),o.readOnly=new r.d("editorReadonly",!1),o.writable=o.readOnly.toNegated(),o.hasNonEmptySelection=new r.d("editorHasSelection",!1),o.hasOnlyEmptySelection=o.hasNonEmptySelection.toNegated(),o.hasMultipleSelections=new r.d("editorHasMultipleSelections",!1),o.hasSingleSelection=o.hasMultipleSelections.toNegated(),o.tabMovesFocus=new r.d("editorTabMovesFocus",!1),o.tabDoesNotMoveFocus=o.tabMovesFocus.toNegated(),o.isInEmbeddedEditor=new r.d("isInEmbeddedEditor",!1),o.canUndo=new r.d("canUndo",!1),o.canRedo=new r.d("canRedo",!1),o.languageId=new r.d("editorLangId",""),o.hasCompletionItemProvider=new r.d("editorHasCompletionItemProvider",!1),o.hasCodeActionsProvider=new r.d("editorHasCodeActionsProvider",!1),o.hasCodeLensProvider=new r.d("editorHasCodeLensProvider",!1),o.hasDefinitionProvider=new r.d("editorHasDefinitionProvider",!1),o.hasDeclarationProvider=new r.d("editorHasDeclarationProvider",!1),o.hasImplementationProvider=new r.d("editorHasImplementationProvider",!1),o.hasTypeDefinitionProvider=new r.d("editorHasTypeDefinitionProvider",!1),o.hasHoverProvider=new r.d("editorHasHoverProvider",!1),o.hasDocumentHighlightProvider=new r.d("editorHasDocumentHighlightProvider",!1),o.hasDocumentSymbolProvider=new r.d("editorHasDocumentSymbolProvider",!1),o.hasReferenceProvider=new r.d("editorHasReferenceProvider",!1),o.hasRenameProvider=new r.d("editorHasRenameProvider",!1),o.hasSignatureHelpProvider=new r.d("editorHasSignatureHelpProvider",!1),o.hasDocumentFormattingProvider=new r.d("editorHasDocumentFormattingProvider",!1),o.hasDocumentSelectionFormattingProvider=new r.d("editorHasDocumentSelectionFormattingProvider",!1),o.hasMultipleDocumentFormattingProvider=new r.d("editorHasMultipleDocumentFormattingProvider",!1),o.hasMultipleDocumentSelectionFormattingProvider=new r.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)},,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"o",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"m",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"k",(function(){return v})),n.d(t,"n",(function(){return _})),n.d(t,"j",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"l",(function(){return C}));var i=n(442),o=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},r.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)},r.INSTANCE=new r,r);function r(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}function s(){return o.INSTANCE.getZoomLevel()}function a(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function l(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function u(){return o.INSTANCE.getPixelRatio()}var c=navigator.userAgent,d=0<=c.indexOf("Trident"),h=0<=c.indexOf("Edge/"),p=d||h,f=0<=c.indexOf("Firefox"),g=0<=c.indexOf("AppleWebKit"),m=0<=c.indexOf("Chrome"),v=!m&&0<=c.indexOf("Safari"),_=!m&&!v&&g,b=0<=c.indexOf("iPad")||v&&0<navigator.maxTouchPoints,y=h&&0<=c.indexOf("WebView/"),C=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i,o,r=n(452),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=/^\w[\w\d+.-]*$/,l=/^\//,u=/^\/\//,c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,h=(p.isUri=function(e){return e instanceof p||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(p.prototype,"fsPath",{get:function(){return C(this)},enumerable:!0,configurable:!0}),p.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=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===i?i=this.path:null===i&&(i=""),void 0===o?o=this.query:null===o&&(o=""),void 0===r?r=this.fragment:null===r&&(r=""),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new m(t,n,i,o,r)},p.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new m(n[2]||"",O(n[4]||""),O(n[5]||""),O(n[7]||""),O(n[9]||""),t):new m("","","","","")},p.file=function(e){var t="";if(r.h&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){var n=e.indexOf(c,2);e=-1===n?(t=e.substring(2),c):(t=e.substring(2,n),e.substring(n)||c)}return new m("file",t,e,"","")},p.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},p.prototype.toString=function(e){return void 0===e&&(e=!1),w(this,e)},p.prototype.toJSON=function(){return this},p.revive=function(e){if(e){if(e instanceof p)return e;var t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}return e},p);function p(e,t,n,i,o,r){var s;void 0===r&&(r=!1),"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=(s=e)||r?s:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||""),this.query=i||"",this.fragment=o||"",function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.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(u.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,r))}var f,g=r.h?1:void 0,m=(s(v,f=h),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this)),this._fsPath},enumerable:!0,configurable:!0}),v.prototype.toString=function(e){return void 0===e&&(e=!1),e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},v.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),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},v);function v(){var e=null!==f&&f.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}var _=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function b(e,t){for(var n=void 0,i=-1,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(97<=r&&r<=122||65<=r&&r<=90||48<=r&&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=_[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 y(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+=_[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function C(e){var t;return t=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,r.h&&(t=t.replace(/\//g,"\\")),t}function w(e,t){var n=t?y:b,i="",o=e.scheme,r=e.authority,s=e.path,a=e.query,l=e.fragment;if(o&&(i+=o,i+=":"),!r&&"file"!==o||(i+=c,i+=c),r){var u=r.indexOf("@");if(-1!==u){var d=r.substr(0,u);r=r.substr(u+1),-1===(u=d.indexOf(":"))?i+=n(d,!1):(i+=n(d.substr(0,u),!1),i+=":",i+=n(d.substr(u+1),!1)),i+="@"}-1===(u=(r=r.toLowerCase()).indexOf(":"))?i+=n(r,!1):(i+=n(r.substr(0,u),!1),i+=r.substr(u))}if(s){if(3<=s.length&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))65<=(h=s.charCodeAt(1))&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(2<=s.length&&58===s.charCodeAt(1)){var h;65<=(h=s.charCodeAt(0))&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:b(l,!1)),i}var S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(e){return e.match(S)?e.replace(S,(function(e){return function t(n){try{return decodeURIComponent(n)}catch(e){return 3<n.length?n.substr(0,3)+t(n.substr(3)):n}}(e)})):e}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u}));var i,o,r=n(442),s=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(o=i=i||{}).isCancellationToken=function(e){return e===o.None||e===o.Cancelled||e instanceof a||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.b.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s});var a=(l.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(l.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?s:(this._emitter||(this._emitter=new r.a),this._emitter.event)},enumerable:!0,configurable:!0}),l.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},l);function l(){this._isCancelled=!1,this._emitter=null}var u=(Object.defineProperty(c.prototype,"token",{get:function(){return this._token||(this._token=new a),this._token},enumerable:!0,configurable:!0}),c.prototype.cancel=function(){this._token?this._token instanceof a&&this._token.cancel():this._token=i.Cancelled},c.prototype.dispose=function(e){void 0===e&&(e=!1),e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof a&&this._token.dispose():this._token=i.None},c);function c(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(443),o=(r.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},r.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},r.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},r.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},r.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},r.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},r.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},r.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},r.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},r.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},r.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},r.prototype.setFontFeatureSettings=function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)},r.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},r.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},r.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},r.prototype.toggleClassName=function(e,t){i.Y(this.domNode,e,t),this._className=this.domNode.className},r.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},r.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},r.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},r.prototype.setBackgroundColor=function(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)},r.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")},r.prototype.setContain=function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)},r.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},r.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},r.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},r.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},r);function r(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._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}function s(e){return new o(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(439),o=n(465),r=n(448),s=n(442),a=n(786),l=n(553),u=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},c=Object(r.c)("commandService"),d=(h.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 r=[],s=0,l=e.description.args;s<l.length;s++){var c=l[s];r.push(c.constraint)}var d=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(o.m)(t,r),d.apply(void 0,u([e],t))}}var h=e.id,p=this._commands.get(h);p||(p=new a.a,this._commands.set(h,p));var f=p.unshift(e),g=Object(i.h)((function(){f();var e=n._commands.get(h);null!=e&&e.isEmpty()&&n._commands.delete(h)}));return this._onDidRegisterCommand.fire(h),g},h.prototype.registerCommandAlias=function(e,t){return d.registerCommand(e,(function(e){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return(n=e.get(c)).executeCommand.apply(n,u([t],i))}))},h.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},h.prototype.getCommands=function(){for(var e=new Map,t=0,n=Object(l.d)(this._commands);t<n.length;t++){var i=n[t],o=this.getCommand(i);o&&e.set(i,o)}return e},new h);function h(){this._commands=new Map,this._onDidRegisterCommand=new s.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}},function(e,t,n){"use strict";function i(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var o=(r.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},r);function r(e,t,n,o){void 0===o&&(o=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=i(Math.max(Math.min(1,o),0),3)}var s=(a.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},a.fromRGBA=function(e){var t=e.r/255,n=e.g/255,i=e.b/255,o=e.a,r=Math.max(t,n,i),s=Math.min(t,n,i),l=0,u=0,c=(s+r)/2,d=r-s;if(0<d){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),r){case t:l=(n-i)/d+(n<i?6:0);break;case n:l=(i-t)/d+2;break;case i:l=(t-n)/d+4}l*=60,l=Math.round(l)}return new a(l,u,c,o)},a._hue2rgb=function(e,t,n){return n<0&&(n+=1),1<n&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},a.toRGBA=function(e){var t,n,i,r=e.h/360,s=e.s,l=e.l,u=e.a;if(0===s)t=n=i=l;else{var c=l<.5?l*(1+s):l+s-l*s,d=2*l-c;t=a._hue2rgb(d,c,r+1/3),n=a._hue2rgb(d,c,r),i=a._hue2rgb(d,c,r-1/3)}return new o(Math.round(255*t),Math.round(255*n),Math.round(255*i),u)},a);function a(e,t,n,o){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,o),0),3)}var l=(u.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},u.fromRGBA=function(e){var t,n=e.r/255,i=e.g/255,o=e.b/255,r=Math.max(n,i,o),s=r-Math.min(n,i,o),a=0===r?0:s/r;return t=0==s?0:r===n?((i-o)/s%6+6)%6:r===i?(o-n)/s+2:(n-i)/s+4,new u(Math.round(60*t),a,r,e.a)},u.toRGBA=function(e){var t=e.h,n=e.s,i=e.v,r=e.a,s=i*n,a=s*(1-Math.abs(t/60%2-1)),l=i-s,u=[0,0,0],c=u[0],d=u[1],h=u[2];return t<60?(c=s,d=a):t<120?(c=a,d=s):t<180?(d=s,h=a):t<240?(d=a,h=s):t<300?(c=a,h=s):t<360&&(c=s,h=a),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),h=Math.round(255*(h+l)),new o(c,d,h,r)},u);function u(e,t,n,o){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,o),0),3)}var c,d,h,p=(f.fromHex=function(e){return f.Format.CSS.parseHex(e)||f.red},Object.defineProperty(f.prototype,"hsla",{get:function(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"hsva",{get:function(){return this._hsva?this._hsva:l.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),f.prototype.equals=function(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&l.equals(this.hsva,e.hsva)},f.prototype.getRelativeLuminance=function(){return i(.2126*f._relativeLuminanceForComponent(this.rgba.r)+.7152*f._relativeLuminanceForComponent(this.rgba.g)+.0722*f._relativeLuminanceForComponent(this.rgba.b),4)},f._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4)},f.prototype.isLighter=function(){return 128<=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3},f.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance();return e.getRelativeLuminance()<t},f.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()},f.prototype.lighten=function(e){return new f(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))},f.prototype.darken=function(e){return new f(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))},f.prototype.transparent=function(e){var t=this.rgba,n=t.r,i=t.g,r=t.b,s=t.a;return new f(new o(n,i,r,s*e))},f.prototype.isTransparent=function(){return 0===this.rgba.a},f.prototype.isOpaque=function(){return 1===this.rgba.a},f.prototype.opposite=function(){return new f(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},f.prototype.toString=function(){return""+f.Format.CSS.format(this)},f.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)},f.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)},f.white=new f(new o(255,255,255,1)),f.black=new f(new o(0,0,0,1)),f.red=new f(new o(255,0,0,1)),f.blue=new f(new o(0,0,255,1)),f.cyan=new f(new o(0,255,255,1)),f.lightgrey=new f(new o(211,211,211,1)),f.transparent=new f(new o(0,0,0,0)),f);function f(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof l))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=l.toRGBA(e)}}function g(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function m(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}(h=(d=(c=p=p||{}).Format||(c.Format={})).CSS||(d.CSS={})).formatRGB=function(e){return 1===e.rgba.a?"rgb("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+")":c.Format.CSS.formatRGBA(e)},h.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"},h.formatHSL=function(e){return 1===e.hsla.a?"hsl("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%)":c.Format.CSS.formatHSLA(e)},h.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)+")"},h.formatHex=function(e){return"#"+g(e.rgba.r)+g(e.rgba.g)+g(e.rgba.b)},h.formatHexA=function(e,t){return void 0===t&&(t=!1),t&&1===e.rgba.a?c.Format.CSS.formatHex(e):"#"+g(e.rgba.r)+g(e.rgba.g)+g(e.rgba.b)+g(Math.round(255*e.rgba.a))},h.format=function(e){return e.isOpaque()?c.Format.CSS.formatHex(e):c.Format.CSS.formatRGBA(e)},h.parseHex=function(e){var t=e.length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t){var n=16*m(e.charCodeAt(1))+m(e.charCodeAt(2)),i=16*m(e.charCodeAt(3))+m(e.charCodeAt(4)),r=16*m(e.charCodeAt(5))+m(e.charCodeAt(6));return new c(new o(n,i,r,1))}if(9!==t)return 4!==t?5===t&&(n=m(e.charCodeAt(1)),i=m(e.charCodeAt(2)),r=m(e.charCodeAt(3)),s=m(e.charCodeAt(4)),new c(new o(16*n+n,16*i+i,16*r+r,(16*s+s)/255))):(n=m(e.charCodeAt(1)),i=m(e.charCodeAt(2)),r=m(e.charCodeAt(3)),new c(new o(16*n+n,16*i+i,16*r+r)));n=16*m(e.charCodeAt(1))+m(e.charCodeAt(2)),i=16*m(e.charCodeAt(3))+m(e.charCodeAt(4)),r=16*m(e.charCodeAt(5))+m(e.charCodeAt(6));var s=16*m(e.charCodeAt(7))+m(e.charCodeAt(8));return new c(new o(n,i,r,s/255))}},,,,,function(e,t,n){"use strict";var i=n(446),o=n(442),r=n(439),s=n(444),a=n(479),l=n(530),u=n(450),c=n(440),d=n(466),h=n(599),p=(f.prototype.undo=function(e){for(var t=this.editOperations.length-1;0<=t;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},f.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},f);function f(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}function g(e){return"\n"===e.getEOL()?0:1}var m=(v.prototype.undo=function(e){var t=g(e);e.setEOL(this.eol),this.eol=t},v.prototype.redo=function(e){var t=g(e);e.setEOL(this.eol),this.eol=t},v);function v(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}var _=(b.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},b.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},b.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=g(this.model),n=new m(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},b.prototype.pushEditOperation=function(e,t,n){this.future=[];var i=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof p?i=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(i=new p(this.model.getAlternativeVersionId(),e),this.currentOpenStackElement=i);var o={operations:this.model.applyEdits(t)};return i.editOperations.push(o),i.afterCursorState=b._computeCursorState(n,o.operations),i.afterVersionId=this.model.getVersionId(),i.afterCursorState},b._computeCursorState=function(e,t){try{return e?e(t):null}catch(e){return Object(i.e)(e),null}},b.prototype.undo=function(){if(this.pushStackElement(),0<this.past.length){var e=this.past.pop();try{e.undo(this.model)}catch(e){return Object(i.e)(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},b.prototype.canUndo=function(){return 0<this.past.length||null!==this.currentOpenStackElement},b.prototype.redo=function(){if(0<this.future.length){var e=this.future.pop();try{e.redo(this.model)}catch(e){return Object(i.e)(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},b.prototype.canRedo=function(){return 0<this.future.length},b);function b(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}var y=function(){this.spacesDiff=0,this.looksLikeAlignment=!1};function C(e,t,n,i,o){var r;for(o.spacesDiff=0,o.looksLikeAlignment=!1,r=0;r<t&&r<i&&e.charCodeAt(r)===n.charCodeAt(r);r++);for(var s=0,a=0,l=r;l<t;l++)32===e.charCodeAt(l)?s++:a++;var u=0,c=0;for(l=r;l<i;l++)32===n.charCodeAt(l)?u++:c++;if(!(0<s&&0<a||0<u&&0<c)){var d=Math.abs(a-c),h=Math.abs(s-u);0!==d?h%d!=0||(o.spacesDiff=h/d):0<(o.spacesDiff=h)&&0<=u-1&&u-1<e.length&&u<n.length&&32!==n.charCodeAt(u)&&32===e.charCodeAt(u-1)&&44===e.charCodeAt(e.length-1)&&(o.looksLikeAlignment=!0)}}function w(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,l=[0,0,0,0,0,0,0,0,0],u=new y,c=1;c<=i;c++){for(var d=e.getLineLength(c),h=e.getLineContent(c),p=d<=65536,f=!1,g=0,m=0,v=0,_=0,b=d;_<b;_++){var w=p?h.charCodeAt(_):e.getLineCharCode(c,_);if(9===w)v++;else{if(32!==w){f=!0,g=_;break}m++}}if(f&&(0<v?o++:1<m&&r++,C(s,a,h,g,u),!u.looksLikeAlignment||n&&t===u.spacesDiff)){var S=u.spacesDiff;S<=8&&l[S]++,s=h,a=g}}var O=n;o!==r&&(O=o<r);var L=t;if(O){var D=O?0:.1*i;[2,4,6,8,3,5,7].forEach((function(e){var t=l[e];D<t&&(D=t,L=e)})),4===L&&0<l[4]&&0<l[2]&&l[2]>=l[4]/2&&(L=2)}return{insertSpaces:O,tabSize:L}}function S(e){return(1&e.metadata)>>>0}function O(e,t){e.metadata=254&e.metadata|t<<0}function L(e){return(2&e.metadata)>>>1==1}function D(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function x(e){return(4&e.metadata)>>>2==1}function N(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function k(e){return(8&e.metadata)>>>3==1}function E(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function I(e,t){e.metadata=207&e.metadata|t<<4}function M(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var T=(P.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},P.prototype.setOptions=function(e){this.options=e;var t=this.options.className;N(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),I(this,this.options.stickiness),E(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),M(this,this.options.collapseOnReplaceEdit)},P.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},P.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},P);function P(e,t,n){this.metadata=0,O(((this.parent=this).left=this).right=this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,N(this,!1),I(this,1),E(this,!1),M(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,D(this,!1)}var R=new T(null,0,0);O(((R.parent=R).left=R).right=R,0);var A=(F.prototype.intervalSearch=function(e,t,n,i,o){return this.root===R?[]:function(e,t,n,i,o,r){for(var s=e.root,a=0,l=0,u=0,c=[],d=0;s!==R;)if(L(s))D(s.left,!1),D(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!L(s.left)){if(a+s.maxEnd<t){D(s,!0);continue}if(s.left!==R){s=s.left;continue}}if(n<(l=a+s.start))D(s,!0);else{if(t<=(u=a+s.end)){s.setCachedOffsets(l,u,r);var h=!0;i&&s.ownerId&&s.ownerId!==i&&(h=!1),o&&x(s)&&(h=!1),h&&(c[d++]=s)}D(s,!0),s.right===R||L(s.right)||(a+=s.delta,s=s.right)}}return D(e.root,!1),c}(this,e,t,n,i,o)},F.prototype.search=function(e,t,n){return this.root===R?[]:function(e,t,n,i){for(var o=e.root,r=0,s=0,a=0,l=[],u=0;o!==R;)if(L(o))D(o.left,!1),D(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===R||L(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&&x(o)&&(c=!1),c&&(l[u++]=o),D(o,!0),o.right===R||L(o.right)||(r+=o.delta,o=o.right)}else o=o.left;return D(e.root,!1),l}(this,e,t,n)},F.prototype.collectNodesFromOwner=function(e){return function(e,t){for(var n=e.root,i=[],o=0;n!==R;)L(n)?(D(n.left,!1),D(n.right,!1),n=n.parent):n.left===R||L(n.left)?(n.ownerId===t&&(i[o++]=n),D(n,!0),n.right===R||L(n.right)||(n=n.right)):n=n.left;return D(e.root,!1),i}(this,e)},F.prototype.collectNodesPostOrder=function(){return function(e){for(var t=e.root,n=[],i=0;t!==R;)L(t)?(D(t.left,!1),D(t.right,!1),t=t.parent):t.left===R||L(t.left)?t.right===R||L(t.right)?D(n[i++]=t,!0):t=t.right:t=t.left;return D(e.root,!1),n}(this)},F.prototype.insert=function(e){V(this,e),this._normalizeDeltaIfNecessary()},F.prototype.delete=function(e){B(this,e),this._normalizeDeltaIfNecessary()},F.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)},F.prototype.acceptReplace=function(e,t,n,i){for(var o=function(e,t,n){for(var i=e.root,o=0,r=0,s=0,a=[],l=0;i!==R;)if(L(i))D(i.left,!1),D(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!L(i.left)){if(o+i.maxEnd<t){D(i,!0);continue}if(i.left!==R){i=i.left;continue}}n<(r=o+i.start)?D(i,!0):(t<=(s=o+i.end)&&(i.setCachedOffsets(r,s,0),a[l++]=i),D(i,!0),i.right===R||L(i.right)||(o+=i.delta,i=i.right))}return D(e.root,!1),a}(this,e,e+t),r=0,s=o.length;r<s;r++)B(this,a=o[r]);for(this._normalizeDeltaIfNecessary(),function(e,t,n,i){for(var o=e.root,r=0,s=i-(n-t);o!==R;)if(L(o))D(o.left,!1),D(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),q(o),o=o.parent;else{if(!L(o.left)){if(r+o.maxEnd<t){D(o,!0);continue}if(o.left!==R){o=o.left;continue}}n<r+o.start?(o.start+=s,o.end+=s,o.delta+=s,(o.delta<-1073741824||1073741824<o.delta)&&(e.requestNormalizeDelta=!0),D(o,!0)):(D(o,!0),o.right===R||L(o.right)||(r+=o.delta,o=o.right))}D(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary(),r=0,s=o.length;r<s;r++){var a;(a=o[r]).start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,W(a,e,e+t,n,i),a.maxEnd=a.end,V(this,a)}this._normalizeDeltaIfNecessary()},F.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){for(var t=e.root,n=0;t!==R;)t=t.left===R||L(t.left)?t.right===R||L(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,q(t),D(t,!0),D(t.left,!1),D(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t.parent):(n+=t.delta,t.right):t.left;D(e.root,!1)}(this))},F);function F(){this.root=R,this.requestNormalizeDelta=!1}function j(e,t,n,i){return e<n||!(n<e||1===i)&&(2===i||t)}function W(e,t,n,i,o){var r=(48&e.metadata)>>>4,s=0==r||2==r,a=1==r||2==r,l=n-t,u=i,c=Math.min(l,u),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&(64&e.metadata)>>>6==1&&(e.start=t,h=!0,e.end=t,f=!0);var g=o?1:0<l?2:0;!h&&j(d,s,t,g)&&(h=!0),!f&&j(p,a,t,g)&&(f=!0),0<c&&!o&&(g=u<l?2:0,!h&&j(d,s,t+c,g)&&(h=!0),!f&&j(p,a,t+c,g)&&(f=!0)),g=o?1:0,!h&&j(d,s,n,g)&&(e.start=t+u,h=!0),!f&&j(p,a,n,g)&&(e.end=t+u,f=!0);var m=u-l;h||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,p+m)),e.start>e.end&&(e.end=e.start)}function V(e,t){if(e.root===R)return t.parent=R,t.left=R,t.right=R,O(t,0),e.root=t,e.root;!function(e,t){for(var n=0,i=e.root,o=t.start,r=t.end;;)if(Y(o,r,i.start+n,i.end+n)<0){if(i.left===R){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===R){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=R,t.right=R,O(t,1)}(e,t),G(t.parent);for(var n=t;n!==e.root&&1===S(n.parent);){var i;n.parent===n.parent.parent.left?1===S(i=n.parent.parent.right)?(O(n.parent,0),O(i,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&z(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),U(e,n.parent.parent)):1===S(i=n.parent.parent.left)?(O(n.parent,0),O(i,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&U(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),z(e,n.parent.parent))}return O(e.root,0),t}function B(e,t){var n,i;if(t.left===R?((n=(i=t).right).delta+=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===R?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==R;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||1073741824<i.delta)&&(e.requestNormalizeDelta=!0)),i===e.root)return O(e.root=n,0),t.detach(),H(),q(n),void(e.root.parent=R);var o,r=1===S(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,O(i,S(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==R&&(i.left.parent=i),i.right!==R&&(i.right.parent=i)),t.detach(),r)return G(n.parent),i!==t&&(G(i),G(i.parent)),void H();for(G(n),G(n.parent),i!==t&&(G(i),G(i.parent));n!==e.root&&0===S(n);)n=n===n.parent.left?(1===S(o=n.parent.right)&&(O(o,0),O(n.parent,1),z(e,n.parent),o=n.parent.right),0===S(o.left)&&0===S(o.right)?(O(o,1),n.parent):(0===S(o.right)&&(O(o.left,0),O(o,1),U(e,o),o=n.parent.right),O(o,S(n.parent)),O(n.parent,0),O(o.right,0),z(e,n.parent),e.root)):(1===S(o=n.parent.left)&&(O(o,0),O(n.parent,1),U(e,n.parent),o=n.parent.left),0===S(o.left)&&0===S(o.right)?(O(o,1),n.parent):(0===S(o.left)&&(O(o.right,0),O(o,1),z(e,o),o=n.parent.left),O(o,S(n.parent)),O(n.parent,0),O(o.left,0),U(e,n.parent),e.root));O(n,0),H()}function H(){(R.parent=R).delta=0,R.start=0,R.end=0}function z(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==R&&(n.left.parent=t),n.parent=t.parent,t.parent===R?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,(n.left=t).parent=n,q(t),q(n)}function U(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||1073741824<t.delta)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==R&&(n.right.parent=t),n.parent=t.parent,t.parent===R?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,(n.right=t).parent=n,q(t),q(n)}function K(e){var t=e.end;if(e.left!==R){var n=e.left.maxEnd;t<n&&(t=n)}if(e.right!==R){var i=e.right.maxEnd+e.delta;t<i&&(t=i)}return t}function q(e){e.maxEnd=K(e)}function G(e){for(;e!==R;){var t=K(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Y(e,t,n,i){return e===n?t-i:e-n}var Z=(X.prototype.next=function(){if(this.right!==$)return J(this.right);for(var e=this;e.parent!==$&&e.parent.left!==e;)e=e.parent;return e.parent===$?$:e.parent},X.prototype.prev=function(){if(this.left!==$)return Q(this.left);for(var e=this;e.parent!==$&&e.parent.right!==e;)e=e.parent;return e.parent===$?$:e.parent},X.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},X);function X(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,((this.parent=this).left=this).right=this}var $=new Z(null,0);function J(e){for(;e.left!==$;)e=e.left;return e}function Q(e){for(;e.right!==$;)e=e.right;return e}function ee(e){return e===$?0:e.size_left+e.piece.length+ee(e.right)}function te(e){return e===$?0:e.lf_left+e.piece.lineFeedCnt+te(e.right)}function ne(){$.parent=$}function ie(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!==$&&(n.left.parent=t),n.parent=t.parent,t.parent===$?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,(n.left=t).parent=n}function oe(e,t){var n=t.left;t.left=n.right,n.right!==$&&(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===$?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,(n.right=t).parent=n}function re(e,t){var n,i;if(n=t.left===$?(i=t).right:t.right===$?(i=t).left:(i=J(t.right)).right,i===e.root)return(e.root=n).color=0,t.detach(),ne(),void(e.root.parent=$);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,le(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,le(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!==$&&(i.left.parent=i),i.right!==$&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,le(e,i)),t.detach(),n.parent.left===n){var r=ee(n),s=te(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,l=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,ae(e,n.parent,a,l)}}if(le(e,n.parent),o)ne();else{for(var u;n!==e.root&&0===n.color;)n=n===n.parent.left?(1===(u=n.parent.right).color&&(u.color=0,n.parent.color=1,ie(e,n.parent),u=n.parent.right),0===u.left.color&&0===u.right.color?(u.color=1,n.parent):(0===u.right.color&&(u.left.color=0,u.color=1,oe(e,u),u=n.parent.right),u.color=n.parent.color,n.parent.color=0,u.right.color=0,ie(e,n.parent),e.root)):(1===(u=n.parent.left).color&&(u.color=0,n.parent.color=1,oe(e,n.parent),u=n.parent.left),0===u.left.color&&0===u.right.color?(u.color=1,n.parent):(0===u.left.color&&(u.right.color=0,u.color=1,ie(e,u),u=n.parent.left),u.color=n.parent.color,n.parent.color=0,u.left.color=0,oe(e,n.parent),e.root));n.color=0,ne()}}function se(e,t){for(le(e,t);t!==e.root&&1===t.parent.color;){var n;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&&ie(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,oe(e,t.parent.parent)):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&&oe(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,ie(e,t.parent.parent))}e.root.color=0}function ae(e,t,n,i){for(;t!==e.root&&t!==$;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function le(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=ee((t=t.parent).left)-t.size_left,i=te(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}}((($.parent=$).left=$).right=$).color=0;var ue=n(947),ce=65535;function de(e){var t;return(t=new(e[e.length-1]<65536?Uint16Array:Uint32Array)(e.length)).set(e,0),t}var he=function(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o};function pe(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?de(n):n}var fe=function(e,t,n,i,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=o},ge=function(e,t){this.buffer=e,this.lineStarts=t},me=(ve.prototype.get=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},ve.prototype.get2=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},ve.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},ve.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)&&(t=!(n[i]=null))}if(t){for(var r=[],s=0,a=n;s<a.length;s++){var l=a[s];null!==l&&r.push(l)}this._cache=r}},ve);function ve(e){this._limit=e,this._cache=[]}var _e=(be.prototype.create=function(e,t,n){this._buffers=[new ge("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=$,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(0<e[o].buffer.length){e[o].lineStarts||(e[o].lineStarts=pe(e[o].buffer));var s=new fe(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 me(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},be.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 l=t.getNodeContent(a),u=l.length;if(r<=n||r+u<i)return o+=l,r+=u,!0;var c=o.replace(/\r\n|\r|\n/g,e);return s.push(new ge(c,pe(c))),o=l,r=u,!0})),0<r){var a=o.replace(/\r\n|\r|\n/g,e);s.push(new ge(a,pe(a)))}this.create(s,e,!0)},be.prototype.getEOL=function(){return this._EOL},be.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},be.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==$;)if(i.left!==$&&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},be.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==$;)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)return new u.a(n+1,o.remainder+1);var r=i-this.getOffsetAt(n+1,1);return new u.a(n+1,r+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===$)return r=i-e-this.getOffsetAt(n+1,1),new u.a(n+1,r+1);t=t.right}return new u.a(1,1)},be.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)},be.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),l=s.substring(a+e.remainder,a+r.piece.length);for(r=r.next();r!==$;){var u=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){l+=u.substring(c,c+t.remainder);break}l+=u.substr(c,r.piece.length),r=r.next()}return l},be.prototype.getLinesContent=function(){var e=this,t=[],n=0,i="",o=!1;return this.iterate(this.root,(function(r){if(r===$)return!0;var s=r.piece,a=s.length;if(0===a)return!0;var l=e._buffers[s.bufferIndex].buffer,u=e._buffers[s.bufferIndex].lineStarts,c=s.start.line,d=s.end.line,h=u[c]+s.start.column;if(o&&(10===l.charCodeAt(h)&&(h++,a--),t[n++]=i,i="",o=!1,0===a))return!0;if(c===d)return e._EOLNormalized||13!==l.charCodeAt(h+a-1)?i+=l.substr(h,a):(o=!0,i+=l.substr(h,a-1)),!0;i+=e._EOLNormalized?l.substring(h,Math.max(h,u[c+1]-e._EOLLength)):l.substring(h,u[c+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;for(var p=c+1;p<d;p++)i=e._EOLNormalized?l.substring(u[p],u[p+1]-e._EOLLength):l.substring(u[p],u[p+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;return e._EOLNormalized||13!==l.charCodeAt(u[d]+s.end.column-1)?i=l.substr(u[d],s.end.column):(o=!0,0===s.end.column?n--:i=l.substr(u[d],s.end.column-1)),!0})),o&&(t[n++]=i,i=""),t[n++]=i,t},be.prototype.getLength=function(){return this._length},be.prototype.getLineCount=function(){return this._lineCnt},be.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e||((this._lastVisitedLine.lineNumber=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},be.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)},be.prototype.getLineLength=function(e){if(e!==this.getLineCount())return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength;var t=this.getOffsetAt(e,1);return this.getLength()-t},be.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,l,u,d){var h,p,f,g=this._buffers[e.piece.bufferIndex],m=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,o),_=this.offsetInBuffer(e.piece.bufferIndex,r),b={line:0,column:0};t._wordSeparators?(p=g.buffer.substring(v,_),f=function(e){return e+v},t.reset(-1)):(p=g.buffer,f=function(e){return e},t.reset(v));do{if(h=t.next(p)){if(f(h.index)>=_)return u;this.positionInBuffer(e,f(h.index)-m,b);var y=this.getLineFeedCnt(e.piece.bufferIndex,o,b),C=b.line===o.line?b.column-o.column+i:b.column+1,w=C+h[0].length;if(d[u++]=Object(ue.d)(new c.a(n+y,C,n+y,w),h,a),f(h.index)+h[0].length>=_)return u;if(l<=u)return u}}while(h);return u},be.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new ue.b(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var u=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,u,c,t,n,i,r,o),o;for(var d=e.startLineNumber,h=a.node;h!==l.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,u,h.piece.end);if(1<=p){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[u.line+p],v=d===e.startLineNumber?e.startColumn:1;if(i<=(r=this.findMatchesInNode(h,s,d,v,u,this.positionInBuffer(h,m-g),t,n,i,r,o)))return o;d+=p}var _=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var b=this.getLineContent(d).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,s,b,e.endLineNumber,_,r,o,n,i),o}if(i<=(r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(_),d,_,r,o,n,i)))return o;d++,h=(a=this.nodeAt2(d,1)).node,u=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var y=d===e.startLineNumber?e.startColumn-1:0;return b=this.getLineContent(d).substring(y,e.endColumn-1),r=this._findMatchesInLine(t,s,b,e.endLineNumber,y,r,o,n,i),o}var C=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(l.node,s,d,C,u,c,t,n,i,r,o),o},be.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,l){var u,d=e.wordSeparators;if(!a&&e.simpleSearch){for(var p=e.simpleSearch,f=p.length,g=n.length,m=-f;-1!==(m=n.indexOf(p,m+f));)if((!d||Object(ue.e)(d,n,g,m,f))&&(s[r++]=new h.b(new c.a(i,m+1+o,i,m+1+f+o),null),l<=r))return r;return r}t.reset(0);do{if((u=t.next(n))&&(s[r++]=Object(ue.d)(new c.a(i,u.index+1+o,i,u.index+1+u[0].length+o),u,a),l<=r))return r}while(u);return r},be.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!==$){var i=this.nodeAt(e),o=i.node,r=i.remainder,s=i.nodeStartOffset,a=o.piece,l=a.bufferIndex,u=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<ce)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 fe(a.bufferIndex,u,a.end,this.getLineFeedCnt(a.bufferIndex,u,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,u));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(o,r)){var h={line:d.start.line+1,column:0};d=new fe(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,u);else this.deleteNodeTail(o,u);var f=this.createNewPieces(t);0<d.length&&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 v=this.createNewPieces(t);for(o=this.rbInsertLeft(null,v[0]),m=1;m<v.length;m++)o=this.rbInsertRight(o,v[m])}this.computeBufferMetadata()},be.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===$)){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)return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o)):this.shrinkNode(o,s,a),void this.computeBufferMetadata();if(t!==o.piece.length)return this.deleteNodeHead(o,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata();var l=o.next();return re(this,o),this.validateCRLFWithPrevNode(l),void this.computeBufferMetadata()}var u=[],c=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,c),this._searchCache.valdiate(e),0===o.piece.length&&u.push(o);var d=this.positionInBuffer(r,i.remainder);this.deleteNodeHead(r,d),0===r.piece.length&&u.push(r);for(var h=o.next();h!==$&&h!==r;h=h.next())u.push(h);var p=0===o.piece.length?o.prev():o;this.deleteNodes(u),this.validateCRLFWithNextNode(p),this.computeBufferMetadata()}},be.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 fe(i.bufferIndex,o,i.end,this.getLineFeedCnt(i.bufferIndex,o,i.end),i.length-1);t.piece=r,e+="\n",ae(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]),l=s.length-2;0<=l;l--)a=this.rbInsertLeft(a,s[l]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},be.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)},be.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,l=i.end.line,u=0,c=0,d=0;a<=l&&(d=r[u=a+(l-a)/2|0],u!==l);)if(c=r[u+1],s<d)l=u-1;else{if(!(c<=s))break;a=u+1}return n?(n.line=u,n.column=s-d,null):{line:u,column:s-d}},be.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(r+1<o)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},be.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},be.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)re(this,e[t])},be.prototype.createNewPieces=function(e){if(e.length>ce){for(var t=[];e.length>ce;){var n=e.charCodeAt(ce-1),i=void 0;e=13===n||55296<=n&&n<=56319?(i=e.substring(0,ce-1),e.substring(ce-1)):(i=e.substring(0,ce),e.substring(ce));var o=pe(i);t.push(new fe(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 ge(i,o))}var r=pe(e);return t.push(new fe(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 ge(e,r)),t}var s=this._buffers[0].buffer.length,a=pe(e,!1),l=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},l=this._lastChangeBufferPos;for(var u=0;u<a.length;u++)a[u]+=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(u=0;u<a.length;u++)a[u]+=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 fe(0,l,h,this.getLineFeedCnt(0,l,h),c-s);return this._lastChangeBufferPos=h,[p]},be.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 l=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return s.substring(a+r,a+l-t)}i=s.substring(a+r,a+n.piece.length)}else for(var u=0,c=e;n!==$;)if(n.left!==$&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(n,e-n.lf_left-2),l=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),u+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:u,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+l-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,u+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==$;){if(s=this._buffers[n.piece.bufferIndex].buffer,0<n.piece.lineFeedCnt)return l=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+s.substring(a,a+l-t);a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+=s.substr(a,n.piece.length),n=n.next()}return i},be.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==$;)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)},be.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}},be.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},be.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),l=a-i,u=s-o,c=n.length+u;e.piece=new fe(n.bufferIndex,n.start,r,a,c),ae(this,e,u,l)},be.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,l=o-this.offsetInBuffer(n.bufferIndex,r),u=n.length+l;e.piece=new fe(n.bufferIndex,r,n.end,s,u),ae(this,e,l,a)},be.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,l=t,u=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new fe(i.bufferIndex,i.start,l,u,c),ae(this,e,c-s,u-a);var d=new fe(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)},be.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=pe(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,l={line:a,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[a]},u=e.piece.length+t.length,c=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,l),h=d-c;e.piece=new fe(e.piece.bufferIndex,e.piece.start,l,d,u),this._lastChangeBufferPos=l,ae(this,e,t.length,h)},be.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!==$;)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},be.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==$;)if(n.left!==$&&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!==$;){if(0<n.piece.lineFeedCnt){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},be.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)},be.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},be.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},be.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===$||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&&!(o+1<n[i+1])&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},be.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==$&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},be.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},be.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},be.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 fe(e.piece.bufferIndex,e.piece.start,n,s,r),ae(this,e,-1,-1),0===e.piece.length&&i.push(e);var a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,u=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new fe(t.piece.bufferIndex,a,t.piece.end,u,l),ae(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++)re(this,i[d])},be.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)re(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 fe(i.bufferIndex,o,i.end,s,r),ae(this,n,-1,-1)}return!0}}return!1},be.prototype.iterate=function(e,t){if(e===$)return t($);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},be.prototype.getNodeContent=function(e){if(e===$)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)},be.prototype.rbInsertRight=function(e,t){var n=new Z(t,1);if(n.left=$,n.right=$,n.parent=$,n.size_left=0,n.lf_left=0,this.root===$)(this.root=n).color=0;else if(e.right===$)(e.right=n).parent=e;else{var i=J(e.right);(i.left=n).parent=i}return se(this,n),n},be.prototype.rbInsertLeft=function(e,t){var n=new Z(t,1);if(n.left=$,n.right=$,n.parent=$,n.size_left=0,n.lf_left=0,this.root===$)(this.root=n).color=0;else if(e.left===$)(e.left=n).parent=e;else{var i=Q(e.left);(i.right=n).parent=i}return se(this,n),n},be);function be(e,t,n){this.create(e,t,n)}var ye=(Ce.prototype.mightContainRTL=function(){return this._mightContainRTL},Ce.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},Ce.prototype.getBOM=function(){return this._BOM},Ce.prototype.getEOL=function(){return this._pieceTree.getEOL()},Ce.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},Ce.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},Ce.prototype.getRangeAt=function(e,t){var n=e+t,i=this.getPositionAt(e),o=this.getPositionAt(n);return new c.a(i.lineNumber,i.column,o.lineNumber,o.column)},Ce.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)},Ce.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},Ce.prototype.getCharacterCountInRange=function(e,t){if(void 0===t&&(t=0),this._mightContainNonBasicASCII){for(var n=0,i=e.startLineNumber,o=e.endLineNumber,r=i;r<=o;r++)for(var a=this.getLineContent(r),l=r===i?e.startColumn-1:0,u=r===o?e.endColumn-1:a.length,c=l;c<u;c++)s.z(a.charCodeAt(c))?(n+=1,c+=1):n+=1;return n+this._getEndOfLine(t).length*(o-i)}return this.getValueLengthInRange(e,t)},Ce.prototype.getLength=function(){return this._pieceTree.getLength()},Ce.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},Ce.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},Ce.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},Ce.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},Ce.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},Ce.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=s.q(this.getLineContent(e));return-1===t?0:t+1},Ce.prototype.getLineLastNonWhitespaceColumn=function(e){var t=s.D(this.getLineContent(e));return-1===t?0:t+2},Ce.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")},Ce.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},Ce.prototype.applyEdits=function(e,t){for(var n=this._mightContainRTL,i=this._mightContainNonBasicASCII,o=!0,r=[],a=0;a<e.length;a++){var l=e[a];o&&l._isTracked&&(o=!1);var u=l.range;!n&&l.text&&(n=s.i(l.text)),!i&&l.text&&(i=!s.v(l.text)),r[a]={sortIndex:a,identifier:l.identifier||null,range:u,rangeOffset:this.getOffsetAt(u.startLineNumber,u.startColumn),rangeLength:this.getValueLengthInRange(u),lines:l.text?l.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(l.forceMoveMarkers),isAutoWhitespaceEdit:l.isAutoWhitespaceEdit||!1}}r.sort(Ce._sortOpsAscending);for(var c=!1,d=(a=0,r.length-1);a<d;a++){var p=r[a].range.getEndPosition(),f=r[a+1].range.getStartPosition();if(f.isBeforeOrEqual(p)){if(f.isBefore(p))throw new Error("Overlapping ranges are not allowed!");c=!0}}o&&(r=this._reduceOperations(r));var g=Ce._getInverseEditRanges(r),m=[];for(a=0;a<r.length;a++){l=r[a];var v=g[a];if(t&&l.isAutoWhitespaceEdit&&l.range.isEmpty())for(var _=v.startLineNumber;_<=v.endLineNumber;_++){var b="";_===v.startLineNumber&&(b=this.getLineContent(l.range.startLineNumber),-1!==s.q(b))||m.push({lineNumber:_,oldContent:b})}}var y=[];for(a=0;a<r.length;a++)l=r[a],v=g[a],y[a]={sortIndex:l.sortIndex,identifier:l.identifier,range:v,text:this.getValueInRange(l.range),forceMoveMarkers:l.forceMoveMarkers};c||y.sort((function(e,t){return e.sortIndex-t.sortIndex})),this._mightContainRTL=n,this._mightContainNonBasicASCII=i;var C=this._doApplyEdits(r),w=null;if(t&&0<m.length){m.sort((function(e,t){return t.lineNumber-e.lineNumber})),w=[],a=0;for(var S=m.length;a<S;a++)if(_=m[a].lineNumber,!(0<a&&m[a-1].lineNumber===_)){var O=m[a].oldContent,L=this.getLineContent(_);0!==L.length&&L!==O&&-1===s.q(L)&&w.push(_)}}return new h.a(y,C,w)},Ce.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},Ce.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new c.a(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],l=0,u=e.length;l<u;l++){var d=e[l],h=d.range;t=t||d.forceMoveMarkers;for(var p=r;p<h.startLineNumber;p++)p===r?a.push(this.getLineContent(p).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(p)));if(h.startLineNumber===r?a.push(this.getLineContent(h.startLineNumber).substring(s-1,h.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(h.startLineNumber).substring(0,h.startColumn-1))),d.lines)for(var f=0,g=d.lines.length;f<g;f++)0!==f&&a.push("\n"),a.push(d.lines[f]);r=d.range.endLineNumber,s=d.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}},Ce.prototype._doApplyEdits=function(e){e.sort(Ce._sortOpsDescending);for(var t=[],n=0;n<e.length;n++){var i=e[n],o=i.range.startLineNumber,r=i.range.startColumn,s=i.range.endLineNumber,a=i.range.endColumn;if(o!==s||r!==a||i.lines&&0!==i.lines.length){var l=s-o,u=i.lines?i.lines.length-1:0,d=Math.min(l,u),h=i.lines?i.lines.join(this.getEOL()):"";if(h?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,h,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength),d<u){for(var p=[],f=d+1;f<=u;f++)p.push(i.lines[f]);p[p.length-1]=this.getLineContent(o+u-1)}var g=new c.a(o,r,s,a);t.push({range:g,rangeLength:i.rangeLength,text:h,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}}return t},Ce.prototype.findMatchesLineByLine=function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)},Ce._getInverseEditRanges=function(e){for(var t=[],n=0,i=0,o=null,r=0,s=e.length;r<s;r++){var a,l=e[r],u=void 0;a=o?o.range.endLineNumber===l.range.startLineNumber?(u=n,i+(l.range.startColumn-o.range.endColumn)):(u=n+(l.range.startLineNumber-o.range.endLineNumber),l.range.startColumn):(u=l.range.startLineNumber,l.range.startColumn);var d=void 0;if(l.lines&&0<l.lines.length){var h=l.lines.length,p=l.lines[0],f=l.lines[h-1];d=1===h?new c.a(u,a,u,a+p.length):new c.a(u,a,u+h-1,f.length+1)}else d=new c.a(u,a,u,a);n=d.endLineNumber,i=d.endColumn,t.push(d),o=l}return t},Ce._sortOpsAscending=function(e,t){var n=c.a.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},Ce._sortOpsDescending=function(e,t){var n=c.a.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},Ce);function Ce(e,t,n,i,o,r){this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._pieceTree=new _e(e,n,r)}var we=(Se.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":t/2<n?"\r\n":"\n"},Se.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(0<this._cr||0<this._lf)||"\n"===t&&(0<this._cr||0<this._crlf)))for(var i=0,o=n.length;i<o;i++){var r=n[i].buffer.replace(/\r\n|\r|\n/g,t),s=pe(r);n[i]=new ge(r,s)}return new ye(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},Se);function Se(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}var Oe=(Le.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&s.P(e)&&(this.BOM=s.a,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||55296<=t&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1),this._previousChar=t}},Le.prototype._acceptChunk1=function(e,t){!t&&0===e.length||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},Le.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0;for(var n=1,i=e[0]=0,o=0,r=0,s=!0,a=0,l=t.length;a<l;a++){var u=t.charCodeAt(a);13===u?a+1<l&&10===t.charCodeAt(a+1)?(r++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===u?(o++,e[n++]=a+1):s&&9!==u&&(u<32||126<u)&&(s=!1)}var c=new he(de(e),i,o,r,s);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new ge(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=s.i(e))},Le.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new we(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},Le.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=pe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},Le);function Le(){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}var De=function(){this.changeType=1},xe=function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t},Ne=function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t},ke=function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n},Ee=function(){this.changeType=5},Ie=(Me.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},Me.merge=function(e,t){return new Me([].concat(e.changes).concat(t.changes),t.versionId,e.isUndoing||t.isUndoing,e.isRedoing||t.isRedoing)},Me);function Me(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i}var Te=(Pe.prototype.merge=function(e){var t=Ie.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=Pe._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new Pe(t,n)},Pe._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}},Pe);function Pe(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}var Re,Ae=n(459),Fe=n(824),je=n(454),We=n(756),Ve=n(1054),Be=n(948),He=n(452),ze=(Re=function(e,t){return(Re=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}Re(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ue=(Ke.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},Ke.prototype.flush=function(e){this._reset(e)},Object.defineProperty(Ke.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),Ke.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},Ke.prototype._isValid=function(e){return e<this._len&&this._valid[e]},Ke.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},Ke.prototype._ensureLine=function(e){for(;e>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Ke.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)},Ke.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=[],o=0;o<t;o++)n[o]=null,i[o]=!1;this._beginState=Ae.a(this._beginState,e,n),this._valid=Ae.a(this._valid,e,i),this._len+=t}},Ke.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},Ke.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},Ke.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);for(var o=t+1;o<e&&this._isValid(o);)o++;this._invalidLineStartIndex=o}},Ke.prototype.setFakeTokens=function(e){this._setValid(e,!1)},Ke.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,i=t,o=Math.min(n,i);0<=o;o--)this._invalidateLine(e.startLineNumber+o-1);this._acceptDeleteRange(e),this._acceptInsertText(new u.a(e.startLineNumber,e.startColumn),t)},Ke.prototype._acceptDeleteRange=function(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},Ke.prototype._acceptInsertText=function(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)},Ke);function Ke(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}var qe,Ge=(ze(Ye,qe=r.a),Ye.prototype.dispose=function(){this._isDisposed=!0,qe.prototype.dispose.call(this)},Ye.prototype._resetTokenizationState=function(){var e=function(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:je.B.get(t.language),o=null;if(n)try{o=n.getInitialState()}catch(e){Object(i.e)(e),n=null}return[n,o]}(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},Ye.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&He.i((function(){e._isDisposed||e._revalidateTokensNow()}))},Ye.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());for(var t=new Be.b,n=Ve.a.create(!1);this._hasLinesToTokenize()&&!(1<n.elapsed())&&!(e<=this._tokenizeOneInvalidLine(t)););this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)},Ye.prototype.tokenizeViewport=function(e,t){var n=new Be.b;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},Ye.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},Ye.prototype.forceTokenization=function(e){var t=new Be.b;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},Ye.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(t<e)&&(e<t||this._textModel.getLineLength(e)<2048)},Ye.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},Ye.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},Ye.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),o=t-1,r=this._tokenizationStateStore.invalidLineStartIndex;r<=o;r++){var s=this._textModel.getLineContent(r+1),a=this._tokenizationStateStore.getBeginState(r),l=Ze(n,this._tokenizationSupport,s,a);e.add(r+1,l.tokens),this._tokenizationStateStore.setEndState(i,r,l.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}},Ye.prototype._tokenizeViewport=function(e,t,n){if(this._tokenizationSupport&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var i=this._textModel.getLineFirstNonWhitespaceColumn(t),o=[],r=null,s=t-1;0<i&&1<=s;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a<i){if(r=this._tokenizationStateStore.getBeginState(s-1))break;o.push(this._textModel.getLineContent(s)),i=a}}r=r||this._tokenizationSupport.getInitialState();var l=this._textModel.getLanguageIdentifier(),u=r;for(s=o.length-1;0<=s;s--)u=(h=Ze(l,this._tokenizationSupport,o[s],u)).endState;for(var c=t;c<=n;c++){var d=this._textModel.getLineContent(c),h=Ze(l,this._tokenizationSupport,d,u);e.add(c,h.tokens),this._tokenizationStateStore.setFakeTokens(c-1),u=h.endState}}},Ye);function Ye(e){var t=qe.call(this)||this;return t._isDisposed=!1,t._textModel=e,t._tokenizationStateStore=new Ue,t._tokenizationSupport=null,t._register(je.B.onDidChange((function(e){var n=t._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(n.language)&&(t._resetTokenizationState(),t._textModel.clearTokens())}))),t._register(t._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&t._resetTokenizationState()}))),t._register(t._textModel.onDidChangeContentFast((function(e){for(var n=0,i=e.changes.length;n<i;n++){var o=e.changes[n],r=Object(Be.f)(o.text)[0];t._tokenizationStateStore.applyEdits(o.range,r)}t._beginBackgroundTokenization()}))),t._register(t._textModel.onDidChangeAttached((function(){t._beginBackgroundTokenization()}))),t._register(t._textModel.onDidChangeLanguage((function(){t._resetTokenizationState(),t._textModel.clearTokens()}))),t._resetTokenizationState(),t}function Ze(e,t,n,o){var r=null;if(t)try{r=t.tokenize2(n,o.clone(),0)}catch(e){Object(i.e)(e)}return r=r||Object(We.e)(e.id,n,o,0),Fe.a.convertToEndOffset(r.tokens,n.length),r}var Xe=n(882),$e=n(575),Je=n(949),Qe=n(950),et=n(465),tt=n(490);n.d(t,"b",(function(){return lt})),n.d(t,"a",(function(){return yt}));var nt,it=(nt=function(e,t){return(nt=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}nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ot(e,t){return("string"==typeof e?function(e){var t=new Oe;return t.acceptChunk(e),t.finish()}(e):e).create(t)}function rt(){throw new Error("Invalid change accessor")}var st,at=0,lt=(it(ut,st=r.a),ut.createFromString=function(e,t,n,i){return void 0===t&&(t=ut.DEFAULT_CREATION_OPTIONS),void 0===n&&(n=null),void 0===i&&(i=null),new ut(e,t,n,i)},ut.resolveOptions=function(e,t){if(t.detectIndentation){var n=w(e,t.tabSize,t.insertSpaces);return new h.e({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h.e({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},ut.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},ut.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},ut.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},ut.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},ut.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,st.prototype.dispose.call(this),this._isDisposing=!1},ut.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},ut.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Te(e,t))},ut.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=ot(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},ut.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}},ut.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._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new ct,this._commandManager=new _(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Ie([new De],this._versionId,!1,!1),this._createContentChanged2(new c.a(1,1,i,o),0,n,this.getValue(),!1,!1,!0))}},ut.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 Ie([new Ee],this._versionId,!1,!1),this._createContentChanged2(new c.a(1,1,o,r),0,i,this.getValue(),!1,!1,!1))}},ut.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},ut.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,q(o)}},ut.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},ut.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},ut.prototype.isAttachedToEditor=function(){return 0<this._attachedEditorCount},ut.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},ut.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},ut.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},ut.prototype.isDisposed=function(){return this._isDisposed},ut.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);1e4<=o?t+=o:e+=o}return e<t},Object.defineProperty(ut.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),ut.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},ut.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},ut.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,i=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=new h.e({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o});if(!this._options.equals(r)){var s=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(s)}},ut.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=w(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},ut._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);for(i%=t,o=0;o<s;o++)r+="\t"}for(o=0;o<i;o++)r+=" ";return r},ut.normalizeIndentation=function(e,t,n){var i=s.q(e);return-1===i&&(i=e.length),ut._normalizeIndentationFromWhitespace(e.substring(0,i),t,n)+e.substring(i)},ut.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),ut.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},ut.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},ut.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},ut.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},ut.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},ut.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)},ut.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},ut.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},ut.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},ut.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},ut.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},ut.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},ut.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},ut.prototype.getCharacterCountInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)},ut.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},ut.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},ut.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},ut.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},ut.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},ut.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},ut.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},ut.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},ut.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},ut.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;n=o<1?t=1:i<o?(t=i,this.getLineMaxColumn(t)):(t=0|o,r<=1?1:(h=this.getLineMaxColumn(t))<=r?h:0|r);var s,a,l=e.endLineNumber,u=e.endColumn;if(l<1)a=s=1;else if(i<l)s=i,a=this.getLineMaxColumn(s);else{var h;s=0|l,a=u<=1?1:(h=this.getLineMaxColumn(s))<=u?h:0|u}return o===t&&r===n&&l===s&&u===a&&e instanceof c.a&&!(e instanceof d.a)?e:new c.a(t,n,s,a)},ut.prototype._isValidPosition=function(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(this._buffer.getLineCount()<e)return!1;if(1===t)return!0;if(this.getLineMaxColumn(e)<t)return!1;if(1===n){var i=this._buffer.getLineCharCode(e,t-2);if(s.z(i))return!1}return!0},ut.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 u.a(1,1);if(r<i)return new u.a(r,this.getLineMaxColumn(r));if(o<=1)return new u.a(i,1);var a=this.getLineMaxColumn(i);if(a<=o)return new u.a(i,a);if(1===n){var l=this._buffer.getLineCharCode(i,o-2);if(s.z(l))return new u.a(i,o-1)}return new u.a(i,o)},ut.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof u.a&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)},ut.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(o,r,0))return!1;if(1!==t)return!0;var a=1<i?this._buffer.getLineCharCode(n,i-2):0,l=1<r&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,u=s.z(a),c=s.z(l);return!u&&!c},ut.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof c.a&&!(e instanceof d.a)&&this._isValidRange(e,1))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,o=t.column,r=n.lineNumber,a=n.column,l=1<o?this._buffer.getLineCharCode(i,o-2):0,u=1<a&&a<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,a-2):0,h=s.z(l),p=s.z(u);return h||p?i===r&&o===a?new c.a(i,o-1,r,a-1):h&&p?new c.a(i,o-1,r,a+1):h?new c.a(i,o-1,r,a):new c.a(i,o,r,a+1):new c.a(i,o,r,a)},ut.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)))},ut.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new c.a(1,1,e,this.getLineMaxColumn(e))},ut.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},ut.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=c.a.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var l=new ue.a(e,n,i,o).parseSearchRequest();return l?this.findMatchesLineByLine(a,l,r,s):[]}return ue.c.findMatches(this,new ue.a(e,n,i,o),a,r,s)},ut.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 ue.a(e,n,i,o).parseSearchRequest();if(!a)return null;var l=this.getLineCount(),u=new c.a(s.lineNumber,s.column,l,this.getLineMaxColumn(l)),d=this.findMatchesLineByLine(u,a,r,1);return ue.c.findNextMatch(this,new ue.a(e,n,i,o),s,r),0<d.length?d[0]:(u=new c.a(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),0<(d=this.findMatchesLineByLine(u,a,r,1)).length?d[0]:null)}return ue.c.findNextMatch(this,new ue.a(e,n,i,o),s,r)},ut.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return ue.c.findPreviousMatch(this,new ue.a(e,n,i,o),s,r)},ut.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},ut.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()}},ut.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()}},ut.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 l=e[s],u=!1,d=0,h=o.length;d<h;d++){var p=(_=o[d].range).startLineNumber>l.endLineNumber,f=l.startLineNumber>_.endLineNumber;if(!p&&!f){u=!0;break}}if(!u){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var g=this._trimAutoWhitespaceLines[s],m=this.getLineMaxColumn(g),v=!0;for(d=0,h=o.length;d<h;d++){var _=o[d].range,b=o[d].text;if(!(g<_.startLineNumber||g>_.endLineNumber||g===_.startLineNumber&&_.startColumn===m&&_.isEmpty()&&b&&0<b.length&&"\n"===b.charAt(0)||g===_.startLineNumber&&1===_.startColumn&&_.isEmpty()&&b&&0<b.length&&"\n"===b.charAt(b.length-1))){v=!1;break}}v&&t.push({range:new c.a(g,1,g,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},ut.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),r=this._buffer.getLineCount(),s=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==s.length){var a=[],l=i;for(t=0,n=s.length;t<n;t++){var u=s[t],c=Object(Be.f)(u.text),d=c[0],h=c[1],p=c[2];this._tokens.acceptEdit(u.range,d,h),this._tokens2.acceptEdit(u.range,d,h,p,0<u.text.length?u.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(u.rangeOffset,u.rangeLength,u.text.length,u.forceMoveMarkers);for(var f=u.range.startLineNumber,g=u.range.endLineNumber,m=g-f,v=d,_=Math.min(m,v),b=v-m,y=_;0<=y;y--){var C=f+y,w=r-l-b+C;a.push(new xe(C,this.getLineContent(w)))}if(_<m){var S=f+_;a.push(new Ne(S+1,g))}if(_<v){for(var O=f+_,L=v-_,D=r-l-L+O+1,x=[],N=0;N<L;N++){var k=D+N;x[k-D]=this.getLineContent(k)}a.push(new ke(O+1,f+v,x))}l+=b}this._increaseVersionId(),this._emitContentChangedEvent(new Ie(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return o.reverseEdits},ut.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},ut.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype.canUndo=function(){return this._commandManager.canUndo()},ut.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},ut.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype.canRedo=function(){return this._commandManager.canRedo()},ut.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()}},ut.prototype._changeDecorations=function(e,t){var n=this,o={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,St(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))}},r=null;try{r=t(o)}catch(t){Object(i.e)(t)}return o.addDecoration=rt,o.changeDecoration=rt,o.changeDecorationOptions=rt,o.removeDecoration=rt,o.deltaDecorations=rt,r},ut.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),0===(e=e||[]).length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},ut.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},ut.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:wt[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(wt[n]),this._decorationsTree.insert(i),i.id},ut.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]}},ut.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},ut.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},ut.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)},ut.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 c.a(r,1,s,a),n,i)},ut.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)},ut.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)},ut.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)},ut.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)},ut.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},ut.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},ut.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)}},ut.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))},ut.prototype._deltaDecorationsImpl=function(e,t,n){for(var i=this.getVersionId(),o=t.length,r=0,s=n.length,a=0,l=new Array(s);r<o||a<s;){var u=null;if(r<o){for(;!(u=this._decorations[t[r++]])&&r<o;);u&&this._decorationsTree.delete(u)}if(a<s){if(!u){var c=++this._lastDecorationId,d=this._instanceId+";"+c;u=new T(d,0,0),this._decorations[d]=u}var h=n[a],p=this._validateRangeRelaxedNoAllocations(h.range),f=St(h.options),g=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),m=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);u.ownerId=e,u.reset(i,g,m,p),u.setOptions(f),this._decorationsTree.insert(u),l[a]=u.id,a++}else u&&delete this._decorations[u.id]}return l},ut.prototype.setLineTokens=function(e,t){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},ut.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];t.push({fromLineNumber:o.startLineNumber,toLineNumber:o.startLineNumber+o.tokens.length-1});for(var r=0,s=o.tokens.length;r<s;r++)this.setLineTokens(o.startLineNumber+r,o.tokens[r])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},ut.prototype.setSemanticTokens=function(e){this._tokens2.set(e),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},ut.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},ut.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},ut.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},ut.prototype.resetTokenization=function(){this._tokenization.reset()},ut.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},ut.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},ut.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},ut.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},ut.prototype._getLineTokens=function(e){var t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)},ut.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},ut.prototype.getModeId=function(){return this._languageIdentifier.language},ut.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},ut.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new u.a(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))},ut.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),i=this._getLineTokens(t.lineNumber),o=i.findTokenIndexAtOffset(t.column-1),r=ut._findLanguageBoundaries(i,o),s=r[0],a=r[1],l=Object(Xe.d)(t.column,$e.a.getWordDefinition(i.getLanguageId(o)),n.substring(s,a),s);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(0<o&&s===t.column-1){var u=ut._findLanguageBoundaries(i,o-1),c=u[0],d=u[1],h=Object(Xe.d)(t.column,$e.a.getWordDefinition(i.getLanguageId(o-1)),n.substring(c,d),c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn)return h}return null},ut._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,o=t;0<=o&&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]},ut.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}},ut.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=$e.a.getBracketsSupport(r);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null},ut.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},ut.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=n.getCount(),o=this._buffer.getLineContent(t),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;var s=$e.a.getBracketsSupport(n.getLanguageId(r));if(s&&!Object(Je.b)(n.getStandardTokenType(r))){for(var a=Math.max(0,e.column-1-s.maxBracketLength),l=r-1;0<=l;l--){var u=n.getEndOffset(l);if(u<=a)break;Object(Je.b)(n.getStandardTokenType(l))&&(a=u)}for(var c=Math.min(o.length,e.column-1+s.maxBracketLength),d=null;m=Qe.a.findNextBracketInRange(s.forwardRegex,t,o,a,c);){if(m.startColumn<=e.column&&e.column<=m.endColumn){var h=o.substring(m.startColumn-1,m.endColumn-1).toLowerCase();(v=this._matchFoundBracket(m,s.textIsBracket[h],s.textIsOpenBracket[h]))&&(d=v)}a=m.endColumn-1}if(d)return d}if(0<r&&n.getStartOffset(r)===e.column-1){var p=r-1,f=$e.a.getBracketsSupport(n.getLanguageId(p));if(f&&!Object(Je.b)(n.getStandardTokenType(p))){for(a=Math.max(0,e.column-1-f.maxBracketLength),c=Math.min(o.length,e.column-1+f.maxBracketLength),l=1+p;l<i;l++){var g=n.getStartOffset(l);if(c<=g)break;Object(Je.b)(n.getStandardTokenType(l))&&(c=g)}var m,v;if((m=Qe.a.findPrevBracketInRange(f.reversedRegex,t,o,a,c))&&m.startColumn<=e.column&&e.column<=m.endColumn&&(h=o.substring(m.startColumn-1,m.endColumn-1).toLowerCase(),v=this._matchFoundBracket(m,f.textIsBracket[h],f.textIsOpenBracket[h])))return v}}return null},ut.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},ut.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=function(t,n,r,s){for(;;){var a=Qe.a.findPrevBracketInRange(i,t,n,r,s);if(!a)break;var l=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(l)?o++:e.isClose(l)&&o--,0===o)return a;s=a.startColumn-1}return null},s=t.lineNumber;1<=s;s--){var a=this._getLineTokens(s),l=a.getCount(),u=this._buffer.getLineContent(s),c=l-1,d=u.length,h=u.length;s===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1,h=t.column-1);for(var p=!0;0<=c;c--){var f,g=a.getLanguageId(c)===n&&!Object(Je.b)(a.getStandardTokenType(c));if(g)p?d=a.getStartOffset(c):(d=a.getStartOffset(c),h=a.getEndOffset(c));else if(p&&d!==h&&(f=r(s,u,d,h)))return f;p=g}if(p&&d!==h&&(f=r(s,u,d,h)))return f}return null},ut.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=function(t,n,r,s){for(;;){var a=Qe.a.findNextBracketInRange(i,t,n,r,s);if(!a)break;var l=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(l)?o++:e.isClose(l)&&o--,0===o)return a;r=a.endColumn-1}return null},s=this.getLineCount(),a=t.lineNumber;a<=s;a++){var l=this._getLineTokens(a),u=l.getCount(),c=this._buffer.getLineContent(a),d=0,h=0,p=0;a===t.lineNumber&&(d=l.findTokenIndexAtOffset(t.column-1),h=t.column-1,p=t.column-1);for(var f=!0;d<u;d++){var g,m=l.getLanguageId(d)===n&&!Object(Je.b)(l.getStandardTokenType(d));if(m)f||(h=l.getStartOffset(d)),p=l.getEndOffset(d);else if(f&&h!==p&&(g=r(a,c,h,p)))return g;f=m}if(f&&h!==p&&(g=r(a,c,h,p)))return g}return null},ut.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber;1<=o;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),l=s-1,u=a.length,c=a.length;o===t.lineNumber&&(l=r.findTokenIndexAtOffset(t.column-1),u=t.column-1,c=t.column-1,n!==(h=r.getLanguageId(l))&&(n=h,i=$e.a.getBracketsSupport(n)));for(var d=!0;0<=l;l--){var h;if(n!==(h=r.getLanguageId(l))){if(i&&d&&u!==c){if(p=Qe.a.findPrevBracketInRange(i.reversedRegex,o,a,u,c))return this._toFoundBracket(i,p);d=!1}n=h,i=$e.a.getBracketsSupport(n)}var p,f=!!i&&!Object(Je.b)(r.getStandardTokenType(l));if(f)d?u=r.getStartOffset(l):(u=r.getStartOffset(l),c=r.getEndOffset(l));else if(i&&d&&u!==c&&(p=Qe.a.findPrevBracketInRange(i.reversedRegex,o,a,u,c)))return this._toFoundBracket(i,p);d=f}if(i&&d&&u!==c&&(p=Qe.a.findPrevBracketInRange(i.reversedRegex,o,a,u,c)))return this._toFoundBracket(i,p)}return null},ut.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=this.getLineCount(),i=-1,o=null,r=t.lineNumber;r<=n;r++){var s=this._getLineTokens(r),a=s.getCount(),l=this._buffer.getLineContent(r),u=0,c=0,d=0;r===t.lineNumber&&(u=s.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1,i!==(p=s.getLanguageId(u))&&(i=p,o=$e.a.getBracketsSupport(i)));for(var h=!0;u<a;u++){var p;if(i!==(p=s.getLanguageId(u))){if(o&&h&&c!==d){if(f=Qe.a.findNextBracketInRange(o.forwardRegex,r,l,c,d))return this._toFoundBracket(o,f);h=!1}i=p,o=$e.a.getBracketsSupport(i)}var f,g=!!o&&!Object(Je.b)(s.getStandardTokenType(u));if(g)h||(c=s.getStartOffset(u)),d=s.getEndOffset(u);else if(o&&h&&c!==d&&(f=Qe.a.findNextBracketInRange(o.forwardRegex,r,l,c,d)))return this._toFoundBracket(o,f);h=g}if(o&&h&&c!==d&&(f=Qe.a.findNextBracketInRange(o.forwardRegex,r,l,c,d)))return this._toFoundBracket(o,f)}return null},ut.prototype.findEnclosingBrackets=function(e,t){var n=this;void 0===t&&(t=1073741824);for(var i=this.validatePosition(e),o=this.getLineCount(),r=new Map,s=[],a=function(e,t){if(!r.has(e)){for(var n=[],i=0,o=t?t.brackets.length:0;i<o;i++)n[i]=0;r.set(e,n)}s=r.get(e)},l=function(e,t,i,o,r){for(;;){var a=Qe.a.findNextBracketInRange(e.forwardRegex,t,i,o,r);if(!a)break;var l=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),u=e.textIsBracket[l];if(u&&(u.isOpen(l)?s[u.index]++:u.isClose(l)&&s[u.index]--,-1===s[u.index]))return n._matchFoundBracket(a,u,!1);o=a.endColumn-1}return null},u=-1,c=null,d=Date.now(),h=i.lineNumber;h<=o;h++){if(t<Date.now()-d)return null;var p=this._getLineTokens(h),f=p.getCount(),g=this._buffer.getLineContent(h),m=0,v=0,_=0;h===i.lineNumber&&(m=p.findTokenIndexAtOffset(i.column-1),v=i.column-1,_=i.column-1,u!==(y=p.getLanguageId(m))&&a(u=y,c=$e.a.getBracketsSupport(u)));for(var b=!0;m<f;m++){var y;if(u!==(y=p.getLanguageId(m))){if(c&&b&&v!==_){if(C=l(c,h,g,v,_))return C;b=!1}a(u=y,c=$e.a.getBracketsSupport(u))}var C,w=!!c&&!Object(Je.b)(p.getStandardTokenType(m));if(w)b||(v=p.getStartOffset(m)),_=p.getEndOffset(m);else if(c&&b&&v!==_&&(C=l(c,h,g,v,_)))return C;b=w}if(c&&b&&v!==_&&(C=l(c,h,g,v,_)))return C}return null},ut.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},ut.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},ut.prototype._computeIndentLevel=function(e){return ut.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},ut.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var o=this.getLineCount();if(e<1||o<e)throw new Error("Illegal value for lineNumber");for(var r=$e.a.getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,l=-1,u=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||e-1<a)){l=a=-1;for(var t=e-2;0<=t;t--){var n=i._computeIndentLevel(t);if(0<=n){a=t,l=n;break}}}if(-2===u)for(c=u=-1,t=e;t<o;t++){var r=i._computeIndentLevel(t);if(0<=r){u=t,c=r;break}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){p=h=-1;for(var t=e-2;0<=t;t--){var n=i._computeIndentLevel(t);if(0<=n){h=t,p=n;break}}}if(-1!==f&&(-2===f||f<e-1))for(g=f=-1,t=e;t<o;t++){var r=i._computeIndentLevel(t);if(0<=r){f=t,g=r;break}}},v=0,_=!0,b=0,y=!0,C=0,w=0;_||y;w++){var S,O=e-w,L=e+w;if(0!==w&&(O<1||O<t)&&(_=!1),0!==w&&(o<L||n<L)&&(y=!1),5e4<w&&(y=_=!1),_){var D;if(D=0<=(S=this._computeIndentLevel(O-1))?(u=O-1,c=S,Math.ceil(S/this._options.indentSize)):(d(O),this._getIndentLevelForWhitespaceLine(s,l,c)),0===w){if(v=O,b=L,0===(C=D))return{startLineNumber:v,endLineNumber:b,indent:C};continue}C<=D?v=O:_=!1}y&&(C<=(0<=(S=this._computeIndentLevel(L-1))?(h=L-1,p=S,Math.ceil(S/this._options.indentSize)):(m(L),this._getIndentLevelForWhitespaceLine(s,p,g)))?b=L:y=!1)}return{startLineNumber:v,endLineNumber:b,indent:C}},ut.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||n<e)throw new Error("Illegal value for startLineNumber");if(t<1||n<t)throw new Error("Illegal value for endLineNumber");for(var i=$e.a.getFoldingRules(this._languageIdentifier.id),o=Boolean(i&&i.offSide),r=new Array(t-e+1),s=-2,a=-1,l=-2,u=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(0<=h)s=c-1,a=h,r[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){a=s=-1;for(var p=c-2;0<=p;p--)if(0<=(f=this._computeIndentLevel(p))){s=p,a=f;break}}if(-1!==l&&(-2===l||l<c-1))for(u=l=-1,p=c;p<n;p++){var f;if(0<=(f=this._computeIndentLevel(p))){l=p,u=f;break}}r[d]=this._getIndentLevelForWhitespaceLine(o,a,u)}}return r},ut.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n||e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},ut.MODEL_SYNC_LIMIT=52428800,ut.LARGE_FILE_SIZE_THRESHOLD=20971520,ut.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,ut.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:l.c.tabSize,indentSize:l.c.indentSize,insertSpaces:l.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:l.c.trimAutoWhitespace,largeFileOptimizations:l.c.largeFileOptimizations},ut);function ut(e,t,n,i){void 0===i&&(i=null);var r=st.call(this)||this;r._onWillDispose=r._register(new o.a),r.onWillDispose=r._onWillDispose.event,r._onDidChangeDecorations=r._register(new Lt),r.onDidChangeDecorations=r._onDidChangeDecorations.event,r._onDidChangeLanguage=r._register(new o.a),r.onDidChangeLanguage=r._onDidChangeLanguage.event,r._onDidChangeLanguageConfiguration=r._register(new o.a),r.onDidChangeLanguageConfiguration=r._onDidChangeLanguageConfiguration.event,r._onDidChangeTokens=r._register(new o.a),r.onDidChangeTokens=r._onDidChangeTokens.event,r._onDidChangeOptions=r._register(new o.a),r.onDidChangeOptions=r._onDidChangeOptions.event,r._onDidChangeAttached=r._register(new o.a),r.onDidChangeAttached=r._onDidChangeAttached.event,r._eventEmitter=r._register(new Nt),at++,r.id="$model"+at,r.isForSimpleWidget=t.isForSimpleWidget,r._associatedResource=null==i?a.a.parse("inmemory://model/"+at):i,r._attachedEditorCount=0,r._buffer=ot(e,t.defaultEOL),r._options=ut.resolveOptions(r._buffer,t);var l=r._buffer.getLineCount(),u=r._buffer.getValueLengthInRange(new c.a(1,1,l,r._buffer.getLineLength(l)+1),0);return t.largeFileOptimizations?r._isTooLargeForTokenization=ut.LARGE_FILE_SIZE_THRESHOLD<u||ut.LARGE_FILE_LINE_COUNT_THRESHOLD<l:r._isTooLargeForTokenization=!1,r._isTooLargeForSyncing=ut.MODEL_SYNC_LIMIT<u,r._versionId=1,r._alternativeVersionId=1,r._isDisposed=!1,r._isDisposing=!1,r._languageIdentifier=n||We.a,r._languageRegistryListener=$e.a.onDidChange((function(e){e.languageIdentifier.id===r._languageIdentifier.id&&r._onDidChangeLanguageConfiguration.fire({})})),r._instanceId=s.M(at),r._lastDecorationId=0,r._decorations=Object.create(null),r._decorationsTree=new ct,r._commandManager=new _(r),r._isUndoing=!1,r._isRedoing=!1,r._trimAutoWhitespaceLines=null,r._tokens=new Be.d,r._tokens2=new Be.e,r._tokenization=new Ge(r),r}var ct=(dt.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)},dt.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)},dt.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},dt.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},dt.prototype.insert=function(e){k(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},dt.prototype.delete=function(e){k(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},dt.prototype.resolveNode=function(e,t){k(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},dt.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)},dt);function dt(){this._decorationsTree0=new A,this._decorationsTree1=new A}function ht(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function pt(e){this.color=e.color||"",this.darkColor=e.darkColor||""}var ft,gt=(it(mt,ft=pt),mt.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},mt.prototype.invalidateCachedColor=function(){this._resolvedColor=null},mt.prototype._resolveColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():""},mt);function mt(e){var t=ft.call(this,e)||this;return t._resolvedColor=null,t.position="number"==typeof e.position?e.position:h.d.Center,t}var vt,_t=(it(bt,vt=pt),bt.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},bt.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},bt.prototype._resolveColor=function(e,t){return"string"==typeof e?tt.a.fromHex(e):t.getColor(e.id)},bt);function bt(e){var t=vt.call(this,e)||this;return t.position=e.position,t}var yt=(Ct.register=function(e){return new Ct(e)},Ct.createDynamic=function(e){return new Ct(e)},Ct);function Ct(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?ht(e.className):null,this.hoverMessage=Object(et.o)(e.hoverMessage),this.glyphMarginHoverMessage=Object(et.o)(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new gt(e.overviewRuler):null,this.minimap=e.minimap?new _t(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?ht(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?ht(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?ht(e.marginClassName):null,this.inlineClassName=e.inlineClassName?ht(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?ht(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?ht(e.afterContentClassName):null}yt.EMPTY=yt.register({});var wt=[yt.register({stickiness:0}),yt.register({stickiness:1}),yt.register({stickiness:2}),yt.register({stickiness:3})];function St(e){return e instanceof yt?e:yt.createDynamic(e)}var Ot,Lt=(it(Dt,Ot=r.a),Dt.prototype.beginDeferredEmit=function(){this._deferredCnt++},Dt.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},Dt.prototype.fire=function(){this._shouldFire=!0},Dt);function Dt(){var e=Ot.call(this)||this;return e._actual=e._register(new o.a),e.event=e._actual.event,e._deferredCnt=0,e._shouldFire=!1,e}var xt,Nt=(it(kt,xt=r.a),kt.prototype.beginDeferredEmit=function(){this._deferredCnt++},kt.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)}},kt.prototype.fire=function(e){0<this._deferredCnt?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},kt);function kt(){var e=xt.call(this)||this;return e._fastEmitter=e._register(new o.a),e.fastEvent=e._fastEmitter.event,e._slowEmitter=e._register(new o.a),e.slowEvent=e._slowEmitter.event,e._deferredCnt=0,e._deferredEvent=null,e}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("codeEditorService")},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return d}));var i=n(465);function o(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]=o(e[n]):t[n]=e[n]})),t}function r(e){if(!e||"object"!=typeof e)return e;for(var t=[e];0<t.length;){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var o=n[i];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e}var s=Object.prototype.hasOwnProperty;function a(e,t){return function e(t,n,o){if(Object(i.l)(t))return t;var r=n(t);if(void 0!==r)return r;if(Object(i.d)(t)){for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];a.push(e(c,n,o))}return a}if(Object(i.i)(t)){if(o.has(t))throw new Error("Cannot clone recursive data-structure");o.add(t);var d={};for(var h in t)s.call(t,h)&&(d[h]=e(t[h],n,o));return o.delete(t),d}return t}(e,t,new Set)}function l(e,t,n){return void 0===n&&(n=!0),Object(i.i)(e)?(Object(i.i)(t)&&Object.keys(t).forEach((function(o){o in e?n&&(Object(i.i)(e[o])&&Object(i.i)(t[o])?l(e[o],t[o],n):e[o]=t[o]):e[o]=t[o]})),e):t}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return Object.keys(t).forEach((function(n){return e[n]=t[n]}))})),e}function c(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(!c(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(),!c(o,r))return!1;for(n=0;n<o.length;n++)if(!c(e[o[n]],t[o[n]]))return!1}return!0}function d(e,t,n){var i=t(e);return void 0===i?n:i}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return h})),n.d(t,"g",(function(){return H})),n.d(t,"d",(function(){return ne})),n.d(t,"j",(function(){return Ve})),n.d(t,"b",(function(){return it})),n.d(t,"c",(function(){return ot})),n.d(t,"i",(function(){return rt})),n.d(t,"e",(function(){return at}));var i,o=n(445),r=n(452),s=n(882),a=(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)}),l=function(){return(l=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)},u=8,c=(d.prototype.hasChanged=function(e){return this._values[e]},d);function d(e){this._values=e}var h=(p.prototype._read=function(e){return this._values[e]},p.prototype.get=function(e){return this._values[e]},p.prototype._write=function(e,t){this._values[e]=t},p);function p(){this._values=[]}var f=(g.prototype.compute=function(e,t,n){return n},g);function g(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}var m=(v.prototype.validate=function(e){return this.defaultValue},v);function v(e,t){void 0===t&&(t=null),this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}var _=(b.prototype.validate=function(e){return void 0===e?this.defaultValue:e},b.prototype.compute=function(e,t,n){return n},b);function b(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}var y,C=(a(w,y=_),w.boolean=function(e,t){return void 0===e?t:"false"!==e&&Boolean(e)},w.prototype.validate=function(e){return w.boolean(e,this.defaultValue)},w);function w(e,t,n,i){return void 0===i&&(i=void 0),void 0!==i&&(i.type="boolean",i.default=n),y.call(this,e,t,n,i)||this}var S,O=(a(L,S=_),L.clampedInt=function(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|Math.min(i,o)},L.prototype.validate=function(e){return L.clampedInt(e,this.defaultValue,this.minimum,this.maximum)},L);function L(e,t,n,i,o,r){void 0===r&&(r=void 0);var s=this;return void 0!==r&&(r.type="integer",r.default=n,r.minimum=i,r.maximum=o),(s=S.call(this,e,t,n,r)||this).minimum=i,s.maximum=o,s}var D,x=(a(N,D=_),N.clamp=function(e,t,n){return e<t?t:n<e?n:e},N.float=function(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n},N.prototype.validate=function(e){return this.validationFn(N.float(e,this.defaultValue))},N);function N(e,t,n,i,o){var r=this;return void 0!==o&&(o.type="number",o.default=n),(r=D.call(this,e,t,n,o)||this).validationFn=i,r}var k,E=(a(I,k=_),I.string=function(e,t){return"string"!=typeof e?t:e},I.prototype.validate=function(e){return I.string(e,this.defaultValue)},I);function I(e,t,n,i){return void 0===i&&(i=void 0),void 0!==i&&(i.type="string",i.default=n),k.call(this,e,t,n,i)||this}var M,T=(a(P,M=_),P.stringSet=function(e,t,n){return"string"!=typeof e||-1===n.indexOf(e)?t:e},P.prototype.validate=function(e){return P.stringSet(e,this.defaultValue,this._allowedValues)},P);function P(e,t,n,i,o){void 0===o&&(o=void 0);var r=this;return void 0!==o&&(o.type="string",o.enum=i,o.default=n),(r=M.call(this,e,t,n,o)||this)._allowedValues=i,r}var R,A=(a(F,R=f),F.prototype.validate=function(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},F);function F(e,t,n,i,o,r,s){void 0===s&&(s=void 0);var a=this;return void 0!==s&&(s.type="string",s.enum=o,s.default=i),(a=R.call(this,e,t,n,s)||this)._allowedValues=o,a._convert=r,a}var j,W=(a(V,j=f),V.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},V.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},V);function V(){return j.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[o.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),o.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),o.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:o.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}var B,H,z,U=(a(K,B=f),K.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertSpace:C.boolean(t.insertSpace,this.defaultValue.insertSpace)}},K);function K(){var e={insertSpace:!0};return B.call(this,13,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:o.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this}(z=H=H||{})[z.Line=1]="Line",z[z.Block=2]="Block",z[z.Underline=3]="Underline",z[z.LineThin=4]="LineThin",z[z.BlockOutline=5]="BlockOutline",z[z.UnderlineThin=6]="UnderlineThin";var q,G=(a(Y,q=m),Y.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(26)&&(i+=" "+t.get(26)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(55)?i+=" mouse-default":"copy"===t.get(55)&&(i+=" mouse-copy"),t.get(85)&&(i+=" showUnused"),i},Y);function Y(){return q.call(this,104,[55,26])||this}var Z,X=(a($,Z=C),$.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},$);function $(){return Z.call(this,25,"emptySelectionClipboard",!0,{description:o.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}var J,Q=(a(ee,J=f),ee.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:C.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":T.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:C.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:C.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},ee);function ee(){var e={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return J.call(this,28,"find",e,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:o.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[o.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),o.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),o.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:o.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:o.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:o.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this}var te,ne=(a(ie,te=f),ie.prototype.validate=function(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?ie.OFF:"true"===e?ie.ON:e:Boolean(e)?ie.ON:ie.OFF},ie.OFF='"liga" off, "calt" off',ie.ON='"liga" on, "calt" on',ie);function ie(){return te.call(this,35,"fontLigatures",ie.OFF,{anyOf:[{type:"boolean",description:o.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:o.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:o.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}var oe,re=(a(se,oe=m),se.prototype.compute=function(e,t,n){return e.fontInfo},se);function se(){return oe.call(this,34)||this}var ae,le=(a(ue,ae=_),ue.prototype.validate=function(e){var t=x.float(e,this.defaultValue);return 0===t?it.fontSize:x.clamp(t,6,100)},ue.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},ue);function ue(){return ae.call(this,36,"fontSize",it.fontSize,{type:"number",minimum:6,maximum:100,default:it.fontSize,description:o.a("fontSize","Controls the font size in pixels.")})||this}var ce,de=(a(he,ce=f),he.prototype.validate=function(e){var t,n,i,o,r;if("object"!=typeof e)return this.defaultValue;var s=e;return{multiple:T.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:T.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:T.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:T.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=s.multipleImplementations)&&void 0!==o?o:T.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=s.multipleReferences)&&void 0!==r?r:T.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:E.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:E.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:E.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:E.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:E.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},he);function he(){var e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[o.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),o.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),o.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return ce.call(this,41,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:o.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":l({description:o.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":l({description:o.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":l({description:o.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":l({description:o.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":l({description:o.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:o.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,description:o.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,description:o.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,description:o.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,description:o.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this}var pe,fe=(a(ge,pe=f),ge.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:C.boolean(t.enabled,this.defaultValue.enabled),delay:O.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:C.boolean(t.sticky,this.defaultValue.sticky)}},ge);function ge(){var e={enabled:!0,delay:300,sticky:!0};return pe.call(this,44,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:o.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:o.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:o.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this}var me,ve=(a(_e,me=m),_e.prototype.compute=function(e,t,n){return _e.computeLayout(t,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},_e.computeLayout=function(e,t){var n,i=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=e.get(40),h=0!==e.get(50).renderType,p=0|e.get(51),f=e.get(54),g=f.enabled,m=f.side,v=f.renderCharacters,_=2<=c?Math.round(2*f.scale):f.scale,b=0|f.maxColumn,y=e.get(78),C=0|y.verticalScrollbarSize,w=y.verticalHasArrows,S=0|y.arrowSize,L=0|y.horizontalScrollbarSize,D=e.get(48),x=e.get(30);if("string"==typeof D&&/^\d+(\.\d+)?ch$/.test(D)){var N=parseFloat(D.substr(0,D.length-2));n=O.clampedInt(N*a,0,0,1e3)}else n=O.clampedInt(D,0,0,1e3);x&&(n+=16);var k=0;if(h){var E=Math.max(s,p);k=Math.round(E*l)}var I=0;d&&(I=r);var M,T,P,R,A=0,F=A+I,j=F+k,W=j+n,V=i-I-k-n;if(g){var B=_/c;M=v?1:2,b<(P=Math.max(0,Math.floor((V-C-2)*B/(a+B)))+u)/B&&(P=Math.floor(b*B)),R=V-P,"left"===m?(T=0,A+=P,F+=P,j+=P,W+=P):T=i-P-C}else M=P=T=0,R=V;var H=w?S:0;return{width:i,height:o,glyphMarginLeft:A,glyphMarginWidth:I,lineNumbersLeft:F,lineNumbersWidth:k,decorationsLeft:j,decorationsWidth:n,contentLeft:W,contentWidth:R,renderMinimap:M,minimapLeft:T,minimapWidth:P,viewportColumn:Math.max(1,Math.floor((R-C-2)/a)),verticalScrollbarWidth:C,horizontalScrollbarHeight:L,overviewRuler:{top:H,width:C,height:o-2*H,right:0}}},_e);function _e(){return me.call(this,107,[40,48,30,54,78,50])||this}var be,ye=(a(Ce,be=f),Ce.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:C.boolean(t.enabled,this.defaultValue.enabled)}},Ce);function Ce(){var e={enabled:!0};return be.call(this,47,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:o.a("codeActions","Enables the code action lightbulb in the editor.")}})||this}var we,Se=(a(Oe,we=O),Oe.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},Oe);function Oe(){return we.call(this,49,"lineHeight",it.lineHeight,0,150,{description:o.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}var Le,De=(a(xe,Le=f),xe.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:C.boolean(t.enabled,this.defaultValue.enabled),side:T.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:T.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:C.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:O.clampedInt(t.scale,1,1,3),maxColumn:O.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},xe);function xe(){var e={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Le.call(this,54,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:o.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:o.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:o.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,description:o.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:o.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:o.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this}var Ne,ke=(a(Ee,Ne=f),Ee.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:C.boolean(t.enabled,this.defaultValue.enabled),cycle:C.boolean(t.cycle,this.defaultValue.cycle)}},Ee);function Ee(){var e={enabled:!0,cycle:!1};return Ne.call(this,64,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:o.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:o.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this}var Ie,Me=(a(Te,Ie=m),Te.prototype.compute=function(e,t,n){return e.pixelRatio},Te);function Te(){return Ie.call(this,105)||this}var Pe,Re=(a(Ae,Pe=f),Ae.prototype.validate=function(e){if("boolean"==typeof e)return e;if("object"!=typeof e)return this.defaultValue;var t=e,n={other:C.boolean(t.other,this.defaultValue.other),comments:C.boolean(t.comments,this.defaultValue.comments),strings:C.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n},Ae);function Ae(){var e=this,t={other:!0,comments:!1,strings:!1};return(e=Pe.call(this,66,"quickSuggestions",t,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:t.strings,description:o.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:t.comments,description:o.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:t.other,description:o.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:t,description:o.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this).defaultValue=t,e}var Fe,je=(a(We,Fe=f),We.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},We);function We(){return Fe.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[o.a("lineNumbers.off","Line numbers are not rendered."),o.a("lineNumbers.on","Line numbers are rendered as absolute number."),o.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),o.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:o.a("lineNumbers","Controls the display of line numbers.")})||this}function Ve(e){var t=e.get(73);return"editable"===t?e.get(68):"on"!==t}var Be,He=(a(ze,Be=_),ze.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t.push(O.clampedInt(o,0,0,1e4))}return t.sort((function(e,t){return e-t})),t}return this.defaultValue},ze);function ze(){var e=[];return Be.call(this,77,"rulers",e,{type:"array",items:{type:"number"},default:e,description:o.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this}function Ue(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var Ke,qe=(a(Ge,Ke=f),Ge.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e,n=O.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=O.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:O.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Ue(t.vertical,this.defaultValue.vertical),horizontal:Ue(t.horizontal,this.defaultValue.horizontal),useShadows:C.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:C.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:C.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:C.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:C.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:O.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:O.clampedInt(t.verticalSliderSize,i,0,1e3)}},Ge);function Ge(){return Ke.call(this,78,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}var Ye,Ze=(a(Xe,Ye=f),Xe.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertMode:T.stringSet(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:C.boolean(t.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:C.boolean(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:C.boolean(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:C.boolean(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:C.boolean(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:C.boolean(t.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:O.clampedInt(t.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:C.boolean(t.showMethods,this.defaultValue.showMethods),showFunctions:C.boolean(t.showFunctions,this.defaultValue.showFunctions),showConstructors:C.boolean(t.showConstructors,this.defaultValue.showConstructors),showFields:C.boolean(t.showFields,this.defaultValue.showFields),showVariables:C.boolean(t.showVariables,this.defaultValue.showVariables),showClasses:C.boolean(t.showClasses,this.defaultValue.showClasses),showStructs:C.boolean(t.showStructs,this.defaultValue.showStructs),showInterfaces:C.boolean(t.showInterfaces,this.defaultValue.showInterfaces),showModules:C.boolean(t.showModules,this.defaultValue.showModules),showProperties:C.boolean(t.showProperties,this.defaultValue.showProperties),showEvents:C.boolean(t.showEvents,this.defaultValue.showEvents),showOperators:C.boolean(t.showOperators,this.defaultValue.showOperators),showUnits:C.boolean(t.showUnits,this.defaultValue.showUnits),showValues:C.boolean(t.showValues,this.defaultValue.showValues),showConstants:C.boolean(t.showConstants,this.defaultValue.showConstants),showEnums:C.boolean(t.showEnums,this.defaultValue.showEnums),showEnumMembers:C.boolean(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:C.boolean(t.showKeywords,this.defaultValue.showKeywords),showWords:C.boolean(t.showWords,this.defaultValue.showWords),showColors:C.boolean(t.showColors,this.defaultValue.showColors),showFiles:C.boolean(t.showFiles,this.defaultValue.showFiles),showReferences:C.boolean(t.showReferences,this.defaultValue.showReferences),showFolders:C.boolean(t.showFolders,this.defaultValue.showFolders),showTypeParameters:C.boolean(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:C.boolean(t.showSnippets,this.defaultValue.showSnippets),hideStatusBar:C.boolean(t.hideStatusBar,this.defaultValue.hideStatusBar)}},Xe);function Xe(){var e={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,hideStatusBar:!0};return Ye.call(this,89,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[o.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),o.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:o.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:e.insertHighlight,description:o.a("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:o.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:o.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:o.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:o.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:o.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.maxVisibleSuggestions,minimum:1,maximum:15,description:o.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:o.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this}var $e,Je=(a(Qe,$e=m),Qe.prototype.compute=function(e,t,n){return!!t.get(68)||e.tabFocusMode},Qe);function Qe(){return $e.call(this,106,[68])||this}var et,tt=(a(nt,et=m),nt.prototype.compute=function(e,t,n){var i,o=t.get(97),r=t.get(100),s=t.get(101),a=t.get(107);return i=2===t.get(2)?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:s&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"on"===o?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"bounded"===o?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,a.viewportColumn),r)}:"wordWrapColumn"===o?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:r}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}},nt);function nt(){return et.call(this,108,[97,100,101,107,2])||this}var it={fontFamily:r.e?"Menlo, Monaco, 'Courier New', monospace":r.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.e?12:14,lineHeight:0,letterSpacing:0},ot={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},rt=[];function st(e){return rt[e.id]=e}var at={acceptSuggestionOnCommitCharacter:st(new C(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:o.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:st(new T(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",o.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:o.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:st(new W),accessibilityPageSize:st(new O(3,"accessibilityPageSize",10,1,1073741824,{description:o.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:st(new E(4,"ariaLabel",o.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:st(new T(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",o.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),o.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:o.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:st(new T(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",o.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:o.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:st(new T(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",o.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),o.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:o.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:st(new A(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[o.a("editor.autoIndent.none","The editor will not insert indentation automatically."),o.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),o.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),o.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),o.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:o.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:st(new C(9,"automaticLayout",!1)),autoSurround:st(new T(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[o.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),o.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),o.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:o.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:st(new C(11,"codeLens",!0,{description:o.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:st(new C(12,"colorDecorators",!0,{description:o.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:st(new U),contextmenu:st(new C(14,"contextmenu",!0)),copyWithSyntaxHighlighting:st(new C(15,"copyWithSyntaxHighlighting",!0,{description:o.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:st(new A(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:o.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:st(new C(17,"cursorSmoothCaretAnimation",!1,{description:o.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:st(new A(18,"cursorStyle",H.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return H.Line;case"block":return H.Block;case"underline":return H.Underline;case"line-thin":return H.LineThin;case"block-outline":return H.BlockOutline;case"underline-thin":return H.UnderlineThin}}),{description:o.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:st(new O(19,"cursorSurroundingLines",0,0,1073741824,{description:o.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:st(new T(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[o.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),o.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:o.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:st(new O(21,"cursorWidth",0,0,1073741824,{markdownDescription:o.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:st(new C(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:st(new C(23,"disableMonospaceOptimizations",!1)),dragAndDrop:st(new C(24,"dragAndDrop",!0,{description:o.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:st(new X),extraEditorClassName:st(new E(26,"extraEditorClassName","")),fastScrollSensitivity:st(new x(27,"fastScrollSensitivity",5,(function(e){return e<=0?5:e}),{markdownDescription:o.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:st(new Q),fixedOverflowWidgets:st(new C(29,"fixedOverflowWidgets",!1)),folding:st(new C(30,"folding",!0,{description:o.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:st(new T(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:o.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:st(new C(32,"foldingHighlight",!0,{description:o.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:st(new E(33,"fontFamily",it.fontFamily,{description:o.a("fontFamily","Controls the font family.")})),fontInfo:st(new re),fontLigatures2:st(new ne),fontSize:st(new le),fontWeight:st(new E(37,"fontWeight",it.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:o.a("fontWeight","Controls the font weight.")})),formatOnPaste:st(new C(38,"formatOnPaste",!1,{description:o.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:st(new C(39,"formatOnType",!1,{description:o.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:st(new C(40,"glyphMargin",!0,{description:o.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:st(new de),hideCursorInOverviewRuler:st(new C(42,"hideCursorInOverviewRuler",!1,{description:o.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:st(new C(43,"highlightActiveIndentGuide",!0,{description:o.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:st(new fe),inDiffEditor:st(new C(45,"inDiffEditor",!1)),letterSpacing:st(new x(46,"letterSpacing",it.letterSpacing,(function(e){return x.clamp(e,-5,20)}),{description:o.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:st(new ye),lineDecorationsWidth:st(new _(48,"lineDecorationsWidth",10)),lineHeight:st(new Se),lineNumbers:st(new je),lineNumbersMinChars:st(new O(51,"lineNumbersMinChars",5,1,300)),links:st(new C(52,"links",!0,{description:o.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:st(new T(53,"matchBrackets","always",["always","near","never"],{description:o.a("matchBrackets","Highlight matching brackets.")})),minimap:st(new De),mouseStyle:st(new T(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:st(new x(56,"mouseWheelScrollSensitivity",1,(function(e){return 0===e?1:e}),{markdownDescription:o.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:st(new C(57,"mouseWheelZoom",!1,{markdownDescription:o.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:st(new C(58,"multiCursorMergeOverlapping",!0,{description:o.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:st(new A(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.e?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[o.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),o.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:o.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:st(new T(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[o.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),o.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:o.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:st(new C(61,"occurrencesHighlight",!0,{description:o.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:st(new C(62,"overviewRulerBorder",!0,{description:o.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:st(new O(63,"overviewRulerLanes",3,0,3)),parameterHints:st(new ke),peekWidgetDefaultFocus:st(new T(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[o.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),o.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:o.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:st(new Re),quickSuggestionsDelay:st(new O(67,"quickSuggestionsDelay",10,0,1073741824,{description:o.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:st(new C(68,"readOnly",!1)),renderControlCharacters:st(new C(69,"renderControlCharacters",!1,{description:o.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:st(new C(70,"renderIndentGuides",!0,{description:o.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:st(new C(71,"renderFinalNewline",!0,{description:o.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:st(new T(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",o.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:o.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:st(new T(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:st(new T(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",o.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),o.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:o.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:st(new O(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:st(new C(76,"roundedSelection",!0,{description:o.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:st(new He),scrollbar:st(new qe),scrollBeyondLastColumn:st(new O(79,"scrollBeyondLastColumn",5,0,1073741824,{description:o.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:st(new C(80,"scrollBeyondLastLine",!0,{description:o.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:st(new C(81,"selectionClipboard",!0,{description:o.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.d})),selectionHighlight:st(new C(82,"selectionHighlight",!0,{description:o.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:st(new C(83,"selectOnLineNumbers",!0)),showFoldingControls:st(new T(84,"showFoldingControls","mouseover",["always","mouseover"],{description:o.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:st(new C(85,"showUnused",!0,{description:o.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:st(new T(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[o.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),o.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),o.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),o.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:o.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:st(new C(87,"smoothScrolling",!1,{description:o.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:st(new O(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:st(new Ze),suggestFontSize:st(new O(90,"suggestFontSize",0,0,1e3,{markdownDescription:o.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:st(new O(91,"suggestLineHeight",0,0,1e3,{markdownDescription:o.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:st(new C(92,"suggestOnTriggerCharacters",!0,{description:o.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:st(new T(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[o.a("suggestSelection.first","Always select the first suggestion."),o.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),o.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:o.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:st(new T(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[o.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),o.a("tabCompletion.off","Disable tab completions."),o.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:o.a("tabCompletion","Enables tab completions.")})),useTabStops:st(new C(95,"useTabStops",!0,{description:o.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:st(new E(96,"wordSeparators",s.b,{description:o.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:st(new T(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[o.a("wordWrap.off","Lines will never wrap."),o.a("wordWrap.on","Lines will wrap at the viewport width."),o.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),o.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:o.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:st(new E(98,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:st(new E(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:st(new O(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:o.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:st(new C(101,"wordWrapMinified",!0)),wrappingIndent:st(new A(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[o.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),o.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),o.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),o.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:o.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:st(new T(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[o.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),o.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:o.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:st(new G),pixelRatio:st(new Me),tabFocusMode:st(new Je),layoutInfo:st(new ve),wrappingInfo:st(new tt)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("keybindingService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i=n(889),o=n(448),r=(i.a,Object(o.c)("notificationService")),s=function(){}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return y}));var i=n(446),o=(r.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},r.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},r.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},r);function r(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}var s,a,l=new o,u=new o,c=new o;function d(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),l.define(e,t),u.define(e,n),c.define(e,i)}function h(e,t){return(e|(65535&t)<<16>>>0)>>>0}function p(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new v(0!=i?[f(n,t),f(i,t)]:[f(n,t)])}function f(e,t){var n=!!(2048&e),i=!!(256&e);return new g(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}d(0,"unknown"),d(1,"Backspace"),d(2,"Tab"),d(3,"Enter"),d(4,"Shift"),d(5,"Ctrl"),d(6,"Alt"),d(7,"PauseBreak"),d(8,"CapsLock"),d(9,"Escape"),d(10,"Space"),d(11,"PageUp"),d(12,"PageDown"),d(13,"End"),d(14,"Home"),d(15,"LeftArrow","Left"),d(16,"UpArrow","Up"),d(17,"RightArrow","Right"),d(18,"DownArrow","Down"),d(19,"Insert"),d(20,"Delete"),d(21,"0"),d(22,"1"),d(23,"2"),d(24,"3"),d(25,"4"),d(26,"5"),d(27,"6"),d(28,"7"),d(29,"8"),d(30,"9"),d(31,"A"),d(32,"B"),d(33,"C"),d(34,"D"),d(35,"E"),d(36,"F"),d(37,"G"),d(38,"H"),d(39,"I"),d(40,"J"),d(41,"K"),d(42,"L"),d(43,"M"),d(44,"N"),d(45,"O"),d(46,"P"),d(47,"Q"),d(48,"R"),d(49,"S"),d(50,"T"),d(51,"U"),d(52,"V"),d(53,"W"),d(54,"X"),d(55,"Y"),d(56,"Z"),d(57,"Meta"),d(58,"ContextMenu"),d(59,"F1"),d(60,"F2"),d(61,"F3"),d(62,"F4"),d(63,"F5"),d(64,"F6"),d(65,"F7"),d(66,"F8"),d(67,"F9"),d(68,"F10"),d(69,"F11"),d(70,"F12"),d(71,"F13"),d(72,"F14"),d(73,"F15"),d(74,"F16"),d(75,"F17"),d(76,"F18"),d(77,"F19"),d(78,"NumLock"),d(79,"ScrollLock"),d(80,";",";","OEM_1"),d(81,"=","=","OEM_PLUS"),d(82,",",",","OEM_COMMA"),d(83,"-","-","OEM_MINUS"),d(84,".",".","OEM_PERIOD"),d(85,"/","/","OEM_2"),d(86,"`","`","OEM_3"),d(110,"ABNT_C1"),d(111,"ABNT_C2"),d(87,"[","[","OEM_4"),d(88,"\\","\\","OEM_5"),d(89,"]","]","OEM_6"),d(90,"'","'","OEM_7"),d(91,"OEM_8"),d(92,"OEM_102"),d(93,"NumPad0"),d(94,"NumPad1"),d(95,"NumPad2"),d(96,"NumPad3"),d(97,"NumPad4"),d(98,"NumPad5"),d(99,"NumPad6"),d(100,"NumPad7"),d(101,"NumPad8"),d(102,"NumPad9"),d(103,"NumPad_Multiply"),d(104,"NumPad_Add"),d(105,"NumPad_Separator"),d(106,"NumPad_Subtract"),d(107,"NumPad_Decimal"),d(108,"NumPad_Divide"),(a=s=s||{}).toString=function(e){return l.keyCodeToStr(e)},a.fromString=function(e){return l.strToKeyCode(e)},a.toUserSettingsUS=function(e){return u.keyCodeToStr(e)},a.toUserSettingsGeneral=function(e){return c.keyCodeToStr(e)},a.fromUserSettings=function(e){return u.strToKeyCode(e)||c.strToKeyCode(e)};var g=(m.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},m.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},m.prototype.toChord=function(){return new v([this])},m.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},m);function m(e,t,n,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}var v=(_.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},_);function _(e){if(0===e.length)throw Object(i.b)("parts");this.parts=e}var b=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},y=function(){}},,,,,function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return b}));var i,o=(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)});function r(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function s(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var a=(l.prototype.reset=function(e){return this._value=e,this._pos=0,this},l.prototype.next=function(){return this._pos+=1,this},l.prototype.hasNext=function(){return this._pos<this._value.length-1},l.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},l.prototype.value=function(){return this._value[this._pos]},l);function l(){this._value="",this._pos=0}var u=(c.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},c.prototype.hasNext=function(){return this._to<this._value.length},c.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||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this},c.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},c.prototype.value=function(){return this._value.substring(this._from,this._to)},c);function c(e){void 0===e&&(e=!0),this._splitOnBackslash=e}var d=function(){},h=(p.forPaths=function(){return new p(new u)},p.forStrings=function(){return new p(new a)},p.prototype.clear=function(){this._root=void 0},p.prototype.set=function(e,t){var n,i=this._iter.reset(e);for(this._root||(this._root=new d,this._root.segment=i.value()),n=this._root;;){var o=i.cmp(n.segment);if(0<o)n.left||(n.left=new d,n.left.segment=i.value()),n=n.left;else if(o<0)n.right||(n.right=new d,n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new d,n.mid.segment=i.value()),n=n.mid}}var r=n.value;return n.value=t,n.key=e,r},p.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.segment);if(0<i)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},p.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(0<o)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},p.prototype.forEach=function(e){this._forEach(this._root,e)},p.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))},p);function p(e){this._iter=e}var f=(g.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},g.prototype.get=function(e){return this.map.get(this.toKey(e))},g.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},g);function g(){this.map=new Map,this.ignoreCase=!1}var m=(v.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(v.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),v.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},v.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++}},v.prototype.delete=function(e){return!!this.remove(e)},v.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},v.prototype.forEach=function(e,t){for(var n=this._head;n;)(t?e.bind(t):e)(n.value,n.key,this),n=n.next},v.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&e<n;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},v.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},v.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},v.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");(t.previous=n).next=t}e.next=void 0,e.previous=void 0},v.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).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).next=n,e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},v.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},v);function v(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}var _,b=(o(y,_=m),y.prototype.get=function(e){return _.prototype.get.call(this,e,2)},y.prototype.peek=function(e){return _.prototype.get.call(this,e,0)},y.prototype.set=function(e,t){_.prototype.set.call(this,e,t,2),this.checkTrim()},y.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},y);function y(e,t){void 0===t&&(t=1);var n=_.call(this)||this;return n._limit=e,n._ratio=Math.min(Math.max(0,t),1),n}},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"f",(function(){return _})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return C})),n.d(t,"a",(function(){return i}));var i,o,r=n(1076),s=n(791),a=n(479),l=n(444),u=n(596),c=n(452),d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function h(e){return!e||e.scheme!==u.b.file||!c.d}function p(e){return m(e)||e.authority}function f(e,t){return e===t||Object(l.n)(e,t)}function g(e,t,n){if(void 0===n&&(n=h(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;var i=e.path||"/",o=t.path||"/";return i===o||n&&Object(l.n)(i||"/",o||"/")}function m(e){return s.posix.basename(e.path)}function v(e){if(0===e.path.length)return e;if(e.scheme===u.b.file)return a.a.file(s.dirname(y(e)));var t=s.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/"),e.with({path:t})}function _(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n=e.scheme===u.b.file?a.a.file(s.join.apply(s,d([y(e)],i))).path:(t=s.posix).join.apply(t,d([e.path||"/"],i)),e.with({path:n})}function b(e){return e.path.length?(t=e.scheme===u.b.file?a.a.file(s.normalize(y(e))).path:s.posix.normalize(e.path),e.with({path:t})):e;var t}function y(e){var t,n=e.path;return t=e.authority&&1<n.length&&e.scheme===u.b.file?"//"+e.authority+n:c.h&&47===n.charCodeAt(0)&&r.b(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,c.h&&(t=t.replace(/\//g,"\\")),t}function C(e,t,n){if(void 0===n&&(n=h(e)),e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===u.b.file){var i=s.relative(e.path,t.path);return c.h?r.c(i):i}var o=e.path||"/",a=t.path||"/";if(n){for(var l=0,d=Math.min(o.length,a.length);l<d&&(o.charCodeAt(l)===a.charCodeAt(l)||o.charAt(l).toLowerCase()===a.charAt(l).toLowerCase());l++);o=a.substr(0,l)+o.substr(l)}return s.posix.relative(o,a)}}(o=i=i||{}).META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime",o.parseMetaData=function(e){var t=new Map;e.path.substring(e.path.indexOf(";")+1,e.path.lastIndexOf(";")).split(";").forEach((function(e){var n=e.split(":"),i=n[0],o=n[1];i&&o&&t.set(i,o)}));var n=e.path.substring(0,e.path.indexOf(";"));return n&&t.set(o.META_DATA_MIME,n),t}},function(e,t,n){"use strict";function i(){return!0}function o(){return!1}function r(e){return" "===e||"\t"===e}n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"a",(function(){return L})),n.d(t,"g",(function(){return x}));var s=n(446),a=n(444),l=n(450),u=n(440),c=n(466),d=n(495),h=n(575);function p(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var f=(g.shouldRecreate=function(e){return e.hasChanged(107)||e.hasChanged(96)||e.hasChanged(25)||e.hasChanged(58)||e.hasChanged(60)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(95)||e.hasChanged(49)||e.hasChanged(68)},Object.defineProperty(g.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var e=g._getElectricCharacters(this._languageIdentifier);if(e)for(var t=0,n=e;t<n.length;t++){var i=n[t];this._electricChars[i]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),g.prototype.normalizeIndentation=function(e){return d.b.normalizeIndentation(e,this.indentSize,this.insertSpaces)},g._getElectricCharacters=function(e){try{return h.a.getElectricCharacters(e.id)}catch(e){return Object(s.e)(e),null}},g._getAutoClosingPairs=function(e){try{return h.a.getAutoClosingPairs(e.id)}catch(e){return Object(s.e)(e),null}},g._getShouldAutoClose=function(e,t){switch(t){case"beforeWhitespace":return r;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return i;case"never":return o}},g._getLanguageDefinedShouldAutoClose=function(e){try{var t=h.a.getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(e){return Object(s.e)(e),o}},g._getSurroundingPairs=function(e){try{return h.a.getSurroundingPairs(e.id)}catch(e){return Object(s.e)(e),null}},g);function g(e,t,n){this._languageIdentifier=e;var i=n.options,o=i.get(107);this.readOnly=i.get(68),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.lineHeight=i.get(49),this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=i.get(95),this.wordSeparators=i.get(96),this.emptySelectionClipboard=i.get(25),this.copyWithSyntaxHighlighting=i.get(15),this.multiCursorMergeOverlapping=i.get(58),this.multiCursorPaste=i.get(60),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(7),this.autoClosingOvertype=i.get(6),this.autoSurround=i.get(10),this.autoIndent=i.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)};var r=g._getAutoClosingPairs(e);if(r)for(var s=0,a=r;s<a.length;s++){var l=a[s];p(this.autoClosingPairsOpen2,l.open.charAt(l.open.length-1),l),1===l.close.length&&p(this.autoClosingPairsClose2,l.close,l)}var u=g._getSurroundingPairs(e);if(u)for(var c=0,d=u;c<d.length;c++)l=d[c],this.surroundingPairs[l.open]=l.close}var m=(v.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},v.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},v.prototype.move=function(e,t,n,i){return e?new v(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new l.a(t,n),i):new v(new u.a(t,n,t,n),i,new l.a(t,n),i)},v._computeSelection=function(e,t){var n,i,o,r;return i=!e.isEmpty()&&t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,e.endColumn):(n=e.startLineNumber,e.startColumn),o=t.lineNumber,r=t.column,new c.a(n,i,o,r)},v);function v(e,t,n,i){this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=i,this.selection=v._computeSelection(this.selectionStart,this.position)}var _=(b.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},b.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},b.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},b.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new l.a(e,t))},b.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},b.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},b.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},b.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},b.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},b.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},b.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},b);function b(e,t,n){this.model=t,this.viewModel=n,this.config=new f(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}var y=function(e){this.modelState=e,this.viewState=null},C=function(e){this.modelState=null,this.viewState=e},w=(S.fromModelState=function(e){return new y(e)},S.fromViewState=function(e){return new C(e)},S.fromModelSelection=function(e){var t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,o=e.positionColumn,r=new m(new u.a(t,n,t,n),0,new l.a(i,o),0);return S.fromModelState(r)},S.fromModelSelections=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t},S.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},S);function S(e,t){this.modelState=e,this.viewState=t}var O=function(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter},L=(D.visibleColumnFromColumn=function(e,t,n){for(var i=e.length,o=t-1<i?t-1:i,r=0,s=0;s<o;){var l=a.u(e,o,s);if(s+=65536<=l?2:1,9===l)r=D.nextRenderTabStop(r,n);else{for(var u=a.s(l);s<o;){var c=a.u(e,o,s),d=a.s(c);if(a.b(u,d))break;s+=65536<=c?2:1,u=d}a.y(l)||a.w(l)?r+=2:r+=1}}return r},D.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},D.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;for(var i=e.length,o=0,r=1,s=0;s<i;){var l=a.u(e,i,s);s+=65536<=l?2:1;var u=void 0;if(9===l)u=D.nextRenderTabStop(o,n);else{for(var c=a.s(l);s<i;){var d=a.u(e,i,s),h=a.s(d);if(a.b(c,h))break;s+=65536<=d?2:1,c=h}u=a.y(l)||a.w(l)?o+2:o+1}var p=s+1;if(t<=u)return u-t<t-o?p:r;o=u,r=p}return i+1},D.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 s<o?s:o},D.nextRenderTabStop=function(e,t){return e+t-e%t},D.nextIndentTabStop=function(e,t){return e+t-e%t},D.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},D.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},D);function D(){}function x(e){return"'"===e||'"'===e||"`"===e}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(465),o=n(944);function r(){this.data=new Map}var s=new(r.prototype.add=function(e,t){o.a(i.j(e)),o.a(i.i(t)),o.a(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},r.prototype.as=function(e){return this.data.get(e)||null},r)},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"k",(function(){return _})),n.d(t,"b",(function(){return y})),n.d(t,"m",(function(){return C})),n.d(t,"e",(function(){return w})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return O})),n.d(t,"l",(function(){return L})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return N})),n.d(t,"p",(function(){return k})),n.d(t,"r",(function(){return E})),n.d(t,"q",(function(){return I}));var i=n(445),o=n(490),r=n(461),s=n(451),a=Object(r.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i.a("lineHighlight","Background color for the highlight of line at the cursor position.")),l=Object(r.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),u=Object(r.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(r.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:r.b},i.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(r.Tb)("editor.symbolHighlightBackground",{dark:r.t,light:r.t,hc:null},i.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(r.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:r.b},i.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),p=Object(r.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:o.a.black,hc:o.a.white},i.a("caret","Color of the editor cursor.")),f=Object(r.Tb)("editorCursor.background",null,i.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=Object(r.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i.a("editorWhitespaces","Color of whitespace characters in the editor.")),m=Object(r.Tb)("editorIndentGuide.background",{dark:g,light:g,hc:g},i.a("editorIndentGuides","Color of the editor indentation guides.")),v=Object(r.Tb)("editorIndentGuide.activeBackground",{dark:g,light:g,hc:g},i.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),_=Object(r.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:o.a.white},i.a("editorLineNumbers","Color of editor line numbers.")),b=Object(r.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:r.b},i.a("editorActiveLineNumber","Color of editor active line number"),!1,i.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),y=Object(r.Tb)("editorLineNumber.activeForeground",{dark:b,light:b,hc:b},i.a("editorActiveLineNumber","Color of editor active line number")),C=Object(r.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:o.a.lightgrey,hc:o.a.white},i.a("editorRuler","Color of the editor rulers.")),w=Object(r.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},i.a("editorCodeLensForeground","Foreground color of editor code lenses")),S=Object(r.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i.a("editorBracketMatchBackground","Background color behind matching brackets")),O=Object(r.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:r.e},i.a("editorBracketMatchBorder","Color for matching brackets boxes")),L=Object(r.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i.a("editorOverviewRulerBorder","Color of the overview ruler border.")),D=Object(r.Tb)("editorGutter.background",{dark:r.o,light:r.o,hc:r.o},i.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),x=Object(r.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:o.a.fromHex("#fff").transparent(.8)},i.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),N=Object(r.Tb)("editorUnnecessaryCode.opacity",{dark:o.a.fromHex("#000a"),light:o.a.fromHex("#0007"),hc:null},i.a("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),k=Object(r.Tb)("editorOverviewRuler.errorForeground",{dark:new o.a(new o.c(255,18,18,.7)),light:new o.a(new o.c(255,18,18,.7)),hc:new o.a(new o.c(255,50,50,1))},i.a("overviewRuleError","Overview ruler marker color for errors.")),E=Object(r.Tb)("editorOverviewRuler.warningForeground",{dark:r.P,light:r.P,hc:r.O},i.a("overviewRuleWarning","Overview ruler marker color for warnings.")),I=Object(r.Tb)("editorOverviewRuler.infoForeground",{dark:r.H,light:r.H,hc:r.G},i.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(s.e)((function(e,t){var n=e.getColor(r.o);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var i=e.getColor(r.x);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+i+"; }");var o=e.getColor(D);o&&t.addRule(".monaco-editor .margin { background-color: "+o+"; }");var s=e.getColor(u);s&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+s+"; }");var a=e.getColor(c);a&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+a+"; }");var l=e.getColor(d);l&&t.addRule(".monaco-editor .symbolHighlight { background-color: "+l+"; }");var p=e.getColor(h);p&&t.addRule(".monaco-editor .symbolHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+p+"; }");var f=e.getColor(g);f&&t.addRule(".vs-whitespace { color: "+f+" !important; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return f}));var i=n(571),o=n(448),r=n(789),s=Object(o.c)("configurationService");function a(e,t){var n=Object.create(null);for(var i in e)l(n,i,e[i],t);return n}function l(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a<o.length;a++){var l=o[a],u=s[l];switch(typeof u){case"undefined":u=s[l]=Object.create(null);break;case"object":break;default:return void i("Ignoring "+t+" as "+o.slice(0,a+1).join(".")+" is "+JSON.stringify(u))}s=u}"object"==typeof s?s[r]=n:i("Ignoring "+t+" as "+o.join(".")+" is "+JSON.stringify(s))}function u(e,t){!function e(t,n){var i=n.shift();if(0!==n.length){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])}}else delete t[i]}(e,t.split("."))}function c(e,t,n){var i=function(e,t){for(var n=e,i=0,o=t;i<o.length;i++){var r=o[i];if("object"!=typeof n||null===n)return;n=n[r]}return n}(e,t.split("."));return void 0===i?n:i}function d(){var e=i.a.as(r.a.Configuration).getConfigurationProperties();return Object.keys(e)}function h(){var e=Object.create(null),t=i.a.as(r.a.Configuration).getConfigurationProperties();for(var n in t)l(e,n,t[n].default,(function(e){}));return e}function p(e){return e.substring(1,e.length-1)}function f(e,t,n){var i=e.inspect(t),o=e.inspect(n);return void 0!==i.userValue||void 0!==i.workspaceValue||void 0!==i.workspaceFolderValue?i.value:void 0!==o.userValue||void 0!==o.workspaceValue||void 0!==o.workspaceFolderValue?o.value:i.defaultValue}},,function(e,t,n){"use strict";var i=n(442),o=n(439),r=n(444),s=n(882),a=n(825),l=n(949),u=(c.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},c.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},c.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i);return e.isOK(o)},c.prototype.getSurroundingPairs=function(){return this._surroundingPairs},c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",c);function c(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((function(e){return new a.b(e)})):e.brackets?this._autoClosingPairs=e.brackets.map((function(e){return new a.b({open:e[0],close:e[1]})})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){var t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.b({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"==typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}var d=n(950),h=(p.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets;t<n.length;t++)for(var i=0,o=n[t].close;i<o.length;i++){var r=o[i],s=r.charAt(r.length-1);e.push(s)}return e.filter((function(e,t,n){return n.indexOf(e)===t}))},p.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(Object(l.b)(t.getStandardTokenType(i)))return null;var o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,n-1)+e,s=d.a.findPrevBracketInRange(o,1,r,0,r.length);if(!s)return null;var a=r.substring(s.startColumn-1,s.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;var u=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(u)?{matchOpenBracket:a}:null},p);function p(e){this._richEditBrackets=e}var f=(g.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},g.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},g.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},g.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},g.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},g);function g(e){this._indentationRules=e}var m=n(446),v=(_.prototype.onEnter=function(e,t,n,i){if(3<=e)for(var o=0,r=this._regExpRules.length;o<r;o++){var s=this._regExpRules[o];if([{reg:s.beforeText,text:n},{reg:s.afterText,text:i},{reg:s.oneLineAboveText,text:t}].every((function(e){return!e.reg||e.reg.test(e.text)})))return s.action}if(2<=e&&0<n.length&&0<i.length)for(o=0,r=this._brackets.length;o<r;o++)if((l=this._brackets[o]).openRegExp.test(n)&&l.closeRegExp.test(i))return{indentAction:a.a.IndentOutdent};if(2<=e&&0<n.length)for(o=0,r=this._brackets.length;o<r;o++){var l;if((l=this._brackets[o]).openRegExp.test(n))return{indentAction:a.a.Indent}}return null},_._createOpenBracketRegExp=function(e){var t=r.p(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),_._safeRegExp(t+="\\s*$")},_._createCloseBracketRegExp=function(e){var t=r.p(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),_._safeRegExp(t="^\\s*"+t)},_._safeRegExp=function(e){try{return new RegExp(e)}catch(e){return Object(m.e)(e),null}},_);function _(e){var t=this;(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((function(e){var n=_._createOpenBracketRegExp(e[0]),i=_._createCloseBracketRegExp(e[1]);n&&i&&t._brackets.push({open:e[0],openRegExp:n,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}n.d(t,"a",(function(){return S}));var b=(Object.defineProperty(y.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new d.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new h(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),y.prototype.onEnter=function(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null},y._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}},y._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},y);function y(e,t,n){this._languageIdentifier=e,this._brackets=null;var i=this._electricCharacter=null;t&&(i=t._conf),this._conf=y._mergeConf(i,n),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new v(this._conf):null,this.comments=y._handleComments(this._conf),this.characterPair=new u(this._conf),this.wordDefinition=this._conf.wordPattern||s.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new f(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}var C=function(e){this.languageIdentifier=e};function w(){this._entries=new Map,this._onDidChange=new i.a,this.onDidChange=this._onDidChange.event}var S=new(w.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),r=new b(e,i,t);return this._entries.set(e.id,r),this._onDidChange.fire(new C(e)),Object(o.h)((function(){n._entries.get(e.id)===r&&(n._entries.set(e.id,i),n._onDidChange.fire(new C(e)))}))},w.prototype._getRichEditSupport=function(e){return this._entries.get(e)},w.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},w.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},w.prototype.onElectricCharacter=function(e,t,n){var i=Object(l.a)(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null},w.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},w.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},w.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},w.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},w.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},w.prototype.shouldAutoClosePair=function(e,t,n){var i=Object(l.a)(t,n-1);return u.shouldAutoClosePair(e,i,n-i.firstCharOffset)},w.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?Object(s.c)(t.wordDefinition||null):Object(s.c)(null)},w.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},w.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},w.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(1<t){var o=void 0,r=-1;for(o=t-1;1<=o;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},w.prototype.getInheritIndentForLine=function(e,t,n,i){if(void 0===i&&(i=!0),e<4)return null;var o=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!o)return null;if(n<=1)return{indentation:"",action:null};var s=this.getPrecedingValidLine(t,n,o);if(s<0)return null;if(s<1)return{indentation:"",action:null};var l=t.getLineContent(s);if(o.shouldIncrease(l)||o.shouldIndentNextLine(l))return{indentation:r.t(l),action:a.a.Indent,line:s};if(o.shouldDecrease(l))return{indentation:r.t(l),action:null,line:s};if(1===s)return{indentation:r.t(t.getLineContent(s)),action:null,line:s};var u=s-1,c=o.getIndentMetadata(t.getLineContent(u));if(!(3&c)&&4&c){for(var d=0,h=u-1;0<h;h--)if(!o.shouldIndentNextLine(t.getLineContent(h))){d=h;break}return{indentation:r.t(t.getLineContent(d+1)),action:null,line:d+1}}if(i)return{indentation:r.t(t.getLineContent(s)),action:null,line:s};for(h=s;0<h;h--){var p=t.getLineContent(h);if(o.shouldIncrease(p))return{indentation:r.t(p),action:a.a.Indent,line:h};if(o.shouldIndentNextLine(p)){d=0;for(var f=h-1;0<f;f--)if(!o.shouldIndentNextLine(t.getLineContent(h))){d=f;break}return{indentation:r.t(t.getLineContent(d+1)),action:null,line:d+1}}if(o.shouldDecrease(p))return{indentation:r.t(p),action:null,line:h}}return{indentation:r.t(t.getLineContent(1)),action:null,line:1}},w.prototype.getGoodIndentForLine=function(e,t,n,i,o){if(e<4)return null;var s=this._getRichEditSupport(n);if(!s)return null;var l=this.getIndentRulesSupport(n);if(!l)return null;var u=this.getInheritIndentForLine(e,t,i),c=t.getLineContent(i);if(u){var d=u.line;if(void 0!==d){var h=s.onEnter(e,"",t.getLineContent(d),"");if(h){var p=r.t(t.getLineContent(d));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===a.a.Indent||h.indentAction===a.a.IndentOutdent?p=o.shiftIndent(p):h.indentAction===a.a.Outdent&&(p=o.unshiftIndent(p)),l.shouldDecrease(c)&&(p=o.unshiftIndent(p)),h.appendText&&(p+=h.appendText),r.t(p)}}return l.shouldDecrease(c)?u.action===a.a.Indent?u.indentation:o.unshiftIndent(u.indentation):u.action===a.a.Indent?o.shiftIndent(u.indentation):u.indentation}return null},w.prototype.getIndentForEnter=function(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);var o,s,u=t.getLineTokens(n.startLineNumber),c=Object(l.a)(u,n.startColumn-1),d=c.getLineContent(),h=!1;o=0<c.firstCharOffset&&u.getLanguageId(0)!==c.languageId?(h=!0,d.substr(0,n.startColumn-1-c.firstCharOffset)):u.getLineContent().substring(0,n.startColumn-1),s=n.isEmpty()?d.substr(n.startColumn-1-c.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-c.firstCharOffset);var p=this.getIndentRulesSupport(c.languageId);if(!p)return null;var f=o,g=r.t(o),m={getLineTokens:function(e){return t.getLineTokens(e)},getLanguageIdentifier:function(){return t.getLanguageIdentifier()},getLanguageIdAtPosition:function(e,n){return t.getLanguageIdAtPosition(e,n)},getLineContent:function(e){return e===n.startLineNumber?f:t.getLineContent(e)}},v=r.t(u.getLineContent()),_=this.getInheritIndentForLine(e,m,n.startLineNumber+1);if(!_){var b=h?v:g;return{beforeEnter:b,afterEnter:b}}var y=h?v:_.indentation;return _.action===a.a.Indent&&(y=i.shiftIndent(y)),p.shouldDecrease(s)&&(y=i.unshiftIndent(y)),{beforeEnter:h?v:g,afterEnter:y}},w.prototype.getIndentActionForType=function(e,t,n,i,o){if(e<4)return null;var r=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),s=this.getIndentRulesSupport(r.languageId);if(!s)return null;var l,u=r.getLineContent(),c=u.substr(0,n.startColumn-1-r.firstCharOffset);if(l=n.isEmpty()?u.substr(n.startColumn-1-r.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-r.firstCharOffset),s.shouldDecrease(c+l)||!s.shouldDecrease(c+i+l))return null;var d=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!d)return null;var h=d.indentation;return d.action!==a.a.Indent&&(h=o.unshiftIndent(h)),h},w.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))},w.prototype.getEnterAction=function(e,t,n){var i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),o=this._getRichEditSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),l=s.substr(0,n.startColumn-1-i.firstCharOffset);r=n.isEmpty()?s.substr(n.startColumn-1-i.firstCharOffset):this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-i.firstCharOffset);var u="";if(1<n.startLineNumber&&0===i.firstCharOffset){var c=this.getScopedLineTokens(t,n.startLineNumber-1);c.languageId===i.languageId&&(u=c.getLineContent())}var d=o.onEnter(e,u,l,r);if(!d)return null;var h=d.indentAction,p=d.appendText,f=d.removeText||0;p=p||(h===a.a.Indent||h===a.a.IndentOutdent?"\t":"");var g=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return f&&(g=g.substring(0,g.length-f)),{indentAction:h,appendText:p,removeText:f,indentation:g}},w.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),o=r.t(i);return o.length>n-1&&(o=o.substring(0,n-1)),o},w.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),o=void 0===n?e.getLineMaxColumn(t)-1:n-1;return Object(l.a)(i,o)},w.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},w)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var i,o=n(478),r=n(1072),s=n(452),a=(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)}),l=(u.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},u.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},u);function u(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,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=r.a.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}var c,d=(a(h,c=l),h);function h(e){var t=c.call(this,e)||this;return t.dataTransfer=e.dataTransfer,t}var p=(f.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},f.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},f);function f(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;if(void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS?this.deltaY=-r.detail/3:"wheel"===e.type&&((a=e).deltaMode===a.DOM_DELTA_LINE?this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==i.wheelDeltaX)o.k&&s.h?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120;else if(void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){var a;(a=e).deltaMode===a.DOM_DELTA_LINE?this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var i,o,r=n(479),s=n(452);function a(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}(o=i=i||{}).inMemory="inmemory",o.vscode="vscode",o.internal="private",o.walkThrough="walkThrough",o.walkThroughSnippet="walkThroughSnippet",o.http="http",o.https="https",o.file="file",o.mailto="mailto",o.untitled="untitled",o.data="data",o.command="command",o.vscodeRemote="vscode-remote",o.vscodeRemoteResource="vscode-remote-resource",o.userData="vscode-userdata";var l=new(a.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},a.prototype.rewrite=function(e){if(this._delegate)return this._delegate(e);var t=e.authority,n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n="["+n+"]");var o=this._ports[t],a=this._connectionTokens[t],l="path="+encodeURIComponent(e.path);return"string"==typeof a&&(l+="&tkn="+encodeURIComponent(a)),r.a.from({scheme:s.g?this._preferredWebSchema:i.vscodeRemoteResource,authority:n+":"+o,path:"/vscode-remote-resource",query:l})},a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o,r=n(443),s=n(701),a=n(595),l=n(439),u=n(702),c=((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)})(d,o=l.a),d.prototype.onclick=function(e,t){this._register(r.j(e,r.d.CLICK,(function(e){return t(new a.b(e))})))},d.prototype.onmousedown=function(e,t){this._register(r.j(e,r.d.MOUSE_DOWN,(function(e){return t(new a.b(e))})))},d.prototype.onmouseover=function(e,t){this._register(r.j(e,r.d.MOUSE_OVER,(function(e){return t(new a.b(e))})))},d.prototype.onnonbubblingmouseout=function(e,t){this._register(r.k(e,(function(e){return t(new a.b(e))})))},d.prototype.onkeydown=function(e,t){this._register(r.j(e,r.d.KEY_DOWN,(function(e){return t(new s.a(e))})))},d.prototype.onkeyup=function(e,t){this._register(r.j(e,r.d.KEY_UP,(function(e){return t(new s.a(e))})))},d.prototype.oninput=function(e,t){this._register(r.j(e,r.d.INPUT,t))},d.prototype.onblur=function(e,t){this._register(r.j(e,r.d.BLUR,t))},d.prototype.onfocus=function(e,t){this._register(r.j(e,r.d.FOCUS,t))},d.prototype.ignoreGesture=function(e){u.b.ignoreTarget(e)},d);function d(){return null!==o&&o.apply(this,arguments)||this}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(448),o=Object(i.c)("modelService");function r(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},function(e,t,n){"use strict";var i,o,r,s;n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),(o=i=i||{})[o.Left=1]="Left",o[o.Center=2]="Center",o[o.Right=4]="Right",o[o.Full=7]="Full",(s=r=r||{})[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter";var a=(l.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},l.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},l);function l(e){this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}var u=function(e,t){this.range=e,this.matches=t},c=function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n(1319);var i,o,r,s=n(445),a=n(452),l=n(443);function u(e){(i=document.createElement("div")).className="monaco-aria-container",(o=document.createElement("div")).className="monaco-alert",o.setAttribute("role","alert"),o.setAttribute("aria-atomic","true"),i.appendChild(o),(r=document.createElement("div")).className="monaco-status",r.setAttribute("role","status"),r.setAttribute("aria-atomic","true"),i.appendChild(r),e.appendChild(i)}function c(e,t){f(o,e,t)}function d(e,t){a.e?c(e,t):f(r,e,t)}var h=0,p=void 0;function f(e,t,n){if(i){if(!n)switch(p===t?h++:(p=t,h=0),h){case 0:break;case 1:t=s.a("repeated","{0} (occurred again)",t);break;default:t=s.a("repeatedNtimes","{0} (occurred {1} times)",t,h)}l.t(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var i=n(479),o=n(448),r=n(439),s=n(444),a=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},l=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},u=Object(o.c)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return r.a.None},registerValidator:function(){return r.a.None},registerExternalUriResolver:function(){return r.a.None},setExternalOpener:function(){},open:function(){return a(this,void 0,void 0,(function(){return l(this,(function(e){return[2,!1]}))}))},resolveExternalUri:function(e){return a(this,void 0,void 0,(function(){return l(this,(function(t){return[2,{resolved:e,dispose:function(){}}]}))}))}});function d(e,t){return i.a.isUri(e)?Object(s.n)(e.scheme,t):Object(s.O)(e,t+":")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(442),o=function(e,t,n){function o(e){return r.fire(e)}var r=new i.a({onFirstListenerAdd:function(){e.addEventListener(t,o,n)},onLastListenerRemove:function(){e.removeEventListener(t,o,n)}});return r.event};function r(e){return i.b.map(e,(function(e){return e.preventDefault(),e.stopPropagation(),e}))}},,function(e,t,n){"use strict";n(1328);var i,o,r=n(478),s=n(443),a=n(488),l=n(595),u=n(793),c=n(597),d=n(453),h=((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)})(p,o=c.a),p.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(e.target,e.buttons,u.b,(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()},p);function p(e){var t=o.call(this)||this;return t._onActivate=e.onActivate,t.bgDomNode=document.createElement("div"),t.bgDomNode.className="arrow-background",t.bgDomNode.style.position="absolute",t.bgDomNode.style.width=e.bgWidth+"px",t.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(t.bgDomNode.style.top="0px"),void 0!==e.left&&(t.bgDomNode.style.left="0px"),void 0!==e.bottom&&(t.bgDomNode.style.bottom="0px"),void 0!==e.right&&(t.bgDomNode.style.right="0px"),t.domNode=document.createElement("div"),t.domNode.className=e.className,t.domNode.style.position="absolute",t.domNode.style.width="11px",t.domNode.style.height="11px",void 0!==e.top&&(t.domNode.style.top=e.top+"px"),void 0!==e.left&&(t.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(t.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(t.domNode.style.right=e.right+"px"),t._mouseMoveMonitor=t._register(new u.a),t.onmousedown(t.bgDomNode,(function(e){return t._arrowMouseDown(e)})),t.onmousedown(t.domNode,(function(e){return t._arrowMouseDown(e)})),t._mousedownRepeatTimer=t._register(new d.c),t._mousedownScheduleRepeatTimer=t._register(new d.e),t}var f,g,m=n(439),v=((f=function(e,t){return(f=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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(_,g=m.a),_.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},_.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},_.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},_.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},_.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},_.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)}),0))},_.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},_);function _(e,t,n){var i=g.call(this)||this;return i._visibility=e,i._visibleClassName=t,i._invisibleClassName=n,i._domNode=null,i._isVisible=!1,i._isNeeded=!1,i._shouldBeVisible=!1,i._revealTimer=i._register(new d.e),i}var b,y,C=n(452),w=((b=function(e,t){return(b=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}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(S,y=c.a),S.prototype._createArrow=function(e){var t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},S.prototype._createSlider=function(e,t,n,i){var o=this;this.slider=Object(a.b)(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.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(function(e){e.leftButton&&(e.preventDefault(),o._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))},S.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},S.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},S.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},S.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()))},S.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},S.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)},S.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=s.C(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(){})))},S.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),o=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,u.b,(function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-o);if(C.h&&140<s)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e)-i;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()},S.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},S);function S(e){var t=y.call(this)||this;return t._lazyRender=e.lazyRender,t._host=e.host,t._scrollable=e.scrollable,t._scrollbarState=e.scrollbarState,t._visibilityController=t._register(new v(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),t._visibilityController.setIsNeeded(t._scrollbarState.isNeeded()),t._mouseMoveMonitor=t._register(new u.a),t._shouldRender=!0,t.domNode=Object(a.b)(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t._visibilityController.setDomNode(t.domNode),t.domNode.setPosition("absolute"),t.onmousedown(t.domNode.domNode,(function(e){return t._domNodeMouseDown(e)})),t}var O=(L.prototype.clone=function(){return new L(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},L.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},L.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},L.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},L._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=0<i&&n<i;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var l=Math.round(Math.max(20,Math.floor(n*s/i))),u=(s-l)/(i-n),c=o*u;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:u,computedSliderPosition:Math.round(c)}},L.prototype._refreshComputedValues=function(){var e=L._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition},L.prototype.getArrowSize=function(){return this._arrowSize},L.prototype.getScrollPosition=function(){return this._scrollPosition},L.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},L.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},L.prototype.isNeeded=function(){return this._computedIsNeeded},L.prototype.getSliderSize=function(){return this._computedSliderSize},L.prototype.getSliderPosition=function(){return this._computedSliderPosition},L.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},L.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},L);function L(e,t,n,i,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}var D,x,N=((D=function(e,t){return(D=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}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(k,x=w),k.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},k.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},k.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},k.prototype._mouseDownRelativePosition=function(e,t){return e},k.prototype._sliderMousePosition=function(e){return e.posx},k.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},k.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},k);function k(e,t,n){var i=this,o=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(i=x.call(this,{lazyRender:t.lazyRender,host:n,scrollbarState:new O(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,o.width,o.scrollWidth,r.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e})||this,t.horizontalHasArrows){var s=(t.arrowSize-11)/2,a=(t.horizontalScrollbarSize-11)/2;i._createArrow({className:"left-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,1,0))}}),i._createArrow({className:"right-arrow",top:a,left:void 0,bottom:void 0,right:s,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,-1,0))}})}return i._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize),i}var E,I,M=((E=function(e,t){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])})(e,t)},function(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(T,I=w),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);function T(e,t,n){var i=this,o=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(i=I.call(this,{lazyRender:t.lazyRender,host:n,scrollbarState:new O(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,o.height,o.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e})||this,t.verticalHasArrows){var s=(t.arrowSize-11)/2,a=(t.verticalScrollbarSize-11)/2;i._createArrow({className:"up-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,0,1))}}),i._createArrow({className:"down-arrow",top:void 0,left:a,bottom:s,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:function(){return i._host.onMouseWheel(new l.c(null,0,-1))}})}return i._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0),i}var P=n(442),R=n(1082);n.d(t,"b",(function(){return K})),n.d(t,"c",(function(){return Y})),n.d(t,"a",(function(){return $}));var A,F=(A=function(e,t){return(A=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}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0},W=(V.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},V.prototype.accept=function(e,t,n){var i=new j(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)},V.prototype._computeScore=function(e){if(0<Math.abs(e.deltaX)&&0<Math.abs(e.deltaY))return 1;var t=.5;return-1===this._front&&-1===this._rear||this._memory[this._rear],(0<Math.abs(e.deltaX-Math.round(e.deltaX))||0<Math.abs(e.deltaY-Math.round(e.deltaY)))&&(t+=.25),Math.min(Math.max(t,0),1)},V.INSTANCE=new V,V);function V(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}var B,H=(F(z,B=c.a),z.prototype.dispose=function(){this._mouseWheelToDispose=Object(m.f)(this._mouseWheelToDispose),B.prototype.dispose.call(this)},z.prototype.getDomNode=function(){return this._domNode},z.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},z.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},z.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},z.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},z.prototype.updateClassName=function(e){this._options.className=e,C.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},z.prototype.updateOptions=function(e){var t=Q(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},z.prototype._setListeningToMouseWheel=function(e){var t=this;0<this._mouseWheelToDispose.length!==e&&(this._mouseWheelToDispose=Object(m.f)(this._mouseWheelToDispose),e)&&this._mouseWheelToDispose.push(s.j(this._listenOnDomNode,r.f?"mousewheel":"wheel",(function(e){t._onMouseWheel(new l.c(e))}),{passive:!1}))},z.prototype._onMouseWheel=function(e){var t,n=W.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(i=(t=[o,i])[0],o=t[1]);var r=!C.e&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||o||(o=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(i){var l=s.scrollTop-50*i;this._verticalScrollbar.writeScrollPosition(a,l)}if(o){var u=s.scrollLeft-50*o;this._horizontalScrollbar.writeScrollPosition(a,u)}a=this._scrollable.validateScrollPosition(a),s.scrollLeft===a.scrollLeft&&s.scrollTop===a.scrollTop||(this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},z.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()},z.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},z.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=0<e.scrollTop,n=0<e.scrollLeft;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},z.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},z.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},z.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},z.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},z.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},z.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},z.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)},z);function z(e,t,n){var i=B.call(this)||this;i._onScroll=i._register(new P.a),i.onScroll=i._onScroll.event,e.style.overflow="hidden",i._options=Q(t),i._scrollable=n,i._register(i._scrollable.onScroll((function(e){i._onDidScroll(e),i._onScroll.fire(e)})));var o={onMouseWheel:function(e){return i._onMouseWheel(e)},onDragStart:function(){return i._onDragStart()},onDragEnd:function(){return i._onDragEnd()}};return i._verticalScrollbar=i._register(new M(i._scrollable,i._options,o)),i._horizontalScrollbar=i._register(new N(i._scrollable,i._options,o)),i._domNode=document.createElement("div"),i._domNode.className="monaco-scrollable-element "+i._options.className,i._domNode.setAttribute("role","presentation"),i._domNode.style.position="relative",i._domNode.style.overflow="hidden",i._domNode.appendChild(e),i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode),i._domNode.appendChild(i._verticalScrollbar.domNode.domNode),i._options.useShadows?(i._leftShadowDomNode=Object(a.b)(document.createElement("div")),i._leftShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._leftShadowDomNode.domNode),i._topShadowDomNode=Object(a.b)(document.createElement("div")),i._topShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._topShadowDomNode.domNode),i._topLeftShadowDomNode=Object(a.b)(document.createElement("div")),i._topLeftShadowDomNode.setClassName("shadow top-left-corner"),i._domNode.appendChild(i._topLeftShadowDomNode.domNode)):(i._leftShadowDomNode=null,i._topShadowDomNode=null,i._topLeftShadowDomNode=null),i._listenOnDomNode=i._options.listenOnDomNode||i._domNode,i._mouseWheelToDispose=[],i._setListeningToMouseWheel(i._options.handleMouseWheel),i.onmouseover(i._listenOnDomNode,(function(e){return i._onMouseOver(e)})),i.onnonbubblingmouseout(i._listenOnDomNode,(function(e){return i._onMouseOut(e)})),i._hideTimeout=i._register(new d.e),i._isDragging=!1,i._mouseIsOver=!1,i._shouldRender=!0,i._revealOnScroll=!0,i}var U,K=(F(q,U=H),q.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},q.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},q);function q(e,t){var n=this;(t=t||{}).mouseWheelSmoothScroll=!1;var i=new R.a(0,(function(e){return s.W(e)}));return(n=U.call(this,e,t,i)||this)._register(i),n}var G,Y=(F(Z,G=H),Z);function Z(e,t,n){return G.call(this,e,t,n)||this}var X,$=(F(J,X=K),J.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})},J);function J(e,t){var n=X.call(this,e,t)||this;return n._element=e,n.onScroll((function(e){e.scrollTopChanged&&(n._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(n._element.scrollLeft=e.scrollLeft)})),n.scanDomNode(),n}function Q(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,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,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,C.e&&(t.className+=" mac"),t}},,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"e",(function(){return v}));var i,o,r,s,a=(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)}),l={done:!0,value:void 0};r=o=o||{},s={next:function(){return l}},r.empty=function(){return s},r.single=function(e){var t=!1;return{next:function(){return t?l:{done:!(t=!0),value:e}}}},r.fromArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return n<=t?l:{done:!1,value:e[t++]}}}},r.fromNativeIterator=function(e){return{next:function(){var t=e.next();return t.done?l:{done:!1,value:t.value}}}},r.from=function(e){return e?Array.isArray(e)?r.fromArray(e):e:r.empty()},r.map=function(e,t){return{next:function(){var n=e.next();return n.done?l:{done:!1,value:t(n.value)}}}},r.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return l;if(t(n.value))return{done:!1,value:n.value}}}}},r.forEach=function(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)},r.collect=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var i=0,o=e.next();!o.done&&(n.push(o.value),!(++i>=t));o=e.next());return n},r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return l;var t=e[n].next();return t.done?(n++,this.next()):t}}},r.chain=function(e){return new u(e)};var u=(c.prototype.next=function(){return this.it.next()},c);function c(e){this.it=e}function d(e){return Array.isArray(e)?o.fromArray(e):e||o.empty()}var h=(p.prototype.first=function(){return this.index=this.start,this.current()},p.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},p.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},p);function p(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}var f,g=(a(m,f=h),m.prototype.current=function(){return f.prototype.current.call(this)},m.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},m.prototype.first=function(){return this.index=this.start,this.current()},m.prototype.last=function(){return this.index=this.end-1,this.current()},m.prototype.parent=function(){return null},m);function m(e,t,n,i){return void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),f.call(this,e,t,n,i)||this}var v=(_.prototype.next=function(){return this.fn(this.iterator.next())},_);function _(e,t){this.iterator=e,this.fn=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(478),o=n(548),r=n(452),s=new Array(230),a=new Array(112);!function(){for(var e=0;e<a.length;e++)a[e]=-1;function t(e,t){s[e]=t,a[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),i.i?t(91,57):i.h?(t(59,80),t(107,81),t(109,83),r.e&&t(224,57)):i.m&&(t(91,57),r.e?t(93,57):t(92,57))}();var l=r.e?256:2048,u=r.e?2048:256,c=(d.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},d.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},d.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},d.prototype.equals=function(e){return this._asKeybinding===e},d.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|=l),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=u),t|e},d.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},d);function d(e){this._standardKeyboardEventBrand=!0;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 o.b.fromString(t)}return s[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()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return h}));var i,o,r,s=n(459),a=n(439),l=n(443),u=n(881),c=(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)});(r=o=o||{}).Tap="-monaco-gesturetap",r.Change="-monaco-gesturechange",r.Start="-monaco-gesturestart",r.End="-monaco-gesturesend",r.Contextmenu="-monaco-gesturecontextmenu";var d,h=(c(p,d=a.a),p.addTarget=function(e){return p.isTouchDevice()?(p.INSTANCE||(p.INSTANCE=new p),p.INSTANCE.targets.push(e),{dispose:function(){p.INSTANCE.targets=p.INSTANCE.targets.filter((function(t){return t!==e}))}}):a.a.None},p.ignoreTarget=function(e){return p.isTouchDevice()?(p.INSTANCE||(p.INSTANCE=new p),p.INSTANCE.ignoreTargets.push(e),{dispose:function(){p.INSTANCE.ignoreTargets=p.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):a.a.None},p.isTouchDevice=function(){return"ontouchstart"in window||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},p.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),d.prototype.dispose.call(this)},p.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 r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};var s=this.newGestureEvent(o.Start,r.target);s.pageX=r.pageX,s.pageY=r.pageY,this.dispatchEvent(s)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.prototype.onTouchEnd=function(e){for(var t=Date.now(),n=Object.keys(this.activeTouches).length,i=function(i){var a=e.changedTouches.item(i);if(!r.activeTouches.hasOwnProperty(String(a.identifier)))return"continue";var l=r.activeTouches[a.identifier],u=Date.now()-l.initialTimeStamp;if(u<p.HOLD_DELAY&&Math.abs(l.initialPageX-s.v(l.rollingPageX))<30&&Math.abs(l.initialPageY-s.v(l.rollingPageY))<30)(c=r.newGestureEvent(o.Tap,l.initialTarget)).pageX=s.v(l.rollingPageX),c.pageY=s.v(l.rollingPageY),r.dispatchEvent(c);else if(p.HOLD_DELAY<=u&&Math.abs(l.initialPageX-s.v(l.rollingPageX))<30&&Math.abs(l.initialPageY-s.v(l.rollingPageY))<30){var c;(c=r.newGestureEvent(o.Contextmenu,l.initialTarget)).pageX=s.v(l.rollingPageX),c.pageY=s.v(l.rollingPageY),r.dispatchEvent(c)}else if(1===n){var d=s.v(l.rollingPageX),h=s.v(l.rollingPageY),f=s.v(l.rollingTimestamps)-l.rollingTimestamps[0],g=d-l.rollingPageX[0],m=h-l.rollingPageY[0],v=r.targets.filter((function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)}));r.inertia(v,t,Math.abs(g)/f,0<g?1:-1,d,Math.abs(m)/f,0<m?1:-1,h)}r.dispatchEvent(r.newGestureEvent(o.End,l.initialTarget)),delete r.activeTouches[a.identifier]},r=this,a=0,l=e.changedTouches.length;a<l;a++)i(a);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n},p.prototype.dispatchEvent=function(e){var t=this;if(e.type===o.Tap){var n,i=(new Date).getTime();n=i-this._lastSetTapCountTime>p.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=i,e.tapCount=n}else e.type!==o.Change&&e.type!==o.Contextmenu||(this._lastSetTapCountTime=0);for(var r=0;r<this.ignoreTargets.length;r++)if(e.initialTarget instanceof Node&&this.ignoreTargets[r].contains(e.initialTarget))return;this.targets.forEach((function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)}))},p.prototype.inertia=function(e,t,n,i,r,s,a,u){var c=this;this.handle=l.W((function(){var l=Date.now(),d=l-t,h=0,f=0,g=!0;0<(n+=p.SCROLL_FRICTION*d)&&(g=!1,h=i*n*d),0<(s+=p.SCROLL_FRICTION*d)&&(g=!1,f=a*s*d);var m=c.newGestureEvent(o.Change);m.translationX=h,m.translationY=f,e.forEach((function(e){return e.dispatchEvent(m)})),g||c.inertia(e,l,n,i,r+h,s,a,u+f)}))},p.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n<i;n++){var r=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(r.identifier))){var a=this.activeTouches[r.identifier],l=this.newGestureEvent(o.Change,a.initialTarget);l.translationX=r.pageX-s.v(a.rollingPageX),l.translationY=r.pageY-s.v(a.rollingPageY),l.pageX=r.pageX,l.pageY=r.pageY,this.dispatchEvent(l),3<a.rollingPageX.length&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(r.pageX),a.rollingPageY.push(r.pageY),a.rollingTimestamps.push(t)}}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},p.SCROLL_FRICTION=-.005,p.HOLD_DELAY=700,p.CLEAR_TAP_COUNT_TIME=400,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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);3<r&&s&&Object.defineProperty(t,n,s)}([u.a],p,"isTouchDevice",null),p);function p(){var e=d.call(this)||this;return e.dispatched=!1,e.activeTouches={},e.handle=null,e.targets=[],e.ignoreTargets=[],e._lastSetTapCountTime=0,e._register(l.j(document,"touchstart",(function(t){return e.onTouchStart(t)}))),e._register(l.j(document,"touchend",(function(t){return e.onTouchEnd(t)}))),e._register(l.j(document,"touchmove",(function(t){return e.onTouchMove(t)}))),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var i,o,r=n(439),s=n(442),a=(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)}),l=(a(u,o=r.a),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),u.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(u.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),u.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(u.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),u.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(u.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),u.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(u.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),u.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},u.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},u);function u(e,t,n,i,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=!0);var a=o.call(this)||this;return a._onDidChange=a._register(new s.a),a.onDidChange=a._onDidChange.event,a._enabled=!0,a._checked=!1,a._id=e,a._label=t,a._cssClass=n,a._enabled=i,a._actionCallback=r,a}var c,d=(a(h,c=r.a),h.prototype.run=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(o){switch(o.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=o.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return i=o.sent(),this._onDidRun.fire({action:e,error:i}),[3,4];case 4:return[2]}}))}))},h.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},h);function h(){var e=null!==c&&c.apply(this,arguments)||this;return e._onDidBeforeRun=e._register(new s.a),e.onDidBeforeRun=e._onDidBeforeRun.event,e._onDidRun=e._register(new s.a),e.onDidRun=e._onDidRun.event,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(440),o=(r.insert=function(e,t){return{range:new i.a(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},r.delete=function(e){return{range:e,text:null}},r.replace=function(e,t){return{range:e,text:t}},r.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},r);function r(){}},,,function(e,t,n){"use strict";var i=n(478),o=n(442),r=n(439),s=n(452),a=(l.prototype.fulfill=function(e){this.width=e},l);function l(e,t){this.chr=e,this.type=t,this.width=0}var u=(c.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},c.prototype._createDomElements=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";var t=document.createElement("div");t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t);var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight="bold",n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",e.appendChild(i);for(var o=[],r=0,s=this._requests;r<s.length;r++){var a=s[r],l=void 0;0===a.type&&(l=t),2===a.type&&(l=n),1===a.type&&(l=i),l.appendChild(document.createElement("br"));var u=document.createElement("span");c._render(u,a),l.appendChild(u),o.push(u)}this._container=e,this._testElements=o},c._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}},c.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)}},c);function c(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}var d=n(1087),h=n(945),p=n(530),f=n(946);n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return O}));var g,m=(g=function(e,t){return(g=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}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(_.prototype.has=function(e){var t=e.getId();return!!this._values[t]},_.prototype.get=function(e){var t=e.getId();return this._values[t]},_.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},_.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},_.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))},_);function _(){this._keys=Object.create(null),this._values=Object.create(null)}function b(){C.INSTANCE.clearCache()}var y,C=(m(w,y=r.a),w.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),y.prototype.dispose.call(this)},w.prototype.clearCache=function(){this._cache=new v,this._onDidChange.fire()},w.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))},w.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()},w.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var t=w._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new f.b({zoomLevel:i.c(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)},w.createRequest=function(e,t,n,i){var o=new a(e,t);return n.push(o),i&&i.push(o),o},w._actualReadConfiguration=function(e){var t=[],n=[],o=this.createRequest("n",0,t,n),r=this.createRequest("\uff4d",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),l=this.createRequest("1",0,t,n),c=this.createRequest("2",0,t,n),d=this.createRequest("3",0,t,n),h=this.createRequest("4",0,t,n),g=this.createRequest("5",0,t,n),m=this.createRequest("6",0,t,n),v=this.createRequest("7",0,t,n),_=this.createRequest("8",0,t,n),b=this.createRequest("9",0,t,n),y=this.createRequest("\u2192",0,t,n),C=this.createRequest("\uffeb",0,t,null),w=this.createRequest("\xb7",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),new u(e,t).read();for(var S=Math.max(a.width,l.width,c.width,d.width,h.width,g.width,m.width,v.width,_.width,b.width),O=e.fontFeatureSettings===p.d.OFF,L=n[0].width,D=1,x=n.length;O&&D<x;D++){var N=L-n[D].width;if(N<-.001||.001<N){O=!1;break}}var k=!0;O&&C.width!==L&&(k=!1),C.width>y.width&&(k=!1);var E=2e3<i.b();return new f.b({zoomLevel:i.c(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:s.width,middotWidth:w.width,maxDigitWidth:S},E)},w.INSTANCE=new w,w);function w(){var e=y.call(this)||this;return e._onDidChange=e._register(new o.a),e.onDidChange=e._onDidChange.event,e._cache=new v,e._evictUntrustedReadingsTimeout=-1,e}var S,O=(m(L,S=h.a),L.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},L.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},L.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},L.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},L.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},L.prototype.dispose=function(){S.prototype.dispose.call(this)},L.prototype._getExtraEditorClassName=function(){var e="";return i.k||i.n||(e+="no-user-select "),s.e&&(e+="mac "),e},L.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i.m||i.h,pixelRatio:i.a(),zoomLevel:i.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},L.prototype.readConfiguration=function(e){return C.INSTANCE.readConfiguration(e)},L);function L(e,t,n,o){void 0===n&&(n=null);var r=S.call(this,e,t)||this;return r.accessibilityService=o,r._elementSizeObserver=r._register(new d.a(n,t.dimension,(function(){return r._onReferenceDomElementSizeChanged()}))),r._register(C.INSTANCE.onDidChange((function(){return r._onCSSBasedConfigurationChanged()}))),r._validatedOptions.get(9)&&r._elementSizeObserver.startObserving(),r._register(i.o((function(e){return r._recomputeOptions()}))),r._register(r.accessibilityService.onDidChangeScreenReaderOptimized((function(){return r._recomputeOptions()}))),r._recomputeOptions(),r}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"f",(function(){return g}));var i,o,r,s,a,l,u,c,d,h,p,f,g,m=n(445);(o=i=i||{}).noSelection=m.a("noSelection","No selection"),o.singleSelectionRange=m.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=m.a("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=m.a("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=m.a("multiSelection","{0} selections"),o.emergencyConfOn=m.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=m.a("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=m.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=m.a("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=m.a("readonlyEditor"," in a read-only code editor"),o.editableEditor=m.a("editableEditor"," in a code editor"),o.changeConfigToOnMac=m.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=m.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=m.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=m.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=m.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=m.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=m.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=m.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=m.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=m.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=m.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=m.a("showAccessibilityHelpAction","Show Accessibility Help"),(r||(r={})).inspectTokensAction=m.a("inspectTokens","Developer: Inspect Tokens"),(a=s=s||{}).gotoLineLabelValidLineAndColumn=m.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),a.gotoLineLabelValidLine=m.a("gotoLineLabelValidLine","Go to line {0}"),a.gotoLineLabelEmptyWithLineLimit=m.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),a.gotoLineLabelEmptyWithLineAndColumnLimit=m.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),a.gotoLineAriaLabel=m.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),a.gotoLineActionInput=m.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),a.gotoLineActionLabel=m.a("gotoLineActionLabel","Go to Line..."),(u=l=l||{}).ariaLabelEntryWithKey=m.a("ariaLabelEntryWithKey","{0}, {1}, commands"),u.ariaLabelEntry=m.a("ariaLabelEntry","{0}, commands"),u.quickCommandActionInput=m.a("quickCommandActionInput","Type the name of an action you want to execute"),u.quickCommandActionLabel=m.a("quickCommandActionLabel","Command Palette"),(d=c=c||{}).entryAriaLabel=m.a("entryAriaLabel","{0}, symbols"),d.quickOutlineActionInput=m.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),d.quickOutlineActionLabel=m.a("quickOutlineActionLabel","Go to Symbol..."),d._symbols_=m.a("symbols","symbols ({0})"),d._modules_=m.a("modules","modules ({0})"),d._class_=m.a("class","classes ({0})"),d._interface_=m.a("interface","interfaces ({0})"),d._method_=m.a("method","methods ({0})"),d._function_=m.a("function","functions ({0})"),d._property_=m.a("property","properties ({0})"),d._variable_=m.a("variable","variables ({0})"),d._variable2_=m.a("variable2","variables ({0})"),d._constructor_=m.a("_constructor","constructors ({0})"),d._call_=m.a("call","calls ({0})"),(p=h=h||{}).editorViewAccessibleLabel=m.a("editorViewAccessibleLabel","Editor content"),p.accessibilityHelpMessageIE=m.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),p.accessibilityHelpMessage=m.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(f||(f={})).toggleHighContrast=m.a("toggleHighContrast","Toggle High Contrast Theme"),(g||(g={})).bulkEditServiceSummary=m.a("bulkEditServiceSummary","Made {0} edits in {1} files")},function(e,t,n){"use strict";n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return C})),n.d(t,"b",(function(){return O}));var i,o=n(703),r=n(448),s=n(456),a=n(489),l=n(442),u=(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)}),c=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){return function(n,i){t(n,i,e)}},h=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function p(e){return void 0!==e.command}var f=Object(r.c)("menuService"),g=(m.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},m.prototype.getCommand=function(e){return this._commands.get(e)},m.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},m.prototype.appendMenuItem=function(e,t){var n=this,i=this._menuItems.get(e);return i?i.push(t):(i=[t],this._menuItems.set(e,i)),this._onDidChangeMenu.fire(e),{dispose:function(){var o=i.indexOf(t);0<=o&&(i.splice(o,1),n._onDidChangeMenu.fire(e))}}},m.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},m.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,i=e.filter((function(e){return p(e)}));n<i.length;n++){var o=i[n],r=o.command,s=o.alt;t.add(r.id),s&&t.add(s.id)}this._commands.forEach((function(n,i){t.has(i)||e.push({command:n})}))},new m);function m(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new l.a,this.onDidChangeMenu=this._onDidChangeMenu.event}var v,_=(u(b,v=o.a),b.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,h([this.id],t))},b=c([d(2,a.b)],b));function b(e,t,n){var i=v.call(this,e,t)||this;return i._commandService=n,i}var y,C=(u(w,y=o.a),w);function w(e){var t=this;return(t="string"==typeof e.title?y.call(this,"",e.title,"submenu")||this:y.call(this,"",e.title.value,"submenu")||this).item=e,t}var S,O=(u(L,S=_),L.prototype.dispose=function(){this.alt&&this.alt.dispose(),S.prototype.dispose.call(this)},L.prototype.run=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[];return this._options.arg&&(n=h(n,[this._options.arg])),this._options.shouldForwardArgs&&(n=h(n,e)),S.prototype.run.apply(this,n)},L=c([d(3,s.c),d(4,a.b)],L));function L(e,t,n,i,o){var r=this;return(r="string"==typeof e.title?S.call(this,e.id,e.title,o)||this:S.call(this,e.id,e.title.value,o)||this)._cssClass=void 0,r._enabled=!e.precondition||i.contextMatchesRules(e.precondition),r._checked=Boolean(e.toggled&&i.contextMatchesRules(e.toggled)),r._options=n||{},r.item=e,r.alt=t?new L(t,void 0,r._options,i,o):void 0,r}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return c}));var i=n(884),o=n(454);function r(){}var s=new(r.prototype.clone=function(){return this},r.prototype.equals=function(e){return this===e},r),a="vs.editor.nullMode",l=new o.r(a,0);function u(e,t,n,o){return new i.b([new i.a(o,"",e)],n)}function c(e,t,n,o){var r=new Uint32Array(2);return r[0]=o,r[1]=(e<<0|16384|2<<23)>>>0,new i.c(r,null===n?s:n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n(448),o=Object(i.c)("contextViewService"),r=Object(i.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("editorWorkerService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var i=n(448),o=n(456),r=Object(i.c)("accessibilityService"),s=new o.d("accessibilityModeEnabled",!1)},function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return j}));var i=n(553),o=n(444);function r(){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 s=function(e,t,n){return!n||n.length<t.length?null:(e?o.O(n,t):0===n.indexOf(t))?0<t.length?[{start:0,end:t.length}]:[]:null}.bind(void 0,!0);function a(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function u(e){return 48<=e&&e<=57}var c=new Set;function d(e){return a(e)||l(e)||u(e)}function h(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function p(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(l(i)||u(i)||0<n&&!d(e.charCodeAt(n-1)))return n}return e.length}function f(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=f(e,t,n+1,i+1);!o&&(r=p(t,r))<t.length;)o=f(e,t,n+1,r),r++;return null===o?null:h({start:i,end:i+1},o)}function g(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)l(o=e.charCodeAt(s))&&n++,a(o)&&i++,32!==(t=o)&&9!==t&&10!==t&&13!==t||r++;return 0!==n&&0!==i||0!==r?n<=5:e.length<=30}(e))return null;if(60<t.length)return null;var n,i,o,r,s,c,h,g=function(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)l(r=e.charCodeAt(s))&&t++,a(r)&&n++,d(r)&&i++,u(r)&&o++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:i/e.length,numericPercent:o/e.length}}(t);if(r=(o=g).upperPercent,s=o.lowerPercent,c=o.alphaPercent,h=o.numericPercent,!(.2<s&&r<.8&&.6<c&&h<.2)){if(i=(n=g).upperPercent,!(0===n.lowerPercent&&.6<i))return null;t=t.toLowerCase()}var m=null,v=0;for(e=e.toLowerCase();v<t.length&&null===(m=f(e,t,0,v));)v=p(t,v+1);return m}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((function(e){return c.add(e.charCodeAt(0))}));var m=r(s,g,(function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]})),v=r(s,g,(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])return e(t,n,i,o+1);var r;return(r=e(t,n,i+1,o+1))?h({start:o,end:o+1},r):null}(e.toLowerCase(),t.toLowerCase(),0,0)})),_=new i.a(1e4);function b(e,t,n){if(void 0===n&&(n=!1),"string"!=typeof e||"string"!=typeof t)return null;var i=_.get(e);i||(i=new RegExp(o.k(e),"i"),_.set(e,i));var r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:(n?v:m)(e,t)}function y(e,t,n,i,o,r){var s=I(e,t,0,i,o,0,!0);if(s)return s;for(var a=0,l=0,u=r,c=0;c<t.length&&c<w;++c){var d=o.indexOf(t.charAt(c),u);if(0<=d)l+=1,a+=Math.pow(2,d),u=d+1;else if(0!==a)break}return[l,a,r]}function C(e){if(void 0===e)return[];for(var t=e[1].toString(2),n=[],i=e[2];i<w;i++)if("1"===t[t.length-(i+1)]){var o=n[n.length-1];o&&o.end===i?o.end=i+1:n.push({start:i,end:i+1})}return n}var w=128;function S(){for(var e=[],t=[0],n=1;n<=w;n++)t.push(-n);for(n=0;n<=w;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var O,L,D=S(),x=S(),N=S();function k(e,t){if(!(t<0||t>=e.length))switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return 1;default:return}}function E(e,t,n){return t[e]!==n[e]}function I(e,t,n,i,o,r,s){var a=e.length>w?w:e.length,l=i.length>w?w:i.length;if(!(a<=n||l<=r||l-r<a-n)&&function(e,t,n,i,o,r){for(;t<n&&o<r;)e[t]===i[o]&&(t+=1),o+=1;return t===n}(t,n,a,o,r,l)){var u=1,c=1,d=n,h=r;for(u=1,d=n;d<a;u++,d++)for(c=1,h=r;h<l;c++,h++){var p=M(e,t,d,n,i,o,h);x[u][c]=p;var f=D[u-1][c-1]+(1<p?1:p),g=D[u-1][c]+-1,m=D[u][c-1]+-1;g<=m?f<m?(D[u][c]=m,N[u][c]=4):m===f?(D[u][c]=m,N[u][c]=6):(D[u][c]=f,N[u][c]=2):f<g?(D[u][c]=g,N[u][c]=1):g===f?(D[u][c]=g,N[u][c]=3):(D[u][c]=f,N[u][c]=2)}if(T=0,A=r,F=s,function e(t,n,i,o,r){if(!(10<=T||i<-25)){for(var s=0;0<t&&0<n;){var a=x[t][n],l=N[t][n];if(4===l)--n,r?i-=5:0!==o&&--i,r=!1,s=0;else{if(!(2&l))return;if(4&l&&e(t,n-1,0!==o?i-1:i,o,r),i+=a,--t,--n,r=!0,o+=Math.pow(2,n+A),1===a){if(s+=1,0===t&&!F)return}else i+=1+s*(a-1),s=0}}T+=1,R<(i-=3<=n?9:3*n)&&(R=i,P=o)}}(u-1,c-1,a===l?1:0,0,!(R=-100)),0!==T)return[R,P,r]}}function M(e,t,n,i,o,r,s){return t[n]!==r[s]?-1:s!==n-i&&(!E(s,o,r)||0!==s&&E(s-1,o,r))?k(r,s)&&(0===s||!k(r,s-1))||k(r,s-1)||function(e,t){if(!(t<0||t>=e.length))switch(e.charCodeAt(t)){case 32:case 9:return 1;default:return}}(r,s-1)?5:1:e[n]===o[s]?7:5}(L=O=O||{}).Default=Object.freeze([-100,0,0]),L.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]};var T=0,P=0,R=0,A=0,F=!1;function j(e,t,n,i,o,r,s){return function(e,t,n,i,o,r,s,a){var l=I(e,t,n,i,o,r,a);if(3<=e.length)for(var u=Math.min(7,e.length-1),c=n+1;c<u;c++){var d=W(e,c);if(d){var h=I(d,d.toLowerCase(),n,i,o,r,a);h&&(h[0]-=3,(!l||h[0]>l[0])&&(l=h))}}return l}(e,t,n,i,o,r,0,s)}function W(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)}}},function(e,t,n){"use strict";var i,o=n(444),r=n(484),s=n(439),a=n(449),l=n(456),u=n(786),c=n(448),d=n(792),h=(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)}),p=Object(c.c)("IEditorCancelService"),f=new l.d("cancellableOperation",!1);function g(){this._tokens=new WeakMap}Object(d.b)(p,(g.prototype.add=function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){return{key:f.bindTo(e.get(l.c)),tokens:new u.a}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}},g.prototype.cancel=function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},g),!0);var m,v,_=(h(b,m=r.b),b.prototype.dispose=function(){this._unregister(),m.prototype.dispose.call(this)},b);function b(e,t){var n=m.call(this,t)||this;return n.editor=e,n._unregister=e.invokeWithinContext((function(t){return t.get(p).add(e,n)})),n}function y(){return v.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:f})||this}Object(a.g)((h(y,v=a.c),y.prototype.runEditorCommand=function(e,t){e.get(p).cancel(t)},new y)),n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return D})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return I}));var C,w=(C=function(e,t){return(C=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}C(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=(O.prototype._equals=function(e){if(!(e instanceof O))return!1;var t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))},O.prototype.validate=function(e){return this._equals(new O(e,this.flags))},O);function O(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?o.r("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}var L,D=(w(x,L=_),x.prototype.dispose=function(){this._listener.dispose(),L.prototype.dispose.call(this)},x);function x(e,t,n){var i=L.call(this,e,n)||this;return i.editor=e,i._listener=new s.b,4&t&&i._listener.add(e.onDidChangeCursorPosition((function(e){return i.cancel()}))),2&t&&i._listener.add(e.onDidChangeCursorSelection((function(e){return i.cancel()}))),8&t&&i._listener.add(e.onDidScrollChange((function(e){return i.cancel()}))),1&t&&(i._listener.add(e.onDidChangeModel((function(e){return i.cancel()}))),i._listener.add(e.onDidChangeModelContent((function(e){return i.cancel()})))),i}var N,k=(w(E,N=r.b),E.prototype.dispose=function(){this._listener.dispose(),N.prototype.dispose.call(this)},E);function E(e,t){var n=N.call(this,t)||this;return n._listener=e.onDidChangeContent((function(){return n.cancel()})),n}var I=(M.capture=function(e){var t=null,n=0;if(0!==e.getScrollTop()){var i=e.getVisibleRanges();if(0<i.length){t=i[0].getStartPosition();var o=e.getTopForPosition(t.lineNumber,t.column);n=e.getScrollTop()-o}}return new M(t,n)},M.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},M);function M(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return x})),n(1324);var i,o,r=n(452),s=n(445),a=n(439),l=n(703),u=n(443),c=n(465),d=n(702),h=n(701),p=n(442),f=n(888),g=n(478),m=(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)}),v=(m(_,o=a.a),_.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(_.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new l.b)),this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),_.prototype.getAction=function(){return this._action},_.prototype.isEnabled=function(){return this._action.enabled},_.prototype.setActionContext=function(e){this._context=e},_.prototype.render=function(e){var t=this,n=this.element=e;this._register(d.b.addTarget(e));var i=this.options&&this.options.draggable;i&&(e.draggable=!0,g.h&&this._register(u.j(e,u.d.DRAG_START,(function(e){var n;return null===(n=e.dataTransfer)||void 0===n?void 0:n.setData(f.a.TEXT,t._action.label)})))),this._register(u.j(n,d.a.Tap,(function(e){return t.onClick(e)}))),this._register(u.j(n,u.d.MOUSE_DOWN,(function(e){i||u.c.stop(e,!0),t._action.enabled&&0===e.button&&u.f(n,"active")}))),this._register(u.j(n,u.d.CLICK,(function(e){u.c.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):r.i((function(){return t.onClick(e)}))}))),this._register(u.j(n,u.d.DBLCLICK,(function(e){u.c.stop(e,!0)}))),[u.d.MOUSE_UP,u.d.MOUSE_OUT].forEach((function(e){t._register(u.j(n,e,(function(e){u.c.stop(e),u.P(n,"active")})))}))},_.prototype.onClick=function(e){var t;u.c.stop(e,!0),c.l(this._context)?t=e:(t=this._context,c.i(t)&&(t.event=e)),this.actionRunner.run(this._action,t)},_.prototype.focus=function(){this.element&&(this.element.focus(),u.f(this.element,"focused"))},_.prototype.blur=function(){this.element&&(this.element.blur(),u.P(this.element,"focused"))},_.prototype.updateEnabled=function(){},_.prototype.updateLabel=function(){},_.prototype.updateTooltip=function(){},_.prototype.updateClass=function(){},_.prototype.updateChecked=function(){},_.prototype.dispose=function(){this.element&&(u.R(this.element),this.element=void 0),o.prototype.dispose.call(this)},_);function _(e,t,n){var i=o.call(this)||this;return i.options=n,i._context=e||i,(i._action=t)instanceof l.a&&i._register(t.onDidChange((function(e){i.element&&i.handleActionChangeEvent(e)}))),i}var b,y=(m(C,b=l.a),C.ID="vs.actions.separator",C);function C(e){var t=b.call(this,C.ID,e,e?"separator text":"separator")||this;return t.checked=!1,t.enabled=!1,t}var w,S=(m(O,w=v),O.prototype.render=function(e){w.prototype.render.call(this,e),this.element&&(this.label=u.q(this.element,u.a("a.action-label"))),this.label&&(this._action.id===y.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(u.q(this.element,u.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},O.prototype.focus=function(){w.prototype.focus.call(this),this.label&&this.label.focus()},O.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},O.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=s.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)},O.prototype.updateClass=function(){this.cssClass&&this.label&&u.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(u.f(this.label,"codicon"),this.cssClass&&u.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&u.P(this.label,"codicon")},O.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),u.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&u.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),u.f(this.label,"disabled"),u.S(this.label)),this.element&&u.f(this.element,"disabled"))},O.prototype.updateChecked=function(){this.label&&(this.getAction().checked?u.f(this.label,"checked"):u.P(this.label,"checked"))},O);function O(e,t,n){void 0===n&&(n={});var i=w.call(this,e,t,n)||this;return i.options=n,i.options.icon=void 0!==n.icon&&n.icon,i.options.label=void 0===n.label||n.label,i.cssClass="",i}var L,D={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},x=(m(N,L=a.a),N.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},N.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(u.K(document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(N.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach((function(t){return t.setActionContext(e)}))},enumerable:!0,configurable:!0}),N.prototype.getContainer=function(){return this.domNode},N.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var i=Array.isArray(e)?e:[e],o=c.h(t.index)?t.index:null;i.forEach((function(e){var i,r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),n._register(u.j(r,u.d.CONTEXT_MENU,(function(e){e.preventDefault(),e.stopPropagation()}))),n.options.actionViewItemProvider&&(i=n.options.actionViewItemProvider(e)),(i=i||new S(n.context,e,t)).actionRunner=n._actionRunner,i.setActionContext(n.context),i.render(r),null===o||o<0||o>=n.actionsList.children.length?(n.actionsList.appendChild(r),n.viewItems.push(i)):(n.actionsList.insertBefore(r,n.actionsList.children[o]),n.viewItems.splice(o,0,i),o++)}))},N.prototype.clear=function(){this.viewItems=Object(a.f)(this.viewItems),u.t(this.actionsList)},N.prototype.isEmpty=function(){return 0===this.viewItems.length},N.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},N.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.viewItems.length-1);for(var e,t=this.focusedItem;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},N.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);for(var e,t=this.focusedItem;this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},N.prototype.updateFocus=function(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(var n=0;n<this.viewItems.length;n++){var i=this.viewItems[n];n===this.focusedItem?c.g(i.isEnabled)&&(i.isEnabled()&&c.g(i.focus)?i.focus(e):this.actionsList.focus({preventScroll:t})):c.g(i.blur)&&i.blur()}},N.prototype.doTrigger=function(e){if(void 0!==this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof v){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},N.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},N.prototype.run=function(e,t){return this._actionRunner.run(e,t)},N.prototype.dispose=function(){Object(a.f)(this.viewItems),this.viewItems=[],u.R(this.getContainer()),L.prototype.dispose.call(this)},N);function N(e,t){void 0===t&&(t=D);var n,i,o=L.call(this)||this;switch(o._onDidBlur=o._register(new p.a),o.onDidBlur=o._onDidBlur.event,o._onDidCancel=o._register(new p.a),o.onDidCancel=o._onDidCancel.event,o._onDidRun=o._register(new p.a),o.onDidRun=o._onDidRun.event,o._onDidBeforeRun=o._register(new p.a),o.onDidBeforeRun=o._onDidBeforeRun.event,o.options=t,o._context=t.context,o.options.triggerKeys||(o.options.triggerKeys=D.triggerKeys),o.options.actionRunner?o._actionRunner=o.options.actionRunner:(o._actionRunner=new l.b,o._register(o._actionRunner)),o._register(o._actionRunner.onDidRun((function(e){return o._onDidRun.fire(e)}))),o._register(o._actionRunner.onDidBeforeRun((function(e){return o._onDidBeforeRun.fire(e)}))),o.viewItems=[],o.focusedItem=void 0,o.domNode=document.createElement("div"),!(o.domNode.className="monaco-action-bar")!==t.animated&&u.f(o.domNode,"animated"),o.options.orientation){case 0:n=15,i=17;break;case 1:n=17,i=15,o.domNode.className+=" reverse";break;case 2:n=16,i=18,o.domNode.className+=" vertical";break;case 3:n=18,i=16,o.domNode.className+=" vertical reverse"}return o._register(u.j(o.domNode,u.d.KEY_DOWN,(function(e){var t=new h.a(e),r=!0;t.equals(n)?o.focusPrevious():t.equals(i)?o.focusNext():t.equals(9)?o.cancel():o.isTriggerKeyEvent(t)?o.options.triggerKeys&&o.options.triggerKeys.keyDown&&o.doTrigger(t):r=!1,r&&(t.preventDefault(),t.stopPropagation())}))),o._register(u.j(o.domNode,u.d.KEY_UP,(function(e){var t=new h.a(e);o.isTriggerKeyEvent(t)?(o.options.triggerKeys&&!o.options.triggerKeys.keyDown&&o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}))),o.focusTracker=o._register(u.Z(o.domNode)),o._register(o.focusTracker.onDidBlur((function(){document.activeElement!==o.domNode&&u.K(document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)}))),o._register(o.focusTracker.onDidFocus((function(){return o.updateFocusedItem()}))),o.actionsList=document.createElement("ul"),o.actionsList.className="actions-container",o.actionsList.setAttribute("role","toolbar"),o.options.ariaLabel&&o.actionsList.setAttribute("aria-label",o.options.ariaLabel),o.domNode.appendChild(o.actionsList),e.appendChild(o.domNode),o}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return h}));var i,o,r,s,a,l=n(448),u=n(445),c=n(889);function d(e,t){var n=[a];return e.source?n.push(e.source.replace("\xa6","\xa6")):n.push(a),e.code?"string"==typeof e.code?n.push(e.code.replace("\xa6","\xa6")):n.push(e.code.value.replace("\xa6","\xa6")):n.push(a),void 0!==e.severity&&null!==e.severity?n.push(i.toString(e.severity)):n.push(a),e.message&&t?n.push(e.message.replace("\xa6","\xa6")):n.push(a),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(a),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(a),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(a),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(a),n.push(a),n.join("\xa6")}(o=i=i||{})[o.Hint=1]="Hint",o[o.Info=2]="Info",o[o.Warning=4]="Warning",o[o.Error=8]="Error",function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=Object(u.a)("sev.error","Error"),t[e.Warning]=Object(u.a)("sev.warning","Warning"),t[e.Info]=Object(u.a)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case c.a.Error:return e.Error;case c.a.Warning:return e.Warning;case c.a.Info:return e.Info;case c.a.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return c.a.Error;case e.Warning:return c.a.Warning;case e.Info:return c.a.Info;case e.Hint:return c.a.Ignore}}}(i=i||{}),s=r=r||{},a="",s.makeKey=function(e){return d(e,!0)},s.makeKeyOptionalMessage=d;var h=Object(l.c)("markerService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("editorProgressService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return p}));var i,o,r,s=n(448),a=n(442),l=n(439),u=n(465),c=(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)}),d=Object(s.c)("storageService");(r=o=o||{})[r.NONE=0]="NONE",r[r.SHUTDOWN=1]="SHUTDOWN";var h,p=(c(f,h=l.a),f.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},f.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(u.l)(i)?n:i},f.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(u.l)(i)?n:"true"===i},f.prototype.store=function(e,t,n){if(Object(u.l)(t))return this.remove(e,n);var i=String(t);return this.getCache(n).get(e)===i||(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()},f.prototype.remove=function(e,t){return this.getCache(t).delete(e)&&this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()},f);function f(){var e=null!==h&&h.apply(this,arguments)||this;return e._onDidChangeStorage=e._register(new a.a),e.onDidChangeStorage=e._onDidChangeStorage.event,e._onWillSaveState=e._register(new a.a),e.onWillSaveState=e._onWillSaveState.event,e.globalCache=new Map,e.workspaceCache=new Map,e}},function(e,t,n){"use strict";function i(e){return e&&"string"==typeof e.id}n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var o={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},r={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return c}));var i=n(444),o=function(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i},r=function(e,t){this.tabSize=e,this.data=t},s=function(e,t,n,i,o,r){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=o,this.tokens=r},a=(l.isBasicASCII=function(e,t){return!t||i.v(e)},l.containsRTL=function(e,t,n){return!(t||!n)&&i.i(e)},l);function l(e,t,n,i,o,r,s,a,u,c){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=l.isBasicASCII(n,r),this.containsRTL=l.containsRTL(n,this.isBasicASCII,o),this.tokens=s,this.inlineDecorations=a,this.tabSize=u,this.startVisibleColumn=c}var u=function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n},c=function(e,t){this.range=e,this.options=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("modeService")},,,,,,,function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{getWorkerUrl:function(e,t){var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+i[t];if(/^(http:)|(https:)|(file:)/.test(r)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a)return"data:text/javascript;charset=utf-8,"+encodeURIComponent("/*"+t+'*/importScripts("'+r+'");')}return r}}),n(1159),n(1160),n(1256),n(1161),n(1162),n(1251),n(1004),n(1254),n(1257),n(927),n(1163),n(1258),n(1051),n(1248),n(1164),n(1252),n(1052),n(1165),n(1053),n(1005),n(1249),n(1166),n(1259),n(1167),n(1250),n(1260),n(1168),n(1253),n(1169),n(1255),n(1170),n(1261),n(1262),n(926),n(1247),n(1171),n(1003),n(1172),n(1173),n(1006),n(1174),e.exports=n(1401),n(1175),n(1176),n(1177),n(1178),n(1179),n(1180),n(1181),n(1182),n(1183),n(1184),n(1185),n(1186),n(1187),n(1188),n(1189),n(1190),n(1191),n(1192),n(1193),n(1194),n(1195),n(1196),n(1197),n(1198),n(1199),n(1200),n(1201),n(1202),n(1203),n(1204),n(1205),n(1206),n(1207),n(1208),n(1209),n(1210),n(1211),n(1212),n(1213),n(1214),n(1215),n(1216),n(1217),n(1218),n(1219),n(1220),n(1221),n(1222),n(1223),n(1224),n(1225),n(1226),n(1227),n(1228),n(1229),n(1230),n(1231),n(1232),n(1233),n(1234),n(1263),n(1235),n(1236),n(1237)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(700),o=(r.Undefined=new r(void 0),r);function r(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}var s=(Object.defineProperty(a.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),a.prototype.isEmpty=function(){return this._first===o.Undefined},a.prototype.clear=function(){this._first=o.Undefined,this._last=o.Undefined,this._size=0},a.prototype.unshift=function(e){return this._insert(e,!1)},a.prototype.push=function(e){return this._insert(e,!0)},a.prototype._insert=function(e,t){var n=this,i=new o(e);if(this._first===o.Undefined)this._first=i,this._last=i;else if(t){var r=this._last;((this._last=i).prev=r).next=i}else{var s=this._first;((this._first=i).next=s).prev=i}this._size+=1;var a=!1;return function(){a||(a=!0,n._remove(i))}},a.prototype.shift=function(){if(this._first!==o.Undefined){var e=this._first.element;return this._remove(this._first),e}},a.prototype.pop=function(){if(this._last!==o.Undefined){var e=this._last.element;return this._remove(this._last),e}},a.prototype._remove=function(e){if(e.prev!==o.Undefined&&e.next!==o.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===o.Undefined&&e.next===o.Undefined?(this._first=o.Undefined,this._last=o.Undefined):e.next===o.Undefined?(this._last=this._last.prev,this._last.next=o.Undefined):e.prev===o.Undefined&&(this._first=this._first.next,this._first.prev=o.Undefined);--this._size},a.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===o.Undefined?i.c:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},a.prototype.toArray=function(){for(var e=[],t=this._first;t!==o.Undefined;t=t.next)e.push(t.element);return e},a);function a(){this._first=o.Undefined,this._last=o.Undefined,this._size=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("textModelService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(548),o=n(452),r=n(489),s=n(571);function a(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}var l=new(a.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},a.prototype.registerKeybindingRule=function(e){var t=a.bindToCurrentPlatform(e);if(t&&t.primary&&(s=Object(i.f)(t.primary,o.a))&&this._registerDefaultKeybinding(s,e.id,e.args,e.weight,0,e.when),t&&Array.isArray(t.secondary))for(var n=0,r=t.secondary.length;n<r;n++){var s,l=t.secondary[n];(s=Object(i.f)(l,o.a))&&this._registerDefaultKeybinding(s,e.id,e.args,e.weight,-n-1,e.when)}},a.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),r.a.registerCommand(e)},a._mightProduceChar=function(e){return 21<=e&&e<=30||31<=e&&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},a.prototype._assertNoCtrlAlt=function(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&a._mightProduceChar(e.keyCode)},a.prototype._registerDefaultKeybinding=function(e,t,n,i,r,s){1===o.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:s,weight1:i,weight2:r}),this._cachedMergedKeybindings=null},a.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(u)),this._cachedMergedKeybindings.slice(0)},a);function u(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}s.a.add("platform.keybindingsRegistry",l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return y}));var i=n(445),o=n(442),r=n(571),s=n(465),a=n(1073),l=n(553),u={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},m="vscode://schemas/settings/resourceLanguage",v=r.a.as(a.a.JSONContribution),_=(b.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},b.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach((function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),v.registerSchema(m,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},b.prototype.registerOverrideIdentifiers=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];this.overrideIdentifiers.add(i)}this.updateOverridePropertyPatternKey()},b.prototype.validateAndRegisterProperties=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3),n=s.l(e.scope)?n:e.scope;var i=[],o=e.properties;if(o)for(var r in o)if(t&&S(r))delete o[r];else{var a=o[r],l=a.default;s.k(l)&&(a.default=C(a.type)),y.test(r)?a.scope=void 0:a.scope=s.l(a.scope)?n:a.scope,!o[r].hasOwnProperty("included")||o[r].included?(this.configurationProperties[r]=o[r],i.push(r)):(this.excludedConfigurationProperties[r]=o[r],delete o[r])}var u=e.allOf;if(u)for(var c=0,d=u;c<d.length;c++){var h=d[c];i.push.apply(i,this.validateAndRegisterProperties(h,t,n))}return i},b.prototype.getConfigurationProperties=function(){return this.configurationProperties},b.prototype.registerJSONConfiguration=function(e){var t=this;!function e(n){var i=n.properties;if(i)for(var o in i)switch(c.properties[o]=i[o],i[o].scope){case 1:d.properties[o]=i[o];break;case 2:h.properties[o]=i[o];break;case 6:p.properties[o]=i[o];break;case 3:f.properties[o]=i[o];break;case 4:g.properties[o]=i[o];break;case 5:g.properties[o]=i[o],t.resourceLanguageSettingsSchema.properties[o]=i[o]}var r=n.allOf;r&&r.forEach(e)}(e)},b.prototype.updateOverridePropertyPatternKey=function(){for(var e,t=0,n=Object(l.e)(this.overrideIdentifiers);t<n.length;t++){var o="["+n[t]+"]",r={type:"object",description:i.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:m,default:null===(e=this.defaultOverridesConfigurationNode.properties[o])||void 0===e?void 0:e.default};c.properties[o]=r,d.properties[o]=r,h.properties[o]=r,p.properties[o]=r,f.properties[o]=r,g.properties[o]=r}this._onDidSchemaChange.fire()},b);function b(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.a,this._onDidUpdateConfiguration=new o.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},v.registerSchema(m,this.resourceLanguageSettingsSchema)}var y=new RegExp("\\[.*\\]$");function C(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 w=new _;function S(e){return y.test(e)?i.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]&&i.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e)}r.a.add(u.Configuration,w)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(1074),o=(r._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},r.prototype.set=function(e,t){var n=Object(i.b)(t);0<=e&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},r.prototype.get=function(e){return 0<=e&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},r);function r(e){var t=Object(i.b)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}var s=(a.prototype.add=function(e){this._actual.set(e,1)},a.prototype.has=function(e){return 1===this._actual.get(e)},a);function a(){this._actual=new o(0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"win32",(function(){return v})),n.d(t,"posix",(function(){return _})),n.d(t,"normalize",(function(){return b})),n.d(t,"join",(function(){return y})),n.d(t,"relative",(function(){return C})),n.d(t,"dirname",(function(){return w})),n.d(t,"basename",(function(){return S})),n.d(t,"extname",(function(){return O})),n.d(t,"sep",(function(){return L}));var i,o,r=n(1321),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=47,l=92,u=(s(c,o=Error),c);function c(e,t,n){var i,r=this;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var s=-1!==e.indexOf(".")?"property":"argument",a='The "'+e+'" '+s+" "+i+" of type "+t;return a+=". Received type "+typeof n,(r=o.call(this,a)||this).code="ERR_INVALID_ARG_TYPE",r}function d(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function h(e){return e===a||e===l}function p(e){return e===a}function f(e){return 65<=e&&e<=90||97<=e&&e<=122}function g(e,t,n,i){for(var o,r="",s=0,l=-1,u=0,c=0;c<=e.length;++c){if(c<e.length)o=e.charCodeAt(c);else{if(i(o))break;o=a}if(i(o)){if(l!==c-1&&1!==u)if(l!==c-1&&2===u){if(r.length<2||2!==s||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(2<r.length){var d=r.lastIndexOf(n);s=-1===d?(r="",0):(r=r.slice(0,d)).length-1-r.lastIndexOf(n),l=c,u=0;continue}if(2===r.length||1===r.length){r="",l=c,u=s=0;continue}}t&&(0<r.length?r+=n+"..":r="..",s=2)}else 0<r.length?r+=n+e.slice(l+1,c):r=e.slice(l+1,c),s=c-l-1;l=c,u=0}else 46===o&&-1!==u?++u:u=-1}return r}function m(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}var v={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i="",o=!1,s=e.length-1;-1<=s;s--){var a=void 0;if(0<=s?a=e[s]:n?void 0!==(a=r.b["="+n]||r.a())&&a.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(a=n+"\\"):a=r.a(),d(a,"path"),0!==a.length){var l=a.length,u=0,c="",p=!1,m=a.charCodeAt(0);if(1<l)if(h(m))if(p=!0,h(a.charCodeAt(1))){for(var v=2,_=v;v<l&&!h(a.charCodeAt(v));++v);if(v<l&&v!==_){var b=a.slice(_,v);for(_=v;v<l&&h(a.charCodeAt(v));++v);if(v<l&&v!==_){for(_=v;v<l&&!h(a.charCodeAt(v));++v);v===l?(c="\\\\"+b+"\\"+a.slice(_),u=v):v!==_&&(c="\\\\"+b+"\\"+a.slice(_,v),u=v)}}}else u=1;else f(m)&&58===a.charCodeAt(1)&&(c=a.slice(0,2),(u=2)<l&&h(a.charCodeAt(2))&&(p=!0,u=3));else h(m)&&(u=1,p=!0);if(!(0<c.length&&0<n.length&&c.toLowerCase()!==n.toLowerCase())&&(0===n.length&&0<c.length&&(n=c),o||(i=a.slice(u)+"\\"+i,o=p),0<n.length&&o))break}}return n+(o?"\\":"")+(i=g(i,!o,"\\",h))||"."},normalize:function(e){d(e,"path");var t=e.length;if(0===t)return".";var n,i,o=0,r=!1,s=e.charCodeAt(0);if(1<t)if(h(s))if(r=!0,h(e.charCodeAt(1))){for(var a=2,l=a;a<t&&!h(e.charCodeAt(a));++a);if(a<t&&a!==l){var u=e.slice(l,a);for(l=a;a<t&&h(e.charCodeAt(a));++a);if(a<t&&a!==l){for(l=a;a<t&&!h(e.charCodeAt(a));++a);if(a===t)return"\\\\"+u+"\\"+e.slice(l)+"\\";a!==l&&(n="\\\\"+u+"\\"+e.slice(l,a),o=a)}}}else o=1;else f(s)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),(o=2)<t&&h(e.charCodeAt(2))&&(r=!0,o=3));else if(h(s))return"\\";return 0!==(i=o<t?g(e.slice(o),!r,"\\",h):"").length||r||(i="."),0<i.length&&h(e.charCodeAt(t-1))&&(i+="\\"),void 0===n?r?0<i.length?"\\"+i:"\\":0<i.length?i:"":r?0<i.length?n+"\\"+i:n+"\\":0<i.length?n+i:n},isAbsolute:function(e){d(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!h(n)||!!(f(n)&&2<t&&58===e.charCodeAt(1)&&h(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(0===n.length)return".";for(var o=0;o<n.length;++o){var r=n[o];d(r,"path"),0<r.length&&(void 0===e?e=t=r:e+="\\"+r)}if(void 0===e)return".";var s=!0,a=0;if("string"==typeof t&&h(t.charCodeAt(0))){++a;var l=t.length;1<l&&h(t.charCodeAt(1))&&(++a,2<l&&(h(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a<e.length&&h(e.charCodeAt(a));++a);2<=a&&(e="\\"+e.slice(a))}return v.normalize(e)},relative:function(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";var n=v.resolve(e),i=v.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";for(var o=0;o<e.length&&e.charCodeAt(o)===l;++o);for(var r=e.length;o<r-1&&e.charCodeAt(r-1)===l;--r);for(var s=r-o,a=0;a<t.length&&t.charCodeAt(a)===l;++a);for(var u=t.length;a<u-1&&t.charCodeAt(u-1)===l;--u);for(var c=u-a,h=s<c?s:c,p=-1,f=0;f<=h;++f){if(f===h){if(h<c){if(t.charCodeAt(a+f)===l)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}h<s&&(e.charCodeAt(o+f)===l?p=f:2===f&&(p=3));break}var g=e.charCodeAt(o+f);if(g!==t.charCodeAt(a+f))break;g===l&&(p=f)}if(f!==h&&-1===p)return i;var m="";for(-1===p&&(p=0),f=o+p+1;f<=r;++f)f!==r&&e.charCodeAt(f)!==l||(0===m.length?m+="..":m+="\\..");return 0<m.length?m+i.slice(a+p,u):(a+=p,i.charCodeAt(a)===l&&++a,i.slice(a,u))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=v.resolve(e);if(3<=t.length)if(t.charCodeAt(0)===l){if(t.charCodeAt(1)===l){var n=t.charCodeAt(2);if(63!==n&&46!==n)return"\\\\?\\UNC\\"+t.slice(2)}}else if(f(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===l)return"\\\\?\\"+t;return e},dirname:function(e){d(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=-1,o=!0,r=0,s=e.charCodeAt(0);if(1<t)if(h(s)){if(n=r=1,h(e.charCodeAt(1))){for(var a=2,l=a;a<t&&!h(e.charCodeAt(a));++a);if(a<t&&a!==l){for(l=a;a<t&&h(e.charCodeAt(a));++a);if(a<t&&a!==l){for(l=a;a<t&&!h(e.charCodeAt(a));++a);if(a===t)return e;a!==l&&(n=r=a+1)}}}}else f(s)&&58===e.charCodeAt(1)&&(n=r=2,2<t&&h(e.charCodeAt(2))&&(n=r=3));else if(h(s))return e;for(var u=t-1;r<=u;--u)if(h(e.charCodeAt(u))){if(!o){i=u;break}}else o=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename:function(e,t){void 0!==t&&d(t,"ext"),d(e,"path");var n,i=0,o=-1,r=!0;if(2<=e.length&&f(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2),void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;i<=n;--n){var l=e.charCodeAt(n);if(h(l)){if(!r){i=n+1;break}}else-1===a&&(r=!1,a=n+1),0<=s&&(l===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=a))}return i===o?o=a:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;i<=n;--n)if(h(e.charCodeAt(n))){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){d(e,"path");var t=0,n=-1,i=0,o=-1,r=!0,s=0;2<=e.length&&58===e.charCodeAt(1)&&f(e.charCodeAt(0))&&(t=i=2);for(var a=e.length-1;t<=a;--a){var l=e.charCodeAt(a);if(h(l)){if(r)continue;i=a+1;break}-1===o&&(r=!1,o=a+1),46===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===i+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("\\",e)},parse:function(e){d(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,o=e.charCodeAt(0);if(1<n){if(h(o)){if(i=1,h(e.charCodeAt(1))){for(var r=2,s=r;r<n&&!h(e.charCodeAt(r));++r);if(r<n&&r!==s){for(s=r;r<n&&h(e.charCodeAt(r));++r);if(r<n&&r!==s){for(s=r;r<n&&!h(e.charCodeAt(r));++r);r===n?i=r:r!==s&&(i=r+1)}}}}else if(f(o)&&58===e.charCodeAt(1)){if(!((i=2)<n))return t.root=t.dir=e,t;if(h(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(h(o))return t.root=t.dir=e,t;0<i&&(t.root=e.slice(0,i));for(var a=-1,l=i,u=-1,c=!0,p=e.length-1,g=0;i<=p;--p){if(h(o=e.charCodeAt(p))){if(c)continue;l=p+1;break}-1===u&&(c=!1,u=p+1),46===o?-1===a?a=p:1!==g&&(g=1):-1!==a&&(g=-1)}return-1===a||-1===u||0===g||1===g&&a===u-1&&a===l+1?-1!==u&&(t.base=t.name=e.slice(l,u)):(t.name=e.slice(l,a),t.base=e.slice(l,u),t.ext=e.slice(a,u)),t.dir=0<l&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},_={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i=!1,o=e.length-1;-1<=o&&!i;o--){var s=void 0;d(s=0<=o?e[o]:r.a(),"path"),0!==s.length&&(n=s+"/"+n,i=s.charCodeAt(0)===a)}return n=g(n,!i,"/",p),i?0<n.length?"/"+n:"/":0<n.length?n:"."},normalize:function(e){if(d(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===a,n=e.charCodeAt(e.length-1)===a;return 0!==(e=g(e,!t,"/",p)).length||t||(e="."),0<e.length&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return d(e,"path"),0<e.length&&e.charCodeAt(0)===a},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var i=0;i<t.length;++i){var o=arguments[i];d(o,"path"),0<o.length&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":_.normalize(e)},relative:function(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";if((e=_.resolve(e))===(t=_.resolve(t)))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===a;++n);for(var i=e.length,o=i-n,r=1;r<t.length&&t.charCodeAt(r)===a;++r);for(var s=t.length-r,l=o<s?o:s,u=-1,c=0;c<=l;++c){if(c===l){if(l<s){if(t.charCodeAt(r+c)===a)return t.slice(r+c+1);if(0===c)return t.slice(r+c)}else l<o&&(e.charCodeAt(n+c)===a?u=c:0===c&&(u=0));break}var h=e.charCodeAt(n+c);if(h!==t.charCodeAt(r+c))break;h===a&&(u=c)}var p="";for(c=n+u+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==a||(0===p.length?p+="..":p+="/..");return 0<p.length?p+t.slice(r+u):(r+=u,t.charCodeAt(r)===a&&++r,t.slice(r))},toNamespacedPath:function(e){return e},dirname:function(e){if(d(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===a,n=-1,i=!0,o=e.length-1;1<=o;--o)if(e.charCodeAt(o)===a){if(!i){n=o;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&d(t,"ext"),d(e,"path");var n,i=0,o=-1,r=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(n=e.length-1;0<=n;--n){var u=e.charCodeAt(n);if(u===a){if(!r){i=n+1;break}}else-1===l&&(r=!1,l=n+1),0<=s&&(u===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;0<=n;--n)if(e.charCodeAt(n)===a){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){d(e,"path");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;0<=s;--s){var l=e.charCodeAt(s);if(l===a){if(o)continue;n=s+1;break}-1===i&&(o=!1,i=s+1),46===l?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1)}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new u("pathObject","Object",e);return m("/",e)},parse:function(e){d(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===a;n=i?(t.root="/",1):0;for(var o=-1,r=0,s=-1,l=!0,u=e.length-1,c=0;n<=u;--u){var h=e.charCodeAt(u);if(h===a){if(l)continue;r=u+1;break}-1===s&&(l=!1,s=u+1),46===h?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1)}return-1===o||-1===s||0===c||1===c&&o===s-1&&o===r+1?-1!==s&&(t.base=t.name=0===r&&i?e.slice(1,s):e.slice(r,s)):(0===r&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(r,o),t.base=e.slice(r,s)),t.ext=e.slice(o,s)),0<r?t.dir=e.slice(0,r-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};_.win32=v.win32=v,_.posix=v.posix=_;var b="win32"===r.c?v.normalize:_.normalize,y="win32"===r.c?v.join:_.join,C="win32"===r.c?v.relative:_.relative,w="win32"===r.c?v.dirname:_.dirname,S="win32"===r.c?v.basename:_.basename,O="win32"===r.c?v.extname:_.extname,L="win32"===r.c?v.sep:_.sep},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var i=n(1079),o=[];function r(e,t,n){o.push([e,new i.a(t,[],n)])}function s(){return o}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(443),o=n(452),r=n(478),s=n(1072),a=n(595),l=n(439),u=n(820);function c(e,t){var n=new a.b(t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}var d=(h.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},h.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var t=this._onStopCallback;this._onStopCallback=null,e&&t&&t()}},h.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},h.prototype.startMonitoring=function(e,t,n,l,c){var d=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=n,this._mouseMoveCallback=l,this._onStopCallback=c;var h=s.a.getSameOriginWindowChain(),p=o.c&&u.a.pointerEvents?"pointermove":"mousemove",f=o.c&&u.a.pointerEvents?"pointerup":"mouseup",g=h.map((function(e){return e.window.document})),m=i.E(e);m&&g.unshift(m);for(var v=0,_=g;v<_.length;v++){var b=_[v];this._hooks.add(i.m(b,p,(function(e){r.i||e.buttons===t?d._mouseMoveCallback(e):d.stopMonitoring(!0)}),(function(e,t){return d._mouseMoveEventMerger(e,t)}))),this._hooks.add(i.j(b,f,(function(e){return d.stopMonitoring(!0)})))}if(s.a.hasDifferentOriginAncestor()){var y=h[h.length-1];this._hooks.add(i.j(y.window.document,"mouseout",(function(e){"html"===new a.b(e).target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i.j(y.window.document,"mouseover",(function(e){"html"===new a.b(e).target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i.j(y.window.document.body,"mouseleave",(function(e){d.stopMonitoring(!0)})))}}},h);function h(){this._hooks=new l.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return h}));var i=n(466),o=(r.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},r.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)},r);function r(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}var s=(a.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},a.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)},a);function a(e,t){this._range=e,this._text=t}var l=(u.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},u.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},u);function u(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}var c=(d.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},d.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new i.a(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)},d);function d(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}var h=(p.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)},p.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},p);function p(e,t,n,i){void 0===i&&(i=!1),this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return h}));var i=n(459),o=n(890),r=(Object.defineProperty(s.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),s.prototype.appendText=function(e){return this._value+=(this._supportThemeIcons?Object(o.a)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace("\n","\n\n"),this},s.prototype.appendMarkdown=function(e){return this._value+=e,this},s.prototype.appendCodeblock=function(e,t){return this._value+="\n```",this._value+=e,this._value+="\n",this._value+=t,this._value+="\n```\n",this},s);function s(e,t){var n,i;void 0===e&&(e=""),void 0===t&&(t=!1),this._value=e,"boolean"==typeof t?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=null!==(n=t.isTrusted)&&void 0!==n&&n,this._supportThemeIcons=null!==(i=t.supportThemeIcons)&&void 0!==i&&i)}function a(e){return l(e)?!e.value:!Array.isArray(e)||e.every(a)}function l(e){return e instanceof r||e&&"object"==typeof e&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function u(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(i.g)(e,t,c):!(!l(e)||!l(t))&&c(e,t))}function c(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons}function d(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var o=/height=(\d+)/.exec(i),r=/width=(\d+)/.exec(i),s=o?o[1]:"",a=r?r[1]:"",l=isFinite(parseInt(a)),u=isFinite(parseInt(s));l&&t.push('width="'+a+'"'),u&&t.push('height="'+s+'"')}return{href:e,dimensions:t}}},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(478),o=n(452),r={clipboard:{writeText:o.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(i.i)return!1;if(i.e){var e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||12<=t&&t<=16)return!1}return!0}()},keyboard:o.f||i.l?0:navigator.keyboard||i.k?1:2,touch:"ontouchstart"in window||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints,pointerEvents:window.PointerEvent&&("ontouchstart"in window||0<window.navigator.maxTouchPoints||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("telemetryService")},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));var i=Object.prototype.hasOwnProperty;function o(e){var t=[];for(var n in e)i.call(e,n)&&t.push(e[n]);return t}function r(e){for(var t in e)if(i.call(e,t))return e[t]}function s(e,t){function n(n){if(i.call(e,n)&&!1===t({key:n,value:e[n]},(function(){delete e[n]})))return{value:void 0}}for(var o in e){var r=n(o);if("object"==typeof r)return r.value}}var a=(l.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},l.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},l.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},l);function l(){this.map=new Map}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o,r=n(790),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,o=r.a),a);function a(e){for(var t=o.call(this,0)||this,n=0,i=e.length;n<i;n++)t.set(e.charCodeAt(n),2);return t.set(32,1),t.set(9,1),t}var l,u,c=(l=function(e){return new s(e)},u={},function(e){return u.hasOwnProperty(e)||(u[e]=l(e)),u[e]})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(454),o=(r.prototype.equals=function(e){return e instanceof r&&this.slicedEquals(e,0,this._tokensCount)},r.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},r.prototype.getLineContent=function(){return this._text},r.prototype.getCount=function(){return this._tokensCount},r.prototype.getStartOffset=function(e){return 0<e?this._tokens[e-1<<1]:0},r.prototype.getMetadata=function(e){return this._tokens[1+(e<<1)]},r.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return i.A.getLanguageId(t)},r.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return i.A.getTokenType(t)},r.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return i.A.getForeground(t)},r.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return i.A.getClassNameFromMetadata(t)},r.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return i.A.getInlineStyleFromMetadata(n,t)},r.prototype.getEndOffset=function(e){return this._tokens[e<<1]},r.prototype.findTokenIndexAtOffset=function(e){return r.findIndexInTokensArray(this._tokens,e)},r.prototype.inflate=function(){return this},r.prototype.sliceAndInflate=function(e,t,n){return new s(this,e,t,n)},r.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},r.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:t<r&&(i=o)}return n},r);function r(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}var s=(a.prototype.equals=function(e){return e instanceof a&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)},a.prototype.getCount=function(){return this._tokensCount},a.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},a.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},a.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},a.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},a.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},a);function a(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&&!(n<=e.getStartOffset(o));o++)this._tokensCount++}},function(e,t,n){"use strict";var i,o;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),(o=i=i||{})[o.None=0]="None",o[o.Indent=1]="Indent",o[o.IndentOutdent=2]="IndentOutdent",o[o.Outdent=3]="Outdent";var r=(s.prototype.isOK=function(e){return 0==(this._standardTokenMask&e)},s);function s(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}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var i=n(461),o=function(){return(o=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 r(e,t,n){function o(o){var r=function(e,t){var n=Object.create(null);for(var o in t){var r=t[o];r&&(n[o]=Object(i.Ub)(r,e))}return n}(e.getTheme(),t);"function"==typeof n?n(r):n.style(r)}return o(e.getTheme()),e.onThemeChange(o)}function s(e,t,n){return r(t,{badgeBackground:n&&n.badgeBackground||i.c,badgeForeground:n&&n.badgeForeground||i.d,badgeBorder:i.e},e)}function a(e,t,n){return r(t,{foreground:n&&n.foreground||i.W,background:n&&n.background||i.o,borderColor:n&&n.borderColor||i.e,widgetShadow:n&&n.widgetShadow||i.hc,progressBarBackground:n&&n.progressBarBackground||i.Sb,pickerGroupForeground:n&&n.pickerGroupForeground||i.Ob,pickerGroupBorder:n&&n.pickerGroupBorder||i.Nb,inputBackground:n&&n.inputBackground||i.Z,inputForeground:n&&n.inputForeground||i.bb,inputBorder:n&&n.inputBorder||i.ab,inputValidationInfoBorder:n&&n.inputValidationInfoBorder||i.gb,inputValidationInfoBackground:n&&n.inputValidationInfoBackground||i.fb,inputValidationInfoForeground:n&&n.inputValidationInfoForeground||i.hb,inputValidationWarningBorder:n&&n.inputValidationWarningBorder||i.jb,inputValidationWarningBackground:n&&n.inputValidationWarningBackground||i.ib,inputValidationWarningForeground:n&&n.inputValidationWarningForeground||i.kb,inputValidationErrorBorder:n&&n.inputValidationErrorBorder||i.db,inputValidationErrorBackground:n&&n.inputValidationErrorBackground||i.cb,inputValidationErrorForeground:n&&n.inputValidationErrorForeground||i.eb,listFocusBackground:n&&n.listFocusBackground||i.rb,listFocusForeground:n&&n.listFocusForeground||i.sb,listActiveSelectionBackground:n&&n.listActiveSelectionBackground||Object(i.f)(i.lb,.1),listActiveSelectionForeground:n&&n.listActiveSelectionForeground||i.mb,listFocusAndSelectionBackground:n&&n.listFocusAndSelectionBackground||i.lb,listFocusAndSelectionForeground:n&&n.listFocusAndSelectionForeground||i.mb,listInactiveSelectionBackground:n&&n.listInactiveSelectionBackground||i.xb,listInactiveSelectionForeground:n&&n.listInactiveSelectionForeground||i.yb,listInactiveFocusBackground:n&&n.listInactiveFocusBackground||i.wb,listHoverBackground:n&&n.listHoverBackground||i.ub,listHoverForeground:n&&n.listHoverForeground||i.vb,listDropBackground:n&&n.listDropBackground||i.nb,listFocusOutline:n&&n.listFocusOutline||i.b,listSelectionOutline:n&&n.listSelectionOutline||i.b,listHoverOutline:n&&n.listHoverOutline||i.b},e)}function l(e,t,n){return r(t,o(o({},u),n||{}),e)}var u={listFocusBackground:i.rb,listFocusForeground:i.sb,listActiveSelectionBackground:Object(i.f)(i.lb,.1),listActiveSelectionForeground:i.mb,listFocusAndSelectionBackground:i.lb,listFocusAndSelectionForeground:i.mb,listInactiveSelectionBackground:i.xb,listInactiveSelectionForeground:i.yb,listInactiveFocusBackground:i.wb,listHoverBackground:i.ub,listHoverForeground:i.vb,listDropBackground:i.nb,listFocusOutline:i.b,listSelectionOutline:i.b,listHoverOutline:i.b,listFilterWidgetBackground:i.ob,listFilterWidgetOutline:i.qb,listFilterWidgetNoMatchesOutline:i.pb,listMatchesShadow:i.hc,treeIndentGuidesStroke:i.gc},c={shadowColor:i.hc,borderColor:i.Ab,foregroundColor:i.Bb,backgroundColor:i.zb,selectionForegroundColor:i.Eb,selectionBackgroundColor:i.Cb,selectionBorderColor:i.Db,separatorColor:i.Fb};function d(e,t,n){return r(t,o(o({},c),n),e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("themeService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var i,o,r=n(448),s=Object(r.c)("logService");(o=i=i||{})[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Info=2]="Info",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.Off=6]="Off";var a=(l.prototype.getLevel=function(){return i.Info},l.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},l.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},l.prototype.dispose=function(){},l);function l(){}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=0;function o(e,t,n){return function(){function e(e,i,o){var r=null,s=null;if("function"==typeof o.value?(r="value",(s=o.value).length):"function"==typeof o.get&&(r="get",s=o.get),!s)throw new Error("not supported");var a=t+":"+i;o[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(n=this).hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!0,enumerable:!1,writable:!0,value:s.apply(this,e)}),this[a]}}var t="$memoize"+i++,n=void 0;return e.clear=function(){void 0!==n&&Object.getOwnPropertyNames(n).forEach((function(e){0===e.indexOf(t)&&delete n[e]}))},e}()(e,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return s}));var i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",o=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,o=i;n<o.length;n++){var r=o[n];0<=e.indexOf(r)||(t+="\\"+r)}return t+="\\s]+)",new RegExp(t,"g")}();function r(e){var t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function s(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=(0<=o[0].indexOf(" ")?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(r<s)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}:function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;for(t.lastIndex=s;o=t.exec(n);){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null})(e,t,n,i);return t.lastIndex=0,r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(442),o=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},new r);function r(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s}));var i=(o.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},o);function o(e,t,n){this.offset=0|e,this.type=t,this.language=n}var r=function(e,t){this.tokens=e,this.endState=t},s=function(e,t){this.tokens=e,this.endState=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return x}));var i,o,r=n(459),s=n(484),a=n(446),l=n(439),u=n(479),c=n(761),d=n(449),h=n(440),p=n(466),f=n(454),g=n(598),m=n(886),v=(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)}),_=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},b=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},y="editor.action.codeAction",C="editor.action.refactor",w="editor.action.sourceAction",S="editor.action.organizeImports",O="editor.action.fixAll",L=(v(D,o=l.a),D.codeActionsComparator=function(e,t){return Object(r.q)(e.diagnostics)?Object(r.q)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(r.q)(t.diagnostics)?1:0},Object.defineProperty(D.prototype,"hasAutoFix",{get:function(){return this.validActions.some((function(e){return!!e.kind&&m.b.QuickFix.contains(new m.b(e.kind))&&!!e.isPreferred}))},enumerable:!0,configurable:!0}),D);function D(e,t){var n=o.call(this)||this;return n._register(t),n.allActions=Object(r.r)(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(e),D.codeActionsComparator),n.validActions=n.allActions.filter((function(e){return!e.disabled})),n}function x(e,t,n,i){var o,s,u,d=this,h=n.filter||{},p={only:null===(o=h.include)||void 0===o?void 0:o.value,trigger:n.type},g=new c.d(e,i),v=(s=e,u=h,f.a.all(s).filter((function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some((function(e){return Object(m.d)(u,new m.b(e))}))}))),y=new l.b,C=v.map((function(n){return _(d,void 0,void 0,(function(){var i,o;return b(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.provideCodeActions(e,t,p,g.token)];case 1:return i=r.sent(),g.token.isCancellationRequested||!i?[2,[]]:(y.add(i),[2,i.actions.filter((function(e){return e&&Object(m.c)(h,e)}))]);case 2:if(o=r.sent(),Object(a.d)(o))throw o;return Object(a.f)(o),[2,[]];case 3:return[2]}}))}))})),w=f.a.onDidChange((function(){var t=f.a.all(e);Object(r.g)(t,v)||g.cancel()}));return Promise.all(C).then(r.m).then((function(e){return new L(e,y)})).finally((function(){w.dispose(),g.dispose()}))}Object(d.j)("_executeCodeActionProvider",(function(e,t){return _(this,void 0,void 0,(function(){var n,i,o,r,l,c;return b(this,(function(d){switch(d.label){case 0:if(n=t.resource,i=t.rangeOrSelection,o=t.kind,!(n instanceof u.a))throw Object(a.b)();if(!(r=e.get(g.a).getModel(n)))throw Object(a.b)();if(!(l=p.a.isISelection(i)?p.a.liftSelection(i):h.a.isIRange(i)?r.validateRange(i):void 0))throw Object(a.b)();return[4,x(r,l,{type:2,filter:{includeSourceActions:!0,include:o&&o.value?new m.b(o.value):void 0}},s.a.None)];case 1:return c=d.sent(),setTimeout((function(){return c.dispose()}),100),[2,c.validActions]}}))}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var i=n(444),o=(r.prototype.equals=function(e){return this.value===e.value},r.prototype.contains=function(e){return this.equals(e)||""===this.value||Object(i.N)(e.value,this.value+r.sep)},r.prototype.intersects=function(e){return this.contains(e)||e.contains(this)},r.prototype.append=function(e){return new r(this.value+r.sep+e)},r.sep=".",r.None=new r("@@none@@"),r.Empty=new r(""),r.QuickFix=new r("quickfix"),r.Refactor=new r("refactor"),r.Source=new r("source"),r.SourceOrganizeImports=r.Source.append("organizeImports"),r.SourceFixAll=r.Source.append("fixAll"),r);function r(e){this.value=e}function s(e,t){return!(e.include&&!e.include.intersects(t))&&(!e.excludes||!e.excludes.some((function(n){return l(t,n,e.include)})))&&!(!e.includeSourceActions&&o.Source.contains(t))}function a(e,t){var n=t.kind?new o(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&!(e.excludes&&n&&e.excludes.some((function(t){return l(n,t,e.include)})))&&!(!e.includeSourceActions&&n&&o.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)}function l(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}var u=(c.fromUser=function(e,t){return e&&"object"==typeof e?new c(c.getKindFromUser(e,t.kind),c.getApplyFromUser(e,t.apply),c.getPreferredUser(e)):new c(t.kind,t.apply,!1)},c.getApplyFromUser=function(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}},c.getKindFromUser=function(e,t){return"string"==typeof e.kind?new o(e.kind):t},c.getPreferredUser=function(e){return"boolean"==typeof e.preferred&&e.preferred},c);function c(e,t,n){this.kind=e,this.apply=t,this.preferred=n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n(1323);var i,o,r=n(445),s=n(453),a=n(439),l=n(635),u=n(440),c=n(449),d=n(456),h=n(451),p=n(461),f=((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)})(g,o=a.a),g.get=function(e){return e.getContribution(g.ID)},g.prototype.dispose=function(){o.prototype.dispose.call(this),this._visible.reset()},g.prototype.showMessage=function(e,t){var n,i=this;Object(l.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new v(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidDispose((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeModel((function(){return i.closeMessage()}))),this._messageListeners.add(new s.e((function(){return i.closeMessage()}),this.closeTimeout)),this._messageListeners.add(this._editor.onMouseMove((function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new u.a(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))},g.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))},g.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(r.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new d.d("messageVisible",!1),g=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,d.c)],g));function g(e,t){var n=o.call(this)||this;return n.closeTimeout=3e3,n._messageWidget=n._register(new a.d),n._messageListeners=n._register(new a.b),n._editor=e,n._visible=g.MESSAGE_VISIBLE.bindTo(t),n._register(n._editor.onDidAttemptReadOnlyEdit((function(){return n._onDidAttemptReadOnlyEdit()}))),n}var m=c.c.bindToContribution(f.get);Object(c.g)(new m({id:"leaveEditorMessage",precondition:f.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var v=(_.fadeOut=function(e){function t(){e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)}var n;return n=setTimeout(t,110),e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}},_.prototype.dispose=function(){this._editor.removeContentWidget(this)},_.prototype.getId=function(){return"messageoverlay"},_.prototype.getDomNode=function(){return this._domNode},_.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},_);function _(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")}Object(c.h)(f.ID,f),Object(h.e)((function(e,t){var n=e.getColor(p.gb);if(n){var i=e.type===h.b?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(p.fb);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+o+"; }");var r=e.getColor(p.hb);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+r+"; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},o=(r.prototype.update=function(){},r.prototype.getData=function(){return this.data},r);function r(e){this.data=e}var s={CurrentDragAndDropData:void 0}},function(e,t,n){"use strict";var i,o,r,s,a=n(445),l=n(444);(o=i=i||{})[o.Ignore=0]="Ignore",o[o.Info=1]="Info",o[o.Warning=2]="Warning",o[o.Error=3]="Error",r=i=i||{},(s=Object.create(null))[r.Error]=a.a("sev.error","Error"),s[r.Warning]=a.a("sev.warning","Warning"),s[r.Info]=a.a("sev.info","Info"),r.fromValue=function(e){return e?l.n("error",e)?r.Error:l.n("warning",e)||l.n("warn",e)?r.Warning:l.n("info",e)?r.Info:r.Ignore:r.Ignore},t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var i=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function o(e){return e.replace(i,(function(e,t){return t?e:"\\"+e}))}var r=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function s(e){return e.replace(r,(function(e){return"\\"+e}))}var a=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function l(e){return e.replace(a,(function(e,t,n,i,o){return t?"$("+n+")":'<span class="codicon codicon-'+i+(o?" codicon-animation-"+o:"")+'"></span>'}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n(1332);var i,o,r=n(439),s=n(478),a=n(452),l=n(465),u=n(702),c=n(595),d=n(442),h=n(443),p=n(686),f=(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)}(g,o=r.a),Object.defineProperty(g.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(Object(h.Y)(this.el,"disabled",0===e),Object(h.Y)(this.el,"minimum",1===e),Object(h.Y)(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),g.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Object(h.f)(this.el,"horizontal"),Object(h.P)(this.el,"vertical")):(Object(h.P)(this.el,"horizontal"),Object(h.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},g.prototype.onMouseDown=function(e){var t=this;h.c.stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var i=this.getOrthogonalSash(e);i&&(n=!0,e.__orthogonalSashEvent=!0,i.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(Object(h.D)("iframe"),Object(h.D)("webview")),s=0,l=o;s<l.length;s++)l[s].style.pointerEvents="none";var u=new c.b(e),d=u.posx,f=u.posy,g=u.altKey,m={startX:d,currentX:d,startY:f,currentY:f,altKey:g};Object(h.f)(this.el,"active"),this._onDidStart.fire(m);var v=Object(h.w)(this.el),_=function(){var e;e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":a.e?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":a.e?"col-resize":"ew-resize",v.innerHTML="* { cursor: "+e+" !important; }"},b=new r.b;_(),n||this.onDidEnablementChange(_,null,b),Object(p.a)(window,"mousemove")((function(e){h.c.stop(e,!1);var n=new c.b(e),i={startX:d,currentX:n.posx,startY:f,currentY:n.posy,altKey:g};t._onDidChange.fire(i)}),null,b),Object(p.a)(window,"mouseup")((function(e){h.c.stop(e,!1),t.el.removeChild(v),Object(h.P)(t.el,"active"),t._onDidEnd.fire(),b.dispose();for(var n=0,i=o;n<i.length;n++)i[n].style.pointerEvents="auto"}),null,b)}},g.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},g.prototype.onTouchStart=function(e){var t=this;h.c.stop(e);var n=[],i=e.pageX,o=e.pageY,s=e.altKey;this._onDidStart.fire({startX:i,currentX:i,startY:o,currentY:o,altKey:s}),n.push(Object(h.j)(this.el,u.a.Change,(function(e){l.h(e.pageX)&&l.h(e.pageY)&&t._onDidChange.fire({startX:i,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:s})}))),n.push(Object(h.j)(this.el,u.a.End,(function(e){t._onDidEnd.fire(),Object(r.f)(n)})))},g.prototype.layout=function(){var e=s.j?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")}},g.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},g.prototype.onOrthogonalStartSashEnablementChange=function(e){Object(h.Y)(this.el,"orthogonal-start",0!==e)},g.prototype.onOrthogonalEndSashEnablementChange=function(e){Object(h.Y)(this.el,"orthogonal-end",0!==e)},g.prototype.getOrthogonalSash=function(e){if(0===this.orientation){if(e.offsetY<=4)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},g.prototype.dispose=function(){o.prototype.dispose.call(this),this.el.remove()},g);function g(e,t,n){void 0===n&&(n={});var i=o.call(this)||this;return i._state=3,i._onDidEnablementChange=i._register(new d.a),i.onDidEnablementChange=i._onDidEnablementChange.event,i._onDidStart=i._register(new d.a),i.onDidStart=i._onDidStart.event,i._onDidChange=i._register(new d.a),i.onDidChange=i._onDidChange.event,i._onDidReset=i._register(new d.a),i.onDidReset=i._onDidReset.event,i._onDidEnd=i._register(new d.a),i.onDidEnd=i._onDidEnd.event,i.linkedSash=void 0,i.orthogonalStartSashDisposables=i._register(new r.b),i.orthogonalEndSashDisposables=i._register(new r.b),i.el=Object(h.q)(e,Object(h.a)(".monaco-sash")),a.e&&Object(h.f)(i.el,"mac"),i._register(Object(p.a)(i.el,"mousedown")(i.onMouseDown,i)),i._register(Object(p.a)(i.el,"dblclick")(i.onMouseDoubleClick,i)),i._register(u.b.addTarget(i.el)),i._register(Object(p.a)(i.el,u.a.Start)(i.onTouchStart,i)),s.j&&Object(h.f)(i.el,"touch"),i.setOrientation(n.orientation||0),i.hidden=!1,i.layoutProvider=t,i.orthogonalStartSash=n.orthogonalStartSash,i.orthogonalEndSash=n.orthogonalEndSash,Object(h.Y)(i.el,"debug",!1),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(776);function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===i.a.ICodeEditor}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return m}));var i=n(444),o=n(894),r=n(958),s=function(e,t){this.endIndex=e,this.type=t},a=(l.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},l);function l(e,t){this.startOffset=e,this.endOffset=t}var u=(c.prototype.sameSelection=function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0},c.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.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.a.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},c);function c(e,t,n,i,o,r,s,a,l,u,c,d,h,p,f,g,m,v){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=l,this.tabSize=u,this.startVisibleColumn=c,this.spaceWidth=d,this.middotWidth=h,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?3:"boundary"===f?1:"selection"===f?2:0,this.renderControlCharacters=g,this.fontLigatures=m,this.selectionsOnLine=v&&v.sort((function(e,t){return e.startOffset<t.startOffset?-1:1}))}var d=(h.getPartIndex=function(e){return(4294901760&e)>>>16},h.getCharIndex=function(e){return(65535&e)>>>0},h.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n},h.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},h.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]},h.prototype.partDataToCharOffset=function(e,t,n){if(0===this.length)return 0;for(var i=(e<<16|n<<0)>>>0,o=0,r=this.length-1;o+1<r;){var s=o+r>>>1,a=this._data[s];if(a===i)return s;i<a?r=s:o=s}if(o===r)return o;var l=this._data[o],u=this._data[r];if(l===i)return o;if(u===i)return r;var c=h.getPartIndex(l);return n-h.getCharIndex(l)<=(c!==h.getPartIndex(u)?t:h.getCharIndex(u))-n?o:r},h);function h(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}var p=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function f(e,t){if(0!==e.lineContent.length)return function(e,t){var n=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,s=e.lineContent,a=e.len,l=e.isOverflowing,u=e.parts,c=e.fauxIndentLength,h=e.tabSize,f=e.startVisibleColumn,g=e.containsRTL,m=e.spaceWidth,v=e.middotWidth,_=e.renderWhitespace,b=e.renderControlCharacters,y=m<v?11825:183,C=new d(a+1,u.length),w=0,S=f,O=0,L=0,D=0;t.appendASCIIString("<span>");for(var x=0,N=u.length;x<N;x++){D+=L;var k=u[x],E=k.endIndex,I=k.type,M=0!==_&&0<=I.indexOf("vs-whitespace");if(O=0,t.appendASCIIString('<span class="'),t.appendASCIIString(I),t.appendASCII(34),M){for(var T=0,P=w,R=S;P<E;P++){var A=s.charCodeAt(P);T+=F=0|(9===A?h-R%h:1),c<=P&&(R+=F)}for(n||"vs-whitespace"!==I&&r||(t.appendASCIIString(' style="display:inline-block;width:'),t.appendASCIIString(String(m*T)),t.appendASCIIString('px"')),t.appendASCII(62);w<E;w++){C.setPartData(w,x,O,D);var F=void 0;if(9===(A=s.charCodeAt(w))){F=h-S%h|0,!o||1<F?t.write1(8594):t.write1(65515);for(var j=2;j<=F;j++)t.write1(160)}else F=1,t.write1(y);O+=F,c<=w&&(S+=F)}L=T}else{for(T=0,g&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);w<E;w++){C.setPartData(w,x,O,D);var W=1;switch(F=1,A=s.charCodeAt(w)){case 9:for(F=W=h-S%h,j=1;j<=W;j++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("<");break;case 62:t.appendASCIIString(">");break;case 38:t.appendASCIIString("&");break;case 0:t.appendASCIIString("�");break;case 65279:case 8232:t.write1(65533);break;default:i.y(A)&&F++,b&&A<32?t.write1(9216+A):t.write1(A)}O+=W,T+=W,c<=w&&(S+=F)}L=T}t.appendASCIIString("</span>")}return C.setPartData(a,u.length-1,O,D),l&&t.appendASCIIString("<span>…</span>"),t.appendASCIIString("</span>"),new p(C,g,r)}(function(e){var t,n,o=e.useMonospaceOptimizations,a=e.lineContent;n=-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<a.length?(t=!0,e.stopRenderingLineAfter):(t=!1,a.length);var l=function(e,t,n){var i=[],o=0;0<t&&(i[o++]=new s(t,""));for(var r=0,a=e.getCount();r<a;r++){var l=e.getEndOffset(r);if(!(l<=t)){var u=e.getClassName(r);if(n<=l){i[o++]=new s(n,u);break}i[o++]=new s(l,u)}}return i}(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(l=function(e,t,n,o,r,a,l,u,c,d){var h,p=[],f=0,g=0,m=o[g].type,v=o[g].endIndex,_=o.length,b=i.q(e);h=-1===b?b=t:i.D(e);for(var y=!1,C=0,w=c&&c[C],S=l%a,O=r;O<t;O++){var L=e.charCodeAt(O);w&&O>=w.endOffset&&(C++,w=c&&c[C]);var D=void 0;if(O<b||h<O)D=!0;else if(9===L)D=!0;else if(32===L)if(d)if(y)D=!0;else{var x=O+1<t?e.charCodeAt(O+1):0;D=32===x||9===x}else D=!0;else D=!1;D&&c&&(D=!!w&&w.startOffset<=O&&w.endOffset>O),y?(!D||!u&&a<=S)&&(p[f++]=new s(O,"vs-whitespace"),S%=a):(O===v||D&&r<O)&&(p[f++]=new s(O,m),S%=a),9===L?S=a:i.y(L)?S+=2:S++,y=D,O===v&&++g<_&&(m=o[g].type,v=o[g].endIndex)}var N=!1;if(y)if(n&&d){var k=0<t?e.charCodeAt(t-1):0,E=1<t?e.charCodeAt(t-2):0;32===k&&32!==E&&9!==E||(N=!0)}else N=!0;return p[f++]=new s(t,N?"vs-whitespace":m),p}(a,n,e.continuesWithWrappedLine,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,o,e.selectionsOnLine,1===e.renderWhitespace));var u=0;if(0<e.lineDecorations.length){for(var c=0,d=e.lineDecorations.length;c<d;c++){var h=e.lineDecorations[c];3===h.type||1===h.type?u|=1:2===h.type&&(u|=2)}l=function(e,t,n){n.sort(r.a.compare);for(var i=r.b.normalize(e,n),o=i.length,a=0,l=[],u=0,c=0,d=0,h=t.length;d<h;d++){for(var p=t[d],f=p.endIndex,g=p.type;a<o&&i[a].startOffset<f;){var m=i[a];if(m.startOffset>c&&(c=m.startOffset,l[u++]=new s(c,g)),!(m.endOffset+1<=f)){c=f,l[u++]=new s(c,g+" "+m.className);break}c=m.endOffset+1,l[u++]=new s(c,g+" "+m.className),a++}c<f&&(c=f,l[u++]=new s(c,g))}var v=t[t.length-1].endIndex;if(a<o&&i[a].startOffset===v){for(var _=[];a<o&&i[a].startOffset===v;)_.push(i[a].className),a++;l[u++]=new s(c,_.join(" "))}return l}(a,l,e.lineDecorations)}return e.containsRTL||(l=function(e,t,n){var i=0,o=[],r=0;if(n)for(var a=0,l=t.length;a<l;a++){var u=(f=t[a]).endIndex;if(i+50<u){for(var c=f.type,d=-1,h=i,p=i;p<u;p++)32===e.charCodeAt(p)&&(d=p),-1!==d&&50<=p-h&&(o[r++]=new s(d+1,c),h=d+1,d=-1);h!==u&&(o[r++]=new s(u,c))}else o[r++]=f;i=u}else for(a=0,l=t.length;a<l;a++){var f=t[a],g=(u=f.endIndex)-i;if(50<g){c=f.type;var m=Math.ceil(g/50);for(p=1;p<m;p++){var v=i+50*p;o[r++]=new s(v,c)}o[r++]=new s(u,c)}else o[r++]=f;i=u}return o}(a,l,!e.isBasicASCII||e.fontLigatures)),new v(o,e.canUseHalfwidthRightwardsArrow,a,n,t,l,u,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.middotWidth,e.renderWhitespace,e.renderControlCharacters)}(e),t);var n=0,o="<span><span>\xa0</span></span>";if(0<e.lineDecorations.length){for(var a=[],l=[],u=0,c=e.lineDecorations.length;u<c;u++){var h=e.lineDecorations[u];1===h.type&&(a.push(e.lineDecorations[u].className),n|=1),2===h.type&&(l.push(e.lineDecorations[u].className),n|=2)}0!==n&&(o="<span>"+(0<a.length?'<span class="'+a.join(" ")+'"></span>':"")+(0<l.length?'<span class="'+l.join(" ")+'"></span>':"")+"</span>")}return t.appendASCIIString(o),new p(new d(0,0),!1,n)}var g=function(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i};function m(e){var t=Object(o.a)(1e4),n=f(e,t);return new g(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var v=function(e,t,n,i,o,r,s,a,l,u,c,d,h,p,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=u,this.containsRTL=c,this.spaceWidth=d,this.middotWidth=h,this.renderWhitespace=p,this.renderControlCharacters=f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,o=n(444);i="undefined"!=typeof TextDecoder?function(e){return new r(e)}:function(){return new a};var r=(s.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},s.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},s.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},s.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},s.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0!=t&&!o.z(e)||this._flushBuffer()),this._buffer[this._bufferLength++]=e},s.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},s.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)},s);function s(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}var a=(l.prototype.reset=function(){this._pieces=[],this._piecesLen=0},l.prototype.build=function(){return this._pieces.join("")},l.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},l.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},l.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},l);function l(){this._pieces=[],this._piecesLen=0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=(o.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},o.prototype.has=function(e){return this._entries.has(e)},o.prototype.get=function(e){return this._entries.get(e)},o);function o(){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)}}},function(e,t,n){"use strict";var i,o;function r(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 s(e){return e.end-e.start<=0}n.d(t,"a",(function(){return i})),(o=i=i||{}).intersect=r,o.isEmpty=s,o.intersects=function(e,t){return!s(r(e,t))},o.relativeComplement=function(e,t){var n=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return s(i)||n.push(i),s(o)||n.push(o),n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return m}));var i=n(445),o=n(442),r=n(554),s=n(439),a=n(444),l=n(959),u=n(440),c=(Object.defineProperty(d.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"ariaMessage",{get:function(){return Object(i.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(r.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),d);function d(e,t,n,i){this.isProviderFirst=e,this.parent=t,this._range=n,this._rangeCallback=i,this.id=l.b.nextId()}var h=(p.prototype.dispose=function(){this._modelReference.dispose()},p.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}),l=new u.a(i,a.startColumn,i,o),c=new u.a(r,s,r,1073741824),d=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e);return{value:d+h+n.getValueInRange(c).replace(/\s+$/,""),highlight:{start:d.length,end:d.length+h.length}}}},p);function p(e){this._modelReference=e}var f=(g.prototype.dispose=function(){Object(s.f)(this._preview),this._preview=void 0},Object.defineProperty(g.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ariaMessage",{get:function(){var e=this.children.length;return 1===e?Object(i.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(r.b)(this.uri),this.uri.fsPath):Object(i.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(r.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),g.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 h(e),t._resolved=!0,t}),(function(e){return t.children.length=0,t._resolved=!0,t._loadFailure=e,t})))},g);function g(e,t){this.parent=e,this.uri=t,this.children=[]}var m=(v.prototype.dispose=function(){Object(s.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},v.prototype.clone=function(){return new v(this._links,this._title)},Object.defineProperty(v.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isEmpty",{get:function(){return 0===this.groups.length},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(i.a)("aria.result.0","No results found"):1===this.references.length?Object(i.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(i.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(i.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),v.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&&0<i?(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]))},v.prototype.nearestReference=function(e,t){var n=this.references.map((function(n,i){return{idx:i,prefixLen:a.c(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]},v.prototype.referenceAt=function(e,t){for(var n=0,i=this.references;n<i.length;n++){var o=i[n];if(o.uri.toString()===e.toString()&&u.a.containsPosition(o.range,t))return o}},v.prototype.firstReference=function(){for(var e=0,t=this.references;e<t.length;e++){var n=t[e];if(n.isProviderFirst)return n}return this.references[0]},v._compareReferences=function(e,t){return a.e(e.uri.toString(),t.uri.toString())||u.a.compareRangesUsingStarts(e.range,t.range)},v);function v(e,t){var n=this;this._disposables=new s.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;var i,r=e[0];e.sort(v._compareReferences);for(var a=0,l=e;a<l.length;a++){var d=l[a];if(i&&i.uri.toString()===d.uri.toString()||(i=new f(this,d.uri),this.groups.push(i)),0===i.children.length||!u.a.equalsRange(d.range,i.children[i.children.length-1].range)){var h=new c(r===d,i,d.targetSelectionRange||d.range,(function(e){return n._onDidChangeReferenceRange.fire(e)}));this.references.push(h),i.children.push(h)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("label")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n(448),o=Object(i.c)("textResourceConfigurationService"),r=Object(i.c)("textResourcePropertiesService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return D}));var i,o=n(453),r=n(505),s=n(446),a=n(449),l=n(454),u=n(450),c=n(456),d=n(484),h=n(440),p=n(760),f=n(439),g={Visible:new c.d("suggestWidgetVisible",!1),MultipleSuggestions:new c.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new c.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new c.d("acceptSuggestionOnEnter",!0)},m=function(e,t,n,i,o){var a=this;this.position=e,this.completion=t,this.container=n,this.provider=i,this.isResolved=!1,this.score=p.a.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),h.a.isIRange(t.range)?(this.editStart=new u.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new u.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new u.a(t.range.endLineNumber,t.range.endColumn)):(this.editStart=new u.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new u.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new u.a(t.range.replace.endLineNumber,t.range.replace.endColumn));var l,c=i.resolveCompletionItem;"function"!=typeof c?(this.resolve=function(){return Promise.resolve()},this.isResolved=!0):this.resolve=function(n){return l||(l=Promise.resolve(c.call(i,o,e,t,n)).then((function(e){Object(r.a)(t,e),a.isResolved=!0}),(function(e){Object(s.d)(e)&&(l=void 0)})),n.onCancellationRequested((function(){a.isResolved||(l=void 0)}))),l}},v=(_.default=new _,_);function _(e,t,n){void 0===e&&(e=2),void 0===t&&(t=new Set),void 0===n&&(n=new Set),this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}function b(){return i}function y(e,t,n,r,a){void 0===n&&(n=v.default),void 0===r&&(r={triggerKind:0}),void 0===a&&(a=d.a.None);var u=e.getWordAtPosition(t),c=u?new h.a(t.lineNumber,u.startColumn,t.lineNumber,u.endColumn):h.a.fromPositions(t),p=c.setEndPosition(t.lineNumber,t.column);t=t.clone();var g=l.d.orderedGroups(e);n.kindFilter.has(25);var _=[],b=new f.b,y=!1,C=g.map((function(o){return function(){return Promise.all(o.map((function(o){if(!(0<n.providerFilter.size)||n.providerFilter.has(o))return Promise.resolve(o.provideCompletionItems(e,t,r,a)).then((function(r){var s=_.length;if(r){for(var a=0,l=r.suggestions||[];a<l.length;a++){var u=l[a];n.kindFilter.has(u.kind)||(u.range||(u.range={insert:p,replace:c}),u.sortText||(u.sortText="string"==typeof u.label?u.label:u.label.name),_.push(new m(t,u,r,o,e)))}Object(f.g)(r)&&b.add(r)}s!==_.length&&o!==i&&(y=!0)}),s.f)})))}}));return Object(o.h)(C,(function(){return y||a.isCancellationRequested})).then((function(){return a.isCancellationRequested?(b.dispose(),Promise.reject(Object(s.a)())):_.sort(S(n.snippetSortOrder))}))}function C(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}var w=new Map;function S(e){return w.get(e)}w.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return C(e,t)})),w.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return C(e,t)})),w.set(1,C),Object(a.e)("_executeCompletionItemProvider",(function(e,t,n){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var i,o,r,s,a,l,u,c;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(h){switch(h.label){case 0:return i={incomplete:!1,suggestions:[]},o=new f.b,r=[],s=n.maxItemsToResolve||0,[4,y(e,t)];case 1:for(a=h.sent(),l=0,u=a;l<u.length;l++)c=u[l],r.length<s&&r.push(c.resolve(d.a.None)),i.incomplete=i.incomplete||c.container.incomplete,i.suggestions.push(c.completion),Object(f.g)(c.container)&&o.add(c.container);h.label=2;case 2:return h.trys.push([2,,4,5]),[4,Promise.all(r)];case 3:return h.sent(),[2,i];case 4:return setTimeout((function(){return o.dispose()}),100),[7];case 5:return[2]}}))}))}));var O=(L.prototype.provideCompletionItems=function(){var e={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,e},new L);function L(){this.onlyOnceSuggestions=[]}function D(e,t){setTimeout((function(){var n;(n=O.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(O))}),0)}l.d.register("*",O)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(445),o=n(442),r=n(454),s=n(575),a=n(571);function l(){this._onDidChangeLanguages=new o.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}var u=new(l.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},l.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},l);a.a.add("editor.modesRegistry",u);var c="plaintext",d=new r.r(c,1);u.registerLanguage({id:c,extensions:[".txt",".gitignore"],aliases:[i.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),s.a.register(d,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},,,,,,,,,,,,,,function(e,t,n){"use strict";var i,o=n(443),r=n(943),s=n(446),a=n(795),l=n(959);(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:m,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:m,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||C.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=h(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=h(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=h(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._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",t._comment=/<!--(?!-?>)[\s\S]*?-->/,t.html=h(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=h(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=h(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=h(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._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+|$)/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.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)},n.prototype.token=function(e,n){var i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,y;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),1<r[0].length&&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:b(r,"\n")});else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():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((r=this.rules.nptable.exec(e))&&(l={type:"table",header:_(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(r[0].length),p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=_(l.cells[p],l.header.length);this.tokens.push(l)}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,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),u={type:"list_start",ordered:m=1<(s=r[2]).length,start:m?+s:"",loose:!1},this.tokens.push(u),i=!(c=[]),g=(r=r[0].match(this.rules.item)).length,p=0;p<g;p++)h=(l=r[p]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(h-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+h+"}","gm"),"")),p!==g-1&&(a=t.bullet.exec(r[p+1])[0],(1<s.length?1===a.length:1<a.length||this.options.smartLists&&a!==s)&&(e=r.slice(p+1).join("\n")+e,p=g-1)),o=i||/\n\n(?!\s*$)/.test(l),p!==g-1&&(i="\n"===l.charAt(l.length-1),o=o||i),o&&(u.loose=!0),y=void 0,(v=/^\[[ xX]\] /.test(l))&&(y=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:y,loose:o},c.push(d),this.tokens.push(d),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(u.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(n&&(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((r=this.rules.table.exec(e))&&(l={type:"table",header:_(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(r[0].length),p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=_(l.cells[p].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}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(n&&(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:m,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function r(e,t){if(this.options=t||C.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||C.defaults}function a(){}function l(e){this.tokens=[],this.token=null,this.options=e||C.defaults,this.options.renderer=this.options.renderer||new s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new u}function u(){this.seen={}}function c(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,(function(e){return c.replacements[e]}))}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,(function(e){return c.replacements[e]}));return e}function d(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 h(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 p(e,t,n){if(e){try{var i=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!g.test(n)&&(n=function(e,t){return f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=b(e,"/",!0)),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}o._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",o.em=h(o.em).replace(/punctuation/g,o._punctuation).getRegex(),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=h(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=h(o.tag).replace("comment",t._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,o._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=h(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=h(o.reflink).replace("label",o._label).getRegex(),o.normal=v({},o),o.pedantic=v({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=v({},o.normal,{escape:h(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),o.gfm.url=h(o.gfm.url,"i").replace("email",o.gfm._extended_email).getRegex(),o.breaks=v({},o.gfm,{br:h(o.br).replace("{2,}","*").getRegex(),text:h(o.gfm.text).replace(/\{2,\}/g,"*").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,l="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),l+=c(s[1]);else 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),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(e)){var u=y(s[2],"()");if(-1<u){var d=s[0].length-(s[2].length-u)-(s[3]||"").length;s[2]=s[2].substring(0,u),s[0]=s[0].substring(0,d).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,i=s[2],o=this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i))?(i=t[1],t[3]):"":s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=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){l+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),l+=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),l+=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),l+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),l+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),l+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),i="@"===s[2]?"mailto:"+(n=c(this.mangle(s[1]))):n=c(s[1]),l+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?l+=this.renderer.text(s[0]):l+=this.renderer.text(c(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])i="mailto:"+(n=c(s[0]));else{for(;a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0],a!==s[0];);n=c(s[0]),i="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),l+=this.renderer.link(i,null,n)}return l},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?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,c(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):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),.5<Math.random()&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},s.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,i);null!=o&&o!==e&&(n=!0,e=o)}return i?'<pre><code class="'+this.options.langPrefix+c(i,!0)+'">'+(n?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:c(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,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+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"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</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(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+c(e)+'"';return t&&(i+=' title="'+t+'"'),i+">"+n+"</a>"},s.prototype.image=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;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""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,v({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.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,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var 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 l=this.token.loose,u=this.token.checked,c=this.token.task;for(this.token.task&&(r+=this.renderer.checkbox(u));"list_item_end"!==this.next().type;)r+=l||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,c,u);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var h='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(h)}},u.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t))for(var n=t;this.seen[n]++,t=n+"-"+this.seen[n],this.seen.hasOwnProperty(t););return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function v(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;0<=--o&&"\\"===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 b(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){if(-1===e.indexOf(t[1]))return-1;for(var n=0,i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}function C(e,t,i){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(i||"function"==typeof t){i||(i=t,t=null);var o,r,s=(t=v({},C.defaults,t||{})).highlight,a=0;try{o=n.lex(e,t)}catch(e){return i(e)}r=o.length;var u=function(e){if(e)return t.highlight=s,i(e);var n;try{n=l.parse(o,t)}catch(n){e=n}return t.highlight=s,e?i(e):i(null,n)};if(!s||s.length<3)return u();if(delete t.highlight,!r)return u();for(;a<o.length;a++)!function(e){"code"!==e.type?--r||u():s(e.text,e.lang,(function(t,n){return t?u(t):null==n||n===e.text?--r||u():(e.text=n,e.escaped=!0,void(--r||u()))}))}(o[a])}else try{return t=t&&v({},C.defaults,t),l.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||C.defaults).silent)return"<p>An error occurred:</p><pre>"+c(e.message+"",!0)+"</pre>";throw e}}m.exec=m,C.options=C.setOptions=function(e){return v(C.defaults,e),C},C.defaults=(C.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}})(),C.Parser=l,C.parser=l.parse,C.Renderer=s,C.TextRenderer=a,C.Lexer=n,C.lexer=n.lex,C.InlineLexer=r,C.inlineLexer=r.output,C.Slugger=u,i=C.parse=C}).call(void 0),i.Parser,i.parser;var u,c=i.Renderer,d=(i.TextRenderer,i.Lexer,i.lexer,i.InlineLexer,i.inlineLexer,i.parse);!function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,i)}return n[s].exports}for(var r=!1,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){var i=e("./toMap");t.exports={uris:i(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(e,t,n){t.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},{}],3:[function(e,t,n){var i=e("./toMap");t.exports={voids:i(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),o=e("./parser"),r=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],l=!0===n?t:i({},s,t),u=r(a,l);return o(e,u),a.join("")}a.defaults=s,t.exports=a,u=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"==typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){t.exports=function e(t){for(var n,i,o=Array.prototype.slice.call(arguments,1);o.length;)for(i in n=o.shift())n.hasOwnProperty(i)&&("[object Object]"===Object.prototype.toString.call(t[i])?t[i]=e(t[i],n[i]):t[i]=n[i]);return t}},{}],7:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,u=/^</,c=/^<\s*\//;t.exports=function(e,t){for(var n,d,h=((n=[]).lastItem=function(){return n[n.length-1]},n),p=e;e;)f();function f(){d=!0,"\x3c!--"===e.substr(0,4)?function(){var n=e.indexOf("--\x3e");0<=n&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),d=!1)}():c.test(e)?g(a,v):u.test(e)&&g(s,m),function(){if(d){var n,i=e.indexOf("<");e=0<=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),t.chars&&t.chars(n)}}();var n=e===p;p=e,n&&(e="")}function g(t,n){var i=e.match(t);i&&(e=e.substring(i[0].length),i[0].replace(t,n),d=!1)}function m(e,n,s,a){var u={},c=o(n),d=r.voids[c]||!!a;s.replace(l,(function(e,t,n,o,r){u[t]=void 0===n&&void 0===o&&void 0===r?void 0:i.decode(n||o||r||"")})),d||h.push(c),t.start&&t.start(c,u,d)}function v(e,n){var i,r=0,s=o(n);if(s)for(r=h.length-1;0<=r&&h[r]!==s;r--);if(0<=r){for(i=h.length-1;r<=i;i--)t.end&&t.end(h[i]);h.length=r}}v()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=e("./attributes"),s=e("./elements");t.exports=function(e,t){var n,a=t||{};return c(),{start:function(e,t,s){var c=o(e);n.ignoring?u(c):-1!==(a.allowedTags||[]).indexOf(c)&&(!a.filter||a.filter({tag:c,attrs:t}))?(l("<"),l(c),Object.keys(t).forEach((function(e){var n=t[e],s=(a.allowedClasses||{})[c]||[],u=(a.allowedAttributes||{})[c]||[];u=u.concat((a.allowedAttributes||{})["*"]||[]);var d=o(e);("class"===d&&-1===u.indexOf(d)?(n=n.split(" ").filter((function(e){return s&&-1!==s.indexOf(e)})).join(" ").trim()).length:-1!==u.indexOf(d)&&(!0!==r.uris[d]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&i<n)return!0;var o=e.indexOf("#");return-1!==o&&o<n||a.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(l(" "),l(e),"string"==typeof n&&(l('="'),l(i.encode(n)),l('"')))})),l(s?"/>":">")):u(c)},end:function(e){var t=o(e);-1!==(a.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(l("</"),l(t),l(">")):function(e){n.ignoring===e&&--n.depth<=0&&c()}(t)},chars:function(e){!1===n.ignoring&&l(a.transformText?a.transformText(e):e)}};function l(t){e.push(t)}function u(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function c(){n={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'"},o={"&":"&","<":"<",">":">",""":'"',"'":"'"},r=/(&|<|>|"|')/g,s=/[&<>"']/g;function a(e){return i[e]}function l(e){return o[e]}function u(e){return null==e?"":String(e).replace(s,a)}function c(e){return null==e?"":String(e).replace(r,l)}u.options=c.options={},t.exports={encode:u,escape:u,decode:c,unescape:c,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function i(e,t){return e[t]=!0,e}t.exports=function(e){return e.reduce(i,{})}},{}]},{},[4]);var h=u,p=n(1095),f=n(505),g=n(444),m=n(479),v=n(596),_=n(890);function b(e,t){function n(t,n){var i=e.uris&&e.uris[t];if(!i)return t;var r=m.a.revive(i);return m.a.parse(t).toString()===r.toString()?t:(n&&(r=o.s(r)),r.query&&(r=r.with({query:function(t){var n;try{n=Object(p.a)(decodeURIComponent(t))}catch(t){}return n?(n=Object(f.b)(n,(function(t){return e.uris&&e.uris[t]?m.a.revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t}(r.query)})),r.toString(!0))}void 0===t&&(t={});var i,u=Object(r.a)(t),b=new Promise((function(e){return i=e})),y=new c;y.image=function(e,t,i){var o,r=[],s=[];return e&&(e=(o=Object(a.d)(e)).href,r=o.dimensions,e=n(e,!0),s.push('src="'+e+'"')),i&&s.push('alt="'+i+'"'),t&&s.push('title="'+t+'"'),r.length&&(s=s.concat(r)),"<img "+s.join(" ")+">"},y.link=function(t,i,o){return t===o&&(o=Object(a.e)(o)),t=n(t,!1),i=Object(a.e)(i),!(t=Object(a.e)(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?o:'<a href="#" data-href="'+(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(i||t)+'">'+o+"</a>"},y.paragraph=function(t){return"<p>"+(e.supportThemeIcons?Object(_.c)(t):t)+"</p>"},t.codeBlockRenderer&&(y.code=function(e,n){var i=t.codeBlockRenderer(n,e),o=l.b.nextId(),r=Promise.all([i,b]).then((function(e){var t=e[0],n=u.querySelector('div[data-code="'+o+'"]');n&&(n.innerHTML=t)})).catch((function(e){}));return t.codeBlockRenderCallback&&r.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+o+'">'+Object(g.o)(e)+"</div>"});var C=t.actionHandler;C&&C.disposeables.add(o.o(u,"click",(function(e){var t=e.target;if("A"===t.tagName||(t=t.parentElement)&&"A"===t.tagName)try{var n=t.dataset.href;n&&C.callback(n,e)}catch(e){Object(s.e)(e)}finally{e.preventDefault()}})));var w={sanitize:!0,renderer:y},S=[v.b.http,v.b.https,v.b.mailto,v.b.data,v.b.file,v.b.vscodeRemote,v.b.vscodeRemoteResource];e.isTrusted&&S.push(v.b.command);var O=d(e.supportThemeIcons?Object(_.b)(e.value):e.value,w);return u.innerHTML=h(O,{allowedSchemes:S,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),i(),u}var y=n(636),C=n(778),w=n(1090),S=n(448),O=n(442),L=n(439),D=n(454);n.d(t,"a",(function(){return E}));var x,N,k=function(e,t){return function(n,i){t(n,i,e)}},E=((x=function(e,t){return(x=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}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(I,N=L.a),I.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=D.B.getPromise(i||"");return t?t.then((function(e){return Object(w.b)(n,e)})):Object(w.b)(n,void 0)})).then((function(e){return'<span style="font-family: '+t._editor.getOption(34).fontFamily+'">'+e+"</span>"}))},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(e,{fromUserGesture:!0}).catch(s.e)},disposeables:e}}},I.prototype.render=function(e){var t=new L.b;return{element:e?b(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return t.dispose()}}},I=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([k(1,C.a),k(2,Object(S.d)(y.a))],I));function I(e,t,n){void 0===n&&(n=y.b);var i=N.call(this)||this;return i._editor=e,i._modeService=t,i._openerService=n,i._onDidRenderCodeBlock=i._register(new O.a),i.onDidRenderCodeBlock=i._onDidRenderCodeBlock.event,i}},function(e,t,n){"use strict";n(1336);var i=n(443),o=n(772),r=n(703),s=n(490),a=n(442),l=n(505),u=n(444),c=n(504),d=n(957),h=(n(1353),n(891)),p=n(959),f=n(439),g=n(440),m=n(495),v=new s.a(new s.c(0,122,204)),_={showArrow:!0,showFrame:!0,className:"",frameColor:v,arrowColor:v,keepEditorSelection:!1},b=(y.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},y.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},y);function y(e,t,n,i,o,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=o,this._onComputedHeight=r}var C=(w.prototype.getId=function(){return this._id},w.prototype.getDomNode=function(){return this._domNode},w.prototype.getPosition=function(){return null},w);function w(e,t){this._id=e,this._domNode=t}var S=(O.prototype.dispose=function(){this.hide(),i.O(this._ruleName)},Object.defineProperty(O.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),O.prototype._updateStyle=function(){i.O(this._ruleName),i.v(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},O.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:g.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},O.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},O._IdGenerator=new p.a(".arrow-decoration-"),O);function O(e){this._editor=e,this._ruleName=O._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}var L=(D.prototype.dispose=function(){var e=this;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=[],this._disposables.dispose()},D.prototype.create=function(){i.f(this.domNode,"zone-widget"),this.options.className&&i.f(this.domNode,this.options.className),this.container=document.createElement("div"),i.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new S(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},D.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},D.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}},D.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},D.prototype._getLeft=function(e){return 0<e.minimapWidth&&0===e.minimapLeft?e.minimapWidth:0},D.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},D.prototype._onViewZoneHeight=function(e){if(this.domNode.style.height=e+"px",this.container){var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(D.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}),D.prototype.show=function(e,t){var n=g.a.isIRange(e)?g.a.lift(e):g.a.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:m.a.EMPTY}])},D.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()},D.prototype._decoratingElementsHeight=function(){var e=this.editor.getOption(49),t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t},D.prototype._showImpl=function(e,t){var n=this,i=e.getStartPosition(),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.getOption(49),l=this.editor.getLayoutInfo().height/a*.8;l<=t&&(t=l);var u=0,c=0;if(this._arrow&&this.options.showArrow&&(u=Math.round(a/3),this._arrow.height=u,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 b(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 C("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.container&&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&&(this.container.style.top=u+"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=e.endLineNumber+1;f<=p.getLineCount()?this.revealLine(f,!1):this.revealLine(p.getLineCount(),!0)}},D.prototype.revealLine=function(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)},D.prototype.setCssClass=function(e,t){this.container&&(t&&this.container.classList.remove(t),i.f(this.container,e))},D.prototype._onWidth=function(e){},D.prototype._doLayout=function(e,t){},D.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))}))},D.prototype._initSash=function(){var e,t=this;this._resizeSash||(this._resizeSash=this._disposables.add(new h.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((function(){e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getOption(49),o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;5<r&&r<35&&t._relayout(r)}}))))},D.prototype.getHorizontalSashLeft=function(){return 0},D.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},D.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},D);function D(e,t){var n=this;void 0===t&&(t={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new f.b,this.container=null,this._isShowing=!1,this.editor=e,this.options=l.c(t),l.g(this.options,_,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)})))}var x=n(445),N=n(456),k=n(448),E=n(792),I=n(449),M=n(461);n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return B})),n.d(t,"c",(function(){return U})),n.d(t,"p",(function(){return q})),n.d(t,"q",(function(){return G})),n.d(t,"r",(function(){return Y})),n.d(t,"e",(function(){return Z})),n.d(t,"j",(function(){return X})),n.d(t,"l",(function(){return $})),n.d(t,"k",(function(){return J})),n.d(t,"n",(function(){return Q})),n.d(t,"o",(function(){return ee})),n.d(t,"f",(function(){return te})),n.d(t,"g",(function(){return ne})),n.d(t,"m",(function(){return ie})),n.d(t,"h",(function(){return oe})),n.d(t,"i",(function(){return re}));var T,P,R,A=(T=function(e,t){return(T=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}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=Object(k.c)("IPeekViewService");function j(){this._widgets=new Map}Object(E.b)(F,(j.prototype.addExclusiveWidget=function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))}))})},j)),(R=P=P||{}).inPeekEditor=new N.d("inReferenceSearchEditor",!0),R.notInPeekEditor=R.inPeekEditor.toNegated();var W=(V.prototype.dispose=function(){},V.ID="editor.contrib.referenceController",V=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,N.c)],V));function V(e,t){e instanceof d.a&&P.inPeekEditor.bindTo(t)}function B(e){var t=e.get(c.a).getFocusedCodeEditor();return t instanceof d.a?t.getParentEditor():t}Object(I.h)(W.ID,W);var H,z={headerBackgroundColor:s.a.white,primaryHeadingColor:s.a.fromHex("#333333"),secondaryHeadingColor:s.a.fromHex("#6c6c6cb3")},U=(A(K,H=L),K.prototype.dispose=function(){H.prototype.dispose.call(this),this._onDidClose.fire(this)},K.prototype.style=function(e){var t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),H.prototype.style.call(this,e)},K.prototype._applyStyles=function(){H.prototype._applyStyles.call(this);var e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())},K.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=i.a(".head"),this._bodyElement=i.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},K.prototype._fillHead=function(e){var t=this,n=i.a(".peekview-title");i.q(this._headElement,n),i.o(n,"click",(function(e){return t._onTitleClick(e)})),this._fillTitleIcon(n),this._primaryHeading=i.a("span.filename"),this._secondaryHeading=i.a("span.dirname"),this._metaHeading=i.a("span.meta"),i.q(n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var s=i.a(".peekview-actions");i.q(this._headElement,s);var a=this._getActionBarOptions();this._actionbarWidget=new o.a(s,a),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new r.a("peekview.close",x.a("label.close","Close"),"codicon-close",!0,(function(){return t.dispose(),Promise.resolve()})),{label:!1,icon:!0})},K.prototype._fillTitleIcon=function(e){},K.prototype._getActionBarOptions=function(){return{}},K.prototype._onTitleClick=function(e){},K.prototype.setTitle=function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=u.o(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=u.o(t):i.t(this._secondaryHeading))},K.prototype.setMetaTitle=function(e){this._metaHeading&&(e?(this._metaHeading.innerHTML=u.o(e),i.X(this._metaHeading)):i.J(this._metaHeading))},K.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getOption(49)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},K.prototype._doLayoutHead=function(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)},K.prototype._doLayoutBody=function(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")},K);function K(e,t){void 0===t&&(t={});var n=H.call(this,e,t)||this;return n._onDidClose=new a.a,n.onDidClose=n._onDidClose.event,l.g(n.options,z,!1),n}var q=Object(M.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},x.a("peekViewTitleBackground","Background color of the peek view title area.")),G=Object(M.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},x.a("peekViewTitleForeground","Color of the peek view title.")),Y=Object(M.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},x.a("peekViewTitleInfoForeground","Color of the peek view title info.")),Z=Object(M.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:M.e},x.a("peekViewBorder","Color of the peek view borders and arrow.")),X=Object(M.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:s.a.black},x.a("peekViewResultsBackground","Background color of the peek view result list.")),$=Object(M.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:s.a.white},x.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),J=Object(M.Tb)("peekViewResult.fileForeground",{dark:s.a.white,light:"#1E1E1E",hc:s.a.white},x.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Q=Object(M.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},x.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ee=Object(M.Tb)("peekViewResult.selectionForeground",{dark:s.a.white,light:"#6C6C6C",hc:s.a.white},x.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),te=Object(M.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:s.a.black},x.a("peekViewEditorBackground","Background color of the peek view editor.")),ne=Object(M.Tb)("peekViewEditorGutter.background",{dark:te,light:te,hc:te},x.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),ie=Object(M.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},x.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),oe=Object(M.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},x.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),re=Object(M.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:M.b},x.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(439),o=n(444),r=n(449),s=n(440),a=n(466),l=n(469),u=n(900),c=n(456),d=n(828),h=n(459),p=(n(1379),n(704)),f=n(495),g=n(955),m=n(963),v=n(448),_=n(964),b=n(445),y=n(791),C=n(554),w=n(575),S=n(479),O="code-workspace";function L(e){return e instanceof S.a}var D=n(956),x=(N.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}},N);function N(e){this._delegates=e}var k=(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&&e.snippet){var i=this._model.getLineContent(this._selection.startLineNumber),r=Object(o.t)(i,0,this._selection.startColumn-1),s=r;e.snippet.walk((function(t){return t!==e&&(t instanceof _.d&&(s=Object(o.t)(t.value.split(/\r\n|\r|\n/).pop())),!0)}));var a=Object(o.c)(s,r);n=n.replace(/(\r\n|\r|\n)(.*)/g,(function(e,t,n){return""+t+s.substr(a)+n}))}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"!==t)return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0;var l=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return l&&l.word||void 0},E);function E(e,t){this._model=e,this._selection=t}var I=(M.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return y.basename(this._model.uri.fsPath);if("TM_FILENAME_BASE"!==t)return"TM_DIRECTORY"===t&&this._labelService?"."===y.dirname(this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(C.d)(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0;var n=y.basename(this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i)},M);function M(e,t){this._labelService=e,this._model=t}var T=(P.prototype.resolve=function(e){if("CLIPBOARD"===e.name){var t=this._readClipboardText();if(t){if(this._spread){var n=t.split(/\r\n|\n|\r/).filter((function(e){return!Object(o.x)(e)}));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}},P);function P(e,t,n,i){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=i}var R=(A.prototype.resolve=function(e){var t=e.name,n=this._model.getLanguageIdentifier(),i=w.a.getComments(n.id);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0},A);function A(e){this._model=e}var F=(j.prototype.resolve=function(e){var t=e.name;return"CURRENT_YEAR"===t?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===t?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===t?Object(o.F)((new Date).getMonth().valueOf()+1,2):"CURRENT_DATE"===t?Object(o.F)((new Date).getDate().valueOf(),2):"CURRENT_HOUR"===t?Object(o.F)((new Date).getHours().valueOf(),2):"CURRENT_MINUTE"===t?Object(o.F)((new Date).getMinutes().valueOf(),2):"CURRENT_SECOND"===t?Object(o.F)((new Date).getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===t?j.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===t?j.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===t?j.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?j.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(Date.now()/1e3)):void 0},j.dayNames=[b.a("Sunday","Sunday"),b.a("Monday","Monday"),b.a("Tuesday","Tuesday"),b.a("Wednesday","Wednesday"),b.a("Thursday","Thursday"),b.a("Friday","Friday"),b.a("Saturday","Saturday")],j.dayNamesShort=[b.a("SundayShort","Sun"),b.a("MondayShort","Mon"),b.a("TuesdayShort","Tue"),b.a("WednesdayShort","Wed"),b.a("ThursdayShort","Thu"),b.a("FridayShort","Fri"),b.a("SaturdayShort","Sat")],j.monthNames=[b.a("January","January"),b.a("February","February"),b.a("March","March"),b.a("April","April"),b.a("May","May"),b.a("June","June"),b.a("July","July"),b.a("August","August"),b.a("September","September"),b.a("October","October"),b.a("November","November"),b.a("December","December")],j.monthNamesShort=[b.a("JanuaryShort","Jan"),b.a("FebruaryShort","Feb"),b.a("MarchShort","Mar"),b.a("AprilShort","Apr"),b.a("MayShort","May"),b.a("JuneShort","Jun"),b.a("JulyShort","Jul"),b.a("AugustShort","Aug"),b.a("SeptemberShort","Sep"),b.a("OctoberShort","Oct"),b.a("NovemberShort","Nov"),b.a("DecemberShort","Dec")],j);function j(){}var W=(V.prototype.resolve=function(e){if(this._workspaceService){var t,n=(t=this._workspaceService.getWorkspace()).configuration?{configPath:t.configuration,id:t.id}:1===t.folders.length?t.folders[0].uri:void 0;if(n)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(n):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(n):void 0}},V.prototype._resolveWorkspaceName=function(e){if(L(e))return y.basename(e.path);var t=y.basename(e.configPath.path);return Object(o.m)(t,O)&&(t=t.substr(0,t.length-O.length-1)),t},V.prototype._resoveWorkspacePath=function(e){if(L(e))return Object(D.c)(e.fsPath);var t=y.basename(e.configPath.path),n=e.configPath.fsPath;return Object(o.m)(n,t)&&(n=n.substr(0,n.length-t.length-1)),n?Object(D.c)(n):"/"},V);function V(e){this._workspaceService=e}var B=(H.prototype.resolve=function(e){var t=e.name;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):void 0},H);function H(){}var z=n(451),U=n(461),K=n(898);Object(z.e)((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(U.bc)+"; outline-color: "+n(U.cc)+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(U.Zb)+"; outline-color: "+n(U.ac)+"; }")}));var q=(G.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},G.prototype._initDecorations=function(){var e=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var t=this._editor.getModel();this._editor.changeDecorations((function(n){for(var i=0,o=e._snippet.placeholders;i<o.length;i++){var r=o[i],a=e._snippet.offset(r),l=e._snippet.fullLen(r),u=s.a.fromPositions(t.getPositionAt(e._offset+a),t.getPositionAt(e._offset+a+l)),c=r.isFinalTabstop?G._decor.inactiveFinal:G._decor.inactive,d=n.addDecoration(u,c);e._placeholderDecorations.set(r,d)}}))}},G.prototype.move=function(e){var t=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),0<=this._placeholderGroupsIdx){for(var n=[],i=0,o=this._placeholderGroups[this._placeholderGroupsIdx];i<o.length;i++){var r=o[i];if(r.transform){var s=this._placeholderDecorations.get(r),l=this._editor.getModel().getDecorationRange(s),u=this._editor.getModel().getValueInRange(l);n.push(p.a.replaceMove(l,r.transform.resolve(u)))}}0<n.length&&this._editor.executeEdits("snippet.placeholderTransform",n)}var c=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,c=!0):!1===e&&0<this._placeholderGroupsIdx&&(--this._placeholderGroupsIdx,c=!0);var d=this._editor.getModel().changeDecorations((function(e){for(var n=new Set,i=[],o=0,r=t._placeholderGroups[t._placeholderGroupsIdx];o<r.length;o++){var s=r[o],l=t._placeholderDecorations.get(s),u=t._editor.getModel().getDecorationRange(l);i.push(new a.a(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)),c=c&&t._hasPlaceholderBeenCollapsed(s),e.changeDecorationOptions(l,s.isFinalTabstop?G._decor.activeFinal:G._decor.active),n.add(s);for(var d=0,h=t._snippet.enclosingPlaceholders(s);d<h.length;d++){var p=h[d],f=t._placeholderDecorations.get(p);e.changeDecorationOptions(f,p.isFinalTabstop?G._decor.activeFinal:G._decor.active),n.add(p)}}return t._placeholderDecorations.forEach((function(t,i){n.has(i)||e.changeDecorationOptions(t,i.isFinalTabstop?G._decor.inactiveFinal:G._decor.inactive)})),i}));return c?this.move(e):d},G.prototype._hasPlaceholderBeenCollapsed=function(e){for(var t=e;t;){if(t instanceof _.b){var n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&0<t.toString().length)return!0}t=t.parent}return!1},Object.defineProperty(G.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"hasPlaceholder",{get:function(){return 0<this._snippet.placeholders.length},enumerable:!0,configurable:!0}),G.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),l=this._editor.getModel().getDecorationRange(a);if(!l){e.delete(s.index);break}i.push(l)}return e},Object.defineProperty(G.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),G.prototype.merge=function(e){var t=this,n=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((function(i){for(var o=0,r=t._placeholderGroups[t._placeholderGroupsIdx];o<r.length;o++){for(var a=r[o],l=e.shift(),u=l._snippet.placeholderInfo.last.index,c=0,d=l._snippet.placeholderInfo.all;c<d.length;c++){var p=d[c];p.isFinalTabstop?p.index=a.index+(u+1)/t._nestingLevel:p.index=a.index+p.index/t._nestingLevel}t._snippet.replace(a,l._snippet.children);var f=t._placeholderDecorations.get(a);i.removeDecoration(f),t._placeholderDecorations.delete(a);for(var g=0,m=l._snippet.placeholders;g<m.length;g++){var v=m[g],b=l._snippet.offset(v),y=l._snippet.fullLen(v),C=s.a.fromPositions(n.getPositionAt(l._offset+b),n.getPositionAt(l._offset+b+y)),w=i.addDecoration(C,G._decor.inactive);t._placeholderDecorations.set(v,w)}}t._placeholderGroups=Object(h.o)(t._snippet.placeholders,_.b.compareByIndex)}))},G._decor={active:f.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:f.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"})},G);function G(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(h.o)(t.placeholders,_.b.compareByIndex),this._placeholderGroupsIdx=-1}var Y={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},Z=(X.adjustWhitespace=function(e,t,n,i,r){var s=e.getLineContent(t.lineNumber),a=Object(o.t)(s,0,t.column-1);n.walk((function(t){if(t instanceof _.d&&!(t.parent instanceof _.a)){var n=t.value.split(/\r\n|\r|\n/);if(i)for(var s=1;s<n.length;s++){var l=Object(o.t)(n[s]);n[s]=e.normalizeIndentation(a+l)+n[s].substr(l.length)}if(r){var u=n.join(e.getEOL());u!==t.value&&t.parent.replace(t,[new _.d(u)])}}return!0}))},X.adjustSelection=function(e,t,n,i){if(0!==n||0!==i){var o=t.positionLineNumber,r=t.positionColumn,s=r-n,l=r+i,u=e.validateRange({startLineNumber:o,startColumn:s,endLineNumber:o,endColumn:l});t=a.a.createWithDirection(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn,t.getDirection())}return t},X.createEditsAndSnippets=function(e,t,n,i,o,r,a){var l=[],u=[];if(!e.hasModel())return{edits:l,snippets:u};for(var c=e.getModel(),d=e.invokeWithinContext((function(e){return e.get(m.a,v.d)})),h=e.invokeWithinContext((function(e){return new I(e.get(K.a,v.d),c)})),f=e.invokeWithinContext((function(e){return e.get(g.a,v.d)})),b=function(){return a||f&&f.readTextSync()},y=0,C=c.getValueInRange(X.adjustSelection(c,e.getSelection(),n,0)),w=c.getValueInRange(X.adjustSelection(c,e.getSelection(),0,i)),S=c.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),O=e.getSelections().map((function(e,t){return{selection:e,idx:t}})).sort((function(e,t){return s.a.compareRangesUsingStarts(e.selection,t.selection)})),L=0,D=O;L<D.length;L++){var N=D[L],E=N.selection,M=N.idx,P=X.adjustSelection(c,E,n,0),A=X.adjustSelection(c,E,0,i);C!==c.getValueInRange(P)&&(P=E),w!==c.getValueInRange(A)&&(A=E);var j=E.setStartPosition(P.startLineNumber,P.startColumn).setEndPosition(A.endLineNumber,A.endColumn),V=(new _.c).parse(t,!0,o),H=j.getStartPosition();X.adjustWhitespace(c,H,V,r||0<M&&S!==c.getLineFirstNonWhitespaceColumn(E.positionLineNumber),!0),V.resolveVariables(new x([h,new T(b,M,O.length,"spread"===e.getOption(60)),new k(c,E),new R(c),new F,new W(d),new B]));var z=c.getOffsetAt(H)+y;y+=V.toString().length-c.getValueLengthInRange(j),l[M]=p.a.replace(j,V.toString()),u[M]=new q(e,V,z)}return{edits:l,snippets:u}},X.prototype.dispose=function(){Object(i.f)(this._snippets)},X.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},X.prototype.insert=function(){var e=this;if(this._editor.hasModel()){var t=X.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),n=t.edits,i=t.snippets;this._snippets=i,this._editor.executeEdits("snippet",n,(function(t){return e._snippets[0].hasPlaceholder?e._move(!0):t.map((function(e){return a.a.fromPositions(e.range.getEndPosition())}))})),this._editor.revealRange(this._editor.getSelections()[0])}},X.prototype.merge=function(e,t){var n=this;if(void 0===t&&(t=Y),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);var i=X.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText),o=i.edits,r=i.snippets;this._editor.executeEdits("snippet",o,(function(e){for(var t=0,i=n._snippets;t<i.length;t++)i[t].merge(r);return n._snippets[0].hasPlaceholder?n._move(void 0):e.map((function(e){return a.a.fromPositions(e.range.getEndPosition())}))}))}},X.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},X.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},X.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(X.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),X.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;for(var t=new Map,n=function(n){var i=n.computePossibleSelections();if(0===t.size&&i.forEach((function(n,i){n.sort(s.a.compareRangesUsingStarts);for(var o=0,r=e;o<r.length;o++){var a=r[o];if(n[0].containsRange(a)){t.set(i,[]);break}}})),0===t.size)return{value:!1};t.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 e.sort(s.a.compareRangesUsingStarts),t.forEach((function(n,i){if(n.length===e.length){n.sort(s.a.compareRangesUsingStarts);for(var o=0;o<n.length;o++)if(!n[o].containsRange(e[o]))return void t.delete(i)}else t.delete(i)})),0<t.size},X);function X(e,t,n){void 0===n&&(n=Y),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}n.d(t,"SnippetController2",(function(){return ee}));var $=function(){return($=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)},J=function(e,t){return function(n,i){t(n,i,e)}},Q={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},ee=(te.get=function(e){return e.getContribution(te.ID)},te.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(i.f)(this._session),this._snippetListener.dispose()},te.prototype.insert=function(e,t){try{this._doInsert(e,void 0===t?Q:$($({},Q),t))}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>")}},te.prototype._doInsert=function(e,t){var n=this;this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Z(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((function(e){return e.isFlush&&n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeModel((function(){return n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((function(){return n._updateState()}))))},te.prototype._updateState=function(){if(this._session&&this._editor.hasModel()){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()}},te.prototype._handleChoice=function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.choice;if(t){if(this._currentChoice!==t){this._currentChoice=t,this._editor.setSelections(this._editor.getSelections().map((function(e){return a.a.fromPositions(e.getStartPosition())})));var n=t.options[0];Object(u.f)(this._editor,t.options.map((function(t,i){return{kind:13,label:t.value,insertText:t.value,sortText:Object(o.J)("a",i+1),range:s.a.fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}})))}}else this._currentChoice=void 0}else this._currentChoice=void 0},te.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},te.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(i.f)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},te.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},te.prototype.next=function(){this._session&&this._session.next(),this._updateState()},te.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},te.ID="snippetController2",te.InSnippetMode=new c.d("inSnippetMode",!1),te.HasNextTabstop=new c.d("hasNextTabstop",!1),te.HasPrevTabstop=new c.d("hasPrevTabstop",!1),te=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([J(1,d.a),J(2,c.c)],te));function te(e,t,n){this._editor=e,this._logService=t,this._snippetListener=new i.b,this._modelVersionId=-1,this._inSnippet=te.InSnippetMode.bindTo(n),this._hasNextTabstop=te.HasNextTabstop.bindTo(n),this._hasPrevTabstop=te.HasPrevTabstop.bindTo(n)}Object(r.h)(ee.ID,ee);var ne=r.c.bindToContribution(ee.get);Object(r.g)(new ne({id:"jumpToNextSnippetPlaceholder",precondition:c.a.and(ee.InSnippetMode,ee.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:2}})),Object(r.g)(new ne({id:"jumpToPrevSnippetPlaceholder",precondition:c.a.and(ee.InSnippetMode,ee.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:1026}})),Object(r.g)(new ne({id:"leaveSnippet",precondition:ee.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:l.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(r.g)(new ne({id:"acceptSnippet",precondition:ee.InSnippetMode,handler:function(e){return e.finish()}}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(465),r=n(449),s=n(504),a=n(555),l=n(450),u=n(440),c=(d.columnSelect=function(e,t,n,i,o,r){for(var s=Math.abs(o-n)+1,c=o<n,d=r<i,h=i<r,p=[],f=0;f<s;f++){var g=n+(c?-f:f),m=a.a.columnFromVisibleColumn2(e,t,g,i),v=a.a.columnFromVisibleColumn2(e,t,g,r),_=a.a.visibleColumnFromColumn2(e,t,new l.a(g,m)),b=a.a.visibleColumnFromColumn2(e,t,new l.a(g,v));if(h){if(r<_)continue;if(b<i)continue}if(d){if(i<b)continue;if(_<r)continue}p.push(new a.f(new u.a(g,m,g,m),0,new l.a(g,v),0))}if(0===p.length)for(f=0;f<s;f++){g=n+(c?-f:f);var y=t.getLineMaxColumn(g);p.push(new a.f(new u.a(g,y,g,y),0,new l.a(g,y),0))}return{viewStates:p,reversed:c,fromLineNumber:n,fromVisualColumn:i,toLineNumber:o,toVisualColumn:r}},d.columnSelectLeft=function(e,t,n){var i=n.toViewVisualColumn;return 1<i&&i--,d.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,i)},d.columnSelectRight=function(e,t,n){for(var i=0,o=Math.min(n.fromViewLineNumber,n.toViewLineNumber),r=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=o;s<=r;s++){var u=t.getLineMaxColumn(s),c=a.a.visibleColumnFromColumn2(e,t,new l.a(s,u));i=Math.max(i,c)}var d=n.toViewVisualColumn;return d<i&&d++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,d)},d.columnSelectUp=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.max(1,n.toViewLineNumber-o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},d.columnSelectDown=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.min(t.getLineCount(),n.toViewLineNumber+o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},d);function d(){}var h=n(1083),p=n(1084),f=n(974),g=n(776),m=n(469),v=n(456);n.d(t,"CoreEditorCommand",(function(){return R})),n.d(t,"EditorScroll_",(function(){return y})),n.d(t,"RevealLine_",(function(){return w})),n.d(t,"CoreNavigationCommands",(function(){return O})),n.d(t,"CoreEditingCommands",(function(){return L}));var _,b,y,C,w,S,O,L,D,x,N,k,E,I,M,T,P=(_=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)}),R=(b=r.c,P(A,b),A.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},A);function A(){return null!==b&&b.apply(this,arguments)||this}function F(){return null!==x&&x.apply(this,arguments)||this}function j(){return N.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:301}}})||this}function W(){return k.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:v.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1026}})||this}function V(){return E.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:v.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}function B(){return I.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}function H(){return M.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}function z(e){e.register()}(C=y=y||{}).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(!o.i(e))return!1;var t=e;return!!o.j(t.to)&&!(!o.k(t.by)&&!o.j(t.by))&&!(!o.k(t.value)&&!o.h(t.value))&&!(!o.k(t.revealCursor)&&!o.e(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},C.RawDirection={Up:"up",Down:"down"},C.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},C.parse=function(e){var t,n;switch(e.to){case C.RawDirection.Up:t=1;break;case C.RawDirection.Down:t=2;break;default:return null}switch(e.by){case C.RawUnit.Line:n=1;break;case C.RawUnit.WrappedLine:n=2;break;case C.RawUnit.Page:n=3;break;case C.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(S=w=w||{}).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(!o.i(e))return!1;var t=e;return!!o.h(t.lineNumber)&&!(!o.k(t.at)&&!o.j(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},S.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t,n=(P(i,t=R),i.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!0,0,0)},i);function i(e){var n=t.call(this,e)||this;return n._inSelectionMode=e.inSelectionMode,n}e.MoveTo=Object(r.g)(new n({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(r.g)(new n({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var o,s,d,h,f=(P(g,o=R),g.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 a.d.fromViewState(e)}))),e.setColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(t.source,!0,n.reversed?1:2,0)},g);function g(){return null!==o&&o.apply(this,arguments)||this}function v(){return s.call(this,{id:"columnSelect",precondition:void 0})||this}function _(){return d.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3599,linux:{primary:0}}})||this}function b(){return h.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3601,linux:{primary:0}}})||this}e.ColumnSelect=Object(r.g)((P(v,s=f),v.prototype._getColumnSelectResult=function(e,t,n,i){var o=e.model.validatePosition(i.position),r=e.validateViewPosition(new l.a(i.viewPosition.lineNumber,i.viewPosition.column),o),s=i.doColumnSelect?n.fromViewLineNumber:r.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return c.columnSelect(e.config,e.viewModel,s,a,r.lineNumber,i.mouseColumn-1)},new v)),e.CursorColumnSelectLeft=Object(r.g)((P(_,d=f),_.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectLeft(e.config,e.viewModel,n)},new _)),e.CursorColumnSelectRight=Object(r.g)((P(b,h=f),b.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectRight(e.config,e.viewModel,n)},new b));var C,S=(P(O,C=f),O.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},O);function O(e){var t=C.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectUp=Object(r.g)(new S({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(r.g)(new S({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3595,linux:{primary:0}}}));var L,D=(P(x,L=f),x.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},x);function x(e){var t=L.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectDown=Object(r.g)(new D({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(r.g)(new D({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3596,linux:{primary:0}}}));var N,k=(P(E,N=R),E.prototype.runCoreEditorCommand=function(e,t){var n=p.a.parse(t);n&&this._runCursorMove(e,t.source,n)},E.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,p.b.move(e.context,e.getAll(),n)),e.reveal(t,!0,0,0)},E);function E(){return N.call(this,{id:"cursorMove",precondition:void 0,description:p.a.description})||this}e.CursorMoveImpl=k,e.CursorMove=Object(r.g)(new k);var I,M,T,A=(P(F,I=R),F.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)},F);function F(e){var t=I.call(this,e)||this;return t._staticArgs=e.args,t}function j(){return M.call(this,{id:"createCursor",precondition:void 0})||this}function W(){return T.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}e.CursorLeft=Object(r.g)(new A({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(r.g)(new A({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1039}})),e.CursorRight=Object(r.g)(new A({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(r.g)(new A({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1041}})),e.CursorUp=Object(r.g)(new A({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(r.g)(new A({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(r.g)(new A({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(r.g)(new A({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1035}})),e.CursorDown=Object(r.g)(new A({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(r.g)(new A({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(r.g)(new A({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(r.g)(new A({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(r.g)((P(j,M=R),j.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?p.b.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):p.b.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(1<o.length)for(var r=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,l=o.length;a<l;a++){var u=o[a];if((!r||u.modelState.selection.containsPosition(r))&&(!s||u.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)},new j)),e.LastCursorMoveToSelect=Object(r.g)((P(W,T=R),W.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0);r[i]=p.b.moveTo(n,o[i],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},new W));var V,B,H=(P(z,V=R),z.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},z);function z(e){var t=V.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function U(){return B.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:287}}})||this}e.CursorHome=Object(r.g)(new H({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(r.g)(new H({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=Object(r.g)((P(U,B=R),U.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},U.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]=a.d.fromModelState(r.modelState.move(!1,s,1,0))}return n},new U));var K,q,G=(P(Y,K=R),Y.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},Y);function Y(e){var t=K.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function Z(){return q.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:291}}})||this}e.CursorEnd=Object(r.g)(new G({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=Object(r.g)(new G({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=Object(r.g)((P(Z,q=R),Z.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},Z.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,l=e.model.getLineMaxColumn(s);n[i]=a.d.fromModelState(r.modelState.move(!1,s,l,0))}return n},new Z));var X,$=(P(J,X=R),J.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},J);function J(e){var t=X.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.CursorTop=Object(r.g)(new $({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(r.g)(new $({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3086,mac:{primary:3088}}}));var Q,ee=(P(te,Q=R),te.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},te);function te(e){var t=Q.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.CursorBottom=Object(r.g)(new ee({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(r.g)(new ee({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:3085,mac:{primary:3090}}}));var ne,ie,oe,re,se,ae=(P(le,ne=R),le.prototype.runCoreEditorCommand=function(e,t){var n=y.parse(t);n&&this._runEditorScroll(e,t.source,n)},le.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,[p.b.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),o,n.select)])}e.scrollTo(i)},le.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n,i=e.getCompletelyVisibleModelRange();n=1===t.direction?Math.max(1,i.startLineNumber-t.value):Math.min(e.model.getLineCount(),i.startLineNumber+t.value);var o=e.convertModelPositionToViewPosition(new l.a(n,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},le);function le(){return ne.call(this,{id:"editorScroll",precondition:void 0,description:y.description})||this}function ue(){return ie.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2064,mac:{primary:267}}})||this}function ce(){return oe.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}function de(){return re.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2066,mac:{primary:268}}})||this}function he(){return se.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}e.EditorScrollImpl=ae,e.EditorScroll=Object(r.g)(new ae),e.ScrollLineUp=Object(r.g)((P(ue,ie=R),ue.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},new ue)),e.ScrollPageUp=Object(r.g)((P(ce,oe=R),ce.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},new ce)),e.ScrollLineDown=Object(r.g)((P(de,re=R),de.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},new de)),e.ScrollPageDown=Object(r.g)((P(he,se=R),he.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},new he));var pe,fe,ge=(P(me,pe=R),me.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(t.source,!0,0,0)},me);function me(e){var t=pe.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function ve(){return fe.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}e.WordSelect=Object(r.g)(new ge({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(r.g)(new ge({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(r.g)((P(ve,fe=R),ve.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0),s=o[i];r[i]=p.b.word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,r)},new ve));var _e,be=(P(ye,_e=R),ye.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!1,0,0)},ye);function ye(e){var t=_e.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}e.LineSelect=Object(r.g)(new be({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(r.g)(new be({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var Ce,we,Se,Oe,Le,De,xe,Ne=(P(ke,Ce=R),ke.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0);o[n]=p.b.line(e.context,i[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},ke);function ke(e){var t=Ce.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t}function Ee(){return we.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2090}})||this}function Ie(){return Se.call(this,{id:"cancelSelection",precondition:m.a.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:9,secondary:[1033]}})||this}function Me(){return Oe.call(this,{id:"removeSecondaryCursors",precondition:m.a.hasMultipleSelections,kbOpts:{weight:1,kbExpr:m.a.textInputFocus,primary:9,secondary:[1033]}})||this}function Te(){return Le.call(this,{id:"revealLine",precondition:void 0,description:w.description})||this}function Pe(){return De.call(this,{id:"selectAll",precondition:void 0})||this}function Re(){return xe.call(this,{id:"setSelection",precondition:void 0})||this}e.LastCursorLineSelect=Object(r.g)(new Ne({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(r.g)(new Ne({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(r.g)((P(Ee,we=R),Ee.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,p.b.expandLineSelection(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},new Ee)),e.CancelSelection=Object(r.g)((P(Ie,Se=R),Ie.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(t.source,!0,0,0)},new Ie)),e.RemoveSecondaryCursors=Object(r.g)((P(Me,Oe=R),Me.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(t.source,!0,0,0)},new Me)),e.RevealLine=Object(r.g)((P(Te,Le=R),Te.prototype.runCoreEditorCommand=function(e,t){var n=t,i=(n.lineNumber||0)+1;i<1&&(i=1);var o=e.context.model.getLineCount();o<i&&(i=o);var r=new u.a(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case w.RawAtArgument.Top:s=3;break;case w.RawAtArgument.Center:s=1;break;case w.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,a,s,0)},new Te)),e.SelectAll=Object(r.g)((P(Pe,De=R),Pe.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[p.b.selectAll(e.context,e.getPrimaryCursor())])},new Pe)),e.SetSelection=Object(r.g)((P(Re,xe=R),Re.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[a.d.fromModelSelection(t.selection)])},new Re))}(O=O||{}),D=L=L||{},x=r.c,P(F,x),F.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{})},T=F,D.CoreEditingCommand=T,D.LineBreakInsert=Object(r.g)((P(j,N=T),j.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},new j)),D.Outdent=Object(r.g)((P(W,k=T),W.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},new W)),D.Tab=Object(r.g)((P(V,E=T),V.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},new V)),D.DeleteLeft=Object(r.g)((P(B,I=T),B.prototype.runCoreEditingCommand=function(e,t,n){var i=h.a.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)},new B)),D.DeleteRight=Object(r.g)((P(H,M=T),H.prototype.runCoreEditingCommand=function(e,t,n){var i=h.a.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)},new H));var U,K=(U=r.a,P(q,U),q.prototype.runCommand=function(e,t){var n=e.get(s.a).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&0<=["input","textarea"].indexOf(i.tagName.toLowerCase()))){var o=e.get(s.a).getActiveCodeEditor();return o?(o.focus(),this._runEditorHandler(e,o,t)):void 0}document.execCommand(this._inputHandler)},q.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))},q);function q(e){var t=U.call(this,e)||this;return t._editorHandler=e.editorHandler,t._inputHandler=e.inputHandler,t}var G,Y=(G=r.a,P(Z,G),Z.prototype.runCommand=function(e,t){var n=e.get(s.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},Z);function Z(e,t,n){var i=G.call(this,{id:e,precondition:void 0,description:n})||this;return i._handlerId=t,i}function X(e,t){z(new Y("default:"+e,e)),z(new Y(e,e,t))}z(new K({editorHandler:O.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:{menuId:25,group:"1_basic",title:i.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),z(new K({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2104},menuOpts:{menuId:17,group:"1_do",title:i.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),z(new Y("default:"+g.b.Undo,g.b.Undo)),z(new K({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:0,kbExpr:m.a.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:{menuId:17,group:"1_do",title:i.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),z(new Y("default:"+g.b.Redo,g.b.Redo)),X(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),X(g.b.ReplacePreviousChar),X(g.b.CompositionStart),X(g.b.CompositionEnd),X(g.b.Paste),X(g.b.Cut)},,,function(e,t,n){"use strict";n(1337);var i,o=n(445),r=n(443),s=n(446),a=n(442),l=n(439),u=n(596),c=n(707),d=n(449),h=n(504),p=n(488),f=n(452),g=n(702),m=n(478),v=n(595),_=n(453),b=n(793),y=(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)}),C=(w.prototype.toClientCoordinates=function(){return new S(this.x-r.e.scrollX,this.y-r.e.scrollY)},w);function w(e,t){this.x=e,this.y=t}var S=(O.prototype.toPageCoordinates=function(){return new C(this.clientX+r.e.scrollX,this.clientY+r.e.scrollY)},O);function O(e,t){this.clientX=e,this.clientY=t}var L=function(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i};function D(e){var t=r.C(e);return new L(t.left,t.top,t.width,t.height)}var x,N=(y(k,x=v.b),k);function k(e,t){var n=x.call(this,e)||this;return n.pos=new C(n.posx,n.posy),n.editorPos=D(t),n}var E=(I.prototype._create=function(e){return new N(e,this._editorViewDomNode)},I.prototype.onContextMenu=function(e,t){var n=this;return r.j(e,"contextmenu",(function(e){t(n._create(e))}))},I.prototype.onMouseUp=function(e,t){var n=this;return r.j(e,"mouseup",(function(e){t(n._create(e))}))},I.prototype.onMouseDown=function(e,t){var n=this;return r.j(e,"mousedown",(function(e){t(n._create(e))}))},I.prototype.onMouseLeave=function(e,t){var n=this;return r.k(e,(function(e){t(n._create(e))}))},I.prototype.onMouseMoveThrottled=function(e,t,n,i){var o=this;return r.m(e,"mousemove",t,(function(e,t){return n(e,o._create(t))}),i)},I);function I(e){this._editorViewDomNode=e}var M=(T.prototype._create=function(e){return new N(e,this._editorViewDomNode)},T.prototype.onPointerUp=function(e,t){var n=this;return r.j(e,"pointerup",(function(e){t(n._create(e))}))},T.prototype.onPointerDown=function(e,t){var n=this;return r.j(e,"pointerdown",(function(e){t(n._create(e))}))},T.prototype.onPointerLeave=function(e,t){var n=this;return r.l(e,(function(e){t(n._create(e))}))},T.prototype.onPointerMoveThrottled=function(e,t,n,i){var o=this;return r.m(e,"pointermove",t,(function(e,t){return n(e,o._create(t))}),i)},T);function T(e){this._editorViewDomNode=e}var P,R=(y(A,P=l.a),A.prototype.startMonitoring=function(e,t,n,i,o){var s=this;this._keydownListener=r.o(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||s._globalMouseMoveMonitor.stopMonitoring(!0)}),!0),this._globalMouseMoveMonitor.startMonitoring(e,t,(function(e,t){return n(e,new N(t,s._editorViewDomNode))}),i,(function(){s._keydownListener.dispose(),o()}))},A);function A(e){var t=P.call(this)||this;return t._editorViewDomNode=e,t._globalMouseMoveMonitor=t._register(new b.a),t._keydownListener=null,t}var F,j,W=((F=function(e,t){return(F=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}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(V,j=l.a),V.prototype.shouldRender=function(){return this._shouldRender},V.prototype.forceShouldRender=function(){this._shouldRender=!0},V.prototype.setShouldRender=function(){this._shouldRender=!0},V.prototype.onDidRender=function(){this._shouldRender=!1},V.prototype.onConfigurationChanged=function(e){return!1},V.prototype.onContentSizeChanged=function(e){return!1},V.prototype.onCursorStateChanged=function(e){return!1},V.prototype.onDecorationsChanged=function(e){return!1},V.prototype.onFlushed=function(e){return!1},V.prototype.onFocusChanged=function(e){return!1},V.prototype.onLanguageConfigurationChanged=function(e){return!1},V.prototype.onLineMappingChanged=function(e){return!1},V.prototype.onLinesChanged=function(e){return!1},V.prototype.onLinesDeleted=function(e){return!1},V.prototype.onLinesInserted=function(e){return!1},V.prototype.onRevealRangeRequest=function(e){return!1},V.prototype.onScrollChanged=function(e){return!1},V.prototype.onThemeChanged=function(e){return!1},V.prototype.onTokensChanged=function(e){return!1},V.prototype.onTokensColorsChanged=function(e){return!1},V.prototype.onZonesChanged=function(e){return!1},V.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.onContentSizeChanged(o)&&(t=!0);break;case 3:this.onCursorStateChanged(o)&&(t=!0);break;case 4:this.onDecorationsChanged(o)&&(t=!0);break;case 5:this.onFlushed(o)&&(t=!0);break;case 6:this.onFocusChanged(o)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(o)&&(t=!0);break;case 8:this.onLineMappingChanged(o)&&(t=!0);break;case 9:this.onLinesChanged(o)&&(t=!0);break;case 10:this.onLinesDeleted(o)&&(t=!0);break;case 11:this.onLinesInserted(o)&&(t=!0);break;case 12:this.onRevealRangeRequest(o)&&(t=!0);break;case 13:this.onScrollChanged(o)&&(t=!0);break;case 15:this.onTokensChanged(o)&&(t=!0);break;case 14:this.onThemeChanged(o)&&(t=!0);break;case 16:this.onTokensColorsChanged(o)&&(t=!0);break;case 17:this.onZonesChanged(o)&&(t=!0)}}t&&(this._shouldRender=!0)},V);function V(){var e=j.call(this)||this;return e._shouldRender=!0,e}var B,H,z=((B=function(e,t){return(B=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}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(U,H=W),U.prototype.dispose=function(){this._context.removeEventHandler(this),H.prototype.dispose.call(this)},U);function U(e){var t=H.call(this)||this;return t._context=e,t._context.addEventHandler(t),t}var K=(q.write=function(e,t){p.a,e.setAttribute("data-mprt",String(t))},q.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},q.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},q);function q(){}var G,Y=(G=function(e,t){return(G=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}G(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Z=(X.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},X.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},X.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},X);function X(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}var $,J=(Y(Q,$=Z),Q.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},Q.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},Q);function Q(e,t,n){var i=$.call(this,e,t)||this;return i._viewLines=n,i}var ee=function(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n},te=(ne.prototype.toString=function(){return"["+this.left+","+this.width+"]"},ne);function ne(e,t){this.left=Math.round(e),this.width=Math.round(t)}var ie=function(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)},oe=function(e,t){this.outsideRenderedLine=e,this.ranges=t},re=(se.prototype.toString=function(){return"["+this.left+","+this.width+"]"},se.compare=function(e,t){return e.left-t.left},se);function se(e,t){this.left=e,this.width=t}var ae=(le._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},le._detachRange=function(e,t){e.selectNodeContents(t)},le._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)}},le._mergeAdjacentRanges=function(e){if(1===e.length)return[new te(e[0].left,e[0].width)];e.sort(re.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],l=a.left,u=a.width;o=l<=i+o+.9?Math.max(o,l+u-i):(t[n++]=new te(i,o),i=l,u)}return t[n++]=new te(i,o),t},le._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 re(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)},le.readHorizontalRanges=function(e,t,n,i,o,r,s){var a=e.children.length-1;if(a<0)return null;(t=Math.min(a,Math.max(0,t)))!==(i=Math.min(a,Math.max(0,i)))&&0<i&&0===o&&(i--,o=1073741824);var l=e.children[t].firstChild,u=e.children[i].firstChild;if(l&&u||(!l&&0===n&&0<t&&(l=e.children[t-1].firstChild,n=1073741824),!u&&0===o&&0<i&&(u=e.children[i-1].firstChild,o=1073741824)),!l||!u)return null;n=Math.min(l.textContent.length,Math.max(0,n)),o=Math.min(u.textContent.length,Math.max(0,o));var c=this._readClientRects(l,n,u,o,s);return this._createHorizontalRangesFromClientRects(c,r)},le);function le(){}var ue,ce=n(958),de=n(893),he=n(451),pe=n(530),fe=(ue=function(e,t){return(ue=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}ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=!!f.f||!(f.d||m.h||m.k),me=m.f,ve=(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);function _e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}var be=(ye.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},ye);function ye(e,t){this.themeType=t;var n=e.options,i=n.get(34);this.renderWhitespace=n.get(74),this.renderControlCharacters=n.get(69),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(23),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(49),this.stopRenderingLineAfter=n.get(88),this.fontLigatures=n.get(35)}var Ce=(we.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},we.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=Object(p.b)(e)},we.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},we.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},we.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},we.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},we.prototype.onSelectionChanged=function(){return!(!me&&this._options.themeType!==he.b&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0)},we.prototype.renderLine=function(e,t,n,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=n.getViewLineRenderingData(e),r=this._options,s=ce.a.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn),a=null;if(me||r.themeType===he.b||"selection"===this._options.renderWhitespace)for(var l=0,u=n.selections;l<u.length;l++){var c=u[l];if(!(c.endLineNumber<e||c.startLineNumber>e)){var d=c.startLineNumber===e?c.startColumn:o.minColumn,h=c.endLineNumber===e?c.endColumn:o.maxColumn;d<h&&("selection"!==this._options.renderWhitespace?s.push(new ce.a(d,h,"inline-selected-text",0)):(a=a||[]).push(new de.b(d-1,h-1)))}}var p=new de.c(r.useMonospaceOptimizations,r.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,s,o.tabSize,o.startVisibleColumn,r.spaceWidth,r.middotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==pe.d.OFF,a);if(this._renderedViewLine&&this._renderedViewLine.input.equals(p))return!1;i.appendASCIIString('<div style="top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;height:"),i.appendASCIIString(String(this._options.lineHeight)),i.appendASCIIString('px;" class="'),i.appendASCIIString(we.CLASS_NAME),i.appendASCIIString('">');var f=Object(de.d)(p,i);i.appendASCIIString("</div>");var g=null;return ge&&o.isBasicASCII&&r.useMonospaceOptimizations&&0===f.containsForeignElements&&o.content.length<300&&p.lineTokens.getCount()<100&&(g=new Se(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping)),g=g||Ee(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping,f.containsRTL,f.containsForeignElements),this._renderedViewLine=g,!0},we.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},we.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},we.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},we.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,o=!1;-1!=i&&1+i<e&&1+i<t&&(o=!0),-1!=i&&1+i<e&&(e=1+i),-1!=i&&1+i<t&&(t=1+i);var r=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return r&&0<r.length?new oe(o,r):null},we.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},we.CLASS_NAME="view-line",we);function we(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}var Se=(Oe.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},Oe.prototype.getWidthIsFast=function(){return!0},Oe.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new te(i,o-i)]},Oe.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},Oe.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},Oe);function Oe(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}var Le=(De.prototype._getReadingTarget=function(e){return e.domNode.firstChild},De.prototype.getWidth=function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},De.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},De.prototype.getVisibleRangesForRange=function(e,t,n){if(!this.domNode)return null;if(null===this._pixelOffsetCache)return this._readVisibleRangesForRange(this.domNode,e,t,n);var i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;var o=this._readPixelOffset(this.domNode,t,n);return-1===o?null:[new te(i,o-i)]},De.prototype._readVisibleRangesForRange=function(e,t,n,i){if(t!==n)return this._readRawVisibleRangesForRange(e,t,n,i);var o=this._readPixelOffset(e,t,i);return-1===o?null:[new te(o,0)]},De.prototype._readPixelOffset=function(e,t,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();var i=this._getReadingTarget(e);return i.firstChild?i.firstChild.offsetWidth:0}if(null===this._pixelOffsetCache)return this._actualReadPixelOffset(e,t,n);var o=this._pixelOffsetCache[t];if(-1!==o)return o;var r=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=r},De.prototype._actualReadPixelOffset=function(e,t,n){if(0===this._characterMapping.length){var i=ae.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return i&&0!==i.length?i[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var o=this._characterMapping.charOffsetToPartData(t-1),r=de.a.getPartIndex(o),s=de.a.getCharIndex(o),a=ae.readHorizontalRanges(this._getReadingTarget(e),r,s,r,s,n.clientRectDeltaLeft,n.endNode);return a&&0!==a.length?a[0].left:-1},De.prototype._readRawVisibleRangesForRange=function(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new te(0,this.getWidth())];var o=this._characterMapping.charOffsetToPartData(t-1),r=de.a.getPartIndex(o),s=de.a.getCharIndex(o),a=this._characterMapping.charOffsetToPartData(n-1),l=de.a.getPartIndex(a),u=de.a.getCharIndex(a);return ae.readHorizontalRanges(this._getReadingTarget(e),r,s,l,u,i.clientRectDeltaLeft,i.endNode)},De.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},De);function De(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}}var xe,Ne=(fe(ke,xe=Le),ke.prototype._readVisibleRangesForRange=function(e,t,n,i){var o=xe.prototype._readVisibleRangesForRange.call(this,e,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(e,n,i);if(-1!==r){var s=o[o.length-1];s.left<r&&(s.width=r-s.left)}}return o},ke);function ke(){return null!==xe&&xe.apply(this,arguments)||this}var Ee=m.m?function(e,t,n,i,o){return new Ne(e,t,n,i,o)}:function(e,t,n,i,o){return new Le(e,t,n,i,o)};var Ie,Me=n(450),Te=n(440),Pe=n(555),Re=(Ie=function(e,t){return(Ie=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}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ae=function(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t},Fe=(je._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"},je.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},je.prototype.toString=function(){return je.toString(this)},je);function je(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 Te.a(i.lineNumber,i.column,i.lineNumber,i.column)),this.range=o,this.detail=r}var We=(Ve.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},Ve.isChildOfViewLines=function(e){return 4<=e.length&&3===e[0]&&7===e[3]},Ve.isStrictChildOfViewLines=function(e){return 4<e.length&&3===e[0]&&7===e[3]},Ve.isChildOfScrollableElement=function(e){return 2<=e.length&&3===e[0]&&5===e[1]},Ve.isChildOfMinimap=function(e){return 2<=e.length&&3===e[0]&&8===e[1]},Ve.isChildOfContentWidgets=function(e){return 4<=e.length&&3===e[0]&&1===e[3]},Ve.isChildOfOverflowingContentWidgets=function(e){return 1<=e.length&&2===e[0]},Ve.isChildOfOverlayWidgets=function(e){return 2<=e.length&&3===e[0]&&4===e[1]},Ve);function Ve(){}var Be=(He.prototype.getZoneAtCoord=function(e){return He.getZoneAtCoord(this._context,e)},He.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i,o=n.verticalOffset+n.height/2,r=e.model.getLineCount(),s=null,a=null;return n.afterLineNumber!==r&&(a=new Me.a(n.afterLineNumber+1,1)),0<n.afterLineNumber&&(s=new Me.a(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),i=null===a||null!==s&&t<o?s:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:s,positionAfter:a,position:i}}return null},He.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 Te.a(t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),o=this._context.model.getLineMaxColumn(i);return{range:new Te.a(i,1,i,o),isAfterLines:!1}},He.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},He.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},He.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},He.prototype.findAttribute=function(e,t){return He._findAttribute(e,t,this._viewHelper.viewDomNode)},He._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},He.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},He.prototype.visibleRangeForPosition=function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)},He.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},He.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},He.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},He);function He(e,t,n){this.model=e.model;var i=e.configuration.options;this.layoutInfo=i.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(49),this.typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}var ze,Ue=(Re(Ke,ze=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,Ye._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}),Ke.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)},Ke.prototype.fulfill=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null);var o=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(o=Pe.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new Fe(this.target,e,o,t,n,i)},Ke.prototype.withTarget=function(e){return new Ke(this._ctx,this.editorPos,this.pos,e)},Ke);function Ke(e,t,n,i){var o=ze.call(this,e,t,n)||this;return o._ctx=e,i?(o.target=i,o.targetPath=K.collect(i,e.viewDomNode)):(o.target=null,o.targetPath=new Uint8Array(0)),o}var qe={isAfterLines:!0};function Ge(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Ye=(Ze.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=K.collect(t,this._viewHelper.viewDomNode);return!(!We.isChildOfContentWidgets(n)&&!We.isChildOfOverflowingContentWidgets(n)&&!We.isChildOfOverlayWidgets(n))},Ze.prototype.createMouseTarget=function(e,t,n,i){var o=new Be(this._context,this._viewHelper,e),r=new Ue(o,t,n,i);try{return Ze._createMouseTarget(o,r,!1)}catch(e){return r.fulfill(0)}},Ze._createMouseTarget=function(e,t,n){if(null===t.target){if(n)return t.fulfill(0);var i=Ze._doHitTest(e,t);return i.position?Ze.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}var o=t,r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||Ze._hitTestContentWidget(e,o))||Ze._hitTestOverlayWidget(e,o))||Ze._hitTestMinimap(e,o))||Ze._hitTestScrollbarSlider(e,o))||Ze._hitTestViewZone(e,o))||Ze._hitTestMargin(e,o))||Ze._hitTestViewCursor(e,o))||Ze._hitTestTextArea(e,o))||Ze._hitTestViewLines(e,o,n))||Ze._hitTestScrollbar(e,o))||t.fulfill(0)},Ze._hitTestContentWidget=function(e,t){if(We.isChildOfContentWidgets(t.targetPath)||We.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},Ze._hitTestOverlayWidget=function(e,t){if(We.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},Ze._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=r=e.lastRenderData.lastViewCursorsRenderData;n<i.length;n++){var o=i[n];if(t.target===o.domNode)return t.fulfill(6,o.position)}if(t.isInContentArea)for(var r=e.lastRenderData.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset,l=0,u=r;l<u.length;l++)if(!(s<(o=u[l]).contentLeft||s>o.contentLeft+o.width)){var c=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(c<=a&&a<=c+o.height)return t.fulfill(6,o.position)}return null},Ze._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},Ze._hitTestTextArea=function(e,t){return We.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null},Ze._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},Ze._hitTestViewLines=function(e,t,n){if(!We.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){var i=e.model.getLineCount(),o=e.model.getLineMaxColumn(i);return t.fulfill(7,new Me.a(i,o),void 0,qe)}if(n){if(We.isStrictChildOfViewLines(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(r)){var s=e.getLineWidth(r),a=Ge(t.mouseContentHorizontalOffset-s);return t.fulfill(7,new Me.a(r,1),void 0,a)}var l=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>=l){a=Ge(t.mouseContentHorizontalOffset-l);var u=new Me.a(r,e.model.getLineMaxColumn(r));return t.fulfill(7,u,void 0,a)}}return t.fulfill(0)}var c=Ze._doHitTest(e,t);return c.position?Ze.createMouseTargetFromHitTestPosition(e,t,c.position.lineNumber,c.position.column):this._createMouseTarget(e,t.withTarget(c.hitTarget),!0)},Ze._hitTestMinimap=function(e,t){if(We.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Me.a(n,i))}return null},Ze._hitTestScrollbarSlider=function(e,t){if(We.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 Me.a(i,o))}}return null},Ze._hitTestScrollbar=function(e,t){if(We.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Me.a(n,i))}return null},Ze.prototype.getMouseColumn=function(e,t){var n=this._context.configuration.options,i=n.get(107),o=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-i.contentLeft;return Ze._getMouseColumn(o,n.get(34).typicalHalfwidthCharacterWidth)},Ze._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},Ze.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new Me.a(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(m.e&&1===o.column){var s=Ge(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new Me.a(n,e.model.getLineMaxColumn(n)),void 0,s)}var a=Ge(t.mouseContentHorizontalOffset-r);return t.fulfill(7,o,void 0,a)}var l=e.visibleRangeForPosition(n,i);if(!l)return t.fulfill(0,o);var u=l.left;if(t.mouseContentHorizontalOffset===u)return t.fulfill(6,o);var c=[];if(c.push({offset:l.left,column:i}),1<i){var d=e.visibleRangeForPosition(n,i-1);d&&c.push({offset:d.left,column:i-1})}if(i<e.model.getLineMaxColumn(n)){var h=e.visibleRangeForPosition(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 v=new Te.a(n,f.column,n,g.column);return t.fulfill(6,o,v)}}return t.fulfill(6,o)},Ze._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 C(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},Ze._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n,i=r.E(e.viewDomNode);if(!(n=i?void 0===i.caretRangeFromPoint?function(e,t,n){var i=document.createRange(),o=e.elementFromPoint(t,n);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE;)o=o.lastChild;var r=o.getBoundingClientRect(),s=window.getComputedStyle(o,null).getPropertyValue("font"),a=o.innerText,l=r.left,u=0,c=void 0;if(t>r.left+r.width)u=a.length;else for(var d=Xe.getInstance(),h=0;h<a.length+1;h++){if(t<(l+=c=d.getCharWidth(a.charAt(h),s)/2)){u=h;break}l+=c}i.setStart(o.firstChild,u),i.setEnd(o.firstChild,u)}return i}(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY))||!n.startContainer)return{position:null,hitTarget:null};var o=n.startContainer,s=null;if(o.nodeType===o.TEXT_NODE){var a=(u=(l=o.parentNode)?l.parentNode:null)?u.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Ce.CLASS_NAME)return{position:e.getPositionFromDOMInfo(l,n.startOffset),hitTarget:null};s=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){var l,u;if(((u=(l=o.parentNode)?l.parentNode:null)&&u.nodeType===u.ELEMENT_NODE?u.className:null)===Ce.CLASS_NAME)return{position:e.getPositionFromDOMInfo(o,o.textContent.length),hitTarget:null};s=o}return{position:null,hitTarget:s}},Ze._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType!==n.offsetNode.TEXT_NODE)return{position:null,hitTarget:n.offsetNode};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)!==Ce.CLASS_NAME?{position:null,hitTarget:n.offsetNode.parentNode}:{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}},Ze._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:"")===Ce.CLASS_NAME){var l=o.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else i=r;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},Ze._doHitTest=function(e,t){return"function"==typeof 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}},Ze);function Ze(e,t){this._context=e,this._viewHelper=t}var Xe=($e.getInstance=function(){return $e._INSTANCE||($e._INSTANCE=new $e),$e._INSTANCE},$e.prototype.getCharWidth=function(e,t){var n=e+t;if(this._cache[n])return this._cache[n];var i=this._canvas.getContext("2d");i.font=t;var o=i.measureText(e).width;return this._cache[n]=o},$e._INSTANCE=null,$e);function $e(){this._cache={},this._canvas=document.createElement("canvas")}var Je,Qe=n(883),et=n(466),tt=(Je=function(e,t){return(Je=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}Je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function nt(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var it,ot=(tt(rt,it=W),rt.prototype.dispose=function(){this._context.removeEventHandler(this),it.prototype.dispose.call(this)},rt.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},rt.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},rt.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},rt.prototype.getTargetAtClientPoint=function(e,t){var n=new S(e,t).toPageCoordinates(),i=D(this.viewHelper.viewDomNode);return n.y<i.y||n.y>i.y+i.height||n.x<i.x||n.x>i.x+i.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i,n,null)},rt.prototype._createMouseTarget=function(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)},rt.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},rt.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},rt.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})},rt.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},rt.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},rt.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),i=6===n.type||7===n.type,o=2===n.type||3===n.type||4===n.type,r=3===n.type,s=this._context.configuration.options.get(83),a=8===n.type||5===n.type,l=9===n.type,u=e.leftButton||e.middleButton;function c(){m.i&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())}if(f.e&&e.leftButton&&e.ctrlKey&&(u=!1),u&&(i||r&&s))c(),this._mouseDownOperation.start(n.type,e);else if(o)e.preventDefault();else if(a){var d=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(c(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},rt.MOUSE_MOVE_MINIMUM_TIME=100,rt);function rt(e,t,n){var i=it.call(this)||this;i._isFocused=!1,i._context=e,i.viewController=t,i.viewHelper=n,i.mouseTargetFactory=new Ye(i._context,n),i._mouseDownOperation=i._register(new at(i._context,i.viewController,i.viewHelper,(function(e,t){return i._createMouseTarget(e,t)}),(function(e){return i._getMouseColumn(e)}))),i._asyncFocus=i._register(new _.d((function(){return i.viewHelper.focusTextArea()}),0)),i.lastMouseLeaveTime=-1;var o=new E(i.viewHelper.viewDomNode);return i._register(o.onContextMenu(i.viewHelper.viewDomNode,(function(e){return i._onContextMenu(e,!0)}))),i._register(o.onMouseMoveThrottled(i.viewHelper.viewDomNode,(function(e){return i._onMouseMove(e)}),nt(i.mouseTargetFactory),rt.MOUSE_MOVE_MINIMUM_TIME)),i._register(o.onMouseUp(i.viewHelper.viewDomNode,(function(e){return i._onMouseUp(e)}))),i._register(o.onMouseLeave(i.viewHelper.viewDomNode,(function(e){return i._onMouseLeave(e)}))),i._register(o.onMouseDown(i.viewHelper.viewDomNode,(function(e){return i._onMouseDown(e)}))),i._register(r.j(i.viewHelper.viewDomNode,m.f?"mousewheel":"wheel",(function(e){if(i.viewController.emitMouseWheel(e),i._context.configuration.options.get(57)){var t=new v.c(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=Qe.a.getZoomLevel(),o=0<t.deltaY?1:-1;Qe.a.setZoomLevel(n+o),t.preventDefault(),t.stopPropagation()}}}),{capture:!0,passive:!1})),i._context.addEventHandler(i),i}var st,at=(tt(lt,st=l.a),lt.prototype.dispose=function(){st.prototype.dispose.call(this)},lt.prototype.isActive=function(){return this._isActive},lt.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))},lt.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){this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;var o=this._context.configuration.options;if(!o.get(68)&&o.get(24)&&!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(t.target,t.buttons,nt(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(t.target,t.buttons,nt(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){return n._stop()})))}},lt.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},lt.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)},lt.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},lt.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=Be.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(a)))return new Fe(null,13,o,l);var s=i.getLineNumberAtVerticalOffset(r);return new Fe(null,13,o,new Me.a(s,1))}if(e.posy>t.y+t.height){var a,l;if(r=i.getCurrentScrollTop()+(e.posy-t.y),(a=Be.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(a)))return new Fe(null,13,o,l);var u=i.getLineNumberAtVerticalOffset(r);return new Fe(null,13,o,new Me.a(u,n.getLineMaxColumn(u)))}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new Fe(null,13,o,new Me.a(c,1)):e.posx>t.x+t.width?new Fe(null,13,o,new Me.a(c,n.getLineMaxColumn(c))):null},lt.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 Fe(i.element,i.type,i.mouseColumn,o,null,i.detail)}return i},lt.prototype._helpPositionJumpOverViewZone=function(e){var t=new Me.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},lt.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})},lt);function lt(e,t,n,i,o){var r=st.call(this)||this;return r._context=e,r._viewController=t,r._viewHelper=n,r._createMouseTarget=i,r._getMouseColumn=o,r._mouseMoveMonitor=r._register(new R(r._viewHelper.viewDomNode)),r._onScrollTimeout=r._register(new _.e),r._mouseState=new ut,r._currentSelection=new et.a(1,1,1,1),r._isActive=!1,r._lastMouseEvent=null,r}var ut=(Object.defineProperty(ct.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(ct.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),ct.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},ct.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},ct.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},ct.prototype.trySetCount=function(e,t){var n=(new Date).getTime();n-this._lastSetMouseDownCountTime>ct.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=n,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)},ct.CLEAR_MOUSE_DOWN_COUNT_TIME=400,ct);function ct(){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}var dt,ht=n(820),pt=(dt=function(e,t){return(dt=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}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ft(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var gt,mt=(pt(vt,gt=ot),vt.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&>.prototype._onMouseDown.call(this,e)},vt.prototype._onCaptureGestureTap=function(e){var t=this,n=new N(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()}))},vt.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},vt.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),gt.prototype.dispose.call(this)},vt);function vt(e,t,n){var i=gt.call(this,e,t,n)||this;return i.viewHelper.linesContentDomNode.style.msTouchAction="none",i.viewHelper.linesContentDomNode.style.msContentZooming="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",(function(n){var o=n.pointerType;o!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?o===(n.MSPOINTER_TYPE_TOUCH||"touch")?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(r.m(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),ft)),i._register(r.j(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}var _t,bt=(pt(yt,_t=ot),yt.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&&_t.prototype._onMouseDown.call(this,e)},yt.prototype._onCaptureGestureTap=function(e){var t=this,n=new N(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()}))},yt.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},yt.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),_t.prototype.dispose.call(this)},yt);function yt(e,t,n){var i=_t.call(this,e,t,n)||this;return i.viewHelper.linesContentDomNode.style.touchAction="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("pointerdown",(function(n){var o=n.pointerType;"mouse"!==o?"touch"===o?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(r.m(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),ft)),i._register(r.j(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}var Ct,wt=(pt(St,Ct=ot),St.prototype.onTap=function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new N(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}},St.prototype.onChange=function(e){"touch"===this._lastPointerType&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},St.prototype._onMouseDown=function(e){e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&"touch"===this._lastPointerType||Ct.prototype._onMouseDown.call(this,e)},St);function St(e,t,n){var i=Ct.call(this,e,t,n)||this;i._register(g.b.addTarget(i.viewHelper.linesContentDomNode)),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Tap,(function(e){return i.onTap(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Change,(function(e){return i.onChange(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Contextmenu,(function(e){return i._onContextMenu(new N(e,i.viewHelper.viewDomNode),!1)}))),i._lastPointerType="mouse",i._register(r.j(i.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;i._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var o=new M(i.viewHelper.viewDomNode);return i._register(o.onPointerMoveThrottled(i.viewHelper.viewDomNode,(function(e){return i._onMouseMove(e)}),nt(i.mouseTargetFactory),ot.MOUSE_MOVE_MINIMUM_TIME)),i._register(o.onPointerUp(i.viewHelper.viewDomNode,(function(e){return i._onMouseUp(e)}))),i._register(o.onPointerLeave(i.viewHelper.viewDomNode,(function(e){return i._onMouseLeave(e)}))),i._register(o.onPointerDown(i.viewHelper.viewDomNode,(function(e){return i._onMouseDown(e)}))),i}var Ot,Lt=(pt(Dt,Ot=ot),Dt.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new N(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},Dt.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},Dt);function Dt(e,t,n){var i=Ot.call(this,e,t,n)||this;return i._register(g.b.addTarget(i.viewHelper.linesContentDomNode)),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Tap,(function(e){return i.onTap(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Change,(function(e){return i.onChange(e)}))),i._register(r.j(i.viewHelper.linesContentDomNode,g.a.Contextmenu,(function(e){return i._onContextMenu(new N(e,i.viewHelper.viewDomNode),!1)}))),i}var xt,Nt=(pt(kt,xt=l.a),kt.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},kt);function kt(e,t,n){var i=xt.call(this)||this;return window.navigator.msPointerEnabled?i.handler=i._register(new mt(e,t,n)):f.c&&ht.a.pointerEvents?i.handler=i._register(new wt(e,t,n)):window.TouchEvent?i.handler=i._register(new Lt(e,t,n)):window.navigator.pointerEnabled||window.PointerEvent?i.handler=i._register(new bt(e,t,n)):i.handler=i._register(new ot(e,t,n)),i}n(1338);var Et,It,Mt=n(444),Tt=n(1077),Pt=n(1078),Rt=(n(1339),(Et=function(e,t){return(Et=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}Et(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(At,It=W),At);function At(){return null!==It&&It.apply(this,arguments)||this}var Ft,jt,Wt=n(572),Vt=((Ft=function(e,t){return(Ft=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}Ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Bt,jt=Rt),Bt.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var t=e.get(50);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(71);var n=e.get(107);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth},Bt.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,jt.prototype.dispose.call(this)},Bt.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},Bt.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},Bt.prototype.onFlushed=function(e){return!0},Bt.prototype.onLinesChanged=function(e){return!0},Bt.prototype.onLinesDeleted=function(e){return!0},Bt.prototype.onLinesInserted=function(e){return!0},Bt.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Bt.prototype.onZonesChanged=function(e){return!0},Bt.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2!==this._renderLineNumbers)return 3!==this._renderLineNumbers||this._lastCursorModelPosition.lineNumber===n||n%10==0?String(n):"";var i=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===i?'<span class="relative-current-line-number">'+n+"</span>":String(i)},Bt.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var t=f.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='<div class="'+Bt.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',r=this._context.model.getLineCount(),s=[],a=n;a<=i;a++){var l=a-n;if(this._renderFinalNewline||a!==r||0!==this._context.model.getLineLength(a)){var u=this._getLineRenderLineNumber(a);s[l]=u?o+u+"</div>":""}else s[l]=""}this._renderResult=s}else this._renderResult=null},Bt.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Bt.CLASS_NAME="line-numbers",Bt);function Bt(e){var t=jt.call(this)||this;return t._context=e,t._readConfig(),t._lastCursorModelPosition=new Me.a(1,1),t._renderResult=null,t._context.addEventHandler(t),t}Object(he.e)((function(e,t){var n=e.getColor(Wt.k);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(Wt.b);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")}));var Ht,zt,Ut=((Ht=function(e,t){return(Ht=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}Ht(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Kt,zt=z),Kt.prototype.dispose=function(){zt.prototype.dispose.call(this)},Kt.prototype.getDomNode=function(){return this._domNode},Kt.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._canUseLayerHinting=!t.get(22),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},Kt.prototype.onScrollChanged=function(e){return zt.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},Kt.prototype.prepareRender=function(e){},Kt.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");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)},Kt.CLASS_NAME="glyph-margin",Kt.OUTER_CLASS_NAME="margin",Kt);function Kt(e){var t=zt.call(this,e)||this,n=t._context.configuration.options,i=n.get(107);return t._canUseLayerHinting=!n.get(22),t._contentLeft=i.contentLeft,t._glyphMarginLeft=i.glyphMarginLeft,t._glyphMarginWidth=i.glyphMarginWidth,t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setClassName(Kt.OUTER_CLASS_NAME),t._domNode.setPosition("absolute"),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._glyphMarginBackgroundDomNode=Object(p.b)(document.createElement("div")),t._glyphMarginBackgroundDomNode.setClassName(Kt.CLASS_NAME),t._domNode.appendChild(t._glyphMarginBackgroundDomNode),t}var qt,Gt=n(823),Yt=(qt=function(e,t){return(qt=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}qt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zt=(Xt.prototype.hasChanged=function(e){return this._source.hasChanged(e)},Xt);function Xt(e){this.type=1,this._source=e}var $t,Jt=function(e){this.type=2,this.contentWidth=e.contentWidth,this.contentHeight=e.contentHeight,this.contentWidthChanged=e.contentWidthChanged,this.contentHeightChanged=e.contentHeightChanged},Qt=function(e,t){this.type=3,this.selections=e,this.modelSelections=t},en=function(){this.type=4},tn=function(){this.type=5},nn=function(e){this.type=6,this.isFocused=e},on=function(){this.type=7},rn=function(){this.type=8},sn=function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t},an=function(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t},ln=function(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t},un=function(e,t,n,i,o){this.type=12,this.source=e,this.range=t,this.verticalType=n,this.revealHorizontal=i,this.scrollType=o},cn=function(e){this.type=13,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},dn=function(){this.type=14},hn=function(e){this.type=15,this.ranges=e},pn=function(){this.type=16},fn=function(){this.type=17},gn=(Yt(mn,$t=l.a),mn.prototype.dispose=function(){this._listeners=[],$t.prototype.dispose.call(this)},mn.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new vn),this._collector},mn.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,0<e.length&&this._emit(e)}},mn.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n<i;n++)bn(t[n],e)},mn.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),Object(l.h)((function(){for(var n=t._listeners,i=0,o=n.length;i<o;i++)if(n[i]===e){n.splice(i,1);break}}))},mn);function mn(){var e=$t.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}var vn=(_n.prototype.emit=function(e){this._events[this._eventsLen++]=e},_n.prototype.finalize=function(){var e=this._events;return this._events=[],e},_n);function _n(){this._eventsLen=0,this._events=[],this._eventsLen=0}function bn(e,t){try{e(t)}catch(e){s.e(e)}}var yn,Cn=(yn=function(e,t){return(yn=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}yn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),wn=(Sn.prototype.setWidth=function(e){return new Sn(this.top,this.left,e)},Sn);function Sn(e,t,n){this.top=e,this.left=t,this.width=n}var On,Ln=m.f||m.h,Dn=(Cn(xn,On=z),xn.prototype.dispose=function(){On.prototype.dispose.call(this)},xn.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=Object(Gt.a)(this._context.configuration.options.get(96)),i=e.column,o=0;1<i;){var r=t.charCodeAt(i-2);if(0!==n.get(r)||50<o)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},xn.prototype._getCharacterBeforePosition=function(e){if(1<e.column){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!Mt.z(t.charCodeAt(0)))return t}return""},xn.prototype._getAriaLabel=function(e){return 1===e.get(2)?o.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},xn.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var t=e.get(3);2===this._accessibilitySupport&&t===pe.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=t},xn.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(34),this._lineHeight=t.get(49),this._emptySelectionClipboard=t.get(25),this._copyWithSyntaxHighlighting=t.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),f.g&&e.hasChanged(68)&&(t.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},xn.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},xn.prototype.onDecorationsChanged=function(e){return!0},xn.prototype.onFlushed=function(e){return!0},xn.prototype.onLinesChanged=function(e){return!0},xn.prototype.onLinesDeleted=function(e){return!0},xn.prototype.onLinesInserted=function(e){return!0},xn.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},xn.prototype.onZonesChanged=function(e){return!0},xn.prototype.isFocused=function(){return this._textAreaInput.isFocused()},xn.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},xn.prototype.getLastRenderData=function(){return this._lastRenderPosition},xn.prototype.setAriaOptions=function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},xn.prototype.prepareRender=function(e){this._primaryCursorPosition=new Me.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},xn.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},xn.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);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():f.e?this._renderInsideEditor(this._primaryCursorPosition,t,e,Ln?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,Ln?0:1,Ln?0:1)}}else this._renderAtTopLeft()},xn.prototype._renderInsideEditor=function(e,t,n,i,o){this._lastRenderPosition=e;var r=this.textArea,s=this.textAreaCover;c.a.applyFontInfo(r,this._fontInfo),r.setTop(t),r.setLeft(n),r.setWidth(i),r.setHeight(o),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},xn.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,t=this.textAreaCover;if(c.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),Ln)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);var n=this._context.configuration.options;n.get(40)?t.setClassName("monaco-editor-background textAreaCover "+Ut.OUTER_CLASS_NAME):0!==n.get(50).renderType?t.setClassName("monaco-editor-background textAreaCover "+Vt.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},xn);function xn(e,t,n){var i=On.call(this,e)||this;i._primaryCursorPosition=new Me.a(1,1),i._primaryCursorVisibleRange=null,i._viewController=t,i._viewHelper=n,i._scrollLeft=0,i._scrollTop=0;var o=i._context.configuration.options,r=o.get(107);i._setAccessibilityOptions(o),i._contentLeft=r.contentLeft,i._contentWidth=r.contentWidth,i._contentHeight=r.height,i._fontInfo=o.get(34),i._lineHeight=o.get(49),i._emptySelectionClipboard=o.get(25),i._copyWithSyntaxHighlighting=o.get(15),i._visibleTextArea=null,i._selections=[new et.a(1,1,1,1)],i._modelSelections=[new et.a(1,1,1,1)],i._lastRenderPosition=null,i.textArea=Object(p.b)(document.createElement("textarea")),K.write(i.textArea,6),i.textArea.setClassName("inputarea"),i.textArea.setAttribute("wrap","off"),i.textArea.setAttribute("autocorrect","off"),i.textArea.setAttribute("autocapitalize","off"),i.textArea.setAttribute("autocomplete","off"),i.textArea.setAttribute("spellcheck","false"),i.textArea.setAttribute("aria-label",i._getAriaLabel(o)),i.textArea.setAttribute("role","textbox"),i.textArea.setAttribute("aria-multiline","true"),i.textArea.setAttribute("aria-haspopup","false"),i.textArea.setAttribute("aria-autocomplete","both"),f.g&&o.get(68)&&i.textArea.setAttribute("readonly","true"),i.textAreaCover=Object(p.b)(document.createElement("div")),i.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return i._context.model.getLineCount()},getLineMaxColumn:function(e){return i._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return i._context.model.getValueInRange(e,t)}},a={getDataToCopy:function(e){var t=i._context.model.getPlainTextToCopy(i._modelSelections,i._emptySelectionClipboard,f.h),n=i._context.model.getEOL(),o=i._emptySelectionClipboard&&1===i._modelSelections.length&&i._modelSelections[0].isEmpty(),r=Array.isArray(t)?t:null,s=Array.isArray(t)?t.join(n):t,a=void 0,l=null;if(e&&(Tt.a.forceCopyWithSyntaxHighlighting||i._copyWithSyntaxHighlighting&&s.length<65536)){var u=i._context.model.getRichTextToCopy(i._modelSelections,i._emptySelectionClipboard);u&&(a=u.html,l=u.mode)}return{isFromEmptySelection:o,multicursorText:r,text:s,html:a,mode:l}},getScreenReaderContent:function(e){if(m.j)return Pt.b.EMPTY;if(1!==i._accessibilitySupport)return Pt.a.fromEditorSelection(e,s,i._selections[0],i._accessibilityPageSize,0===i._accessibilitySupport);if(f.e){var t=i._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),o=i._getWordBeforePosition(n);if(0===o.length&&(o=i._getCharacterBeforePosition(n)),0<o.length)return new Pt.b(o,o.length,o.length,n,n)}}return Pt.b.EMPTY},deduceModelPosition:function(e,t,n){return i._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return i._textAreaInput=i._register(new Tt.b(a,i.textArea)),i._register(i._textAreaInput.onKeyDown((function(e){i._viewController.emitKeyDown(e)}))),i._register(i._textAreaInput.onKeyUp((function(e){i._viewController.emitKeyUp(e)}))),i._register(i._textAreaInput.onPaste((function(e){var t=!1,n=null,o=null;e.metadata&&(t=i._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,o=e.metadata.mode),i._viewController.paste("keyboard",e.text,t,n,o)}))),i._register(i._textAreaInput.onCut((function(){i._viewController.cut("keyboard")}))),i._register(i._textAreaInput.onType((function(e){e.replaceCharCnt?i._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):i._viewController.type("keyboard",e.text)}))),i._register(i._textAreaInput.onSelectionChangeRequest((function(e){i._viewController.setSelection("keyboard",e)}))),i._register(i._textAreaInput.onCompositionStart((function(){var e=i._selections[0].startLineNumber,t=i._selections[0].startColumn;i._context.privateViewEventBus.emit(new un("keyboard",new Te.a(e,t,e,t),0,!0,1));var n=i._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(i._visibleTextArea=new wn(i._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,Ln?0:1),i._render()),i.textArea.setClassName("inputarea ime-input"),i._viewController.compositionStart("keyboard")}))),i._register(i._textAreaInput.onCompositionUpdate((function(e){m.f?i._visibleTextArea=i._visibleTextArea.setWidth(0):i._visibleTextArea=i._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=function(e){return function(e,t,n,i,o){return"normal normal "+t+" "+n+"px / "+i+"px "+o}(0,e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}(t);var i=n.measureText(e);return m.h?i.width+2:i.width}(e.data,i._fontInfo)),i._render()}))),i._register(i._textAreaInput.onCompositionEnd((function(){i._visibleTextArea=null,i._render(),i.textArea.setClassName("inputarea"),i._viewController.compositionEnd("keyboard")}))),i._register(i._textAreaInput.onFocus((function(){i._context.privateViewEventBus.emit(new nn(!0))}))),i._register(i._textAreaInput.onBlur((function(){i._context.privateViewEventBus.emit(new nn(!1))}))),i}var Nn=n(927),kn=(En.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},En.prototype.paste=function(e,t,n,i,o){this.commandDelegate.paste(e,t,n,i,o)},En.prototype.type=function(e,t){this.commandDelegate.type(e,t)},En.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},En.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},En.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},En.prototype.cut=function(e){this.commandDelegate.cut(e)},En.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(Nn.CoreNavigationCommands.SetSelection,{source:e,selection:t})},En.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Me.a(e.lineNumber,t):e},En.prototype._hasMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},En.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},En.prototype.dispatchMouse=function(e){var t=f.d&&this.configuration.options.get(81);e.middleButton&&!t?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):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):4<=e.mouseDownCount?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,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},En.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},En.prototype.moveTo=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.MoveTo,this._usualArgs(e))},En.prototype._moveToSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.MoveToSelect,this._usualArgs(e))},En.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(Nn.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})},En.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(Nn.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},En.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(e))},En.prototype._wordSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.WordSelect,this._usualArgs(e))},En.prototype._wordSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.WordSelectDrag,this._usualArgs(e))},En.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(e))},En.prototype._lineSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LineSelect,this._usualArgs(e))},En.prototype._lineSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LineSelectDrag,this._usualArgs(e))},En.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(e))},En.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(Nn.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(e))},En.prototype._selectAll=function(){this._execMouseCommand(Nn.CoreNavigationCommands.SelectAll,{})},En.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},En.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},En.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},En.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},En.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},En.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},En.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},En.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},En.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},En.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},En.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},En);function En(e,t,n,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=i}var In,Mn,Tn=((In=function(e,t){return(In=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}In(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Pn,Mn=l.a),Pn.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},Pn.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},Pn.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},Pn.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},Pn.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},Pn.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},Pn.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},Pn.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},Pn.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},Pn.prototype._convertViewToModelMouseTarget=function(e){return Pn.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},Pn.convertViewToModelMouseTarget=function(e,t){return new Rn(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)},Pn);function Pn(e){var t=Mn.call(this)||this;return t.onDidContentSizeChange=null,t.onDidScroll=null,t.onDidGainFocus=null,t.onDidLoseFocus=null,t.onKeyDown=null,t.onKeyUp=null,t.onContextMenu=null,t.onMouseMove=null,t.onMouseLeave=null,t.onMouseUp=null,t.onMouseDown=null,t.onMouseDrag=null,t.onMouseDrop=null,t.onMouseWheel=null,t._viewModel=e,t}var Rn=(An.prototype.toString=function(){return Fe.toString(this)},An);function An(e,t,n,i,o,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=o,this.detail=r}var Fn=n(894),jn=(Wn.prototype.flush=function(){this._set(1,[])},Wn.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},Wn.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},Wn.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},Wn.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},Wn.prototype.getCount=function(){return this._lines.length},Wn.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]},Wn.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(i<e)return null;for(var r=0,s=0,a=n;a<=i;a++){var l=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(r=l,s=1):s++)}if(e<n){var u;u=t<n?t-e+1:n-e,this._rendLineNumberStart-=u}return this._lines.splice(r,s)},Wn.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++)n<=r&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},Wn.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(o<e)return null;if(o<n+e)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,l=this._lines.slice(0,a),u=this._lines.slice(a,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(r).concat(u),c},Wn.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),l=Math.min(n,s.toLineNumber),u=a;u<=l;u++){var c=u-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i},Wn);function Wn(e){this._createLine=e,this._set(1,[])}var Vn=(Bn.prototype._createDomNode=function(){var e=Object(p.b)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},Bn.prototype.onConfigurationChanged=function(e){return!!e.hasChanged(107)},Bn.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},Bn.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},Bn.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},Bn.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},Bn.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Bn.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},Bn.prototype.onZonesChanged=function(e){return!0},Bn.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},Bn.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},Bn.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},Bn.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new Hn(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)},Bn);function Bn(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new jn((function(){return t._host.createVisibleLine()}))}var Hn=(zn.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?(l=t)<=(s=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,l,s,i,t),o.linesLength+=s-l+1):o.rendLineNumberStart<t&&0<(a=Math.min(o.linesLength,t-o.rendLineNumberStart))&&(this._removeLinesBefore(o,a),o.linesLength-=a),o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1<n)(l=o.rendLineNumberStart+o.linesLength)<=(s=n)&&(this._insertLinesAfter(o,l,s,i,t),o.linesLength+=s-l+1);else if(o.rendLineNumberStart+o.linesLength-1>n){var s,a,l=Math.max(0,n-o.rendLineNumberStart+1);0<(a=(s=o.linesLength-1)-l+1)&&(this._removeLinesAfter(o,a),o.linesLength-=a)}return this._finishRendering(o,!1,i),o},zn.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var l=r+a;s[a].layoutLine(l,i[l-o])}},zn.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)},zn.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)},zn.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)},zn.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)},zn.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;0<=s;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling)}},zn.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)}}},zn.prototype._finishRendering=function(e,t,n){var i=zn._sb,o=e.linesLength,r=e.lines,s=e.rendLineNumberStart,a=[];i.reset();for(var l=!1,u=0;u<o;u++){var c=r[u];a[u]=!1,c.getDomNode()||c.renderLine(u+s,n[u],this.viewportData,i)&&(l=a[u]=!0)}l&&this._finishRenderingNewLines(e,t,i.build(),a),i.reset();var d=!1,h=[];for(u=0;u<o;u++)c=r[u],h[u]=!1,a[u]||c.renderLine(u+s,n[u],this.viewportData,i)&&(d=h[u]=!0);d&&this._finishRenderingInvalidLines(e,i.build(),h)},zn._sb=Object(Fn.a)(1e5),zn);function zn(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}var Un,Kn,qn=(Un=function(e,t){return(Un=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}Un(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Gn=(qn(Yn,Kn=z),Yn.prototype.shouldRender=function(){if(Kn.prototype.shouldRender.call(this))return!0;for(var e=0,t=this._dynamicOverlays.length;e<t;e++)if(this._dynamicOverlays[e].shouldRender())return!0;return!1},Yn.prototype.dispose=function(){Kn.prototype.dispose.call(this);for(var e=0,t=this._dynamicOverlays.length;e<t;e++)this._dynamicOverlays[e].dispose();this._dynamicOverlays=[]},Yn.prototype.getDomNode=function(){return this.domNode},Yn.prototype.createVisibleLine=function(){return new Zn(this._context.configuration,this._dynamicOverlays)},Yn.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},Yn.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},Yn.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},Yn.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},Yn.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},Yn.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},Yn.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},Yn.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},Yn.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},Yn.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},Yn.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()}},Yn.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},Yn.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},Yn);function Yn(e){var t=Kn.call(this,e)||this;return t._visibleLines=new Vn(t),t.domNode=t._visibleLines.domNode,t._dynamicOverlays=[],t._isFocused=!1,t.domNode.setClassName("view-overlays"),t}var Zn=(Xn.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},Xn.prototype.setDomNode=function(e){this._domNode=Object(p.b)(e)},Xn.prototype.onContentChanged=function(){},Xn.prototype.onTokensChanged=function(){},Xn.prototype.onConfigurationChanged=function(e){this._lineHeight=this._configuration.options.get(49)},Xn.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)},Xn.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},Xn);function Xn(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}var $n,Jn=(qn(Qn,$n=Gn),Qn.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._contentWidth=t.contentWidth,$n.prototype.onConfigurationChanged.call(this,e)||!0},Qn.prototype.onScrollChanged=function(e){return $n.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},Qn.prototype._viewOverlaysRender=function(e){$n.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},Qn);function Qn(e){var t=$n.call(this,e)||this,n=t._context.configuration.options.get(107);return t._contentWidth=n.contentWidth,t.domNode.setHeight(0),t}var ei,ti=(qn(ni,ei=Gn),ni.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;c.a.applyFontInfo(this.domNode,t.get(34));var n=t.get(107);return this._contentLeft=n.contentLeft,ei.prototype.onConfigurationChanged.call(this,e)||!0},ni.prototype.onScrollChanged=function(e){return ei.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},ni.prototype._viewOverlaysRender=function(e){ei.prototype._viewOverlaysRender.call(this,e);var t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)},ni);function ni(e){var t=ei.call(this,e)||this,n=t._context.configuration.options,i=n.get(107);return t._contentLeft=i.contentLeft,t.domNode.setClassName("margin-view-overlays"),t.domNode.setWidth(1),c.a.applyFontInfo(t.domNode,n.get(34)),t}var ii,oi,ri=(ii=function(e,t){return(ii=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}ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),si=function(e,t){this.top=e,this.left=t},ai=(ri(li,oi=z),li.prototype.dispose=function(){oi.prototype.dispose.call(this),this._widgets={}},li.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onConfigurationChanged(e)}return!0},li.prototype.onDecorationsChanged=function(e){return!0},li.prototype.onFlushed=function(e){return!0},li.prototype.onLineMappingChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onLineMappingChanged(e)}return!0},li.prototype.onLinesChanged=function(e){return!0},li.prototype.onLinesDeleted=function(e){return!0},li.prototype.onLinesInserted=function(e){return!0},li.prototype.onScrollChanged=function(e){return!0},li.prototype.onZonesChanged=function(e){return!0},li.prototype.addWidget=function(e){var t=new ui(this._context,this._viewDomNode,e);(this._widgets[t.id]=t).allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},li.prototype.setWidgetPosition=function(e,t,n){this._widgets[e.getId()].setPosition(t,n),this.setShouldRender()},li.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()}},li.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},li.prototype.onBeforeRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].onBeforeRender(e)}},li.prototype.prepareRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].prepareRender(e)}},li.prototype.render=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var i=n[t];this._widgets[i].render(e)}},li);function li(e,t){var n=oi.call(this,e)||this;return n._viewDomNode=t,n._widgets={},n.domNode=Object(p.b)(document.createElement("div")),K.write(n.domNode,1),n.domNode.setClassName("contentWidgets"),n.domNode.setPosition("absolute"),n.domNode.setTop(0),n.overflowingContentWidgetsDomNode=Object(p.b)(document.createElement("div")),K.write(n.overflowingContentWidgetsDomNode,2),n.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),n}var ui=(ci.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),e.hasChanged(107)){var n=t.get(107);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}},ci.prototype.onLineMappingChanged=function(e){this._setPosition(this._range)},ci.prototype._setPosition=function(e){if(this._range=e,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},ci.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},ci.prototype.setPosition=function(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},ci.prototype._layoutBoxInViewport=function(e,t,n,i,o){var r=e.top,s=r,a=t.top+this._lineHeight,l=r-i,u=i<=s,c=a,d=i<=o.viewportHeight-a,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:u,aboveTop:l,aboveLeft:h,fitsBelow:d,belowTop:c,belowLeft:p}},ci.prototype._layoutHorizontalSegmentInPage=function(e,t,n,i){var o,s=Math.max(0,t.left-i),a=Math.min(t.left+t.width+i,e.width),l=t.left+n-r.e.scrollX;return a<l+i&&(l-=o=l-(a-i),n-=o),l<s&&(l-=o=l-s,n-=o),[n,l]},ci.prototype._layoutBoxInPage=function(e,t,n,i,o){var s=e.top-i,a=t.top+this._lineHeight,l=r.C(this._viewDomNode.domNode),u=l.top+s-r.e.scrollY,c=l.top+a-r.e.scrollY,d=r.y(document.body),h=this._layoutHorizontalSegmentInPage(d,l,e.left-o.scrollLeft+this._contentLeft,n),p=h[0],f=h[1],g=this._layoutHorizontalSegmentInPage(d,l,t.left-o.scrollLeft+this._contentLeft,n),m=g[0],v=g[1],_=22<=u,b=c+i<=d.height-22;return this._fixedOverflowWidgets?{fitsAbove:_,aboveTop:Math.max(u,22),aboveLeft:f,fitsBelow:b,belowTop:c,belowLeft:v}:{fitsAbove:_,aboveTop:Math.max(s,22),aboveLeft:p,fitsBelow:b,belowTop:a,belowLeft:m}},ci.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new si(e.top,e.left+this._contentLeft)},ci.prototype._getTopAndBottomLeft=function(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];for(var n=t[0],i=t[0],o=0,r=t;o<r.length;o++){var s=r[o];s.lineNumber<n.lineNumber&&(n=s),s.lineNumber>i.lineNumber&&(i=s)}for(var a=1073741824,l=0,u=n.ranges;l<u.length;l++)(p=u[l]).left<a&&(a=p.left);for(var c=1073741824,d=0,h=i.ranges;d<h.length;d++){var p;(p=h[d]).left<c&&(c=p.left)}var f=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,g=new si(f,a),m=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop;return[g,new si(m,c)]},ci.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,l=this._preference;a<l.length;a++){var u=l[a];if(1===u){if(!t)return null;if(2===s||t.fitsAbove)return new si(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 si(t.belowTop,t.belowLeft)}}return null},ci.prototype.onBeforeRender=function(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},ci.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},ci.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?this.domNode.setTop(this._renderData.top):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"))},ci);function ci(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(p.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var i=this._context.configuration.options,o=i.get(107);this._fixedOverflowWidgets=i.get(29),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=i.get(49),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}n(1340);var di,hi,pi=n(459),fi=(di=function(e,t){return(di=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}di(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gi=!0,mi=(fi(vi,hi=Rt),vi.prototype.dispose=function(){this._context.removeEventHandler(this),hi.prototype.dispose.call(this)},vi.prototype._readFromSelections=function(){var e=!1,t=gi?this._selections.slice(0,1):this._selections,n=t.map((function(e){return e.positionLineNumber}));n.sort((function(e,t){return e-t})),pi.g(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);var i=t.every((function(e){return e.isEmpty()}));return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e},vi.prototype.onThemeChanged=function(e){return this._readFromSelections()},vi.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._renderLineHighlight=t.get(72),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0},vi.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},vi.prototype.onFlushed=function(e){return!0},vi.prototype.onLinesDeleted=function(e){return!0},vi.prototype.onLinesInserted=function(e){return!0},vi.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},vi.prototype.onZonesChanged=function(e){return!0},vi.prototype.prepareRender=function(e){if(this._shouldRenderThis()){for(var t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length,r=0,s=[],a=n;a<=i;a++){for(var l=a-n;r<o&&this._cursorLineNumbers[r]<a;)r++;r<o&&this._cursorLineNumbers[r]===a?s[l]=t:s[l]=""}this._renderData=s}else this._renderData=null},vi.prototype.render=function(e,t){if(!this._renderData)return"";var n=t-e;return n>=this._renderData.length?"":this._renderData[n]},vi);function vi(e){var t=hi.call(this)||this;t._context=e;var n=t._context.configuration.options,i=n.get(107);return t._lineHeight=n.get(49),t._renderLineHighlight=n.get(72),t._contentLeft=i.contentLeft,t._contentWidth=i.contentWidth,t._selectionIsEmpty=!0,t._cursorLineNumbers=[],t._selections=[],t._renderData=null,t._context.addEventHandler(t),t}var _i,bi=(fi(yi,_i=mi),yi.prototype._renderOne=function(e){return'<div class="current-line'+(this._shouldRenderOther()?" current-line-both":"")+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},yi.prototype._shouldRenderThis=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},yi.prototype._shouldRenderOther=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},yi);function yi(){return null!==_i&&_i.apply(this,arguments)||this}var Ci,wi=(fi(Si,Ci=mi),Si.prototype._renderOne=function(e){return'<div class="current-line current-line-margin'+(this._shouldRenderOther()?" current-line-margin-both":"")+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},Si.prototype._shouldRenderThis=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},Si.prototype._shouldRenderOther=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},Si);function Si(){return null!==Ci&&Ci.apply(this,arguments)||this}Object(he.e)((function(e,t){gi=!1;var n=e.getColor(Wt.i);if(n&&(t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }")),!n||n.isTransparent()||e.defines(Wt.j)){var i=e.getColor(Wt.j);i&&(gi=!0,t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}})),n(1341);var Oi,Li,Di=((Oi=function(e,t){return(Oi=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}Oi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(xi,Li=Rt),xi.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Li.prototype.dispose.call(this)},xi.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},xi.prototype.onDecorationsChanged=function(e){return!0},xi.prototype.onFlushed=function(e){return!0},xi.prototype.onLinesChanged=function(e){return!0},xi.prototype.onLinesDeleted=function(e){return!0},xi.prototype.onLinesInserted=function(e){return!0},xi.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},xi.prototype.onZonesChanged=function(e){return!0},xi.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:i<n?1:Te.a.compareRangesUsingStarts(e.range,t.range)}));for(var a=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,u=[],c=a;c<=l;c++)u[c-a]="";this._renderWholeLineDecorations(e,n,u),this._renderNormalDecorations(e,n,u),this._renderResult=u},xi.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 l=t[s];if(l.options.isWholeLine)for(var u='<div class="cdr '+l.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',c=Math.max(l.range.startLineNumber,o),d=Math.min(l.range.endLineNumber,r),h=c;h<=d;h++)n[h-o]+=u}},xi.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=null,s=!1,a=null,l=0,u=t.length;l<u;l++){var c=t[l];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 Te.a(p.startLineNumber,p.startColumn,p.endLineNumber-1,this._context.model.getLineMaxColumn(p.endLineNumber-1))),a=r===d&&s===h&&Te.a.areIntersectingOrTouching(a,p)?Te.a.plusRange(a,p):(null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n),r=d,s=h,p)}}null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n)},xi.prototype._renderNormalDecoration=function(e,t,n,i,o,r,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var l=0,u=a.length;l<u;l++){var c=a[l];if(!c.outsideRenderedLine){var d=c.lineNumber-r;if(i&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new te(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}}}},xi.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},xi);function xi(e){var t=Li.call(this)||this;t._context=e;var n=t._context.configuration.options;return t._lineHeight=n.get(49),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}var Ni,ki,Ei=n(688),Ii=((Ni=function(e,t){return(Ni=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}Ni(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Mi,ki=z),Mi.prototype.dispose=function(){ki.prototype.dispose.call(this)},Mi.prototype._setLayout=function(){var e=this._context.configuration.options,t=e.get(107);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(54).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)},Mi.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},Mi.prototype.getDomNode=function(){return this.scrollbarDomNode},Mi.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},Mi.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var t=this._context.configuration.options,n=t.get(78),i=t.get(56),o=t.get(27),r={handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:o};this.scrollbar.updateOptions(r)}return e.hasChanged(107)&&this._setLayout(),!0},Mi.prototype.onScrollChanged=function(e){return!0},Mi.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(he.d)(this._context.theme.type)),!0},Mi.prototype.prepareRender=function(e){},Mi.prototype.render=function(e){this.scrollbar.renderNow()},Mi);function Mi(e,t,n,i){var o=ki.call(this,e)||this,s=o._context.configuration.options,a=s.get(78),l=s.get(56),u=s.get(27),c={listenOnDomNode:n.domNode,className:"editor-scrollable "+Object(he.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:a.vertical,horizontal:a.horizontal,verticalHasArrows:a.verticalHasArrows,horizontalHasArrows:a.horizontalHasArrows,verticalScrollbarSize:a.verticalScrollbarSize,verticalSliderSize:a.verticalSliderSize,horizontalScrollbarSize:a.horizontalScrollbarSize,horizontalSliderSize:a.horizontalSliderSize,handleMouseWheel:a.handleMouseWheel,alwaysConsumeMouseWheel:a.alwaysConsumeMouseWheel,arrowSize:a.arrowSize,mouseWheelScrollSensitivity:l,fastScrollSensitivity:u};function d(e,t,n){var i={};if(t){var r=e.scrollTop;r&&(i.scrollTop=o._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=o._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}o._context.viewLayout.setScrollPositionNow(i)}return o.scrollbar=o._register(new Ei.c(t.domNode,c,o._context.viewLayout.getScrollable())),K.write(o.scrollbar.getDomNode(),5),o.scrollbarDomNode=Object(p.b)(o.scrollbar.getDomNode()),o.scrollbarDomNode.setPosition("absolute"),o._setLayout(),o._register(r.j(n.domNode,"scroll",(function(e){return d(n.domNode,!0,!0)}))),o._register(r.j(t.domNode,"scroll",(function(e){return d(t.domNode,!0,!1)}))),o._register(r.j(i.domNode,"scroll",(function(e){return d(i.domNode,!0,!1)}))),o._register(r.j(o.scrollbarDomNode.domNode,"scroll",(function(e){return d(o.scrollbarDomNode.domNode,!0,!1)}))),o}n(1342);var Ti,Pi,Ri=(Ti=function(e,t){return(Ti=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}Ti(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ai=function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)},Fi=(Ri(ji,Pi=Rt),ji.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,l=n.length;a<l;a++){var u=n[a],c=u.className,d=Math.max(u.startLineNumber,e)-e,h=Math.min(u.endLineNumber,t)-e;s=r===c?(d=Math.max(s+1,d),Math.max(s,h)):(r=c,h);for(var p=d;p<=s;p++)i[p].push(r)}return i},ji);function ji(){return null!==Pi&&Pi.apply(this,arguments)||this}var Wi,Vi=(Ri(Bi,Wi=Fi),Bi.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,Wi.prototype.dispose.call(this)},Bi.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._glyphMargin=t.get(40),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},Bi.prototype.onDecorationsChanged=function(e){return!0},Bi.prototype.onFlushed=function(e){return!0},Bi.prototype.onLinesChanged=function(e){return!0},Bi.prototype.onLinesDeleted=function(e){return!0},Bi.prototype.onLinesInserted=function(e){return!0},Bi.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Bi.prototype.onZonesChanged=function(e){return!0},Bi.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 Ai(s.range.startLineNumber,s.range.endLineNumber,a))}return n},Bi.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 l=a-t,u=i[l];0===u.length?s[l]="":s[l]='<div class="cgmr codicon '+u.join(" ")+r}this._renderResult=s}else this._renderResult=null},Bi.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Bi);function Bi(e){var t=Wi.call(this)||this;t._context=e;var n=t._context.configuration.options,i=n.get(107);return t._lineHeight=n.get(49),t._glyphMargin=n.get(40),t._glyphMarginLeft=i.glyphMarginLeft,t._glyphMarginWidth=i.glyphMarginWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(1343);var Hi,zi,Ui=((Hi=function(e,t){return(Hi=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}Hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ki,zi=Rt),Ki.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,zi.prototype.dispose.call(this)},Ki.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(108),i=t.get(34);return this._lineHeight=t.get(49),this._spaceWidth=i.spaceWidth,this._enabled=t.get(70),this._activeIndentEnabled=t.get(43),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0},Ki.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},Ki.prototype.onDecorationsChanged=function(e){return!0},Ki.prototype.onFlushed=function(e){return!0},Ki.prototype.onLinesChanged=function(e){return!0},Ki.prototype.onLinesDeleted=function(e){return!0},Ki.prototype.onLinesInserted=function(e){return!0},Ki.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Ki.prototype.onZonesChanged=function(e){return!0},Ki.prototype.onLanguageConfigurationChanged=function(e){return!0},Ki.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize*this._spaceWidth,o=e.scrollWidth,r=this._lineHeight,s=this._context.model.getLinesIndentGuides(t,n),a=0,l=0,u=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var c=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);a=c.startLineNumber,l=c.endLineNumber,u=c.indent}for(var d=[],h=t;h<=n;h++){var p=a<=h&&h<=l,f=h-t,g=s[f],m="";if(1<=g)for(var v=e.visibleRangeForPosition(new Me.a(h,1)),_=v?v.left:0,b=1;b<=g&&(m+='<div class="'+(p&&b===u?"cigra":"cigr")+'" style="left:'+_+"px;height:"+r+"px;width:"+i+'px"></div>',!(o<(_+=i)||0<this._maxIndentLeft&&_>this._maxIndentLeft));b++);d[f]=m}this._renderResult=d}else this._renderResult=null},Ki.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Ki);function Ki(e){var t=zi.call(this)||this;t._context=e,t._primaryLineNumber=0;var n=t._context.configuration.options,i=n.get(108),o=n.get(34);return t._lineHeight=n.get(49),t._spaceWidth=o.spaceWidth,t._enabled=n.get(70),t._activeIndentEnabled=n.get(43),t._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*o.typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}Object(he.e)((function(e,t){var n=e.getColor(Wt.h);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(Wt.a)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")})),n(1344);var qi,Gi=(qi=function(e,t){return(qi=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}qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Yi=(Zi.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},Zi.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},Zi);function Zi(){this._currentVisibleRange=new Te.a(1,1,1,1)}var Xi,$i=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},Ji=(Gi(Qi,Xi=z),Qi.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),Xi.prototype.dispose.call(this)},Qi.prototype.getDomNode=function(){return this.domNode},Qi.prototype.createVisibleLine=function(){return new Ce(this._viewLineOptions)},Qi.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var t=this._context.configuration.options,n=t.get(34),i=t.get(108);return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(75),this._cursorSurroundingLines=t.get(19),this._cursorSurroundingLinesStyle=t.get(20),this._canUseLayerHinting=!t.get(22),c.a.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},Qi.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new be(e,this._context.theme.type);if(this._viewLineOptions.equals(t))return!1;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},Qi.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},Qi.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},Qi.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},Qi.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},Qi.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},Qi.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},Qi.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,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 $i(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},Qi.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},Qi.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},Qi.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},Qi.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},Qi.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 Me.a(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(i<o||r<i)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new Me.a(i,s)},Qi.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===Ce.CLASS_NAME)return e;e=e.parentElement}return null},Qi.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},Qi.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||n<e?-1:this._visibleLines.getVisibleLine(e).getWidth()},Qi.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=Te.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var o=[],r=0,s=new ve(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(i.startLineNumber,1)).lineNumber);for(var l=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(c<l||u<c)){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);p&&(t&&c<n&&a!==(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(c+1,1)).lineNumber)&&(p.ranges[p.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth),o[r++]=new ee(p.outsideRenderedLine,c,p.ranges))}return 0===r?null:o},Qi.prototype._visibleRangesForLineRange=function(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new ve(this.domNode.domNode,this._textRangeRestingSpot))},Qi.prototype.visibleRangeForPosition=function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ie(t.outsideRenderedLine,t.ranges[0].left):null},Qi.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},Qi.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},Qi.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},Qi.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},Qi.prototype.prepareRender=function(){throw new Error("Not supported")},Qi.prototype.render=function(){throw new Error("Not supported")},Qi.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),this._linesContent.setContain("strict");var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},Qi.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},Qi.prototype._computeScrollTopToRevealRange=function(e,t,n,i){var o,r,s,a=e.top,l=e.height,u=a+l;if(o=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),r=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight,"mouse"!==t||"default"!==this._cursorSurroundingLinesStyle){var c=Math.min(l/this._lineHeight/2,this._cursorSurroundingLines);o-=c*this._lineHeight,r+=Math.max(0,c-1)*this._lineHeight}if(0!==i&&4!==i||(r+=this._lineHeight),l<r-o)s=o;else if(1===i||2===i)if(2===i&&a<=o&&r<=u)s=a;else{var d=(o+r)/2;s=Math.max(0,d-l/2)}else s=this._computeMinimumScrolling(a,u,o,r,3===i,4===i);return s},Qi.prototype._computeScrollLeftToRevealRange=function(e,t,n){var i=0,o=this._context.viewLayout.getCurrentViewport(),r=o.left,s=r+o.width,a=this._visibleRangesForLineRange(e,t,n),l=1073741824,u=0;if(!a)return{scrollLeft:r,maxHorizontalOffset:i};for(var c=0,d=a.ranges;c<d.length;c++){var h=d[c];h.left<l&&(l=h.left),h.left+h.width>u&&(u=h.left+h.width)}return i=u,l=Math.max(0,l-Qi.HORIZONTAL_EXTRA_PX),u+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(r,s,l,u),maxHorizontalOffset:i}},Qi.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?r?Math.max(0,i-s):n<e?n:t<i?Math.max(0,i-s):e:n},Qi.HORIZONTAL_EXTRA_PX=30,Qi);function Qi(e,t){var n=Xi.call(this,e)||this;n._linesContent=t,n._textRangeRestingSpot=document.createElement("div"),n._visibleLines=new Vn(n),n.domNode=n._visibleLines.domNode;var i=n._context.configuration,o=n._context.configuration.options,r=o.get(34),s=o.get(108);return n._lineHeight=o.get(49),n._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,n._isViewportWrapping=s.isViewportWrapping,n._revealHorizontalRightPadding=o.get(75),n._cursorSurroundingLines=o.get(19),n._cursorSurroundingLinesStyle=o.get(20),n._canUseLayerHinting=!o.get(22),n._viewLineOptions=new be(i,n._context.theme.type),K.write(n.domNode,7),n.domNode.setClassName("view-lines"),c.a.applyFontInfo(n.domNode,r),n._maxLineWidth=0,n._asyncUpdateLineWidths=new _.d((function(){n._updateLineWidthsSlow()}),200),n._lastRenderedData=new Yi,n._horizontalRevealRequest=null,n}n(1345);var eo,to,no=((eo=function(e,t){return(eo=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}eo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(io,to=Fi),io.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,to.prototype.dispose.call(this)},io.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0},io.prototype.onDecorationsChanged=function(e){return!0},io.prototype.onFlushed=function(e){return!0},io.prototype.onLinesChanged=function(e){return!0},io.prototype.onLinesDeleted=function(e){return!0},io.prototype.onLinesInserted=function(e){return!0},io.prototype.onScrollChanged=function(e){return e.scrollTopChanged},io.prototype.onZonesChanged=function(e){return!0},io.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 Ai(s.range.startLineNumber,s.range.endLineNumber,a))}return n},io.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,l=i[a],u="",c=0,d=l.length;c<d;c++)u+='<div class="cldr '+l[c]+o;r[a]=u}this._renderResult=r},io.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},io);function io(e){var t=to.call(this)||this;t._context=e;var n=t._context.configuration.options.get(107);return t._decorationsLeft=n.decorationsLeft,t._decorationsWidth=n.decorationsWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(1346);var oo,ro,so=((oo=function(e,t){return(oo=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}oo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ao,ro=Fi),ao.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,ro.prototype.dispose.call(this)},ao.prototype.onConfigurationChanged=function(e){return!0},ao.prototype.onDecorationsChanged=function(e){return!0},ao.prototype.onFlushed=function(e){return!0},ao.prototype.onLinesChanged=function(e){return!0},ao.prototype.onLinesDeleted=function(e){return!0},ao.prototype.onLinesInserted=function(e){return!0},ao.prototype.onScrollChanged=function(e){return e.scrollTopChanged},ao.prototype.onZonesChanged=function(e){return!0},ao.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 Ai(s.range.startLineNumber,s.range.endLineNumber,a))}return n},ao.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],l="",u=0,c=a.length;u<c;u++)l+='<div class="cmdr '+a[u]+'" style=""></div>';o[s]=l}this._renderResult=o},ao.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},ao);function ao(e){var t=ro.call(this)||this;return t._context=e,t._renderResult=null,t._context.addEventHandler(t),t}n(1347);var lo=(uo._clamp=function(e){return e<0?0:255<e?255:0|e},uo.Empty=new uo(0,0,0,0),uo);function uo(e,t,n,i){this.r=uo._clamp(e),this.g=uo._clamp(t),this.b=uo._clamp(n),this.a=uo._clamp(i)}var co=n(454),ho=(po.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new po),this._INSTANCE},po.prototype._updateColorMap=function(){var e=co.B.getColorMap();if(!e)return this._colors=[lo.Empty],void(this._backgroundIsLight=!0);this._colors=[lo.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new lo(n.r,n.g,n.b,Math.round(255*n.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=.5<=i,this._onDidChange.fire(void 0)},po.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},po.prototype.backgroundIsLight=function(){return this._backgroundIsLight},po._INSTANCE=null,po);function po(){var e=this;this._onDidChange=new a.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),co.B.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}var fo=n(461),go=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),mo=(vo.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},vo.prototype.renderChar=function(e,t,n,i,o,r,s,a){var l=+this.scale,u=2*this.scale;if(!(t+l>e.width||n+u>e.height))for(var c,d=a?this.charDataLight:this.charDataNormal,h=(c=i,(c-=32)<0||96<c?s<=2?(c+96)%96:95:c),p=4*e.width,f=r.r,g=r.g,m=r.b,v=o.r-f,_=o.g-g,b=o.b-m,y=e.data,C=h*l*u,w=n*p+4*t,S=0;S<u;S++){for(var O=w,L=0;L<l;L++){var D=d[C++]/255;y[O++]=f+v*D,y[O++]=g+_*D,y[O++]=m+b*D,O++}w+=p}},vo.prototype.blockRenderChar=function(e,t,n,i,o,r){var s=+this.scale,a=2*this.scale;if(!(t+s>e.width||n+a>e.height))for(var l=4*e.width,u=o.r,c=o.g,d=o.b,h=u+.5*(i.r-u),p=c+.5*(i.g-c),f=d+.5*(i.b-d),g=e.data,m=n*l+4*t,v=0;v<a;v++){for(var _=m,b=0;b<s;b++)g[_++]=h,g[_++]=p,g[_++]=f,_++;m+=l}},vo);function vo(e,t){this.scale=t,this.charDataNormal=vo.soften(e,.8),this.charDataLight=vo.soften(e,50/60)}function _o(e){for(var t=new Uint8ClampedArray(e.length/2),n=0;n<e.length;n+=2)t[n>>1]=yo[e[n]]<<4|15&yo[e[n+1]];return t}var bo=n(880),yo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},Co={1:Object(bo.a)((function(){return _o("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:Object(bo.a)((function(){return _o("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},wo=(So.create=function(e,t){return this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily?this.lastCreated:(n=Co[e]?new mo(Co[e](),e):So.createFromSampleData(So.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=n);var n},So.createSampleData=function(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold 16px "+e,n.textBaseline="middle";for(var i=0,o=0,r=go;o<r.length;o++){var s=r[o];n.fillText(String.fromCharCode(s),i,8),i+=10}return n.getImageData(0,0,960,16)},So.createFromSampleData=function(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");var n=So._downsample(e,t);return new mo(n,t)},So._downsampleChar=function(e,t,n,i,o){for(var r=+o,s=2*o,a=i,l=0,u=0;u<s;u++)for(var c=u/s*16,d=(u+1)/s*16,h=0;h<r;h++){for(var p=h/r*10,f=(h+1)/r*10,g=0,m=0,v=c;v<d;v++)for(var _=t+3840*Math.floor(v),b=1-(v-Math.floor(v)),y=p;y<f;y++){var C=1-(y-Math.floor(y)),w=_+4*Math.floor(y),S=C*b;m+=S,g+=e[w]*e[w+3]/255*S}var O=g/m;l=Math.max(l,O),n[a++]=O}return l},So._downsample=function(e,t){for(var n=2*t*1*t,i=96*n,o=new Uint8ClampedArray(i),r=0,s=0,a=0,l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,s,o,r,t)),r+=n,s+=40;if(0<a)for(var u=255/a,c=0;c<i;c++)o[c]*=u;return o},So);function So(){}var Oo,Lo=n(599),Do=(Oo=function(e,t){return(Oo=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}Oo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function xo(e,t){return 1===e?2*t:3*t}function No(e,t){return+t}var ko=(Eo.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.fontScale===e.fontScale&&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},Eo);function Eo(e){var t=this,n=e.options,i=n.get(105),o=n.get(107),r=n.get(34);this.renderMinimap=0|o.renderMinimap,this.scrollBeyondLastLine=n.get(80);var s=n.get(54);this.showSlider=s.showSlider,this.fontScale=Math.round(s.scale*i),this.charRenderer=Object(bo.a)((function(){return wo.create(t.fontScale,r.fontFamily)})),this.pixelRatio=i,this.typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(49),this.minimapLeft=o.minimapLeft,this.minimapWidth=o.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=Math.floor(i*this.minimapWidth),this.canvasInnerHeight=Math.floor(i*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/i,this.canvasOuterHeight=this.canvasInnerHeight/i}var Io=(Mo.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},Mo.prototype.getDesiredScrollTopFromTouchLocation=function(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)},Mo.create=function(e,t,n,i,o,r,s,a,l){var u,c,d=e.pixelRatio,h=xo(e.renderMinimap,e.fontScale),p=Math.floor(e.canvasInnerHeight/h),f=e.lineHeight;if(o&&n!==r){var g=n-t+1;u=Math.floor(g*h/d)}else{var m=i/f;u=Math.floor(m*h/d)}c=e.scrollBeyondLastLine?(r-1)*h/d:Math.max(0,r*h/d-u);var v=(c=Math.min(e.minimapHeight-u,c))/(a-i),_=s*v,b=0;if(e.scrollBeyondLastLine&&(b=m=i/f),r+b<=p)return new Mo(s,a,v,_,u,y=1,r);var y=Math.max(1,Math.floor(t-_*d/h));return l&&l.scrollHeight===a&&(l.scrollTop>s&&(y=Math.min(y,l.startLineNumber)),l.scrollTop<s&&(y=Math.max(y,l.startLineNumber))),new Mo(s,a,v,_,u,y,Math.min(r,y+p-1))},Mo);function Mo(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}var To=(Po.prototype.onContentChanged=function(){this.dy=-1},Po.prototype.onTokensChanged=function(){this.dy=-1},Po.INVALID=new Po(-1),Po);function Po(e){this.dy=e}var Ro=(Ao.prototype.linesEquals=function(e){if(!this.scrollEquals(e))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},Ao.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},Ao.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},Ao.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},Ao.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},Ao.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},Ao.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},Ao);function Ao(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new jn((function(){return To.INVALID})),this._renderedLines._set(e.startLineNumber,n)}var Fo=(jo.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},jo._createBackgroundFillData=function(e,t,n){for(var i=n.r,o=n.g,r=n.b,s=new Uint8ClampedArray(e*t*4),a=0,l=0;l<t;l++)for(var u=0;u<e;u++)s[a]=i,s[a+1]=o,s[a+2]=r,s[a+3]=255,a+=4;return s},jo);function jo(e,t,n,i){this._backgroundFillData=jo._createBackgroundFillData(t,n,i),this._buffers=[e.createImageData(t,n),e.createImageData(t,n)],this._lastUsedBuffer=0}var Wo,Vo=(Do(Bo,Wo=z),Bo.prototype.scrollDueToTouchEvent=function(e){var t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._context.viewLayout.setScrollPositionNow({scrollTop:n})},Bo.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),Wo.prototype.dispose.call(this)},Bo.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},Bo.prototype.getDomNode=function(){return this._domNode},Bo.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},Bo.prototype._getBuffer=function(){return this._buffers||0<this._options.canvasInnerWidth&&0<this._options.canvasInnerHeight&&(this._buffers=new Fo(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},Bo.prototype._onOptionsMaybeChanged=function(){var e=new ko(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)},Bo.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},Bo.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0},Bo.prototype.onFlushed=function(e){return!(this._lastRenderData=null)},Bo.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},Bo.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},Bo.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},Bo.prototype.onScrollChanged=function(e){return this._renderDecorations=!0},Bo.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},Bo.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,!(this._buffers=null)},Bo.prototype.onZonesChanged=function(e){return!(this._lastRenderData=null)},Bo.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0},Bo.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(fo.Ib),this._renderDecorations=!0},Bo.prototype.prepareRender=function(e){},Bo.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=Io.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,0<e.viewportData.whitespaceViewportData.length,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*No(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(i),this._sliderHorizontal.setWidth(this._options.minimapWidth-i),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)},Bo.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new Te.a(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,i=n.renderMinimap,o=n.canvasInnerWidth,r=n.canvasInnerHeight,s=xo(i,this._options.fontScale),a=No(0,this._options.fontScale),l=this._context.model.getOptions().tabSize,u=this._decorationsCanvas.domNode.getContext("2d");u.clearRect(0,0,o,r);for(var c=new Map,d=0;d<this._selections.length;d++)for(var h=this._selections[d],p=h.startLineNumber;p<=h.endLineNumber;p++)this.renderDecorationOnLine(u,c,h,this._selectionColor,e,p,s,s,l,a);for(d=0;d<t.length;d++){var f=t[d];if(f.options.minimap){var g=f.options.minimap.getColor(this._context.theme);for(p=f.range.startLineNumber;p<=f.range.endLineNumber;p++)switch(f.options.minimap.position){case Lo.c.Inline:this.renderDecorationOnLine(u,c,f.range,g,e,p,s,s,l,a);continue;case Lo.c.Gutter:var m=(p-e.startLineNumber)*s;this.renderDecoration(u,g,2,m,2,s);continue}}}}},Bo.prototype.renderDecorationOnLine=function(e,t,n,i,o,r,s,a,l,u){var c=(r-o.startLineNumber)*a;if(!(c+s<0||c>this._options.canvasInnerHeight)){var d=t.get(r),h=!d;if(!d){var p=this._context.model.getLineContent(r);d=[pe.f];for(var f=1;f<p.length+1;f++){var g=p.charCodeAt(f-1),m=9===g?l*u:Mt.y(g)?2*u:u;d[f]=d[f-1]+m}t.set(r,d)}var v=n.startColumn,_=n.endColumn,b=n.startLineNumber,y=n.endLineNumber,C=b===r?d[v-1]:pe.f,w=r<y?d.length-1:_-1;if(0<w){var S=d[w]-C||2;this.renderDecoration(e,i,C,c,S,s)}h&&this.renderLineHighlight(e,i,c,s)}},Bo.prototype.renderLineHighlight=function(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(pe.f,n,e.canvas.width,i)},Bo.prototype.renderDecoration=function(e,t,n,i,o,r){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,o,r)},Bo.prototype.renderLines=function(e){var t=this._options.renderMinimap,n=this._options.charRenderer(),i=e.startLineNumber,o=e.endLineNumber,r=xo(t,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new Ro(e,s.imageData,s.lines)}var a=this._getBuffer();if(!a)return null;for(var l=Bo._renderUntouchedLines(a,i,o,r,this._lastRenderData),u=l[0],c=l[1],d=l[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,b=o-i+1;_<b;_++)d[_]&&Bo._renderLine(a,f,g,t,this._tokensColorTracker,n,m,p,h.data[_],this._options.fontScale),v[_]=new To(m),m+=r;var y=-1===u?0:u,C=(-1===c?a.height:c)-y;return this._canvas.domNode.getContext("2d").putImageData(a,0,0,0,y,a.width,C),new Ro(e,a,v)},Bo._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 l=o._get(),u=l.imageData.data,c=l.rendLineNumberStart,d=l.lines,h=d.length,p=e.width,f=e.data,g=(n-t+1)*i*p*4,m=-1,v=-1,_=-1,b=-1,y=-1,C=-1,w=0,S=t;S<=n;S++){var O=S-t,L=S-c,D=0<=L&&L<h?d[L].dy:-1;if(-1!==D){var x=D*p*4,N=(D+i)*p*4,k=w*p*4,E=(w+i)*p*4;b===x&&C===k?b=N:(-1!==_&&(f.set(u.subarray(_,b),y),-1===m&&0===_&&_===y&&(m=b),-1===v&&b===g&&_===y&&(v=_)),_=x,b=N,y=k),C=E,r[O]=!1,w+=i}else r[O]=!0,w+=i}return-1!==_&&(f.set(u.subarray(_,b),y),-1===m&&0===_&&_===y&&(m=b),-1===v&&b===g&&_===y&&(v=_)),[-1===m?-1:m/(4*p),-1===v?-1:v/(4*p),r]},Bo._renderLine=function(e,t,n,i,o,r,s,a,l,u){for(var c=l.content,d=l.tokens,h=No(0,u),p=e.width-h,f=pe.f,g=0,m=0,v=0,_=d.getCount();v<_;v++)for(var b=d.getEndOffset(v),y=d.getForeground(v),C=o.getColor(y);g<b;g++){if(p<f)return;var w=c.charCodeAt(g);if(9===w){var S=a-(g+m)%a;m+=S-1,f+=S*h}else if(32===w)f+=h;else for(var O=Mt.y(w)?2:1,L=0;L<O;L++)if(2===i?r.blockRenderChar(e,f,s,C,t,n):r.renderChar(e,f,s,w,C,t,u,n),p<(f+=h))return}},Bo);function Bo(e){var t=Wo.call(this,e)||this;return t._selections=[],t._renderDecorations=!1,t._gestureInProgress=!1,t._options=new ko(t._context.configuration),t._lastRenderData=null,t._buffers=null,t._selectionColor=t._context.theme.getColor(fo.Ib),t._domNode=Object(p.b)(document.createElement("div")),K.write(t._domNode,8),t._domNode.setClassName(t._getMinimapDomNodeClassName()),t._domNode.setPosition("absolute"),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._shadow=Object(p.b)(document.createElement("div")),t._shadow.setClassName("minimap-shadow-hidden"),t._domNode.appendChild(t._shadow),t._canvas=Object(p.b)(document.createElement("canvas")),t._canvas.setPosition("absolute"),t._canvas.setLeft(0),t._domNode.appendChild(t._canvas),t._decorationsCanvas=Object(p.b)(document.createElement("canvas")),t._decorationsCanvas.setPosition("absolute"),t._decorationsCanvas.setClassName("minimap-decorations-layer"),t._decorationsCanvas.setLeft(0),t._domNode.appendChild(t._decorationsCanvas),t._slider=Object(p.b)(document.createElement("div")),t._slider.setPosition("absolute"),t._slider.setClassName("minimap-slider"),t._slider.setLayerHinting(!0),t._slider.setContain("strict"),t._domNode.appendChild(t._slider),t._sliderHorizontal=Object(p.b)(document.createElement("div")),t._sliderHorizontal.setPosition("absolute"),t._sliderHorizontal.setClassName("minimap-slider-horizontal"),t._slider.appendChild(t._sliderHorizontal),t._tokensColorTracker=ho.getInstance(),t._applyLayout(),t._mouseDownListener=r.o(t._domNode.domNode,"mousedown",(function(e){e.preventDefault();var n=t._options.renderMinimap;if(0!==n&&t._lastRenderData){var i=xo(n,t._options.fontScale),o=t._options.pixelRatio*e.browserEvent.offsetY,r=Math.floor(o/i)+t._lastRenderData.renderedLayout.startLineNumber;r=Math.min(r,t._context.model.getLineCount()),t._context.privateViewEventBus.emit(new un("mouse",new Te.a(r,1,r,1),1,!1,0))}})),t._sliderMouseMoveMonitor=new b.a,t._sliderMouseDownListener=r.o(t._slider.domNode,"mousedown",(function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&t._lastRenderData){var n=e.posy,i=e.posx,o=t._lastRenderData.renderedLayout;t._slider.toggleClassName("active",!0),t._sliderMouseMoveMonitor.startMonitoring(e.target,e.buttons,b.b,(function(e){var r=Math.abs(e.posx-i);if(f.h&&140<r)t._context.viewLayout.setScrollPositionNow({scrollTop:o.scrollTop});else{var s=e.posy-n;t._context.viewLayout.setScrollPositionNow({scrollTop:o.getDesiredScrollTopFromDelta(s)})}}),(function(){t._slider.toggleClassName("active",!1)}))}})),t._gestureDisposable=g.b.addTarget(t._domNode.domNode),t._sliderTouchStartListener=r.j(t._domNode.domNode,g.a.Start,(function(e){e.preventDefault(),e.stopPropagation(),t._lastRenderData&&(t._slider.toggleClassName("active",!0),t._gestureInProgress=!0,t.scrollDueToTouchEvent(e))})),t._sliderTouchMoveListener=r.o(t._domNode.domNode,g.a.Change,(function(e){e.preventDefault(),e.stopPropagation(),t._lastRenderData&&t._gestureInProgress&&t.scrollDueToTouchEvent(e)})),t._sliderTouchEndListener=r.o(t._domNode.domNode,g.a.End,(function(e){e.preventDefault(),e.stopPropagation(),t._gestureInProgress=!1,t._slider.toggleClassName("active",!1)})),t}Object(he.e)((function(e,t){var n=e.getColor(fo.Xb);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(fo.Yb);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(fo.Wb);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 l=e.getColor(fo.Vb);l&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+l+" -6px 0 6px -6px inset; }")})),n(1348);var Ho,zo,Uo=((Ho=function(e,t){return(Ho=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}Ho(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ko,zo=z),Ko.prototype.dispose=function(){zo.prototype.dispose.call(this),this._widgets={}},Ko.prototype.getDomNode=function(){return this._domNode},Ko.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(107);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0},Ko.prototype.addWidget=function(e){var t=Object(p.b)(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()},Ko.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},Ko.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()}},Ko.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()},Ko.prototype.prepareRender=function(e){},Ko.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])}},Ko);function Ko(e){var t=zo.call(this,e)||this,n=t._context.configuration.options.get(107);return t._widgets={},t._verticalScrollbarWidth=n.verticalScrollbarWidth,t._minimapWidth=n.minimapWidth,t._horizontalScrollbarHeight=n.horizontalScrollbarHeight,t._editorHeight=n.height,t._editorWidth=n.width,t._domNode=Object(p.b)(document.createElement("div")),K.write(t._domNode,4),t._domNode.setClassName("overlayWidgets"),t}var qo,Go=n(490),Yo=(qo=function(e,t){return(qo=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}qo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zo=(Xo.prototype._initLanes=function(e,t,n){var i=t-e;if(3<=n){var o,r,s,a=i-(o=Math.floor(i/3))-(r=Math.floor(i/3)),l=(s=e)+o;return[[0,s,l,s,s+o+a,s,l,s],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}return 2===n?[[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]]:[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]},Xo.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},Xo);function Xo(e,t){var n=e.options;this.lineHeight=n.get(49),this.pixelRatio=n.get(105),this.overviewRulerLanes=n.get(63),this.renderBorder=n.get(62);var i=t.getColor(Wt.l);this.borderColor=i?i.toString():null,this.hideCursor=n.get(42);var o=t.getColor(Wt.g);this.cursorColor=o?o.transparent(.7).toString():null,this.themeType=t.type;var r=n.get(54),s=r.enabled,a=r.side,l=s?co.B.getDefaultBackground():null;this.backgroundColor=null===l||"left"===a?null:Go.a.Format.CSS.formatHex(l);var u=n.get(107).overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var c=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),d=c[0],h=c[1];this.x=d,this.w=h}var $o,Jo=(Yo(Qo,$o=z),Qo.prototype.dispose=function(){$o.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},Qo.prototype._updateSettings=function(e){var t=new Zo(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))},Qo.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},Qo.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(Me.a.compare),!0},Qo.prototype.onDecorationsChanged=function(e){return!0},Qo.prototype.onFlushed=function(e){return!0},Qo.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},Qo.prototype.onZonesChanged=function(e){return!0},Qo.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},Qo.prototype.getDomNode=function(){return this._domNode.domNode},Qo.prototype.prepareRender=function(e){},Qo.prototype.render=function(e){this._render()},Qo.prototype._render=function(){if(0!==this._settings.overviewRulerLanes){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,l=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t));var u=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];l.fillStyle=f;for(var m=0,v=0,_=0,b=0,y=g.length;b<y;b++){var C=g[3*b],w=g[3*b+1],S=g[3*b+2],O=i.getVerticalOffsetForLineNumber(w)*o|0;(I=(i.getVerticalOffsetForLineNumber(S)+n)*o|0)-O<s&&((k=(O+I)/2|0)<a?k=a:t<k+a&&(k=t-a),O=k-a,I=k+a),_+1<O||C!==m?(0!==b&&l.fillRect(u[m],v,c[m],_-v),m=C,v=O,_=I):_<I&&(_=I)}l.fillRect(u[m],v,c[m],_-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){var L=2*this._settings.pixelRatio|0,D=L/2|0,x=this._settings.x[7],N=this._settings.w[7];for(l.fillStyle=this._settings.cursorColor,_=v=-100,b=0,y=this._cursorPositions.length;b<y;b++){var k,E=this._cursorPositions[b];(k=i.getVerticalOffsetForLineNumber(E.lineNumber)*o|0)<D?k=D:t<k+D&&(k=t-D);var I=(O=k-D)+L;_+1<O?(0!==b&&l.fillRect(x,v,N,_-v),v=O,_=I):_<I&&(_=I)}l.fillRect(x,v,N,_-v)}this._settings.renderBorder&&this._settings.borderColor&&0<this._settings.overviewRulerLanes&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())}else this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"")},Qo);function Qo(e){var t=$o.call(this,e)||this;return t._domNode=Object(p.b)(document.createElement("canvas")),t._domNode.setClassName("decorationsOverviewRuler"),t._domNode.setPosition("absolute"),t._domNode.setLayerHinting(!0),t._domNode.setContain("strict"),t._domNode.setAttribute("aria-hidden","true"),t._updateSettings(!1),t._tokensColorTrackerListener=co.B.onDidChange((function(e){e.changedColorMap&&t._updateSettings(!0)})),t._cursorPositions=[],t}var er,tr,nr=n(1088),ir=((er=function(e,t){return(er=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}er(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(or,tr=W),or.prototype.dispose=function(){this._context.removeEventHandler(this),tr.prototype.dispose.call(this)},or.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(t.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(t.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},or.prototype.onFlushed=function(e){return this._render(),!0},or.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},or.prototype.onZonesChanged=function(e){return this._render(),!0},or.prototype.getDomNode=function(){return this._domNode.domNode},or.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())},or.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},or.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),0<n.length&&this._renderOneLane(o,n,i,e),!0},or.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,l=t;a<l.length;a++){var u=l[a],c=u.colorId,d=u.from,h=u.to;s=c!==o?(e.fillRect(0,r,i,s-r),o=c,e.fillStyle=n[o],r=d,h):d<=s?Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,h)}e.fillRect(0,r,i,s-r)},or);function or(e,t){var n=tr.call(this)||this;n._context=e;var i=n._context.configuration.options;return n._domNode=Object(p.b)(document.createElement("canvas")),n._domNode.setClassName(t),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setContain("strict"),n._zoneManager=new nr.b((function(e){return n._context.viewLayout.getVerticalOffsetForLineNumber(e)})),n._zoneManager.setDOMWidth(0),n._zoneManager.setDOMHeight(0),n._zoneManager.setOuterHeight(n._context.viewLayout.getScrollHeight()),n._zoneManager.setLineHeight(i.get(49)),n._zoneManager.setPixelRatio(i.get(105)),n._context.addEventHandler(n),n}n(1349);var rr,sr,ar=((rr=function(e,t){return(rr=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}rr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(lr,sr=z),lr.prototype.dispose=function(){sr.prototype.dispose.call(this)},lr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._rulers=t.get(77),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},lr.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},lr.prototype.prepareRender=function(e){},lr.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t)for(var n=this._context.model.getOptions().tabSize,i=t-e;0<i;)(r=Object(p.b)(document.createElement("div"))).setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--;else for(var o=e-t;0<o;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),o--}},lr.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)}},lr);function lr(e){var t=sr.call(this,e)||this;t.domNode=Object(p.b)(document.createElement("div")),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t.domNode.setClassName("view-rulers"),t._renderedRulers=[];var n=t._context.configuration.options;return t._rulers=n.get(77),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t}Object(he.e)((function(e,t){var n=e.getColor(Wt.m);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")})),n(1350);var ur,cr,dr=((ur=function(e,t){return(ur=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}ur(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(hr,cr=z),hr.prototype.dispose=function(){cr.prototype.dispose.call(this)},hr.prototype._updateShouldShow=function(){var e=this._useShadows&&0<this._scrollTop;return this._shouldShow!==e&&(this._shouldShow=e,!0)},hr.prototype.getDomNode=function(){return this._domNode},hr.prototype._updateWidth=function(){var e=this._context.configuration.options.get(107);0===e.renderMinimap||0<e.minimapWidth&&0===e.minimapLeft?this._width=e.width:this._width=e.width-e.minimapWidth-e.verticalScrollbarWidth},hr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options.get(78);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0},hr.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},hr.prototype.prepareRender=function(e){},hr.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},hr);function hr(e){var t=cr.call(this,e)||this;t._scrollTop=0,t._width=0,t._updateWidth(),t._shouldShow=!1;var n=t._context.configuration.options.get(78);return t._useShadows=n.useShadows,t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t}Object(he.e)((function(e,t){var n=e.getColor(fo.Vb);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")})),n(1351);var pr,fr=(pr=function(e,t){return(pr=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}pr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gr=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},mr=function(e,t){this.lineNumber=e,this.ranges=t};function vr(e){return new gr(e)}function _r(e){return new mr(e.lineNumber,e.ranges.map(vr))}var br,yr=m.f,Cr=(fr(wr,br=Rt),wr.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,br.prototype.dispose.call(this)},wr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._roundedSelection=t.get(76),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},wr.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},wr.prototype.onDecorationsChanged=function(e){return!0},wr.prototype.onFlushed=function(e){return!0},wr.prototype.onLinesChanged=function(e){return!0},wr.prototype.onLinesDeleted=function(e){return!0},wr.prototype.onLinesInserted=function(e){return!0},wr.prototype.onScrollChanged=function(e){return e.scrollTopChanged},wr.prototype.onZonesChanged=function(e){return!0},wr.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++)if(1<e[t].ranges.length)return!0;return!1},wr.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,o=null,r=null;if(n&&0<n.length&&0<t.length){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 l=t[t.length-1].lineNumber;if(l===e.endLineNumber)for(a=n.length-1;!r&&0<=a;a--)n[a].lineNumber===l&&(r=n[a].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}a=0;for(var u=t.length;a<u;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(0<a){var g=t[a-1].ranges[0].left,m=t[a-1].ranges[0].left+t[a-1].ranges[0].width;Sr(d-g)<i?p.top=2:g<d&&(p.top=1),Sr(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<u){var v=t[a+1].ranges[0].left,_=t[a+1].ranges[0].left+t[a+1].ranges[0].width;Sr(d-v)<i?p.bottom=2:v<d&&d<_&&(p.bottom=1),Sr(h-_)<i?f.bottom=2:h<_&&(f.bottom=1)}else r&&(p.bottom=r.startStyle.bottom,f.bottom=r.endStyle.bottom);c.startStyle=p,c.endStyle=f}},wr.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=(t.linesVisibleRangesForRange(e,!0)||[]).map(_r),o=this._visibleRangesHaveGaps(i);return yr||o||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,i,n),i},wr.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>'},wr.prototype._actualRenderOneSelection=function(e,t,n,i){if(0!==i.length)for(var o=!!i[0].ranges[0].startStyle,r=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=i[0].lineNumber,l=i[i.length-1].lineNumber,u=0,c=i.length;u<c;u++){for(var d=i[u],h=d.lineNumber,p=h-t,f=!n||h!==l&&h!==a?r:s,g=n&&h===a?1:0,m="",v="",_=0,b=d.ranges.length;_<b;_++){var y=d.ranges[_];if(o){var C=y.startStyle,w=y.endStyle;if(1===C.top||1===C.bottom){m+=this._createSelectionPiece(g,f,wr.SELECTION_CLASS_NAME,y.left-wr.ROUNDED_PIECE_WIDTH,wr.ROUNDED_PIECE_WIDTH);var S=wr.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(S+=" "+wr.SELECTION_TOP_RIGHT),1===C.bottom&&(S+=" "+wr.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(g,f,S,y.left-wr.ROUNDED_PIECE_WIDTH,wr.ROUNDED_PIECE_WIDTH)}if(1===w.top||1===w.bottom){m+=this._createSelectionPiece(g,f,wr.SELECTION_CLASS_NAME,y.left+y.width,wr.ROUNDED_PIECE_WIDTH);var O=wr.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(O+=" "+wr.SELECTION_TOP_LEFT),1===w.bottom&&(O+=" "+wr.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(g,f,O,y.left+y.width,wr.ROUNDED_PIECE_WIDTH)}}var L=wr.SELECTION_CLASS_NAME;o&&(C=y.startStyle,w=y.endStyle,0===C.top&&(L+=" "+wr.SELECTION_TOP_LEFT),0===C.bottom&&(L+=" "+wr.SELECTION_BOTTOM_LEFT),0===w.top&&(L+=" "+wr.SELECTION_TOP_RIGHT),0===w.bottom&&(L+=" "+wr.SELECTION_BOTTOM_RIGHT)),v+=this._createSelectionPiece(g,f,L,y.left,y.width)}e[p][0]+=m,e[p][1]+=v}},wr.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 l=this._selections[s];if(l.isEmpty())r[s]=null;else{var u=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[s]);r[s]=u,this._actualRenderOneSelection(t,n,1<this._selections.length,u)}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t.map((function(e){return e[0]+e[1]}))},wr.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},wr.SELECTION_CLASS_NAME="selected-text",wr.SELECTION_TOP_LEFT="top-left-radius",wr.SELECTION_BOTTOM_LEFT="bottom-left-radius",wr.SELECTION_TOP_RIGHT="top-right-radius",wr.SELECTION_BOTTOM_RIGHT="bottom-right-radius",wr.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",wr.ROUNDED_PIECE_WIDTH=10,wr);function wr(e){var t=br.call(this)||this;t._previousFrameVisibleRangesWithStyle=[],t._context=e;var n=t._context.configuration.options;return t._lineHeight=n.get(49),t._roundedSelection=n.get(76),t._typicalHalfwidthCharacterWidth=n.get(34).typicalHalfwidthCharacterWidth,t._selections=[],t._renderResult=null,t._context.addEventHandler(t),t}function Sr(e){return e<0?-e:e}Object(he.e)((function(e,t){var n=e.getColor(fo.K);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(fo.F);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(fo.L);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")})),n(1352);var Or=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},Lr=(Dr.prototype.getDomNode=function(){return this._domNode},Dr.prototype.getPosition=function(){return this._position},Dr.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},Dr.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},Dr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),c.a.applyFontInfo(this._domNode,n),!0},Dr.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},Dr.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===pe.g.Line||this._cursorStyle===pe.g.LineThin){var n,i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;if(this._cursorStyle===pe.g.Line){if(2<(n=r.u(0<this._lineCursorWidth?this._lineCursorWidth:2))){var o=this._context.model.getLineContent(this._position.lineNumber),s=Mt.E(o,this._position.column-1);t=o.substr(this._position.column-1,s)}}else n=r.u(1);var a=i.left;2<=n&&1<=a&&--a;var l=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Or(l,a,n,this._lineHeight,t,"")}var u=this._context.model.getLineContent(this._position.lineNumber),c=Mt.E(u,this._position.column-1),d=e.linesVisibleRangesForRange(new Te.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+c),!1);if(!d||0===d.length)return null;var h=d[0];if(h.outsideRenderedLine||0===h.ranges.length)return null;var p=h.ranges[0],f=p.width<1?this._typicalHalfwidthCharacterWidth:p.width,g="";if(this._cursorStyle===pe.g.Block){var m=this._context.model.getViewLineData(this._position.lineNumber);t=u.substr(this._position.column-1,c);var v=m.tokens.findTokenIndexAtOffset(this._position.column-1);g=m.tokens.getClassName(v)}var _=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,b=this._lineHeight;return this._cursorStyle!==pe.g.Underline&&this._cursorStyle!==pe.g.UnderlineThin||(_+=this._lineHeight-2,b=2),new Or(_,p.left,f,b,t,g)},Dr.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},Dr.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)},Dr);function Dr(e){this._context=e;var t=this._context.configuration.options,n=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(p.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),c.a.applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new Me.a(1,1),this._lastRenderedContent="",this._renderData=null}var xr,Nr,kr=((xr=function(e,t){return(xr=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}xr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Er,Nr=z),Er.prototype.dispose=function(){Nr.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},Er.prototype.getDomNode=function(){return this._domNode},Er.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;this._readOnly=t.get(68),this._cursorBlinking=t.get(16),this._cursorStyle=t.get(18),this._cursorSmoothCaretAnimation=t.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0},Er.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 Lr(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])},Er.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},Er.prototype.onDecorationsChanged=function(e){return!0},Er.prototype.onFlushed=function(e){return!0},Er.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},Er.prototype.onLinesChanged=function(e){return!0},Er.prototype.onLinesDeleted=function(e){return!0},Er.prototype.onLinesInserted=function(e){return!0},Er.prototype.onScrollChanged=function(e){return!0},Er.prototype.onTokensChanged=function(e){function t(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 1}if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,i=this._secondaryCursors;n<i.length;n++)if(t(i[n].getPosition()))return!0;return!1},Er.prototype.onZonesChanged=function(e){return!0},Er.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},Er.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var t=this._getCursorBlinking(),n=0===t,i=5===t;n?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),n||i||(1===t?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),Er.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),Er.BLINK_INTERVAL))},Er.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},Er.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case pe.g.Line:e+=" cursor-line-style";break;case pe.g.Block:e+=" cursor-block-style";break;case pe.g.Underline:e+=" cursor-underline-style";break;case pe.g.LineThin:e+=" cursor-line-thin-style";break;case pe.g.BlockOutline:e+=" cursor-block-outline-style";break;case pe.g.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 this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},Er.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},Er.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},Er.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},Er.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},Er.prototype.getLastRenderData=function(){return this._renderData},Er.BLINK_INTERVAL=500,Er);function Er(e){var t=Nr.call(this,e)||this,n=t._context.configuration.options;return t._readOnly=n.get(68),t._cursorBlinking=n.get(16),t._cursorStyle=n.get(18),t._cursorSmoothCaretAnimation=n.get(17),t._selectionIsEmpty=!0,t._isVisible=!1,t._primaryCursor=new Lr(t._context),t._secondaryCursors=[],t._renderData=[],t._domNode=Object(p.b)(document.createElement("div")),t._domNode.setAttribute("role","presentation"),t._domNode.setAttribute("aria-hidden","true"),t._updateDomClassName(),t._domNode.appendChild(t._primaryCursor.getDomNode()),t._startCursorBlinkAnimation=new _.e,t._cursorFlatBlinkInterval=new _.c,t._blinkingEnabled=!1,t._editorHasFocus=!1,t._updateBlinking(),t}function Ir(){throw new Error("Invalid change accessor")}Object(he.e)((function(e,t){var n=e.getColor(Wt.g);if(n){var i=e.getColor(Wt.f);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 Mr,Tr,Pr=((Mr=function(e,t){return(Mr=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}Mr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Rr,Tr=z),Rr.prototype.dispose=function(){Tr.prototype.dispose.call(this),this._zones={}},Rr.prototype._recomputeWhitespacesProps=function(){for(var e=this,t=this._context.viewLayout.getWhitespaces(),n=new Map,i=0,o=t;i<o.length;i++){var r=o[i];n.set(r.id,r)}return this._context.viewLayout.changeWhitespace((function(t){for(var i=!1,o=Object.keys(e._zones),r=0,s=o.length;r<s;r++){var a=o[r],l=e._zones[a],u=e._computeWhitespaceProps(l.delegate),c=n.get(a);!c||c.afterLineNumber===u.afterViewLineNumber&&c.height===u.heightInPx||(t.changeOneWhitespace(a,u.afterViewLineNumber,u.heightInPx),e._safeCallOnComputedHeight(l.delegate,u.heightInPx),i=!0)}return i}))},Rr.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},Rr.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},Rr.prototype.onLinesDeleted=function(e){return!0},Rr.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},Rr.prototype.onZonesChanged=function(e){return!0},Rr.prototype.onLinesInserted=function(e){return!0},Rr.prototype._getZoneOrdinal=function(e){return void 0!==e.afterColumn?e.afterColumn:1e4},Rr.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 Me.a(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)}},Rr.prototype.changeViewZones=function(e){var t=this;return this._context.viewLayout.changeWhitespace((function(n){var i=!1,o={addZone:function(e){return i=!0,t._addZone(n,e)},removeZone:function(e){e&&(i=t._removeZone(n,e)||i)},layoutZone:function(e){e&&(i=t._layoutZone(n,e)||i)}};return function(e,t){try{e(t)}catch(e){Object(s.e)(e)}}(e,o),o.addZone=Ir,o.removeZone=Ir,o.layoutZone=Ir,i}))},Rr.prototype._addZone=function(e,t){var n=this._computeWhitespaceProps(t),i={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,isVisible:!1,domNode:Object(p.b)(t.domNode),marginDomNode:t.marginDomNode?Object(p.b)(t.marginDomNode):null};return this._safeCallOnComputedHeight(i.delegate,n.heightInPx),i.domNode.setPosition("absolute"),i.domNode.domNode.style.width="100%",i.domNode.setDisplay("none"),i.domNode.setAttribute("monaco-view-zone",i.whitespaceId),this.domNode.appendChild(i.domNode),i.marginDomNode&&(i.marginDomNode.setPosition("absolute"),i.marginDomNode.domNode.style.width="100%",i.marginDomNode.setDisplay("none"),i.marginDomNode.setAttribute("monaco-view-zone",i.whitespaceId),this.marginDomNode.appendChild(i.marginDomNode)),this._zones[i.whitespaceId]=i,this.setShouldRender(),i.whitespaceId},Rr.prototype._removeZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},Rr.prototype._layoutZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1},Rr.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},Rr.prototype._heightInPixels=function(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},Rr.prototype._minWidthInPixels=function(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0},Rr.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Object(s.e)(e)}},Rr.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Object(s.e)(e)}},Rr.prototype.prepareRender=function(e){},Rr.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]=t[o],i=!0;var s=Object.keys(this._zones);for(o=0,r=s.length;o<r;o++){var a=s[o],l=this._zones[a],u=0,c=0,d="none";n.hasOwnProperty(a)?(u=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",l.isVisible||(l.domNode.setAttribute("monaco-visible-view-zone","true"),l.isVisible=!0),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(l.isVisible&&(l.domNode.removeAttribute("monaco-visible-view-zone"),l.isVisible=!1),this._safeCallOnDomNodeTop(l.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),l.domNode.setTop(u),l.domNode.setHeight(c),l.domNode.setDisplay(d),l.marginDomNode&&(l.marginDomNode.setTop(u),l.marginDomNode.setHeight(c),l.marginDomNode.setDisplay(d))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},Rr);function Rr(e){var t=Tr.call(this,e)||this,n=t._context.configuration.options,i=n.get(107);return t._lineHeight=n.get(49),t._contentWidth=i.contentWidth,t._contentLeft=i.contentLeft,t.domNode=Object(p.b)(document.createElement("div")),t.domNode.setClassName("view-zones"),t.domNode.setPosition("absolute"),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t.marginDomNode=Object(p.b)(document.createElement("div")),t.marginDomNode.setClassName("margin-view-zones"),t.marginDomNode.setPosition("absolute"),t.marginDomNode.setAttribute("role","presentation"),t.marginDomNode.setAttribute("aria-hidden","true"),t._zones={},t}var Ar=(Fr.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},Fr.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},Fr);function Fr(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}var jr=(Wr.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t];this._eventHandlers.push(e)},Wr.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},Wr.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},Wr.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},Wr.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper((function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}}))},Wr.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)}},Wr);function Wr(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}var Vr=(Br.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},Br.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},Br);function Br(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 Te.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}var Hr,zr,Ur=((Hr=function(e,t){return(Hr=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}Hr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Kr,zr=W),Kr.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},Kr.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastRenderData:function(){var t=e.viewCursors.getLastRenderData()||[],n=e._textAreaHandler.getLastRenderData();return new Ae(t,n)},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)},visibleRangeForPosition:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Me.a(t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},Kr.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Me.a(t,n))}}},Kr.prototype._applyLayout=function(){var e=this._context.configuration.options.get(107);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)},Kr.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(he.d)(this._context.theme.type)+e},Kr.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},Kr.prototype.onContentSizeChanged=function(e){return this.outgoingEvents.emitContentSizeChange(e),!1},Kr.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},Kr.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},Kr.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},Kr.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var e=0,t=this.viewParts.length;e<t;e++)this.viewParts[e].dispose();this.viewParts=[],zr.prototype.dispose.call(this)},Kr.prototype._renderOnce=function(e){var t=qr(e);return this._scheduleRender(),t},Kr.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=r.U(this._onRenderScheduled.bind(this),100))},Kr.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},Kr.prototype._renderNow=function(){var e=this;qr((function(){return e._actualRender()}))},Kr.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},Kr.prototype._actualRender=function(){if(r.M(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 Vr(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 J(this._context.viewLayout,n,this.viewLines),o=0,s=e.length;o<s;o++)(a=e[o]).prepareRender(i);for(o=0,s=e.length;o<s;o++){var a;(a=e[o]).render(i),a.onDidRender()}}}},Kr.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},Kr.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},Kr.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 Me.a(i.lineNumber,i.column));return o?o.left:-1},Kr.prototype.getTargetAtClientPoint=function(e,t){var n=this.pointerHandler.getTargetAtClientPoint(e,t);return n?Tn.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null},Kr.prototype.createOverviewRuler=function(e){return new ir(this._context,e)},Kr.prototype.change=function(e){var t=this;return this._renderOnce((function(){var n=t.viewZones.changeViewZones(e);return n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new fn)),n}))},Kr.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()},Kr.prototype.focus=function(){this._textAreaHandler.focusTextArea()},Kr.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},Kr.prototype.setAriaOptions=function(e){this._textAreaHandler.setAriaOptions(e)},Kr.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},Kr.prototype.layoutContentWidget=function(e){var t=e.position&&e.position.range||null;if(null===t){var n=e.position?e.position.position:null;null!==n&&(t=new Te.a(n.lineNumber,n.column,n.lineNumber,n.column))}var i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()},Kr.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},Kr.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},Kr.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null;this.overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()},Kr.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},Kr);function Kr(e,t,n,i,o,r){var s=zr.call(this)||this;s._cursor=o,s._renderAnimationFrame=null,s.outgoingEvents=r;var a=new kn(t,i,s.outgoingEvents,e);s.eventDispatcher=new jr((function(e){return s._renderOnce(e)})),s.eventDispatcher.addEventHandler(s),s._context=new Ar(t,n.getTheme(),i,s.eventDispatcher),s._register(n.onThemeChange((function(e){s._context.theme=e,s.eventDispatcher.emit(new dn),s.render(!0,!1)}))),s.viewParts=[],s._textAreaHandler=new Dn(s._context,a,s.createTextAreaHandlerHelper()),s.viewParts.push(s._textAreaHandler),s.linesContent=Object(p.b)(document.createElement("div")),s.linesContent.setClassName("lines-content monaco-editor-background"),s.linesContent.setPosition("absolute"),s.domNode=Object(p.b)(document.createElement("div")),s.domNode.setClassName(s.getEditorClassName()),s.overflowGuardContainer=Object(p.b)(document.createElement("div")),K.write(s.overflowGuardContainer,3),s.overflowGuardContainer.setClassName("overflow-guard"),s._scrollbar=new Ii(s._context,s.linesContent,s.domNode,s.overflowGuardContainer),s.viewParts.push(s._scrollbar),s.viewLines=new Ji(s._context,s.linesContent),s.viewZones=new Pr(s._context),s.viewParts.push(s.viewZones);var l=new Jo(s._context);s.viewParts.push(l);var u=new dr(s._context);s.viewParts.push(u);var c=new Jn(s._context);s.viewParts.push(c),c.addDynamicOverlay(new bi(s._context)),c.addDynamicOverlay(new Cr(s._context)),c.addDynamicOverlay(new Ui(s._context)),c.addDynamicOverlay(new Di(s._context));var d=new ti(s._context);s.viewParts.push(d),d.addDynamicOverlay(new wi(s._context)),d.addDynamicOverlay(new Vi(s._context)),d.addDynamicOverlay(new so(s._context)),d.addDynamicOverlay(new no(s._context)),d.addDynamicOverlay(new Vt(s._context));var h=new Ut(s._context);h.getDomNode().appendChild(s.viewZones.marginDomNode),h.getDomNode().appendChild(d.getDomNode()),s.viewParts.push(h),s.contentWidgets=new ai(s._context,s.domNode),s.viewParts.push(s.contentWidgets),s.viewCursors=new kr(s._context),s.viewParts.push(s.viewCursors),s.overlayWidgets=new Uo(s._context),s.viewParts.push(s.overlayWidgets);var f=new ar(s._context);s.viewParts.push(f);var g=new Vo(s._context);if(s.viewParts.push(g),l){var m=s._scrollbar.getOverviewRulerLayoutInfo();m.parent.insertBefore(l.getDomNode(),m.insertBefore)}return s.linesContent.appendChild(c.getDomNode()),s.linesContent.appendChild(f.domNode),s.linesContent.appendChild(s.viewZones.domNode),s.linesContent.appendChild(s.viewLines.getDomNode()),s.linesContent.appendChild(s.contentWidgets.domNode),s.linesContent.appendChild(s.viewCursors.getDomNode()),s.overflowGuardContainer.appendChild(h.getDomNode()),s.overflowGuardContainer.appendChild(s._scrollbar.getDomNode()),s.overflowGuardContainer.appendChild(u.getDomNode()),s.overflowGuardContainer.appendChild(s._textAreaHandler.textArea),s.overflowGuardContainer.appendChild(s._textAreaHandler.textAreaCover),s.overflowGuardContainer.appendChild(s.overlayWidgets.getDomNode()),s.overflowGuardContainer.appendChild(g.getDomNode()),s.domNode.appendChild(s.overflowGuardContainer),s.domNode.appendChild(s.contentWidgets.overflowingContentWidgetsDomNode),s._applyLayout(),s.pointerHandler=s._register(new Nt(s._context,a,s.createPointerHandlerHelper())),s._register(i.addEventListener((function(e){s.eventDispatcher.emitMany(e)}))),s._register(s._cursor.addEventListener((function(e){s.eventDispatcher.emitMany(e)}))),s}function qr(e){try{return e()}catch(e){Object(s.e)(e)}}var Gr=(Yr.prototype.dispose=function(e){this._removeTrackedRange(e)},Yr.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},Yr.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},Yr.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},Yr.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},Yr.prototype.asCursorState=function(){return new Pe.d(this.modelState,this.viewState)},Yr.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new et.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new et.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},Yr.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},Yr.prototype.setState=function(e,t,n){this._setState(e,t,n)},Yr.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 Pe.f(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 Pe.f(r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n)u=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position),n=new Pe.f(u,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns);else{var a=e.convertModelPositionToViewPosition(new Me.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),l=e.convertModelPositionToViewPosition(new Me.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),u=new Te.a(a.lineNumber,a.column,l.lineNumber,l.column),c=e.convertModelPositionToViewPosition(t.position);n=new Pe.f(u,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},Yr);function Yr(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new Pe.f(new Te.a(1,1,1,1),0,new Me.a(1,1),0),new Pe.f(new Te.a(1,1,1,1),0,new Me.a(1,1),0))}var Zr=(Xr.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},Xr.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)},Xr.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)},Xr.prototype.updateContext=function(e){this.context=e},Xr.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)},Xr.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},Xr.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},Xr.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},Xr.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},Xr.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},Xr.prototype.setSelections=function(e){this.setStates(Pe.d.fromModelSelections(e))},Xr.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},Xr.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},Xr.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(n<t){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)},Xr.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},Xr.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new Gr(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},Xr.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},Xr.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},Xr.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},Xr.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,l=s.selection;if(this.context.config.multiCursorMergeOverlapping&&(l.isEmpty()||a.isEmpty()?l.getStartPosition().isBeforeOrEqual(a.getEndPosition()):l.getStartPosition().isBefore(a.getEndPosition()))){var u=r.index<s.index?o:o+1,c=r.index<s.index?o+1:o,d=t[c].index,h=t[u].index,p=t[c].selection,f=t[u].selection;if(!p.equalsSelection(f)){var g=p.plusRange(f),m=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,v=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,_=void 0;d===this.lastAddedCursorIndex?(_=m,this.lastAddedCursorIndex=h):_=v;var b;b=_?new et.a(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new et.a(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn),t[u].selection=b;var y=Pe.d.fromModelSelection(b);e[h].setState(this.context,y.modelState,y.viewState)}for(var C=0,w=t;C<w.length;C++){var S=w[C];S.index>d&&S.index--}e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),o--}}}},Xr);function Xr(e){this.context=e,this.primaryCursor=new Gr(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}var $r,Jr=n(1083),Qr=n(974),es=n(776),ts=($r=function(e,t){return($r=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}$r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ns=function(e,t,n,i,o,r){this.selections=e,this.modelVersionId=t,this.oldSelections=n,this.oldModelVersionId=i,this.source=o,this.reason=r},is=(os.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},os);function os(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}var rs=(ss.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t=t.concat(o.getAutoClosedCharactersRanges())}return t},ss.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},ss.prototype.getAutoClosedCharactersRanges=function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e},ss.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}for(t.sort(Te.a.compareRangesUsingStarts),e.sort(Te.a.compareRangesUsingStarts),n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},ss);function ss(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}var as,ls=(ts(us,as=gn),us.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(l.f)(this._autoClosedActions),as.prototype.dispose.call(this)},us.prototype._validateAutoClosedActions=function(){if(0<this._autoClosedActions.length)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}},us.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},us.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},us.prototype.getAll=function(){return this._cursors.getAll()},us.prototype.setStates=function(e,t,n){null!==n&&n.length>us.MAX_CURSOR_COUNT&&(n=n.slice(0,us.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var i=new is(this._model,this);this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i)},us.prototype.setColumnSelectData=function(e){this._columnSelectData=e},us.prototype.reveal=function(e,t,n,i){this._revealRange(e,n,0,t,i)},us.prototype.revealRange=function(e,t,n,i,o){this.emitCursorRevealRange(e,n,i,t,o)},us.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},us.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},us.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,l=s;o.selectionStart&&o.selectionStart.lineNumber&&(a=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(l=o.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:l,positionLineNumber:r,positionColumn:s})}this.setStates("restoreState",0,Pe.d.fromModelSelections(t)),this.reveal("restoreState",!0,0,1)},us.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new Zr(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Pe.d.fromModelSelections(t))}},us.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},us.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor().viewState.selectionStart.getStartPosition(),t=e.lineNumber,n=Pe.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,e);return{isReal:!1,fromViewLineNumber:t,fromViewVisualColumn:n,toViewLineNumber:t,toViewVisualColumn:n}},us.prototype.getSelections=function(){return this._cursors.getSelections()},us.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},us.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},us.prototype.setSelections=function(e,t){this.setStates(e,0,Pe.d.fromModelSelections(t))},us.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},us.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},us.prototype._pushAutoClosedAction=function(e,t){for(var n=[],i=[],o=0,r=e.length;o<r;o++)n.push({range:e[o],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[o],options:{stickiness:1}});var s=this._model.deltaDecorations([],n),a=this._model.deltaDecorations([],i);this._autoClosedActions.push(new rs(this._model,s,a))},us.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=cs.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],i=[],o=0;o<e.commands.length;o++){var r=e.commands[o];r instanceof Qr.b&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}0<n.length&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},us.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},us.prototype._emitStateChangedIfNecessary=function(e,t,n){var i=new is(this._model,this);if(i.equals(n))return!1;var o=this._cursors.getSelections(),r=this._cursors.getViewSelections();try{this._beginEmit().emit(new Qt(r,o))}finally{this._endEmit()}if(!n||n.cursorState.length!==i.cursorState.length||i.cursorState.some((function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)}))){var s=n?n.cursorState.map((function(e){return e.modelState.selection})):null,a=n?n.modelVersionId:0;this._onDidChange.fire(new ns(o,i.modelVersionId,s,a,e||"keyboard",t))}return!0},us.prototype._revealRange=function(e,t,n,i,o){var r=this._cursors.getViewPositions(),s=r[0];if(1===t)for(var a=1;a<r.length;a++)r[a].isBefore(s)&&(s=r[a]);else if(2===t)for(a=1;a<r.length;a++)s.isBeforeOrEqual(r[a])&&(s=r[a]);else if(1<r.length)return;var l=new Te.a(s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(e,l,n,i,o)},us.prototype.emitCursorRevealRange=function(e,t,n,i,o){try{this._beginEmit().emit(new un(e,t,n,i,o))}finally{this._endEmit()}},us.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o.text||0<=o.text.indexOf("\n"))return null;var r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;var s=r[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var l=a[0].open,u=o.text.length-r[2].length-1,c=o.text.lastIndexOf(l,u-1);if(-1===c)return null;t.push([c,u])}return t},us.prototype.executeEdits=function(e,t,n){var i=this,o=null;"snippet"===e&&(o=this._findAutoClosingPairs(t)),o&&(t[0]._isTracked=!0);var r=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(o)for(var t=0,a=o.length;t<a;t++){var l=o[t],u=l[0],c=l[1],d=e[t],h=d.range.startLineNumber,p=d.range.startColumn-1+u,f=d.range.startColumn-1+c;r.push(new Te.a(h,f+1,h,f+2)),s.push(new Te.a(h,p+1,h,f+2))}var g=n(e);return g&&(i._isHandling=!0),g}));a&&(this._isHandling=!1,this.setSelections(e,a)),0<r.length&&this._pushAutoClosedAction(r,s)},us.prototype.trigger=function(e,t,n){var i=es.b;if(t===i.CompositionStart)return this._isDoingComposition=!0,void(this._selectionsWhenCompositionStarted=this.getSelections().slice(0));if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68))this._onDidAttemptReadOnlyEdit.fire(void 0);else{var o=new is(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){Object(s.e)(e)}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,r,o)&&this._revealRange(e,0,0,!0,0)}},us.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=rs.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Qr.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),t)),this._selectionsWhenCompositionStarted=null}},us.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Qr.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=t.length,i=0;i<n;){var o=Mt.E(t,i),r=t.substr(i,o),s=rs.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Qr.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),s,r)),i+=o}},us.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(Qr.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},us.prototype._paste=function(e,t,n){this._executeEditOperation(Qr.a.paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},us.prototype._cut=function(){this._executeEditOperation(Jr.a.cut(this.context.config,this.context.model,this.getSelections()))},us.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Pe.e(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},us.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new Pe.e(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},us.MAX_CURSOR_COUNT=1e4,us);function us(e,t,n){var i=as.call(this)||this;function o(){i.context=new Pe.c(i._configuration,i._model,i._viewModel),i._cursors.updateContext(i.context)}return i._onDidReachMaxCursorCount=i._register(new a.a),i.onDidReachMaxCursorCount=i._onDidReachMaxCursorCount.event,i._onDidAttemptReadOnlyEdit=i._register(new a.a),i.onDidAttemptReadOnlyEdit=i._onDidAttemptReadOnlyEdit.event,i._onDidChange=i._register(new a.a),i.onDidChange=i._onDidChange.event,i._configuration=e,i._model=t,i._knownModelVersionId=i._model.getVersionId(),i._viewModel=n,i.context=new Pe.c(i._configuration,i._model,i._viewModel),i._cursors=new Zr(i.context),i._isHandling=!1,i._isDoingComposition=!1,i._selectionsWhenCompositionStarted=null,i._columnSelectData=null,i._autoClosedActions=[],i._prevEditOperationType=0,i._register(i._model.onDidChangeRawContent((function(e){if(i._knownModelVersionId=e.versionId,!i._isHandling){var t=e.containsEvent(1);i._onModelContentChanged(t)}}))),i._register(n.addEventListener((function(e){!function(e){for(var t=0,n=e.length;t<n;t++)if(8===e[t].type)return 1}(e)||i._knownModelVersionId!==i._model.getVersionId()||i.setStates("viewModel",0,i.getAll())}))),i._register(i._model.onDidChangeLanguage((function(e){o()}))),i._register(i._model.onDidChangeLanguageConfiguration((function(){o()}))),i._register(i._model.onDidChangeOptions((function(){o()}))),i._register(i._configuration.onDidChange((function(e){Pe.b.shouldRecreate(e)&&o()}))),i}var cs=(ds.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},ds._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 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&&0<r.length&&(r[0]._isTracked=!0);var l=e.model.pushEditOperations(e.selectionsBefore,r,(function(n){for(var i=[],o=0;o<e.selectionsBefore.length;o++)i[o]=[];for(var r=0,s=n;r<s.length;r++){var a=s[r];a.identifier&&i[a.identifier.major].push(a)}var l=function(e,t){return e.identifier.minor-t.identifier.minor},u=[],c=function(n){0<i[n].length?(i[n].sort(l),u[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 et.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new et.a(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):u[n]=e.selectionsBefore[n]};for(o=0;o<e.selectionsBefore.length;o++)c(o);return u}));l=l||e.selectionsBefore;var u=[];for(var c in o)o.hasOwnProperty(c)&&u.push(parseInt(c,10));u.sort((function(e,t){return t-e}));for(var d=0,h=u;d<h.length;d++){var p=h[d];l.splice(p,1)}return l},ds._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},ds._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}},ds._getEditOperationsFromCommand=function(e,t,n){function i(e,i,s){void 0===s&&(s=!1),e.isEmpty()&&""===i||o.push({identifier:{major:t,minor:r++},range:e,text:i,forceMoveMarkers:s,isAutoWhitespaceEdit:n.insertsAutoWhitespace})}var o=[],r=0,a=!1,l={addEditOperation:i,addTrackedEditOperation:function(e,t,n){a=!0,i(e,t,n)},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,l)}catch(l){return Object(s.e)(l),{operations:[],hadTrackedEditOperation:!1}}return{operations:o,hadTrackedEditOperation:a}},ds._getLoserCursorMap=function(e){(e=e.slice(0)).sort((function(e,t){return-Te.a.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--);0<n&&n--}}return t},ds);function ds(){}var hs=n(1089),ps=n(469),fs=n(1090),gs=n(1082),ms=(vs.prototype.insert=function(e){this._hasPending=!0,this._inserts.push(e)},vs.prototype.change=function(e){this._hasPending=!0,this._changes.push(e)},vs.prototype.remove=function(e){this._hasPending=!0,this._removes.push(e)},vs.prototype.mustCommit=function(){return this._hasPending},vs.prototype.commit=function(e){if(this._hasPending){var t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}},vs);function vs(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}var _s=function(e,t,n,i,o){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=o,this.prefixSum=0},bs=(ys.findInsertionIndex=function(e,t,n){for(var i=0,o=e.length;i<o;){var r=i+o>>>1;t===e[r].afterLineNumber?n<e[r].ordinal?o=r:i=1+r:t<e[r].afterLineNumber?o=r:i=1+r}return i},ys.prototype.setLineHeight=function(e){this._checkPendingChanges(),this._lineHeight=e},ys.prototype.onFlushed=function(e){this._checkPendingChanges(),this._lineCount=e},ys.prototype.changeWhitespace=function(e){var t=this;try{return e({insertWhitespace:function(e,n,i,o){e|=0,n|=0,i|=0,o|=0;var r=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new _s(r,e,n,i,o)),r},changeOneWhitespace:function(e,n,i){n|=0,i|=0,t._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:function(e){t._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}},ys.prototype._commitPendingChanges=function(e,t,n){if((0<e.length||0<n.length)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(var i=0,o=e;i<o.length;i++){var r=o[i];this._insertWhitespace(r)}for(var s=0,a=t;s<a.length;s++){var l=a[s];this._changeOneWhitespace(l.id,l.newAfterLineNumber,l.newHeight)}for(var u=0,c=n;u<c.length;u++){var d=c[u],h=this._findWhitespaceIndex(d.id);-1!==h&&this._removeWhitespace(h)}}else{for(var p=new Set,f=0,g=n;f<g.length;f++)d=g[f],p.add(d.id);for(var m=new Map,v=0,_=t;v<_.length;v++)l=_[v],m.set(l.id,l);var b=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!p.has(o.id)){if(m.has(o.id)){var r=m.get(o.id);o.afterLineNumber=r.newAfterLineNumber,o.height=r.newHeight}t.push(o)}}return t},y=b(this._arr).concat(b(e));y.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=y,this._prefixSumValidIndex=-1}},ys.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},ys.prototype._insertWhitespace=function(e){var t=ys.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},ys.prototype._findWhitespaceIndex=function(e){for(var t=this._arr,n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1},ys.prototype._changeOneWhitespace=function(e,t,n){var i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){var o=this._arr[i];this._removeWhitespace(i),o.afterLineNumber=t,this._insertWhitespace(o)}},ys.prototype._removeWhitespace=function(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},ys.prototype.onLinesDeleted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var o=this._arr[n].afterLineNumber;e<=o&&o<=t?this._arr[n].afterLineNumber=e-1:t<o&&(this._arr[n].afterLineNumber-=t-e+1)}},ys.prototype.onLinesInserted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(var n=0,i=this._arr.length;n<i;n++)e<=this._arr[n].afterLineNumber&&(this._arr[n].afterLineNumber+=t-e+1)},ys.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},ys.prototype.getWhitespacesAccumulatedHeight=function(e){this._checkPendingChanges(),e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum},ys.prototype.getLinesTotalHeight=function(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()},ys.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){this._checkPendingChanges(),e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)},ys.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;for(var t=this._arr,n=0,i=t.length-1;n<=i;){var o=n+((i-n|0)/2|0)|0;if(t[o].afterLineNumber<e){if(1+o>=t.length||t[1+o].afterLineNumber>=e)return o;n=1+o|0}else i=o-1|0}return-1},ys.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1},ys.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)},ys.prototype.getVerticalOffsetForLineNumber=function(e){return this._checkPendingChanges(),(1<(e|=0)?this._lineHeight*(e-1):0)+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e)},ys.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),-1===this._minWidth){for(var e=0,t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth},ys.prototype.isAfterLines=function(e){return this._checkPendingChanges(),this.getLinesTotalHeight()<e},ys.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(this._checkPendingChanges(),(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(s+n<=e)i=1+r;else{if(s<=e)return r;o=r}}return t<i?t:i},ys.prototype.getLinesViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,l=0|this.getFirstWhitespaceIndexAfterLineNumber(r),u=0|this.getWhitespacesCount();n=-1===l?(l=u,i=a+1,0):(i=0|this.getAfterLineNumberForWhitespaceIndex(l),0|this.getHeightForWhitespaceIndex(l));var c=s,d=c,h=0;5e5<=s&&(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++){for(-1===g&&(c<=f&&f<c+o||f<c)&&(g=m),c+=o,p[m-r]=d,d+=o;i===m;)d+=n,c+=n,u<=++l?i=a+1:(i=0|this.getAfterLineNumberForWhitespaceIndex(l),n=0|this.getHeightForWhitespaceIndex(l));if(t<=c){a=m;break}}-1===g&&(g=a);var v=0|this.getVerticalOffsetForLineNumber(a),_=r,b=a;return _<b&&s<e&&_++,_<b&&t<v+o&&b--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:_,completelyVisibleEndLineNumber:b}},ys.prototype.getVerticalOffsetForWhitespaceIndex=function(e){this._checkPendingChanges(),e|=0;var t=this.getAfterLineNumberForWhitespaceIndex(e);return(1<=t?this._lineHeight*t:0)+(0<e?this.getWhitespacesAccumulatedHeight(e-1):0)},ys.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){this._checkPendingChanges(),e|=0;var t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;if(this.getVerticalOffsetForWhitespaceIndex(n)+this.getHeightForWhitespaceIndex(n)<=e)return-1;for(;t<n;){var i=Math.floor((t+n)/2),o=this.getVerticalOffsetForWhitespaceIndex(i);if(o+this.getHeightForWhitespaceIndex(i)<=e)t=i+1;else{if(o<=e)return i;n=i}}return t},ys.prototype.getWhitespaceAtVerticalOffset=function(e){this._checkPendingChanges(),e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(e<n)return null;var i=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}},ys.prototype.getWhitespaceViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this.getHeightForWhitespaceIndex(r);if(t<=s)break;o.push({id:this.getIdForWhitespaceIndex(r),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},ys.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},ys.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},ys.prototype.getIdForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].id},ys.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber},ys.prototype.getHeightForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].height},ys.INSTANCE_COUNT=0,ys);function ys(e,t){this._instanceId=Mt.M(++ys.INSTANCE_COUNT),this._pendingChanges=new ms,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t}var Cs,ws=n(777),Ss=(Cs=function(e,t){return(Cs=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}Cs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Os=(Ls.prototype.equals=function(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight},Ls);function Ls(e,t,n,i){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(n|=0)<0&&(n=0),(i|=0)<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}var Ds,xs=(Ss(Ns,Ds=l.a),Ns.prototype.getScrollable=function(){return this._scrollable},Ns.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},Ns.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},Ns.prototype.getScrollDimensions=function(){return this._dimensions},Ns.prototype.setScrollDimensions=function(e){if(!this._dimensions.equals(e)){var t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:n,contentHeightChanged:i})}},Ns.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},Ns.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},Ns.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},Ns.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},Ns);function Ns(e,t){var n=Ds.call(this)||this;return n._onDidContentSizeChange=n._register(new a.a),n.onDidContentSizeChange=n._onDidContentSizeChange.event,n._dimensions=new Os(0,0,0,0),n._scrollable=n._register(new gs.a(e,t)),n.onDidScroll=n._scrollable.onScroll,n}var ks,Es=(Ss(Is,ks=l.a),Is.prototype.dispose=function(){ks.prototype.dispose.call(this)},Is.prototype.getScrollable=function(){return this._scrollable.getScrollable()},Is.prototype.onHeightMaybeChanged=function(){this._updateHeight()},Is.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?125:0)},Is.prototype.onConfigurationChanged=function(e){var t=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(t.get(49)),e.hasChanged(107)){var n=t.get(107),i=n.contentWidth,o=n.height,r=this._scrollable.getScrollDimensions(),s=r.scrollWidth;this._scrollable.setScrollDimensions(new Os(i,r.contentWidth,o,this._getContentHeight(i,o,s)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},Is.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},Is.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},Is.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},Is.prototype._getHorizontalScrollbarHeight=function(e,t){var n=this._configuration.options.get(78);return 2===n.horizontal||t<=e?0:n.horizontalScrollbarSize},Is.prototype._getContentHeight=function(e,t,n){var i=this._configuration.options,o=this._linesLayout.getLinesTotalHeight();return i.get(80)?o+=t-i.get(49):o+=this._getHorizontalScrollbarHeight(e,n),o},Is.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.scrollWidth;this._scrollable.setScrollDimensions(new Os(t,e.contentWidth,n,this._getContentHeight(t,n,i)))},Is.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new ws.f(t.scrollTop,t.scrollLeft,e.width,e.height)},Is.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new ws.f(t.scrollTop,t.scrollLeft,e.width,e.height)},Is.prototype._computeContentWidth=function(e){var t=this._configuration.options,n=t.get(108),i=t.get(34);if(n.isViewportWrapping){var o=t.get(107),r=t.get(54);return e>o.contentWidth+i.typicalHalfwidthCharacterWidth&&r.enabled&&"right"===r.side?e+o.verticalScrollbarWidth:e}var s=t.get(79)*i.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+s,a)},Is.prototype.onMaxLineWidthChanged=function(e){var t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Os(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()},Is.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}},Is.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},Is.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},Is.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},Is.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},Is.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},Is.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},Is.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)},Is.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},Is.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},Is.prototype.getContentWidth=function(){return this._scrollable.getScrollDimensions().contentWidth},Is.prototype.getScrollWidth=function(){return this._scrollable.getScrollDimensions().scrollWidth},Is.prototype.getContentHeight=function(){return this._scrollable.getScrollDimensions().contentHeight},Is.prototype.getScrollHeight=function(){return this._scrollable.getScrollDimensions().scrollHeight},Is.prototype.getCurrentScrollLeft=function(){return this._scrollable.getCurrentScrollPosition().scrollLeft},Is.prototype.getCurrentScrollTop=function(){return this._scrollable.getCurrentScrollPosition().scrollTop},Is.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},Is.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},Is.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},Is.prototype.deltaScrollNow=function(e,t){var n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},Is);function Is(e,t,n){var i=ks.call(this)||this;i._configuration=e;var o=i._configuration.options,r=o.get(107);return i._linesLayout=new bs(t,o.get(49)),i._scrollable=i._register(new xs(0,n)),i._configureSmoothScrollDuration(),i._scrollable.setScrollDimensions(new Os(r.contentWidth,0,r.height,0)),i.onDidScroll=i._scrollable.onDidScroll,i.onDidContentSizeChange=i._scrollable.onDidContentSizeChange,i._updateHeight(),i}var Ms=n(495),Ts=n(1091),Ps=function(e,t){this.outputLineIndex=e,this.outputOffset=t},Rs=(As.getInputOffsetOfOutputPosition=function(e,t,n){return 0===t?n:e[t-1]+n},As.getOutputPositionOfInputOffset=function(e,t){for(var n=0,i=e.length-1,o=0,r=0;n<=i;){var s=e[o=n+(i-n)/2|0];if(t<(r=0<o?e[o-1]:0))i=o-1;else{if(!(s<=t))break;n=o+1}}return new Ps(o,t-r)},As);function As(e,t,n){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}var Fs=(js.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},js.prototype.convertViewRangeToModelRange=function(e){return this._lines.convertViewRangeToModelRange(e)},js.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},js.prototype.validateViewRange=function(e,t){return this._lines.validateViewRange(e,t)},js.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},js.prototype.convertModelRangeToViewRange=function(e){return this._lines.convertModelRangeToViewRange(e)},js.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},js);function js(e){this._lines=e}var Ws=(Vs.prototype._invalidate=function(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)},Vs.prototype._ensureValid=function(){if(!this._isValid){for(var e=this._validEndIndex+1,t=this._counts.length;e<t;e++){var n=this._counts[e],i=0<e?this._modelToView[e-1]:0;this._modelToView[e]=i+n;for(var o=0;o<n;o++)this._viewToModel[i+o]=e}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}},Vs.prototype.changeValue=function(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))},Vs.prototype.removeValues=function(e,t){this._counts.splice(e,t),this._invalidate(e)},Vs.prototype.insertValues=function(e,t){this._counts=pi.a(this._counts,e,t),this._invalidate(e)},Vs.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},Vs.prototype.getAccumulatedValue=function(e){return this._ensureValid(),this._modelToView[e]},Vs.prototype.getIndexOf=function(e){this._ensureValid();var t=this._viewToModel[e],n=0<t?this._modelToView[t-1]:0;return new Ts.b(t,e-n)},Vs);function Vs(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}var Bs=(Hs.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},Hs.prototype.createCoordinatesConverter=function(){return new Fs(this)},Hs.prototype._constructLines=function(e,t){var n=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var i=this.model.getLinesContent(),o=i.length,r=this.createLineBreaksComputer(),s=0;s<o;s++)r.addRequest(i[s],t?t[s]:null);var a=r.finalize(),l=[],u=this.hiddenAreasIds.map((function(e){return n.model.getDecorationRange(e)})).sort(Te.a.compareRangesUsingStarts),c=1,d=0,h=-1,p=h+1<u.length?d+1:o+2;for(s=0;s<o;s++){var f=s+1;f===p&&(c=u[++h].startLineNumber,d=u[h].endLineNumber,p=h+1<u.length?d+1:o+2);var g=c<=f&&f<=d,m=$s(a[s],!g);l[s]=m.getViewLineCount(),this.lines[s]=m}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Ws(l)},Hs.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},Hs.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(Te.a.compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var l=n[s];l.startLineNumber>r+1?(i.push(new Te.a(o,1,r,1)),o=l.startLineNumber,r=l.endLineNumber):l.endLineNumber>r&&(r=l.endLineNumber)}return i.push(new Te.a(o,1,r,1)),i},Hs.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Te.a.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}for(var s=[],a=0,l=n;a<l.length;a++){var u=l[a];s.push({range:u,options:Ms.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var c=n,d=1,h=0,p=-1,f=p+1<c.length?h+1:this.lines.length+2,g=!1;for(r=0;r<this.lines.length;r++){var m=r+1;m===f&&(d=c[++p].startLineNumber,h=c[p].endLineNumber,f=p+1<c.length?h+1:this.lines.length+2);var v=!1;if(d<=m&&m<=h?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),v=!0):(g=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),v=!0)),v){var _=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,_)}}return g||this.setHiddenAreas([]),!0},Hs.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},Hs.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)},Hs.prototype.setWrappingSettings=function(e,t,n,i){var o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,s=this.wrappingColumn===n,a=this.wrappingIndent===i;if(o&&r&&s&&a)return!1;var l=o&&r&&!s&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;var u=null;if(l){u=[];for(var c=0,d=this.lines.length;c<d;c++)u[c]=this.lines[c].getLineBreakData()}return this._constructLines(!1,u),!0},Hs.prototype.createLineBreaksComputer=function(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},Hs.prototype.onModelFlushed=function(){this._constructLines(!0,null)},Hs.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 an(i,o)},Hs.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new Me.a(t,1),a=0,l=o;a<l.length;a++)if(l[a].containsPosition(s)){r=!0;break}for(var u=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=0,d=[],h=[],p=0,f=i.length;p<f;p++){var g=$s(i[p],!r);d.push(g);var m=g.getViewLineCount();c+=m,h[p]=m}return this.lines=this.lines.slice(0,t-1).concat(d).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,h),new ln(u,u+c-1)},Hs.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=$s(n,this.lines[i].isVisible());this.lines[i]=r;var s=this.lines[i].getViewLineCount(),a=!1,l=0,u=-1,c=0,d=-1,h=0,p=-1;return s<o?(p=(h=1+(u=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1))+(o-s)-1,a=!0):o<s?(d=(c=1+(u=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+o-1))+(s-o)-1,a=!0):u=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1,this.prefixSumComputer.changeValue(i,s),[a,l<=u?new sn(l,u):null,c<=d?new ln(c,d):null,h<=p?new an(h,p):null]},Hs.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},Hs.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},Hs.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return t<e?t:0|e},Hs.prototype.getActiveIndentGuide=function(e,t,n){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),l=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}},Hs.prototype.getViewLinesIndentGuides=function(e,t){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,l=i.lineNumber-1,u=null,c=a;c<=l;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;1<(w=p-h+1)&&1===d.getViewLineMinColumn(this.model,c+1,p)&&(f=0===h?1:2),r.push(w),s.push(f),null===u&&(u=new Me.a(c+1,0))}else null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,c)),u=null)}null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,i.lineNumber)),u=null);for(var g=t-e+1,m=new Array(g),v=0,_=0,b=o.length;_<b;_++){var y,C=o[_],w=Math.min(g-v,r[_]);y=2===(f=s[_])?0:1===f?1:w;for(var S=0;S<w;S++)S===y&&(C=0),m[v++]=C}return m},Hs.prototype.getViewLineContent=function(e){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)},Hs.prototype.getViewLineLength=function(e){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)},Hs.prototype.getViewLineMinColumn=function(e){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)},Hs.prototype.getViewLineMaxColumn=function(e){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)},Hs.prototype.getViewLineData=function(e){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)},Hs.prototype.getViewLinesData=function(e,t,n){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=[],l=r,u=this.model.getLineCount();l<u;l++){var c=this.lines[l];if(c.isVisible()){var d=l===r?s:0,h=c.getViewLineCount()-d,p=!1;t<o+h&&(p=!0,h=t-o+1);var f=d+h;if(c.getViewLinesData(this.model,l+1,d,f,o-e,n,a),o+=h,p)break}}return a},Hs.prototype.validateViewPosition=function(e,t,n){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),l=s.getViewLineMaxColumn(this.model,o+1,r);t<a&&(t=a),l<t&&(t=l);var u=s.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Me.a(o+1,u)).equals(n)?new Me.a(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},Hs.prototype.validateViewRange=function(e,t){var n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Te.a(n.lineNumber,n.column,i.lineNumber,i.column)},Hs.prototype.convertViewPositionToModelPosition=function(e,t){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 Me.a(i+1,r))},Hs.prototype.convertViewRangeToModelRange=function(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Te.a(t.lineNumber,t.column,n.lineNumber,n.column)},Hs.prototype.convertModelPositionToViewPosition=function(e,t){for(var n=this.model.validatePosition(new Me.a(e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;0<r&&!this.lines[r].isVisible();)r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new Me.a(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)},Hs.prototype.convertModelRangeToViewRange=function(e){var t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return e.startLineNumber===e.endLineNumber&&t.lineNumber!==n.lineNumber&&n.column===this.getViewLineMinColumn(n.lineNumber)?new Te.a(t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new Te.a(t.lineNumber,t.column,n.lineNumber,n.column)},Hs.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(;0<n&&!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))},Hs.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new na,r=0,s=i;r<s.length;r++){var a=s[r],l=a.options.overviewRuler,u=l?l.position:0;if(0!==u){var c=l.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,u)}}return o.result},Hs.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 Te.a(i.lineNumber,1,o.lineNumber,o.column),t,n);for(var r=[],s=i.lineNumber-1,a=o.lineNumber-1,l=null,u=s;u<=a;u++)if(this.lines[u].isVisible())null===l&&(l=new Me.a(u+1,u===s?i.column:1));else if(null!==l){var c=this.model.getLineMaxColumn(u);r=r.concat(this.model.getDecorationsInRange(new Te.a(l.lineNumber,l.column,u,c),t,n)),l=null}null!==l&&(r=r.concat(this.model.getDecorationsInRange(new Te.a(l.lineNumber,l.column,o.lineNumber,o.column),t,n)),l=null),r.sort((function(e,t){var n=Te.a.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;f<g.length;f++){var m=g[f],v=m.id;p!==v&&(p=v,d[h++]=m)}return d},Hs);function Hs(e,t,n,i,o,r,s,a){this.model=e,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=i,this.tabSize=o,this.wrappingStrategy=r,this.wrappingColumn=s,this.wrappingIndent=a,this._constructLines(!0,null)}var zs=(Us.prototype.isVisible=function(){return!0},Us.prototype.setVisible=function(e){return e?this:Ks.INSTANCE},Us.prototype.getLineBreakData=function(){return null},Us.prototype.getViewLineCount=function(){return 1},Us.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},Us.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},Us.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},Us.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},Us.prototype.getViewLineData=function(e,t,n){var i=e.getLineTokens(t),o=i.getLineContent();return new ws.c(o,!1,1,o.length+1,0,i.inflate())},Us.prototype.getViewLinesData=function(e,t,n,i,o,r,s){r[o]?s[o]=this.getViewLineData(e,t,0):s[o]=null},Us.prototype.getModelColumnOfViewPosition=function(e,t){return t},Us.prototype.getViewPositionOfModelPosition=function(e,t){return new Me.a(e,t)},Us.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},Us.INSTANCE=new Us,Us);function Us(){}var Ks=(qs.prototype.isVisible=function(){return!1},qs.prototype.setVisible=function(e){return e?zs.INSTANCE:this},qs.prototype.getLineBreakData=function(){return null},qs.prototype.getViewLineCount=function(){return 0},qs.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},qs.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},qs.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},qs.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},qs.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},qs.prototype.getViewLinesData=function(e,t,n,i,o,r,s){throw new Error("Not supported")},qs.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},qs.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},qs.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},qs.INSTANCE=new qs,qs);function qs(){}var Gs=(Ys.prototype.isVisible=function(){return this._isVisible},Ys.prototype.setVisible=function(e){return this._isVisible=e,this},Ys.prototype.getLineBreakData=function(){return this._lineBreakData},Ys.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},Ys.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return Rs.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,0)},Ys.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:Rs.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n+1,0)},Ys.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 0<n&&(r=Xs(this._lineBreakData.wrappedTextIndentLength)+r),r},Ys.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 0<n&&(o=this._lineBreakData.wrappedTextIndentLength+o),o},Ys.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return 0<n?this._lineBreakData.wrappedTextIndentLength+1:1},Ys.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},Ys.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});0<n&&(r=Xs(this._lineBreakData.wrappedTextIndentLength)+r);var s=0<n?this._lineBreakData.wrappedTextIndentLength+1:1,a=r.length+1,l=n+1<this.getViewLineCount(),u=0;0<n&&(u=this._lineBreakData.wrappedTextIndentLength);var c=e.getLineTokens(t),d=0===n?0:this._lineBreakData.breakOffsetsVisibleColumn[n-1];return new ws.c(r,l,s,a,d,c.sliceAndInflate(i,o,u))},Ys.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 l=o+a-n;r[l]?s[l]=this.getViewLineData(e,t,a):s[l]=null}},Ys.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return 0<e&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),Rs.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,n)+1},Ys.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=Rs.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),i=n.outputLineIndex,o=n.outputOffset+1;return 0<i&&(o+=this._lineBreakData.wrappedTextIndentLength),new Me.a(e+i,o)},Ys.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+Rs.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1).outputLineIndex},Ys);function Ys(e,t){this._lineBreakData=e,this._isVisible=t}var Zs=[""];function Xs(e){if(e>=Zs.length)for(var t=1;t<=e;t++)Zs[t]=new Array(t+1).join(" ");return Zs[e]}function $s(e,t){return null===e?t?zs.INSTANCE:Ks.INSTANCE:new Gs(e,t)}var Js=(Qs.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},Qs.prototype._validRange=function(e){return this._lines.model.validateRange(e)},Qs.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},Qs.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},Qs.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},Qs.prototype.validateViewRange=function(e,t){return this._validRange(t)},Qs.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},Qs.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},Qs.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},Qs);function Qs(e){this._lines=e}var ea=(ta.prototype.dispose=function(){},ta.prototype.createCoordinatesConverter=function(){return new Js(this)},ta.prototype.getHiddenAreas=function(){return[]},ta.prototype.setHiddenAreas=function(e){return!1},ta.prototype.setTabSize=function(e){return!1},ta.prototype.setWrappingSettings=function(e,t,n,i){return!1},ta.prototype.createLineBreaksComputer=function(){var e=[];return{addRequest:function(){e.push(null)},finalize:function(){return e}}},ta.prototype.onModelFlushed=function(){},ta.prototype.onModelLinesDeleted=function(e,t,n){return new an(t,n)},ta.prototype.onModelLinesInserted=function(e,t,n,i){return new ln(t,n)},ta.prototype.onModelLineChanged=function(e,t,n){return[!1,new sn(t,t),null,null]},ta.prototype.acceptVersionId=function(e){},ta.prototype.getViewLineCount=function(){return this.model.getLineCount()},ta.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},ta.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},ta.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},ta.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},ta.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},ta.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},ta.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new ws.c(n,!1,1,n.length+1,0,t.inflate())},ta.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},ta.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new na,r=0,s=i;r<s.length;r++){var a=s[r],l=a.options.overviewRuler,u=l?l.position:0;if(0!==u){var c=l.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;o.accept(c,d,h,u)}}return o.result},ta.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},ta);function ta(e){this.model=e}var na=(ia.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&&t<=s+1)return void(s<n&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},ia);function ia(){this.result=Object.create(null)}var oa=(ra.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},ra.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},ra.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 Me.a(i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new Me.a(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new Te.a(s.lineNumber,s.column,a.lineNumber,a.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new ws.e(r,o),this._decorationsCache[t]=n}return n},ra.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},ra.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object(pe.j)(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var l=0,u=t.length;l<u;l++){var c=t[l],d=c.options,h=this._getOrCreateViewModelDecoration(c),p=h.range;if(o[r++]=h,d.inlineClassName){var f=new ws.a(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)}d.beforeContentClassName&&n<=p.startLineNumber&&p.startLineNumber<=i&&(f=new ws.a(new Te.a(p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),d.beforeContentClassName,1),s[p.startLineNumber-n].push(f)),d.afterContentClassName&&n<=p.endLineNumber&&p.endLineNumber<=i&&(f=new ws.a(new Te.a(p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),d.afterContentClassName,2),s[p.endLineNumber-n].push(f))}return{decorations:o,inlineDecorations:s}},ra);function ra(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._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}var sa,aa,la=((sa=function(e,t){return(sa=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}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ua,aa=gn),ua.prototype.dispose=function(){aa.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},ua.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},ua.prototype.setHasFocus=function(e){this.hasFocus=e},ua.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var i=new Me.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(i)}var o=!1,r=this.configuration.options,s=r.get(34),a=r.get(103),l=r.get(108),u=r.get(102);if(this.lines.setWrappingSettings(s,a,l.wrappingColumn,u)&&(e.emit(new tn),e.emit(new rn),e.emit(new en),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(o=!0)),t.hasChanged(68)&&(this.decorations.reset(),e.emit(new en)),e.emit(new Zt(t)),this.viewLayout.onConfigurationChanged(t),o&&n){var c=this.coordinatesConverter.convertModelPositionToViewPosition(n),d=this.viewLayout.getVerticalOffsetForLineNumber(c.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:d+this.viewportStartLineDelta})}},ua.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=e.lines.createLineBreaksComputer(),l=0,u=r;l<u.length;l++)switch((v=u[l]).changeType){case 4:for(var c=0,d=v.detail;c<d.length;c++){var h=d[c];a.addRequest(h,null)}break;case 2:a.addRequest(v.detail,null)}for(var p=a.finalize(),f=0,g=0,m=r;g<m.length;g++){var v;switch((v=m[g]).changeType){case 1:e.lines.onModelFlushed(),n.emit(new tn),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),i=!0;break;case 3:null!==(O=e.lines.onModelLinesDeleted(s,v.fromLineNumber,v.toLineNumber))&&(n.emit(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber)),i=!0;break;case 4:var _=p.slice(f,f+v.detail.length);f+=v.detail.length,null!==(S=e.lines.onModelLinesInserted(s,v.fromLineNumber,v.toLineNumber,_))&&(n.emit(S),e.viewLayout.onLinesInserted(S.fromLineNumber,S.toLineNumber)),i=!0;break;case 2:var b=p[f];f++;var y=e.lines.onModelLineChanged(s,v.lineNumber,b),C=y[0],w=y[1],S=y[2],O=y[3];o=C,w&&n.emit(w),S&&(n.emit(S),e.viewLayout.onLinesInserted(S.fromLineNumber,S.toLineNumber)),O&&(n.emit(O),e.viewLayout.onLinesDeleted(O.fromLineNumber,O.toLineNumber))}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!i&&o&&(n.emit(new rn),n.emit(new en),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&2<=e.model.getAttachedEditorCount()&&e.viewportStartLineTrackedRange){var L=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(L){var D=e.coordinatesConverter.convertModelPositionToViewPosition(L.getStartPosition()),x=e.viewLayout.getVerticalOffsetForLineNumber(D.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:x+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 Me.a(r.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new Me.a(r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;n[i]={fromLineNumber:s,toLineNumber:a}}try{e._beginEmit().emit(new hn(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){try{e._beginEmit().emit(new on)}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 tn),n.emit(new rn),n.emit(new en)}finally{e._endEmit()}}}))),this._register(this.model.onDidChangeDecorations((function(t){e.decorations.onModelDecorationsChanged();try{e._beginEmit().emit(new en)}finally{e._endEmit()}})))},ua.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit();this.lines.setHiddenAreas(e)&&(t.emit(new tn),t.emit(new rn),t.emit(new en),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},ua.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,l=t.endColumn,u=0,c=n.length;u<c;u++){var d=n[u].startLineNumber,h=n[u].endLineNumber;h<r||a<d||(r<d&&(i[o++]=new Te.a(r,s,d-1,this.model.getLineMaxColumn(d-1))),r=h+1,s=1)}return(r<a||r===a&&s<l)&&(i[o++]=new Te.a(r,s,a,l)),i},ua.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Te.a(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},ua.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new Te.a(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))},ua.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(n,this.getLineMinColumn(n))),o=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:o}},ua.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}},ua.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},ua.prototype.getTabSize=function(){return this.model.getOptions().tabSize},ua.prototype.getOptions=function(){return this.model.getOptions()},ua.prototype.getLineCount=function(){return this.lines.getViewLineCount()},ua.prototype.setViewport=function(e,t,n){this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new Me.a(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Te.a(i.lineNumber,i.column,i.lineNumber,i.column),1);var o=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=r-o},ua.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},ua.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},ua.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},ua.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},ua.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},ua.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},ua.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=Mt.q(this.getLineContent(e));return-1===t?0:t+1},ua.prototype.getLineLastNonWhitespaceColumn=function(e){var t=Mt.D(this.getLineContent(e));return-1===t?0:t+2},ua.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},ua.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 ws.d(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,n,i,r.tokens,s,o,r.startVisibleColumn)},ua.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},ua.prototype.getMinimapLinesRenderingData=function(e,t,n){var i=this.lines.getViewLinesData(e,t,n);return new ws.b(this.getTabSize(),i)},ua.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(pe.j)(this.configuration.options),e)},ua.prototype.invalidateOverviewRulerColorCache=function(){for(var e=0,t=this.model.getOverviewRulerDecorations();e<t.length;e++){var n=t[e].options.overviewRuler;n&&n.invalidateCachedColor()}},ua.prototype.invalidateMinimapColorCache=function(){for(var e=0,t=this.model.getAllDecorations();e<t.length;e++){var n=t[e].options.minimap;n&&n.invalidateCachedColor()}},ua.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},ua.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},ua.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},ua.prototype.validateModelRange=function(e){return this.model.validateRange(e)},ua.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)},ua.prototype.getEOL=function(){return this.model.getEOL()},ua.prototype.getPlainTextToCopy=function(e,t,n){var i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Te.a.compareRangesUsingStarts);for(var o=!1,r=!1,s=0,a=e;s<a.length;s++)a[s].isEmpty()?o=!0:r=!0;if(!r){if(!t)return"";for(var l=e.map((function(e){return e.startLineNumber})),u="",c=0;c<l.length;c++)0<c&&l[c-1]===l[c]||(u+=this.model.getLineContent(l[c])+i);return u}if(o&&t){for(var d=[],h=0,p=0,f=e;p<f.length;p++){var g=(b=f[p]).startLineNumber;b.isEmpty()?g!==h&&d.push(this.model.getLineContent(g)):d.push(this.model.getValueInRange(b,n?2:0)),h=g}return 1===d.length?d[0]:d}for(var m=[],v=0,_=e;v<_.length;v++){var b;(b=_[v]).isEmpty()||m.push(this.model.getValueInRange(b,n?2:0))}return 1===m.length?m[0]:m},ua.prototype.getRichTextToCopy=function(e,t){var n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;var i=e[0];if(i.isEmpty()){if(!t)return null;var o=i.startLineNumber;i=new Te.a(o,this.model.getLineMinColumn(o),o,this.model.getLineMaxColumn(o))}var r=this.configuration.options.get(34),s=this._getColorMap(),a=r.fontFamily===pe.b.fontFamily?r.fontFamily:"'"+r.fontFamily+"', "+pe.b.fontFamily;return{mode:n.language,html:'<div style="color: '+s[1]+";background-color: "+s[2]+";font-family: "+a+";font-weight: "+r.fontWeight+";font-size: "+r.fontSize+"px;line-height: "+r.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(i,s)+"</div>"}},ua.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",l=n;l<=o;l++){var u=this.model.getLineTokens(l),c=u.getLineContent(),d=l===n?i-1:0,h=l===o?r-1:c.length;a+=""===c?"<br>":Object(fs.a)(c,u.inflate(),t,d,h,s,f.h)}return a},ua.prototype._getColorMap=function(){var e=co.B.getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=Go.a.Format.CSS.formatHex(e[n]);return t},ua);function ua(e,t,n,i,o,r){var s=aa.call(this)||this;if(s.editorId=e,s.configuration=t,s.model=n,s._tokenizeViewportSoon=s._register(new _.d((function(){return s.tokenizeViewport()}),50)),s.hasFocus=!1,s.viewportStartLine=-1,s.viewportStartLineTrackedRange=null,s.viewportStartLineDelta=0,s.model.isTooLargeForTokenization())s.lines=new ea(s.model);else{var a=s.configuration.options,l=a.get(34),u=a.get(103),c=a.get(108),d=a.get(102);s.lines=new Bs(s.model,i,o,l,s.model.getOptions().tabSize,u,c.wrappingColumn,d)}return s.coordinatesConverter=s.lines.createCoordinatesConverter(),s.viewLayout=s._register(new Es(s.configuration,s.getLineCount(),r)),s._register(s.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&s._tokenizeViewportSoon.schedule();try{s._beginEmit().emit(new cn(e))}finally{s._endEmit()}}))),s._register(s.viewLayout.onDidContentSizeChange((function(e){try{s._beginEmit().emit(new Jt(e))}finally{s._endEmit()}}))),s.decorations=new oa(s.editorId,s.model,s.configuration,s.lines,s.coordinatesConverter),s._registerModelEvents(),s._register(s.configuration.onDidChange((function(e){try{var t=s._beginEmit();s._onConfigurationChanged(t,e)}finally{s._endEmit()}}))),s._register(ho.getInstance().onDidChange((function(){try{s._beginEmit().emit(new pn)}finally{s._endEmit()}}))),s}var ca,da,ha=n(489),pa=n(456),fa=n(448),ga=n(895),ma=n(532),va=n(759),_a=n(465),ba=n(790),ya=((ca=function(e,t){return(ca=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}ca(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ca,da=ba.a),Ca.prototype.get=function(e){return 0<=e&&e<256?this._asciiMap[e]:12352<=e&&e<=12543||13312<=e&&e<=19903||19968<=e&&e<=40959?3:this._map.get(e)||this._defaultValue},Ca);function Ca(e,t){for(var n=da.call(this,0)||this,i=0;i<e.length;i++)n.set(e.charCodeAt(i),1);for(i=0;i<t.length;i++)n.set(t.charCodeAt(i),2);return n}var wa=[],Sa=[],Oa=(La.create=function(e){return new La(e.get(99),e.get(98))},La.prototype.createLineBreaksComputer=function(e,t,n,i){var o=this;t|=0,n=+n;var r=[],s=[];return{addRequest:function(e,t){r.push(e),s.push(t)},finalize:function(){for(var a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[],u=0,c=r.length;u<c;u++){var d=s[u];l[u]=d?Da(o.classifier,d,r[u],t,n,a,i):xa(o.classifier,r[u],t,n,a,i)}return wa.length=0,Sa.length=0,l}}},La);function La(e,t){this.classifier=new ya(e,t)}function Da(e,t,n,i,o,r,s){if(-1===o)return null;var a=n.length;if(a<=1)return null;var l=t.breakOffsets,u=t.breakOffsetsVisibleColumn,c=Ia(n,i,o,r,s),d=o-c,h=wa,p=Sa,f=0,g=o,m=l.length,v=0;if(0<=v)for(var _=Math.abs(u[v]-g);v+1<m&&!(_<=(j=Math.abs(u[v+1]-g)));)_=j,v++;for(;v<m;){var b=v<0?0:l[v],y=v<0?0:u[v],C=0,w=0,S=0,O=0;if(y<=g){for(var L=y,D=n.charCodeAt(b-1),x=e.get(D),N=!0,k=b;k<a;k++){var E=k,I=n.charCodeAt(k),M=void 0,T=void 0;if(T=Mt.z(I)?(k++,M=0,2):(M=e.get(I),Na(I,L,i,r)),Ea(D,x,I,M)&&(C=E,w=L),g<(L+=T)){S=E,O=L-T,d<L-w&&(C=0),N=!1;break}D=I,x=M}if(N){0<f&&(h[f]=l[l.length-1],p[f]=u[l.length-1],f++);break}}if(0===C){L=y,I=n.charCodeAt(b),M=e.get(I);var P=!1;for(k=b-1;0<=k;k--){if(E=k+1,9===(D=n.charCodeAt(k))){P=!0;break}x=void 0;var R;if(R=Mt.A(D)?(k--,x=0,2):(x=e.get(D),Mt.y(D)?r:1),L<=g){if(0===S&&(S=E,O=L),L<=g-d)break;if(Ea(D,x,I,M)){C=E,w=L;break}}L-=R,I=D,M=x}if(0!==C){var A=d-(O-w);if(A<=i){var F=n.charCodeAt(S);T=void 0,A-(T=Mt.z(F)?2:Na(F,O,i,r))<0&&(C=0)}}if(P){v--;continue}}for(0===C&&(C=S,w=O),h[f]=C,p[f]=w,f++,g=w+d;v<0||v<m&&u[v]<w;)v++;for(_=Math.abs(u[v]-g);v+1<m;){var j;if(_<=(j=Math.abs(u[v+1]-g)))break;_=j,v++}}return 0===f?null:(h.length=f,p.length=f,wa=t.breakOffsets,Sa=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=p,t.wrappedTextIndentLength=c,t)}function xa(e,t,n,i,o,r){if(-1===i)return null;var s=t.length;if(s<=1)return null;var a=Ia(t,n,i,o,r),l=i-a,u=[],c=[],d=0,h=0,p=0,f=i,g=t.charCodeAt(0),m=e.get(g),v=Na(g,0,n,o),_=1;Mt.z(g)&&(v+=1,g=t.charCodeAt(1),m=e.get(g),_++);for(var b=_;b<s;b++){var y,C=b,w=t.charCodeAt(b),S=void 0;y=Mt.z(w)?(b++,S=0,2):(S=e.get(w),Na(w,v,n,o)),Ea(g,m,w,S)&&(h=C,p=v),f<(v+=y)&&((0===h||l<v-p)&&(h=C,p=v-y),u[d]=h,c[d]=p,d++,f=p+l,h=0),g=w,m=S}return 0===d?null:(u[d]=s,c[d]=v,new Rs(u,c,a))}function Na(e,t,n,i){return 9===e?n-t%n:Mt.y(e)?i:1}function ka(e,t){return t-e%t}function Ea(e,t,n,i){return 32!==n&&(2===t||3===t&&2!==i||1===i||3===i&&1!==t)}function Ia(e,t,n,i,o){var r=0;if(0!==o){var s=Mt.q(e);if(-1!==s){for(var a=0;a<s;a++)r+=9===e.charCodeAt(a)?ka(r,t):1;var l=3===o?2:2===o?1:0;for(a=0;a<l;a++)r+=ka(r,t);n<r+i&&(r=0)}}return r}var Ma=(Ta.create=function(){return new Ta},Ta.prototype.createLineBreaksComputer=function(e,t,n,i){t|=0,n=+n;var o=[];return{addRequest:function(e){o.push(e)},finalize:function(){return function(e,t,n,i,o){if(-1===i){for(var r=[],s=0,a=e.length;s<a;s++)r[s]=null;return r}var l=Math.round(i*t.typicalHalfwidthCharacterWidth);2!==o&&3!==o||(o=1);var u=document.createElement("div");c.a.applyFontInfoSlow(u,t);var d=Object(Fn.a)(1e4),h=[],p=[],f=[],g=[],m=[];for(s=0;s<e.length;s++){var v=e[s],_=0,b=0,y=l;if(0!==o)if(-1===(_=Mt.q(v)))_=0;else{for(var C=0;C<_;C++){b+=9===v.charCodeAt(C)?n-b%n:1}var w=Math.ceil(t.spaceWidth*b);w+t.typicalFullwidthCharacterWidth>l?b=_=0:y=l-w}var S=v.substr(_),O=Pa(S,b,n,y,d);h[s]=_,p[s]=b,f[s]=S,g[s]=O[0],m[s]=O[1]}u.innerHTML=d.build(),u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);var L=document.createRange(),D=Array.prototype.slice.call(u.children,0),x=[];for(s=0;s<e.length;s++){var N=Ra(L,D[s],f[s],g[s]);if(null!==N){_=h[s],b=p[s];var k=m[s],E=[],I=0;for(a=N.length;I<a;I++)E[I]=k[N[I]];if(0!==_)for(I=0,a=N.length;I<a;I++)N[I]+=_;x[s]=new Rs(N,E,b)}else x[s]=null}return document.body.removeChild(u),x}(o,e,t,n,i)}}},Ta);function Ta(){}function Pa(e,t,n,i,o){o.appendASCIIString('<div style="width:'),o.appendASCIIString(String(i)),o.appendASCIIString('px;">');for(var r=e.length,s=t,a=0,l=[],u=[],c=0<r?e.charCodeAt(0):0,d=0;d<r;d++){l[d]=a,u[d]=s;var h=c;c=d+1<r?e.charCodeAt(d+1):0;var p=1,f=1;switch(h){case 9:f=p=n-s%n;for(var g=1;g<=p;g++)g<p?o.write1(160):o.appendASCII(32);break;case 32:32===c?o.write1(160):o.appendASCII(32);break;case 60:o.appendASCIIString("<");break;case 62:o.appendASCIIString(">");break;case 38:o.appendASCIIString("&");break;case 0:o.appendASCIIString("�");break;case 65279:case 8232:o.write1(65533);break;default:Mt.y(h)&&f++,o.write1(h)}a+=p,s+=f}return l[e.length]=a,u[e.length]=s,o.appendASCIIString("</div>"),[l,u]}function Ra(e,t,n,i){if(n.length<=1)return null;var o=[];return function e(t,n,i,o,r,s,a,l){if(o!==s&&(r=r||Aa(t,n,i[o],i[o+1]),a=a||Aa(t,n,i[s],i[s+1]),!(Math.abs(r[0].top-a[0].top)<=.1)))if(o+1!==s){var u=o+(s-o)/2|0,c=Aa(t,n,i[u],i[1+u]);e(t,n,i,o,r,u,c,l),e(t,n,i,u,c,s,a,l)}else l.push(s)}(e,t.firstChild,i,0,null,n.length-1,null,o),0===o.length?null:(o.push(n.length),o)}function Aa(e,t,n,i){return e.setStart(t,n),e.setEnd(t,i),e.getClientRects()}n.d(t,"a",(function(){return Ua}));var Fa,ja=(Fa=function(e,t){return(Fa=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}Fa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wa=function(e,t){return function(n,i){t(n,i,e)}},Va=0,Ba=(Ha.prototype.dispose=function(){Object(l.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},Ha);function Ha(e,t,n,i,o,r){this.model=e,this.viewModel=t,this.cursor=n,this.view=i,this.hasRealView=o,this.listenersToRemove=r}var za,Ua=(ja(Ka,za=l.a),Ka.prototype._createConfiguration=function(e,t){return new c.a(this.isSimpleWidget,e,this._domElement,t)},Ka.prototype.getId=function(){return this.getEditorType()+":"+this._id},Ka.prototype.getEditorType=function(){return es.a.ICodeEditor},Ka.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var e=Object.keys(this._contributions),t=0,n=e.length;t<n;t++){var i=e[t];this._contributions[i].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),za.prototype.dispose.call(this)},Ka.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},Ka.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},Ka.prototype.getOptions=function(){return this._configuration.options},Ka.prototype.getOption=function(e){return this._configuration.options.get(e)},Ka.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},Ka.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)},Ka.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},Ka.prototype.getModel=function(){return this._modelData?this._modelData.model:null},Ka.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if(!(null===this._modelData&&null===t||this._modelData&&this._modelData.model===t)){var n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();var o={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(o),this._postDetachModelCleanup(i)}},Ka.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={}}},Ka.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},Ka.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},Ka._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)},Ka.prototype.getTopForLineNumber=function(e){return this._modelData?Ka._getVerticalOffsetForPosition(this._modelData,e,1):-1},Ka.prototype.getTopForPosition=function(e,t){return this._modelData?Ka._getVerticalOffsetForPosition(this._modelData,e,t):-1},Ka.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map((function(e){return Te.a.lift(e)})))},Ka.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return Pe.a.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},Ka.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},Ka.prototype.setPosition=function(e){if(this._modelData){if(!Me.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},Ka.prototype._sendRevealRange=function(e,t,n,i){if(this._modelData){if(!Te.a.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("api",r,t,n,i)}},Ka.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},Ka.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},Ka.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},Ka.prototype._revealLine=function(e,t,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e,1,e,1),t,!1,n)},Ka.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},Ka.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},Ka.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},Ka.prototype._revealPosition=function(e,t,n,i){if(!Me.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)},Ka.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},Ka.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},Ka.prototype.setSelection=function(e){var t=et.a.isISelection(e),n=Te.a.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)}},Ka.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new et.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},Ka.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},Ka.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},Ka.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},Ka.prototype._revealLines=function(e,t,n,i){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e,1,t,1),n,!1,i)},Ka.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)},Ka.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},Ka.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},Ka.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},Ka.prototype._revealRange=function(e,t,n,i){if(!Te.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Te.a.lift(e),t,n,i)},Ka.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(!et.a.isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},Ka.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},Ka.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},Ka.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},Ka.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},Ka.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},Ka.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},Ka.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},Ka.prototype.setScrollTop=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},Ka.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},Ka.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=0,n=Object.keys(this._contributions);t<n.length;t++){var i=n[t],o=this._contributions[i];"function"==typeof o.saveViewState&&(e[i]=o.saveViewState())}return{cursorState:this._modelData.cursor.saveState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}},Ka.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);for(var i=t.contributionsState||{},o=Object.keys(this._contributions),r=0,s=o.length;r<s;r++){var a=o[r],l=this._contributions[a];"function"==typeof l.restoreViewState&&l.restoreViewState(i[a])}var u=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(u)}}},Ka.prototype.getContribution=function(e){return this._contributions[e]||null},Ka.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},Ka.prototype.getSupportedActions=function(){var e=this.getActions();return e.filter((function(e){return e.isSupported()}))},Ka.prototype.getAction=function(e){return this._actions[e]||null},Ka.prototype.trigger=function(e,t,n){if(n=n||{},t===es.b.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!==es.b.Paste){var i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,s.e):this._modelData&&(this._triggerEditorCommand(e,t,n)||(this._modelData.cursor.trigger(e,t,n),t===es.b.CompositionStart&&this._onDidCompositionStart.fire(),t===es.b.CompositionEnd&&this._onDidCompositionEnd.fire()))}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({range:new Te.a(o.lineNumber,o.column,r.lineNumber,r.column),mode:n.mode})}},Ka.prototype._triggerEditorCommand=function(e,t,n){var i=this,o=d.d.getEditorCommand(t);return!!o&&((n=n||{}).source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(o.runEditorCommand(e,i,n)).then(void 0,s.e)})),!0)},Ka.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},Ka.prototype.pushUndoStop=function(){return!!this._modelData&&!this._configuration.options.get(68)&&(this._modelData.model.pushStackElement(),!0)},Ka.prototype.executeEdits=function(e,t,n){return!!this._modelData&&!this._configuration.options.get(68)&&(i=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,i),!0);var i},Ka.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,es.b.ExecuteCommand,t)},Ka.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,es.b.ExecuteCommands,t)},Ka.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},Ka.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(pe.j)(this._configuration.options)):null},Ka.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},Ka.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]},Ka.prototype.getLayoutInfo=function(){return this._configuration.options.get(107)},Ka.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},Ka.prototype.getContainerDomNode=function(){return this._domElement},Ka.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},Ka.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},Ka.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},Ka.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},Ka.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},Ka.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},Ka.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},Ka.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)}},Ka.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)}},Ka.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId()),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},Ka.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)}},Ka.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)}},Ka.prototype.changeViewZones=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)&&this._onDidChangeViewZones.fire()},Ka.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},Ka.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var t=this._modelData.model.validatePosition(e),n=this._configuration.options,i=n.get(107);return{top:Ka._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+i.glyphMarginWidth+i.lineNumbersWidth+i.decorationsWidth-this.getScrollLeft(),height:n.get(49)}},Ka.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},Ka.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},Ka.prototype.setAriaOptions=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)},Ka.prototype.applyFontInfo=function(e){c.a.applyFontInfoSlow(e,this._configuration.options.get(34))},Ka.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 la(this._id,this._configuration,e,Ma.create(),Oa.create(this._configuration.options),(function(e){return r.W(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 s=new ls(this._configuration,e,i);n.push(s.onDidReachMaxCursorCount((function(){t._notificationService.warn(o.a("cursors.maximum","The number of cursors has been limited to {0}.",ls.MAX_CURSOR_COUNT))}))),n.push(s.onDidAttemptReadOnlyEdit((function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}))),n.push(s.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),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)})));var a=this._createView(i,s),l=a[0],u=a[1];if(u){this._domElement.appendChild(l.domNode.domNode);for(var c=Object.keys(this._contentWidgets),d=0,h=c.length;d<h;d++){var p=c[d];l.addContentWidget(this._contentWidgets[p])}for(d=0,h=(c=Object.keys(this._overlayWidgets)).length;d<h;d++)p=c[d],l.addOverlayWidget(this._overlayWidgets[p]);l.render(!1,!0),l.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Ba(e,i,s,l,u,n)}else this._modelData=null},Ka.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,r){i.trigger(e,es.b.Paste,{text:t,pasteOnNewLine:n,multicursorText:o,mode:r})},type:function(e,t){i.trigger(e,es.b.Type,{text:t})},replacePreviousChar:function(e,t,n){i.trigger(e,es.b.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i.trigger(e,es.b.CompositionStart,void 0)},compositionEnd:function(e){i.trigger(e,es.b.CompositionEnd,void 0)},cut:function(e){i.trigger(e,es.b.Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o,r){i._commandService.executeCommand(es.b.Paste,{text:t,pasteOnNewLine:n,multicursorText:o,mode:r})},type:function(e,t){i._commandService.executeCommand(es.b.Type,{text:t})},replacePreviousChar:function(e,t,n){i._commandService.executeCommand(es.b.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(){i._commandService.executeCommand(es.b.CompositionStart,{})},compositionEnd:function(){i._commandService.executeCommand(es.b.CompositionEnd,{})},cut:function(){i._commandService.executeCommand(es.b.Cut,{})}};var o=new Tn(e);return o.onDidContentSizeChange=function(e){return i._onDidContentSizeChange.fire(e)},o.onDidScroll=function(e){return i._onDidScrollChange.fire(e)},o.onDidGainFocus=function(){return i._editorTextFocus.setValue(!0)},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.onMouseWheel=function(e){return i._onMouseWheel.fire(e)},o.onKeyDown=function(e){return i._onKeyDown.fire(e)},[new Ur(n,this._configuration,this._themeService,e,t,o),!0]},Ka.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},Ka.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},Ka.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},Ka.prototype.hasModel=function(){return null!==this._modelData},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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Wa(3,fa.a),Wa(4,h.a),Wa(5,ha.b),Wa(6,pa.c),Wa(7,he.c),Wa(8,ma.a),Wa(9,va.b)],Ka));function Ka(e,t,n,i,o,r,l,u,c,h){var p=za.call(this)||this;p._onDidDispose=p._register(new a.a),p.onDidDispose=p._onDidDispose.event,p._onDidChangeModelContent=p._register(new a.a),p.onDidChangeModelContent=p._onDidChangeModelContent.event,p._onDidChangeModelLanguage=p._register(new a.a),p.onDidChangeModelLanguage=p._onDidChangeModelLanguage.event,p._onDidChangeModelLanguageConfiguration=p._register(new a.a),p.onDidChangeModelLanguageConfiguration=p._onDidChangeModelLanguageConfiguration.event,p._onDidChangeModelOptions=p._register(new a.a),p.onDidChangeModelOptions=p._onDidChangeModelOptions.event,p._onDidChangeModelDecorations=p._register(new a.a),p.onDidChangeModelDecorations=p._onDidChangeModelDecorations.event,p._onDidChangeConfiguration=p._register(new a.a),p.onDidChangeConfiguration=p._onDidChangeConfiguration.event,p._onDidChangeModel=p._register(new a.a),p.onDidChangeModel=p._onDidChangeModel.event,p._onDidChangeCursorPosition=p._register(new a.a),p.onDidChangeCursorPosition=p._onDidChangeCursorPosition.event,p._onDidChangeCursorSelection=p._register(new a.a),p.onDidChangeCursorSelection=p._onDidChangeCursorSelection.event,p._onDidAttemptReadOnlyEdit=p._register(new a.a),p.onDidAttemptReadOnlyEdit=p._onDidAttemptReadOnlyEdit.event,p._onDidLayoutChange=p._register(new a.a),p.onDidLayoutChange=p._onDidLayoutChange.event,p._editorTextFocus=p._register(new Ga),p.onDidFocusEditorText=p._editorTextFocus.onDidChangeToTrue,p.onDidBlurEditorText=p._editorTextFocus.onDidChangeToFalse,p._editorWidgetFocus=p._register(new Ga),p.onDidFocusEditorWidget=p._editorWidgetFocus.onDidChangeToTrue,p.onDidBlurEditorWidget=p._editorWidgetFocus.onDidChangeToFalse,p._onWillType=p._register(new a.a),p.onWillType=p._onWillType.event,p._onDidType=p._register(new a.a),p.onDidType=p._onDidType.event,p._onDidCompositionStart=p._register(new a.a),p.onDidCompositionStart=p._onDidCompositionStart.event,p._onDidCompositionEnd=p._register(new a.a),p.onDidCompositionEnd=p._onDidCompositionEnd.event,p._onDidPaste=p._register(new a.a),p.onDidPaste=p._onDidPaste.event,p._onMouseUp=p._register(new a.a),p.onMouseUp=p._onMouseUp.event,p._onMouseDown=p._register(new a.a),p.onMouseDown=p._onMouseDown.event,p._onMouseDrag=p._register(new a.a),p.onMouseDrag=p._onMouseDrag.event,p._onMouseDrop=p._register(new a.a),p.onMouseDrop=p._onMouseDrop.event,p._onContextMenu=p._register(new a.a),p.onContextMenu=p._onContextMenu.event,p._onMouseMove=p._register(new a.a),p.onMouseMove=p._onMouseMove.event,p._onMouseLeave=p._register(new a.a),p.onMouseLeave=p._onMouseLeave.event,p._onMouseWheel=p._register(new a.a),p.onMouseWheel=p._onMouseWheel.event,p._onKeyUp=p._register(new a.a),p.onKeyUp=p._onKeyUp.event,p._onKeyDown=p._register(new a.a),p.onKeyDown=p._onKeyDown.event,p._onDidContentSizeChange=p._register(new a.a),p.onDidContentSizeChange=p._onDidContentSizeChange.event,p._onDidScrollChange=p._register(new a.a),p.onDidScrollChange=p._onDidScrollChange.event,p._onDidChangeViewZones=p._register(new a.a),p.onDidChangeViewZones=p._onDidChangeViewZones.event,p._domElement=e,p._id=++Va,p._decorationTypeKeysToIds={},p._decorationTypeSubtypes={},p.isSimpleWidget=n.isSimpleWidget||!1,p._telemetryData=n.telemetryData,t=t||{},p._configuration=p._register(p._createConfiguration(t,h)),p._register(p._configuration.onDidChange((function(e){p._onDidChangeConfiguration.fire(e);var t=p._configuration.options;if(e.hasChanged(107)){var n=t.get(107);p._onDidLayoutChange.fire(n)}}))),p._contextKeyService=p._register(l.createScoped(p._domElement)),p._notificationService=c,p._codeEditorService=o,p._commandService=r,p._themeService=u,p._register(new Xa(p,p._contextKeyService)),p._register(new Qa(p,p._contextKeyService)),p._instantiationService=i.createChild(new ga.a([pa.c,p._contextKeyService])),p._modelData=null,p._contributions={},p._actions={},p._focusTracker=new nl(e),p._focusTracker.onChange((function(){p._editorWidgetFocus.setValue(p._focusTracker.hasFocus())})),p._contentWidgets={},p._overlayWidgets={};for(var f=0,g=Array.isArray(n.contributions)?n.contributions:d.d.getEditorContributions();f<g.length;f++){var m=g[f];try{var v=p._instantiationService.createInstance(m.ctor,p);p._contributions[m.id]=v}catch(e){Object(s.e)(e)}}return d.d.getEditorActions().forEach((function(e){var t=new hs.a(e.id,e.label,e.alias,Object(_a.n)(e.precondition),(function(){return p._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,p,null))}))}),p._contextKeyService);p._actions[t.id]=t})),p._codeEditorService.addCodeEditor(p),p}var qa,Ga=(ja(Ya,qa=l.a),Ya.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())},Ya);function Ya(){var e=qa.call(this)||this;return e._onDidChangeToTrue=e._register(new a.a),e.onDidChangeToTrue=e._onDidChangeToTrue.event,e._onDidChangeToFalse=e._register(new a.a),e.onDidChangeToFalse=e._onDidChangeToFalse.event,e._value=0,e}var Za,Xa=(ja($a,Za=l.a),$a.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(106)),this._editorReadonly.set(e.get(68))},$a.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(1<e.length),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},$a.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())},$a.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},$a);function $a(e,t){var n=Za.call(this)||this;return n._editor=e,t.createKey("editorId",e.getId()),n._editorSimpleInput=ps.a.editorSimpleInput.bindTo(t),n._editorFocus=ps.a.focus.bindTo(t),n._textInputFocus=ps.a.textInputFocus.bindTo(t),n._editorTextFocus=ps.a.editorTextFocus.bindTo(t),n._editorTabMovesFocus=ps.a.tabMovesFocus.bindTo(t),n._editorReadonly=ps.a.readOnly.bindTo(t),n._hasMultipleSelections=ps.a.hasMultipleSelections.bindTo(t),n._hasNonEmptySelection=ps.a.hasNonEmptySelection.bindTo(t),n._canUndo=ps.a.canUndo.bindTo(t),n._canRedo=ps.a.canRedo.bindTo(t),n._register(n._editor.onDidChangeConfiguration((function(){return n._updateFromConfig()}))),n._register(n._editor.onDidChangeCursorSelection((function(){return n._updateFromSelection()}))),n._register(n._editor.onDidFocusEditorWidget((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidBlurEditorWidget((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidFocusEditorText((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidBlurEditorText((function(){return n._updateFromFocus()}))),n._register(n._editor.onDidChangeModel((function(){return n._updateFromModel()}))),n._register(n._editor.onDidChangeConfiguration((function(){return n._updateFromModel()}))),n._updateFromConfig(),n._updateFromSelection(),n._updateFromFocus(),n._updateFromModel(),n._editorSimpleInput.set(n._editor.isSimpleWidget),n}var Ja,Qa=(ja(el,Ja=l.a),el.prototype.dispose=function(){Ja.prototype.dispose.call(this)},el.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))},el.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(co.d.has(t)),e._hasCodeActionsProvider.set(co.a.has(t)),e._hasCodeLensProvider.set(co.b.has(t)),e._hasDefinitionProvider.set(co.f.has(t)),e._hasDeclarationProvider.set(co.e.has(t)),e._hasImplementationProvider.set(co.q.has(t)),e._hasTypeDefinitionProvider.set(co.C.has(t)),e._hasHoverProvider.set(co.p.has(t)),e._hasDocumentHighlightProvider.set(co.i.has(t)),e._hasDocumentSymbolProvider.set(co.m.has(t)),e._hasReferenceProvider.set(co.u.has(t)),e._hasRenameProvider.set(co.v.has(t)),e._hasSignatureHelpProvider.set(co.x.has(t)),e._hasDocumentFormattingProvider.set(co.g.has(t)||co.j.has(t)),e._hasDocumentSelectionFormattingProvider.set(co.j.has(t)),e._hasMultipleDocumentFormattingProvider.set(1<co.g.all(t).length+co.j.all(t).length),e._hasMultipleDocumentSelectionFormattingProvider.set(1<co.j.all(t).length),e._isInWalkThrough.set(t.uri.scheme===u.b.walkThroughSnippet)})):this.reset()},el);function el(e,t){var n=Ja.call(this)||this;function i(){return n._update()}return n._editor=e,n._contextKeyService=t,n._langId=ps.a.languageId.bindTo(t),n._hasCompletionItemProvider=ps.a.hasCompletionItemProvider.bindTo(t),n._hasCodeActionsProvider=ps.a.hasCodeActionsProvider.bindTo(t),n._hasCodeLensProvider=ps.a.hasCodeLensProvider.bindTo(t),n._hasDefinitionProvider=ps.a.hasDefinitionProvider.bindTo(t),n._hasDeclarationProvider=ps.a.hasDeclarationProvider.bindTo(t),n._hasImplementationProvider=ps.a.hasImplementationProvider.bindTo(t),n._hasTypeDefinitionProvider=ps.a.hasTypeDefinitionProvider.bindTo(t),n._hasHoverProvider=ps.a.hasHoverProvider.bindTo(t),n._hasDocumentHighlightProvider=ps.a.hasDocumentHighlightProvider.bindTo(t),n._hasDocumentSymbolProvider=ps.a.hasDocumentSymbolProvider.bindTo(t),n._hasReferenceProvider=ps.a.hasReferenceProvider.bindTo(t),n._hasRenameProvider=ps.a.hasRenameProvider.bindTo(t),n._hasSignatureHelpProvider=ps.a.hasSignatureHelpProvider.bindTo(t),n._hasDocumentFormattingProvider=ps.a.hasDocumentFormattingProvider.bindTo(t),n._hasDocumentSelectionFormattingProvider=ps.a.hasDocumentSelectionFormattingProvider.bindTo(t),n._hasMultipleDocumentFormattingProvider=ps.a.hasMultipleDocumentFormattingProvider.bindTo(t),n._hasMultipleDocumentSelectionFormattingProvider=ps.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),n._isInWalkThrough=ps.a.isInEmbeddedEditor.bindTo(t),n._register(e.onDidChangeModel(i)),n._register(e.onDidChangeModelLanguage(i)),n._register(co.d.onDidChange(i)),n._register(co.a.onDidChange(i)),n._register(co.b.onDidChange(i)),n._register(co.f.onDidChange(i)),n._register(co.e.onDidChange(i)),n._register(co.q.onDidChange(i)),n._register(co.C.onDidChange(i)),n._register(co.p.onDidChange(i)),n._register(co.i.onDidChange(i)),n._register(co.m.onDidChange(i)),n._register(co.u.onDidChange(i)),n._register(co.v.onDidChange(i)),n._register(co.g.onDidChange(i)),n._register(co.j.onDidChange(i)),n._register(co.x.onDidChange(i)),i(),n}var tl,nl=(ja(il,tl=l.a),il.prototype.hasFocus=function(){return this._hasFocus},il);function il(e){var t=tl.call(this)||this;return t._onChange=t._register(new a.a),t.onChange=t._onChange.event,t._hasFocus=!1,t._domFocusTracker=t._register(r.Z(e)),t._register(t._domFocusTracker.onDidFocus((function(){t._hasFocus=!0,t._onChange.fire(void 0)}))),t._register(t._domFocusTracker.onDidBlur((function(){t._hasFocus=!1,t._onChange.fire(void 0)}))),t}var ol=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='"),rl=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 sl(e){return ol+encodeURIComponent(e.toString())+rl}var al=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),ll=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(he.e)((function(e,t){var n=e.getColor(fo.p);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(fo.q);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+sl(i)+'") repeat-x bottom left; }');var o=e.getColor(fo.O);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(fo.P);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+sl(r)+'") repeat-x bottom left; }');var s=e.getColor(fo.G);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(fo.H);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+sl(a)+'") repeat-x bottom left; }');var l=e.getColor(fo.y);l&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var u=e.getColor(fo.z);u&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(al+encodeURIComponent(u.toString())+ll)+'") no-repeat bottom left; }');var c=e.getColor(Wt.o);c&&t.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(Wt.n);d&&t.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(fo.x)||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}))},,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s}));var i=n(443);function o(e,t){void 0===t&&(t={});var n=s(t);return n.textContent=e,n}function r(e,t){void 0===t&&(t={});var n=s(t);return function e(t,n,o){var r;if(2===n.type)r=document.createTextNode(n.content||"");else if(3===n.type)r=document.createElement("b");else if(4===n.type)r=document.createElement("i");else if(5===n.type&&o){var s=document.createElement("a");s.href="#",o.disposeables.add(i.o(s,"click",(function(e){o.callback(String(n.index),e)}))),r=s}else 7===n.type?r=document.createElement("br"):1===n.type&&(r=t);r&&t!==r&&t.appendChild(r),r&&Array.isArray(n.children)&&n.children.forEach((function(t){e(r,t,o)}))}(n,function(e){for(var t={type:1,children:[]},n=0,i=t,o=[],r=new a(e);!r.eos();){var s=r.next(),l="\\"===s&&0!==u(r.peek());if(l&&(s=r.next()),l||0===u(s)||s!==r.peek())if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var c={type:2,content:s};i.children.push(c),o.push(i),i=c}else i.content+=s;else{r.advance(),2===i.type&&(i=o.pop());var d=u(s);if(i.type===d||5===i.type&&6===d)i=o.pop();else{var h={type:d,children:[]};5===d&&(h.index=n,n++),i.children.push(h),o.push(i),i=h}}}return 2===i.type&&(i=o.pop()),o.length,t}(e),t.actionHandler),n}function s(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var a=(l.prototype.eos=function(){return this.index>=this.source.length},l.prototype.next=function(){var e=this.peek();return this.advance(),e},l.prototype.peek=function(){return this.source[this.index]},l.prototype.advance=function(){this.index++},l);function l(e){this.source=e,this.index=0}function u(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return N})),n.d(t,"d",(function(){return B})),n.d(t,"c",(function(){return H}));var i,o=n(445),r=n(442),s=n(439),a=n(505),l=n(459),u=n(530),c=n(883),d=n(946),h=n(789),p=n(571),f=n(822),g=(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)}),m=function(){return(m=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)},v=(_.prototype.getTabFocusMode=function(){return this._tabFocus},_.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},new _);function _(){this._tabFocus=!1,this._onDidChangeTabFocus=new r.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}var b=Object.hasOwnProperty,y=(C.prototype._read=function(e){return this._values[e]},C.prototype.get=function(e){return this._values[e]},C.prototype._write=function(e,t){this._values[e]=t},C);function C(){this._values=[]}var w=(S.prototype._read=function(e){return this._values[e]},S.prototype._write=function(e,t){this._values[e]=t},S);function S(){this._values=[]}var O=(L.readOptions=function(e){for(var t=e,n=new w,i=0,o=u.i;i<o.length;i++){var r=o[i],s="_never_"===r.name?void 0:t[r.name];n._write(r.id,s)}return n},L.validateOptions=function(e){for(var t=new u.h,n=0,i=u.i;n<i.length;n++){var o=i[n];t._write(o.id,o.validate(e._read(o.id)))}return t},L.computeOptions=function(e,t){for(var n=new y,i=0,o=u.i;i<o.length;i++){var r=o[i];n._write(r.id,r.compute(t,n,e._read(r.id)))}return n},L._deepEquals=function(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&l.g(e,t);for(var n in e)if(!L._deepEquals(e[n],t[n]))return!1;return!0},L.checkEquals=function(e,t){for(var n=[],i=!1,o=0,r=u.i;o<r.length;o++){var s=r[o],a=!L._deepEquals(e._read(s.id),t._read(s.id));(n[s.id]=a)&&(i=!0)}return i?new u.a(n):null},L);function L(){}function D(e){var t=a.c(e);return function(e){var t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");var n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off"),!1===e.autoClosingBrackets&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never"),"visible"===e.cursorBlinking&&(e.cursorBlinking="solid");var i=e.renderWhitespace;!0===i?e.renderWhitespace="boundary":!1===i&&(e.renderWhitespace="none");var o=e.renderLineHighlight;!0===o?e.renderLineHighlight="line":!1===o&&(e.renderLineHighlight="none");var r=e.acceptSuggestionOnEnter;!0===r?e.acceptSuggestionOnEnter="on":!1===r&&(e.acceptSuggestionOnEnter="off");var s=e.tabCompletion;!1===s?e.tabCompletion="off":!0===s&&(e.tabCompletion="onlySnippets");var a=e.suggest;if(a&&"object"==typeof a.filteredTypes&&a.filteredTypes){Object(f.c)({method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"},(function(e){var t=a.filteredTypes[e.key];!1===t&&(a[e.value]=t)}))}var l=e.hover;!0===l?e.hover={enabled:!0}:!1===l&&(e.hover={enabled:!1});var u=e.parameterHints;!0===u?e.parameterHints={enabled:!0}:!1===u&&(e.parameterHints={enabled:!1});var c=e.autoIndent;!0===c?e.autoIndent="full":!1===c&&(e.autoIndent="advanced");var d=e.matchBrackets;!0===d?e.matchBrackets="always":!1===d&&(e.matchBrackets="never")}(t),t}var x,N=(g(k,x=s.a),k.prototype.observeReferenceElement=function(e){},k.prototype.dispose=function(){x.prototype.dispose.call(this)},k.prototype._recomputeOptions=function(){var e=this.options,t=this._computeInternalOptions();if(e){var n=O.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChange.fire(n)}else this.options=t},k.prototype.getRawOptions=function(){return this._rawOptions},k.prototype._computeInternalOptions=function(){var e=this._getEnvConfiguration(),t=d.a.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,this.isSimpleWidget),n={outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return O.computeOptions(this._validatedOptions,n)},k._subsetEquals=function(e,t){for(var n in t)if(b.call(t,n)){var i=t[n],o=e[n];if(o===i)continue;if(Array.isArray(o)&&Array.isArray(i)){if(!l.g(o,i))return!1;continue}if("object"!=typeof o||"object"!=typeof i)return!1;if(!this._subsetEquals(o,i))return!1}return!0},k.prototype.updateOptions=function(e){if(void 0!==e){var t=D(e);k._subsetEquals(this._rawOptions,t)||(this._rawOptions=a.g(this._rawOptions,t||{}),this._readOptions=O.readOptions(this._rawOptions),this._validatedOptions=O.validateOptions(this._readOptions),this._recomputeOptions())}},k.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},k.prototype.setMaxLineNumber=function(e){var t=k._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())},k._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1},k);function k(e,t){var n=x.call(this)||this;return n._onDidChange=n._register(new r.a),n.onDidChange=n._onDidChange.event,n.isSimpleWidget=e,n._isDominatedByLongLines=!1,n._lineNumbersDigitCount=1,n._rawOptions=D(t),n._readOptions=O.readOptions(n._rawOptions),n._validatedOptions=O.validateOptions(n._readOptions),n._register(c.a.onDidChangeZoomLevel((function(e){return n._recomputeOptions()}))),n._register(v.onDidChangeTabFocus((function(e){return n._recomputeOptions()}))),n}for(var E,I=Object.freeze({id:"editor",order:5,type:"object",title:o.a("editorConfigurationTitle","Editor"),scope:5}),M=p.a.as(h.a.Configuration),T=m(m({},I),{properties:{"editor.tabSize":{type:"number",default:u.c.tabSize,minimum:1,markdownDescription:o.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:u.c.insertSpaces,markdownDescription:o.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:u.c.detectIndentation,markdownDescription:o.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:u.c.trimAutoWhitespace,description:o.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:u.c.largeFileOptimizations,description:o.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:o.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:o.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:o.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:o.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:o.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:o.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}}),P=0,R=u.i;P<R.length;P++){var A=R[P],F=A.schema;if(void 0!==F)if(void 0!==(E=F).type||void 0!==E.anyOf)T.properties["editor."+A.name]=F;else for(var j in F)b.call(F,j)&&(T.properties[j]=F[j])}var W=null;function V(){return null===W&&(W=Object.create(null),Object.keys(T.properties).forEach((function(e){W[e]=!0}))),W}function B(e){return V()["editor."+e]||!1}function H(e){return V()["diffEditor."+e]||!1}M.registerConfiguration(T)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var i,o=n(452),r=n(883),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=o.e?1.5:1.35,l=(u.createFromValidatedSettings=function(e,t,n){var i=e.get(33),o=e.get(37),r=e.get(36),s=e.get(35),a=e.get(49),l=e.get(46);return u._create(i,o,r,s,a,l,t,n)},u._create=function(e,t,n,i,o,s,l,c){0===o?o=Math.round(a*n):o<8&&(o=8);var d=1+(c?0:.1*r.a.getZoomLevel());return new u({zoomLevel:l,fontFamily:e,fontWeight:t,fontSize:n*=d,fontFeatureSettings:i,lineHeight:o*=d,letterSpacing:s})},u.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},u.prototype.getMassagedFontFamily=function(){return!/[,"']/.test(this.fontFamily)&&/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},u);function u(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}var c,d=(s(h,c=l),h.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.maxDigitWidth===e.maxDigitWidth},h);function h(e,t){var n=c.call(this,e)||this;return n.isTrusted=t,n.isMonospace=e.isMonospace,n.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,n.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,n.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,n.spaceWidth=e.spaceWidth,n.middotWidth=e.middotWidth,n.maxDigitWidth=e.maxDigitWidth,n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(444),o=n(823),r=n(450),s=n(440),a=n(599),l=(u.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++)if(92===e.charCodeAt(t)){if(n<=++t)break;var i=e.charCodeAt(t);if(110===i||114===i||87===i||119===i)return!0}return!1}(this.searchString):0<=this.searchString.indexOf("\n");var t=null;try{t=i.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!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 c(t,this.wordSeparators?Object(o.a)(this.wordSeparators):null,n?this.searchString:null)},u);function u(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}var c=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function d(e,t,n){if(!n)return new a.b(e,null);for(var i=[],o=0,r=t.length;o<r;o++)i[o]=t[o];return new a.b(e,i)}var h=(p.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?i=n=o:n=o+1}return n+1},p);function p(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}var f=(g.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new v(r.wordSeparators,r.regex),i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[]},g._getMultilineMatchRange=function(e,t,n,i,o,r){var a,l,u=0;if(a=i?t+o+(u=i.findLineFeedCountBeforeOffset(o)):t+o,i){var c=i.findLineFeedCountBeforeOffset(o+r.length)-u;l=a+r.length+c}else l=a+r.length;var d=e.getPositionAt(a),h=e.getPositionAt(l);return new s.a(d.lineNumber,d.column,h.lineNumber,h.column)},g._doFindMatchesMultiline=function(e,t,n,i,o){var r,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new h(a):null,u=[],c=0;for(n.reset(0);r=n.next(a);)if(u[c++]=d(this._getMultilineMatchRange(e,s,a,l,r.index,r[0]),r,i),o<=c)return u;return u},g._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 l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,l,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var u=t.startLineNumber+1;u<t.endLineNumber&&s<o;u++)s=this._findMatchesInLine(n,e.getLineContent(u),u,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},g._findMatchesInLine=function(e,t,n,i,o,r,l,u){var c=e.wordSeparators;if(!l&&e.simpleSearch){for(var h=e.simpleSearch,p=h.length,f=t.length,g=-p;-1!==(g=t.indexOf(h,g+p));)if((!c||m(c,t,f,g,p))&&(r[o++]=new a.b(new s.a(n,g+1+i,n,g+1+p+i),null),u<=o))return o;return o}var _,b=new v(e.wordSeparators,e.regex);b.reset(0);do{if((_=b.next(t))&&(r[o++]=d(new s.a(n,_.index+1+i,n,_.index+1+_[0].length+i),_,l),u<=o))return o}while(_);return o},g.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new v(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},g._doFindNextMatchMultiline=function(e,t,n,i){var o=new r.a(t.lineNumber,1),a=e.getOffsetAt(o),l=e.getLineCount(),u=e.getValueInRange(new s.a(o.lineNumber,o.column,l,e.getLineMaxColumn(l)),1),c="\r\n"===e.getEOL()?new h(u):null;n.reset(t.column-1);var p=n.next(u);return p?d(this._getMultilineMatchRange(e,a,u,c,p.index,p[0]),p,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.a(1,1),n,i):null},g._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 l=1;l<=o;l++){var u=(r+l-1)%o,c=e.getLineContent(1+u),d=this._findFirstMatchInLine(n,c,1+u,1,i);if(d)return d}return null},g._findFirstMatchInLine=function(e,t,n,i,o){e.reset(i-1);var r=e.next(t);return r?d(new s.a(n,r.index+1,n,r.index+1+r[0].length),r,o):null},g.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new v(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},g._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new s.a(1,1,t.lineNumber,t.column),n,i,9990);if(0<o.length)return o[o.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.a(a,e.getLineMaxColumn(a)),n,i):null},g._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 l=1;l<=o;l++){var u=(o+r-l-1)%o,c=e.getLineContent(1+u),d=this._findLastMatchInLine(n,c,1+u,i);if(d)return d}return null},g._findLastMatchInLine=function(e,t,n,i){var o,r=null;for(e.reset(0);o=e.next(t);)r=d(new s.a(n,o.index+1,n,o.index+1+o[0].length),o,i);return r},g);function g(){}function m(e,t,n,i,o){return function(e,t,n,i){if(0===n)return!0;var o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(0<i){var r=t.charCodeAt(n);if(0!==e.get(r))return!0}return!1}(e,t,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(0<o){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}(e,t,n,i,o)}var v=(_.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},_.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){if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||m(this._wordSeparators,e,n,i,o))return t}else{if(0!==o)return null;this._searchRegex.lastIndex+=1}}while(t);return null},_);function _(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"d",(function(){return w}));var i=n(459),o=n(824),r=n(450),s=n(454);function a(e){for(var t=0,n=0,i=0,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?(0===t&&(n=o),t++,o+1<r&&10===e.charCodeAt(o+1)&&o++,i=o+1):10===s&&(0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i]}function l(e){return(e<<0|16384|2<<23)>>>0}var u=new Uint32Array(0).buffer,c=(d.prototype.add=function(e,t){if(0<this.tokens.length){var n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new _(e,[t]))},d);function d(){this.tokens=[]}var h=(p.prototype.getMaxDeltaLine=function(){var e=this.getTokenCount();return 0===e?-1:this.getDeltaLine(e-1)},p.prototype.getTokenCount=function(){return this._tokenCount},p.prototype.getDeltaLine=function(e){return this._tokens[4*e]},p.prototype.getStartCharacter=function(e){return this._tokens[4*e+1]},p.prototype.getEndCharacter=function(e){return this._tokens[4*e+2]},p.prototype.getMetadata=function(e){return this._tokens[4*e+3]},p.prototype.clear=function(){this._tokenCount=0},p.prototype.acceptDeleteRange=function(e,t,n,i,o){for(var r=this._tokens,s=this._tokenCount,a=i-t,l=0,u=!1,c=0;c<s;c++){var d=4*c,h=r[d],p=r[1+d],f=r[2+d],g=r[3+d];if(h<t||h===t&&f<=n)l++;else{if(h===t&&p<n)h===i&&o<f?f-=o-n:f=n;else if(h===t&&p===n){if(!(h===i&&o<f)){u=!0;continue}f-=o-n}else if(h<i||h===i&&p<o){if(!(h===i&&o<f)){u=!0;continue}f=h===t?(p=n)+(f-o):(p=0)+(f-o)}else if(i<h){if(0==a&&!u){l=s;break}h-=a}else{if(!(h===i&&o<=p))throw new Error("Not possible!");e&&0===h&&(p+=e,f+=e),h-=a,p-=o-n,f-=o-n}var m=4*l;r[m]=h,r[1+m]=p,r[2+m]=f,r[3+m]=g,l++}}this._tokenCount=l},p.prototype.acceptInsertText=function(e,t,n,i,o,r){for(var s=0===n&&1===i&&(48<=r&&r<=57||65<=r&&r<=90||97<=r&&r<=122),a=this._tokens,l=this._tokenCount,u=0;u<l;u++){var c=4*u,d=a[c],h=a[1+c],p=a[2+c];if(!(d<e||d===e&&p<t)){if(d===e&&p===t){if(!s)continue;p+=1}else if(d===e&&h<t&&t<p)0===n?p+=i:p=t;else{if(d===e&&h===t&&s)continue;if(d===e)if(d+=n,0===n)h+=i,p+=i;else{var f=p-h;p=(h=o+(h-t))+f}else d+=n}a[c]=d,a[1+c]=h,a[2+c]=p}}},p);function p(e){this._tokens=e,this._tokenCount=e.length/4}var f=(g.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},g.prototype.getStartCharacter=function(e){return this._actual.getStartCharacter(this._startTokenIndex+e)},g.prototype.getEndCharacter=function(e){return this._actual.getEndCharacter(this._startTokenIndex+e)},g.prototype.getMetadata=function(e){return this._actual.getMetadata(this._startTokenIndex+e)},g);function g(e,t,n){this._actual=e,this._startTokenIndex=t,this._endTokenIndex=n}var m=(v.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},v.prototype.getLineTokens=function(e){if(this.startLineNumber<=e&&e<=this.endLineNumber){var t=v._findTokensWithLine(this.tokens,e-this.startLineNumber);if(t){var n=t[0],i=t[1];return new f(this.tokens,n,i)}}return null},v._findTokensWithLine=function(e,t){for(var n=0,i=e.getTokenCount()-1;n<i;){var o=n+Math.floor((i-n)/2),r=e.getDeltaLine(o);if(r<t)n=o+1;else{if(!(t<r)){for(var s=o;n<s&&e.getDeltaLine(s-1)===t;)s--;for(var a=o;a<i&&e.getDeltaLine(a+1)===t;)a++;return[s,a]}i=o-1}}return e.getDeltaLine(n)===t?[n,n]:null},v.prototype.applyEdit=function(e,t){var n=a(t),i=n[0],o=n[1],r=n[2];this.acceptEdit(e,i,o,r,0<t.length?t.charCodeAt(0):0)},v.prototype.acceptEdit=function(e,t,n,i,o){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,n,i,o),this._updateEndLineNumber()},v.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn){var t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){var i=n-t;this.startLineNumber-=i}else{var o=this.tokens.getMaxDeltaLine();if(!(o+1<=t)){if(t<0&&o+1<=n)return this.startLineNumber=0,void this.tokens.clear();if(t<0){var r=-t;this.startLineNumber-=r,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}}},v.prototype._acceptInsertText=function(e,t,n,i,o){if(0!==t||0!==n){var r=e.lineNumber-this.startLineNumber;r<0?this.startLineNumber+=t:this.tokens.getMaxDeltaLine()+1<=r||this.tokens.acceptInsertText(r,e.column-1,t,n,i,o)}},v);function v(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}var _=function(e,t){this.startLineNumber=e,this.tokens=t};function b(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var y=(C.prototype.flush=function(){this._pieces=[]},C.prototype.set=function(e){this._pieces=e||[]},C.prototype.addSemanticTokens=function(e,t){var n=this._pieces;if(0===n.length)return t;var i=C._findFirstPieceWithLine(n,e),r=this._pieces[i].getLineTokens(e);if(!r)return t;for(var s=t.getCount(),a=r.getCount(),l=0,u=[],c=0,d=0;d<a;d++){for(var h=r.getStartCharacter(d),p=r.getEndCharacter(d),f=r.getMetadata(d),g=((1&f?2048:0)|(2&f?4096:0)|(4&f?8192:0)|(8&f?8372224:0)|(16&f?4286578688:0))>>>0,m=~g>>>0;l<s&&t.getEndOffset(l)<=h;)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l),l++;for(l<s&&t.getStartOffset(l)<h&&(u[c++]=h,u[c++]=t.getMetadata(l));l<s&&t.getEndOffset(l)<p;)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l)&m|f&g,l++;if(l<s&&t.getEndOffset(l)===p)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l)&m|f&g,l++;else{var v=Math.min(Math.max(0,l-1),s-1);u[c++]=p,u[c++]=t.getMetadata(v)&m|f&g}}for(;l<s;)u[c++]=t.getEndOffset(l),u[c++]=t.getMetadata(l),l++;return new o.a(new Uint32Array(u),t.getLineContent())},C._findFirstPieceWithLine=function(e,t){for(var n=0,i=e.length-1;n<i;){var o=n+Math.floor((i-n)/2);if(e[o].endLineNumber<t)n=o+1;else{if(!(e[o].startLineNumber>t)){for(;n<o&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}i=o-1}}return n},C.prototype.acceptEdit=function(e,t,n,i,o){for(var r=0,s=this._pieces;r<s.length;r++)s[r].acceptEdit(e,t,n,i,o)},C);function C(){this._pieces=[]}var w=(S.prototype.flush=function(){this._lineTokens=[],this._len=0},S.prototype.getTokens=function(e,t,n){var i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==u)return new o.a(b(i),n);var r=new Uint32Array(2);return r[0]=n.length,r[1]=l(e),new o.a(r,n)},S._massageTokens=function(e,t,n){var i=n?b(n):null;if(0===t){var o=!1;if(i&&1<i.length&&(o=s.A.getLanguageId(i[1])!==e),!o)return u}if(i&&0!==i.length)return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i;var r=new Uint32Array(2);return r[0]=t,r[1]=l(e),r.buffer},S.prototype._ensureLine=function(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++},S.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},S.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],o=0;o<t;o++)n[o]=null;this._lineTokens=i.a(this._lineTokens,e,n),this._len+=t}},S.prototype.setTokens=function(e,t,n,i){var o=S._massageTokens(e,n,i);this._ensureLine(t),this._lineTokens[t]=o},S.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,n)},S.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._len))if(e.startLineNumber!==e.endLineNumber){this._lineTokens[t]=S._deleteEnding(this._lineTokens[t],e.startColumn-1);var n=e.endLineNumber-1,i=null;n<this._len&&(i=S._deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=S._append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}else{if(e.startColumn===e.endColumn)return;this._lineTokens[t]=S._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1)}},S.prototype._acceptInsertText=function(e,t,n){if(0!==t||0!==n){var i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=S._deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=S._insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=S._insert(this._lineTokens[i],e.column-1,n))}},S._deleteBeginning=function(e,t){return null===e||e===u?e:S._delete(e,0,t)},S._deleteEnding=function(e,t){if(null===e||e===u)return e;var n=b(e),i=n[n.length-2];return S._delete(e,t,i)},S._delete=function(e,t,n){if(null===e||e===u||t===n)return e;var i=b(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return u;var s,a,l=o.a.findIndexInTokensArray(i,t),c=0<l?i[l-1<<1]:0;if(n<i[l<<1]){for(var d=n-t,h=l;h<r;h++)i[h<<1]-=d;return e}a=c!==t?(s=l+1<<1,i[l<<1]=t):(s=l<<1,c);for(var p=n-t,f=l+1;f<r;f++){var g=i[f<<1]-p;a<g&&(i[s++]=g,i[s++]=i[1+(f<<1)],a=g)}if(s===i.length)return e;var m=new Uint32Array(s);return m.set(i.subarray(0,s),0),m.buffer},S._append=function(e,t){if(t===u)return e;if(e===u)return t;if(null===e)return e;if(null===t)return null;var n=b(e),i=b(t),o=i.length>>>1,r=new Uint32Array(n.length+i.length);r.set(n,0);for(var s=n.length,a=n[n.length-2],l=0;l<o;l++)r[s++]=i[l<<1]+a,r[s++]=i[1+(l<<1)];return r.buffer},S._insert=function(e,t,n){if(null===e||e===u)return e;var i=b(e),r=i.length>>>1,s=o.a.findIndexInTokensArray(i,t);0<s&&i[s-1<<1]===t&&s--;for(var a=s;a<r;a++)i[a<<1]+=n;return e},S);function S(){this._lineTokens=[],this._len=0}},function(e,t,n){"use strict";function i(e,t){for(var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),s=i;s+1<n&&e.getLanguageId(s+1)===r;)s++;for(var a=i;0<a&&e.getLanguageId(a-1)===r;)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var o=(r.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},r.prototype.getActualLineContentBefore=function(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)},r.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},r.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},r.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},r);function r(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}function s(e){return 0!=(7&e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return m}));var i=n(444),o=n(440),r=(s.prototype.isOpen=function(e){return this._openSet.has(e)},s.prototype.isClose=function(e){return this._closeSet.has(e)},s._toSet=function(e){for(var t=new Set,n=0,i=e;n<i.length;n++){var o=i[n];t.add(o)}return t},s);function s(e,t,n,i,o,r){this.languageIdentifier=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=o,this.reversedRegex=r,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}var a=function(e,t){var n=function(e){var t,n,i,o,r,s,a=e.length;e=e.map((function(e){return[e[0].toLowerCase(),e[1].toLowerCase()]}));for(var l=[],u=0;u<a;u++)l[u]=u;function c(e,t){for(var n=Math.min(e,t),i=Math.max(e,t),o=0;o<a;o++)l[o]===i&&(l[o]=n)}for(u=0;u<a;u++)for(var d=e[u],h=u+1;h<a;h++){n=e[h],i=(t=d)[0],o=t[1],r=n[0],s=n[1],i!==r&&i!==s&&o!==r&&o!==s||c(l[u],l[h])}for(var p=[],f=0;f<a;f++){var g=[],m=[];for(u=0;u<a;u++)if(l[u]===f){var v=e[u],_=v[0],b=v[1];g.push(_),m.push(b)}0<g.length&&p.push({open:g,close:m})}return p}(t);this.brackets=n.map((function(t,i){return new r(e,i,t.open,t.close,function(e,t,n,i){for(var o=[],r=0,s=(o=(o=o.concat(e)).concat(t)).length;r<s;r++)l(o[r],n,i,o);return(o=c(o)).sort(u),o.reverse(),h(o)}(t.open,t.close,n,i),function(e,t,n,i){for(var o=[],r=0,s=(o=(o=o.concat(e)).concat(t)).length;r<s;r++)l(o[r],n,i,o);return(o=c(o)).sort(u),o.reverse(),h(o.map(g))}(t.open,t.close,n,i))})),this.forwardRegex=function(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=0,s=o.open;r<s.length;r++){var a=s[r];t.push(a)}for(var l=0,u=o.close;l<u.length;l++){var d=u[l];t.push(d)}}return h(t=c(t))}(this.brackets),this.reversedRegex=function(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var o=i[n],r=0,s=o.open;r<s.length;r++){var a=s[r];t.push(a)}for(var l=0,u=o.close;l<u.length;l++){var d=u[l];t.push(d)}}return h((t=c(t)).map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};for(var i=this.maxBracketLength=0,o=this.brackets;i<o.length;i++){for(var s=o[i],a=0,d=s.open;a<d.length;a++){var p=d[a];this.textIsBracket[p]=s,this.textIsOpenBracket[p]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,p.length)}for(var f=0,m=s.close;f<m.length;f++){var v=m[f];this.textIsBracket[v]=s,this.textIsOpenBracket[v]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,v.length)}}};function l(e,t,n,i){for(var o=0,r=t.length;o<r;o++)if(o!==n){for(var s=t[o],a=0,l=s.open;a<l.length;a++){var u=l[a];0<=u.indexOf(e)&&i.push(u)}for(var c=0,d=s.close;c<d.length;c++){var h=d[c];0<=h.indexOf(e)&&i.push(h)}}}function u(e,t){return e.length-t.length}function c(e){if(e.length<=1)return e;for(var t=[],n=new Set,i=0,o=e;i<o.length;i++){var r=o[i];n.has(r)||(t.push(r),n.add(r))}return t}function d(e){var t=/^[\w ]+$/.test(e);return e=i.p(e),t?"\\b"+e+"\\b":e}function h(e){var t="("+e.map(d).join(")|(")+")";return i.l(t,!0)}var p,f,g=(f=p=null,function(e){return p!==e&&(f=function(e){for(var t="",n=e.length-1;0<=n;n--)t+=e.charAt(n);return t}(p=e)),f}),m=(v._findPrevBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=n.length-(r.index||0),a=r[0].length,l=i+s;return new o.a(t,l-a+1,t,l+1)},v.findPrevBracketInRange=function(e,t,n,i,o){var r=g(n).substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,r,i)},v.findNextBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=r.index||0,a=r[0].length;if(0===a)return null;var l=i+s;return new o.a(t,l+1,t,l+1+a)},v.findNextBracketInRange=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},v);function v(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("IWorkspaceEditService")},function(e,t,n){"use strict";function i(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?o(349,t):Array.isArray(e)?(a=o(104579,a=t),e.reduce((function(e,t){return i(t,e)}),a)):(n=e,s=o(181387,s=t),Object.keys(n).sort().reduce((function(e,t){return e=r(t,e),i(n[t],e)}),s));case"string":return r(e,t);case"boolean":return o(e?433:863,t);case"number":return o(e,t);case"undefined":return 29047;default:return 19127}var n,s,a}function o(e,t){return(t<<5)-t+e|0}function r(e,t){t=o(149417,t);for(var n=0,i=e.length;n<i;n++)t=o(e.charCodeAt(n),t);return t}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(555),o=n(450),r=n(440),s=n(444),a=function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n},l=(u.leftPosition=function(e,t,n){return n>e.getLineMinColumn(t)?n-=s.G(e.getLineContent(t),n-1):1<t&&(--t,n=e.getLineMaxColumn(t)),new o.a(t,n)},u.left=function(e,t,n,i){var o=u.leftPosition(t,n,i);return new a(o.lineNumber,o.column,0)},u.moveLeft=function(e,t,n,i,o){var r,s;if(n.hasSelection()&&!i)r=n.selection.startLineNumber,s=n.selection.startColumn;else{var a=u.left(e,t,n.position.lineNumber,n.position.column-(o-1));r=a.lineNumber,s=a.column}return n.move(i,r,s,0)},u.rightPosition=function(e,t,n){return n<e.getLineMaxColumn(t)?n+=s.E(e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new o.a(t,n)},u.right=function(e,t,n,i){var o=u.rightPosition(t,n,i);return new a(o.lineNumber,o.column,0)},u.moveRight=function(e,t,n,i,o){var r,s;if(n.hasSelection()&&!i)r=n.selection.endLineNumber,s=n.selection.endColumn;else{var a=u.right(e,t,n.position.lineNumber,n.position.column+(o-1));r=a.lineNumber,s=a.column}return n.move(i,r,s,0)},u.down=function(e,t,n,o,r,s,l){var u=i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize)+r;n+=s;var c=t.getLineCount();return o=c<n?(n=c,l?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),o)):i.a.columnFromVisibleColumn2(e,t,n,u),r=u-i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize),new a(n,o,r)},u.moveDown=function(e,t,n,i,o){var r,s;s=n.hasSelection()&&!i?(r=n.selection.endLineNumber,n.selection.endColumn):(r=n.position.lineNumber,n.position.column);var a=u.down(e,t,r,s,n.leftoverVisibleColumns,o,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)},u.translateDown=function(e,t,n){var s=n.selection,a=u.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=u.down(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},u.up=function(e,t,n,o,r,s,l){var u=i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize)+r;return o=(n-=s)<1?(n=1,l?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),o)):i.a.columnFromVisibleColumn2(e,t,n,u),r=u-i.a.visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize),new a(n,o,r)},u.moveUp=function(e,t,n,i,o){var r,s;s=n.hasSelection()&&!i?(r=n.selection.startLineNumber,n.selection.startColumn):(r=n.position.lineNumber,n.position.column);var a=u.up(e,t,r,s,n.leftoverVisibleColumns,o,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)},u.translateUp=function(e,t,n){var s=n.selection,a=u.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=u.up(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(l.lineNumber,l.column),l.leftoverVisibleColumns)},u.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)},u.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},u.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},u.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},u);function u(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p}));var i,o=n(444),r=n(555),s=n(823),a=n(450),l=n(440),u=(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)}),c=(d._createWord=function(e,t,n,i,o){return{start:i,end:o,wordType:t,nextCharClass:n}},d._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},d._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;0<=o;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},d._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},d._findNextWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)},d._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},d._findStartOfWord=function(e,t,n,i){for(var o=i;0<=o;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},d.moveWordLeft=function(e,t,n,i){var o=n.lineNumber,r=n.column,s=!1;1===r&&1<o&&(s=!0,--o,r=t.getLineMaxColumn(o));var l=d._findPreviousWordOnLine(e,t,new a.a(o,r));if(0===i)return l&&!s&&t.getLineLastNonWhitespaceColumn(o)<r?new a.a(o,l.end+1):new a.a(o,l?l.start+1:1);if(1===i)return l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findPreviousWordOnLine(e,t,new a.a(o,l.start+1))),new a.a(o,l?l.start+1:1);if(3!==i)return l&&r<=l.end+1&&(l=d._findPreviousWordOnLine(e,t,new a.a(o,l.start+1))),new a.a(o,l?l.end+1:1);for(;l&&2===l.wordType;)l=d._findPreviousWordOnLine(e,t,new a.a(o,l.start+1));return new a.a(o,l?l.start+1:1)},d._moveWordPartLeft=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return 1<n?new a.a(n-1,e.getLineMaxColumn(n-1)):t;for(var r=e.getLineContent(n),s=t.column-1;1<s;s--){var l=r.charCodeAt(s-2),u=r.charCodeAt(s-1);if(95!==l&&95===u)return new a.a(n,s);if(o.B(l)&&o.C(u))return new a.a(n,s);if(o.C(l)&&o.C(u)&&s+1<i){var c=r.charCodeAt(s);if(o.B(c))return new a.a(n,s)}}return new a.a(n,1)},d.moveWordRight=function(e,t,n,i){var o=n.lineNumber,r=n.column,s=!1;r===t.getLineMaxColumn(o)&&o<t.getLineCount()&&(s=!0,o+=1,r=1);var l=d._findNextWordOnLine(e,t,new a.a(o,r));if(2===i)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(o);else if(3===i){for(s&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1));r=l?l.start+1:t.getLineMaxColumn(o)}else l&&!s&&r>=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1))),r=l?l.start+1:t.getLineMaxColumn(o);return new a.a(o,r)},d._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new a.a(n+1,1):t;for(var r=e.getLineContent(n),s=t.column+1;s<i;s++){var l=r.charCodeAt(s-2),u=r.charCodeAt(s-1);if(95===l&&95!==u)return new a.a(n,s);if(o.B(l)&&o.C(u))return new a.a(n,s);if(o.C(l)&&o.C(u)&&s+1<i){var c=r.charCodeAt(s);if(o.B(c))return new a.a(n,s)}}return new a.a(n,i)},d._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,r=o.D(n,i);return r+1<i?new l.a(t.lineNumber,r+2,t.lineNumber,t.column):null},d.deleteWordLeft=function(e,t,n,i,o){if(!n.isEmpty())return n;var r=new a.a(n.positionLineNumber,n.positionColumn),s=r.lineNumber,u=r.column;if(1===s&&1===u)return null;if(i){var c=this._deleteWordLeftWhitespace(t,r);if(c)return c}var h=d._findPreviousWordOnLine(e,t,r);return u=0===o?h?h.start+1:1<u?1:(s--,t.getLineMaxColumn(s)):(h&&u<=h.end+1&&(h=d._findPreviousWordOnLine(e,t,new a.a(s,h.start+1))),h?h.end+1:1<u?1:(s--,t.getLineMaxColumn(s))),new l.a(s,u,r.lineNumber,r.column)},d._deleteWordPartLeft=function(e,t){if(!t.isEmpty())return t;var n=t.getPosition(),i=d._moveWordPartLeft(e,n);return new l.a(n.lineNumber,n.column,i.lineNumber,i.column)},d._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},d._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,o=this._findFirstNonWhitespaceChar(n,i);return 1+i<o?new l.a(t.lineNumber,t.column,t.lineNumber,o+1):null},d.deleteWordRight=function(e,t,n,i,o){if(!n.isEmpty())return n;var r=new a.a(n.positionLineNumber,n.positionColumn),s=r.lineNumber,u=r.column,c=t.getLineCount(),h=t.getLineMaxColumn(s);if(s===c&&u===h)return null;if(i){var p=this._deleteWordRightWhitespace(t,r);if(p)return p}var f=d._findNextWordOnLine(e,t,r);return u=2===o?f?f.end+1:u<h||s===c?h:(s++,(f=d._findNextWordOnLine(e,t,new a.a(s,1)))?f.start+1:t.getLineMaxColumn(s)):(f&&u>=f.start+1&&(f=d._findNextWordOnLine(e,t,new a.a(s,f.end+1))),f?f.start+1:u<h||s===c?h:(s++,(f=d._findNextWordOnLine(e,t,new a.a(s,1)))?f.start+1:t.getLineMaxColumn(s))),new l.a(s,u,r.lineNumber,r.column)},d._deleteWordPartRight=function(e,t){if(!t.isEmpty())return t;var n=t.getPosition(),i=d._moveWordPartRight(e,n);return new l.a(n.lineNumber,n.column,i.lineNumber,i.column)},d.word=function(e,t,n,i,o){var u,c,h,p,f=Object(s.a)(e.wordSeparators),g=d._findPreviousWordOnLine(f,t,o),m=d._findNextWordOnLine(f,t,o);if(!i)return c=g&&1===g.wordType&&g.start<=o.column-1&&o.column-1<=g.end?(u=g.start+1,g.end+1):m&&1===m.wordType&&m.start<=o.column-1&&o.column-1<=m.end?(u=m.start+1,m.end+1):(u=g?g.end+1:1,m?m.start+1:t.getLineMaxColumn(o.lineNumber)),new r.f(new l.a(o.lineNumber,u,o.lineNumber,c),0,new a.a(o.lineNumber,c),0);p=g&&1===g.wordType&&g.start<o.column-1&&o.column-1<g.end?(h=g.start+1,g.end+1):m&&1===m.wordType&&m.start<o.column-1&&o.column-1<m.end?(h=m.start+1,m.end+1):(h=o.column,o.column);var v,_=o.lineNumber;if(n.selectionStart.containsPosition(o))v=n.selectionStart.endColumn;else if(o.isBeforeOrEqual(n.selectionStart.getStartPosition())){v=h;var b=new a.a(_,v);n.selectionStart.containsPosition(b)&&(v=n.selectionStart.endColumn)}else v=p,b=new a.a(_,v),n.selectionStart.containsPosition(b)&&(v=n.selectionStart.startColumn);return n.move(!0,_,v,0)},d);function d(){}var h,p=(u(f,h=c),f.deleteWordPartLeft=function(e,t,n,i){var o=g([c.deleteWordLeft(e,t,n,i,0),c.deleteWordLeft(e,t,n,i,2),c._deleteWordPartLeft(t,n)]);return o.sort(l.a.compareRangesUsingEnds),o[2]},f.deleteWordPartRight=function(e,t,n,i){var o=g([c.deleteWordRight(e,t,n,i,0),c.deleteWordRight(e,t,n,i,2),c._deleteWordPartRight(t,n)]);return o.sort(l.a.compareRangesUsingStarts),o[0]},f.moveWordPartLeft=function(e,t,n){var i=g([c.moveWordLeft(e,t,n,0),c.moveWordLeft(e,t,n,2),c._moveWordPartLeft(t,n)]);return i.sort(a.a.compare),i[2]},f.moveWordPartRight=function(e,t,n){var i=g([c.moveWordRight(e,t,n,0),c.moveWordRight(e,t,n,2),c._moveWordPartRight(t,n)]);return i.sort(a.a.compare),i[0]},f);function f(){return null!==h&&h.apply(this,arguments)||this}function g(e){return e.filter((function(e){return Boolean(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("clipboardService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return h}));var i=n(479),o=n(791),r=n(444),s=n(596),a=n(452),l=n(554);function u(e,t,n){if("string"==typeof e&&(e=i.a.file(e)),n){var u=n.getWorkspaceFolder(e);if(u){var c=1<n.getWorkspace().folders.length,f=void 0;if(f=Object(l.e)(u.uri,e)?"":Object(l.h)(u.uri,e),c){var g=u.name?u.name:Object(l.b)(u.uri);f=f?g+" \u2022 "+f:g}return f}}if(e.scheme!==s.b.file&&e.scheme!==s.b.untitled)return e.with({query:null,fragment:null}).toString(!0);if(d(e.fsPath))return Object(o.normalize)(h(e.fsPath));var m=Object(o.normalize)(e.fsPath);return!a.h&&t&&(m=function(e,t){if(a.h||!e||!t)return e;var n=p.original===t?p.normalized:void 0;return n||(n=""+Object(r.K)(t,o.posix.sep)+o.posix.sep,p={original:t,normalized:n}),(a.d?Object(r.N):Object(r.O))(e,n)&&(e="~/"+e.substr(n.length)),e}(m,t.userHome)),m}function c(e){if(e){"string"==typeof e&&(e=i.a.file(e));var t=Object(l.b)(e)||(e.scheme===s.b.file?e.fsPath:e.path);return d(t)?h(t):t}}function d(e){return a.h&&e&&":"===e[1]}function h(e){return d(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var p=Object.create(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i,o,r=n(505),s=n(504),a=n(930),l=n(489),u=n(456),c=n(448),d=n(532),h=n(451),p=n(759),f=function(e,t){return function(n,i){t(n,i,e)}},g=((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)})(m,o=a.a),m.prototype.getParentEditor=function(){return this._parentEditor},m.prototype._onParentConfigurationChanged=function(e){o.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),o.prototype.updateOptions.call(this,this._overwriteOptions)},m.prototype.updateOptions=function(e){r.g(this._overwriteOptions,e,!0),o.prototype.updateOptions.call(this,this._overwriteOptions)},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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([f(3,c.a),f(4,s.a),f(5,l.b),f(6,u.c),f(7,h.c),f(8,d.a),f(9,p.b)],m));function m(e,t,n,i,r,s,a,l,u,c){var d=o.call(this,e,n.getRawOptions(),{},i,r,s,a,l,u,c)||this;return d._parentEditor=n,d._overwriteOptions=t,o.prototype.updateOptions.call(d,d._overwriteOptions),d._register(n.onDidChangeConfiguration((function(e){return d._onParentConfigurationChanged(e)}))),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u}));var i=n(444),o=(r._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},r.equalsArr=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(!r._equals(e[i],t[i]))return!1;return!0},r.filter=function(e,t,n,i){if(0===e.length)return[];for(var o=[],s=0,a=0,l=e.length;a<l;a++){var u=e[a],c=u.range;if(!(c.endLineNumber<t||c.startLineNumber>t||c.isEmpty()&&(0===u.type||3===u.type))){var d=c.startLineNumber===t?c.startColumn:n,h=c.endLineNumber===t?c.endColumn:i;o[s++]=new r(d,h,u.inlineClassName,u.type)}}return o},r.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},r);function r(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}var s=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},a=(l.prototype.consumeLowerThan=function(e,t,n){for(;0<this.count&&this.stopOffsets[0]<e;){for(var i=0;i+1<this.count&&this.stopOffsets[i]===this.stopOffsets[i+1];)i++;n.push(new s(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 0<this.count&&t<e&&(n.push(new s(t,e-1,this.classNames.join(" "))),t=e),t},l.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++},l);function l(){this.stopOffsets=[],this.classNames=[],this.count=0}var u=(c.normalize=function(e,t){if(0===t.length)return[];for(var n=[],o=new a,r=0,s=0,l=t.length;s<l;s++){var u=t[s],c=u.startColumn,d=u.endColumn,h=u.className;if(1<c){var p=e.charCodeAt(c-2);i.z(p)&&c--}1<d&&(p=e.charCodeAt(d-2),i.z(p)&&d--);var f=c-1,g=d-2;r=o.consumeLowerThan(f,r,n),0===o.count&&(r=f),o.insert(g,h)}return o.consumeLowerThan(1073741824,r,n),n},c);function c(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=(o.prototype.nextId=function(){return this._prefix+ ++this._lastId},o);function o(e){this._prefix=e,this._lastId=0}var r=new i("id#")},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n(1355);var i,o=n(443),r=n(961),s=n(439),a=n(896),l=n(505),u=(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)}),c=(Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){this.disposed=!0},d);function d(e){this._element=e}var h,p=(u(f,h=s.a),f.prototype.setLabel=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=(null==n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof r.a?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),null!=n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null==n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))},f);function f(e,t){var n=h.call(this)||this;n.domNode=n._register(new c(o.q(e,o.a(".monaco-icon-label"))));var i=o.q(n.domNode.element,o.a(".monaco-icon-label-container")),s=o.q(i,o.a("span.monaco-icon-name-container"));return n.descriptionContainer=n._register(new c(o.q(i,o.a("span.monaco-icon-description-container")))),null!=t&&t.supportHighlights?n.nameNode=new v(s,!!t.supportCodicons):n.nameNode=new g(s),null!=t&&t.supportDescriptionHighlights?n.descriptionNodeFactory=function(){return new r.a(o.q(n.descriptionContainer.element,o.a("span.label-description")),!!t.supportCodicons)}:n.descriptionNodeFactory=function(){return n._register(new c(o.q(n.descriptionContainer.element,o.a("span.label-description"))))},n}var g=(m.prototype.setLabel=function(e,t){if(this.label!==e||!Object(l.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",o.P(this.container,"multiple"),this.singleLabel=o.q(this.container,o.a("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerHTML="",o.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=0;n<e.length;n++){var i=e[n],r=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+n;o.q(this.container,o.a("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":n},i)),n<e.length-1&&o.q(this.container,o.a("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}},m);function m(e){this.container=e,this.label=void 0,this.singleLabel=void 0}var v=(_.prototype.setLabel=function(e,t){if(this.label!==e||!Object(l.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerHTML="",o.P(this.container,"multiple"),this.singleLabel=new r.a(o.q(this.container,o.a("a.label-name",{id:null==t?void 0:t.domId})),this.supportCodicons)),this.singleLabel.set(e,null==t?void 0:t.matches,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerHTML="",o.f(this.container,"multiple"),this.singleLabel=void 0;for(var n=(null==t?void 0:t.separator)||"/",i=function(e,t,n){if(n){var i=0;return e.map((function(e){var o={start:i,end:i+e.length},r=n.map((function(e){return a.a.intersect(o,e)})).filter((function(e){return!a.a.isEmpty(e)})).map((function(e){var t=e.start,n=e.end;return{start:t-i,end:n-i}}));return i=o.end+t.length,r}))}}(e,n,null==t?void 0:t.matches),s=0;s<e.length;s++){var u=e[s],c=i?i[s]:void 0,d=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+s,h=o.a("a.label-name",{id:d,"data-icon-label-count":e.length,"data-icon-label-index":s});new r.a(o.q(this.container,h),this.supportCodicons).set(u,c,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines),s<e.length-1&&o.q(h,o.a("span.label-separator",void 0,n))}}},_);function _(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(505),o=n(890),r=n(444),s=(Object.defineProperty(a.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),a.prototype.set=function(e,t,n,o){void 0===t&&(t=[]),void 0===n&&(n=""),e=e||"",o&&(e=a.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===n&&i.e(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.title=n,this.highlights=t,this.render())},a.prototype.render=function(){for(var e="",t=0,n=0,i=this.highlights;n<i.length;n++){var s=i[n];if(s.end!==s.start){if(t<s.start){e+="<span>";var a=this.text.substring(t,s.start);e+=this.supportCodicons?Object(o.c)(Object(r.o)(a)):Object(r.o)(a),e+="</span>",t=s.end}s.extraClasses?e+='<span class="highlight '+s.extraClasses+'">':e+='<span class="highlight">';var l=this.text.substring(s.start,s.end);e+=this.supportCodicons?Object(o.c)(Object(r.o)(l)):Object(r.o)(l),e+="</span>",t=s.end}}t<this.text.length&&(e+="<span>",l=this.text.substring(t),e+=this.supportCodicons?Object(o.c)(Object(r.o)(l)):Object(r.o)(l),e+="</span>"),this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},a.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,(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,"\u23ce"}))},a);function a(e,t){this.supportCodicons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}},function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var i,o,r=n(479),s=n(554),a=n(448),l=n(553),u=Object(a.c)("contextService");function c(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=l.c.forPaths(),this.folders=t}(i||(i={})).isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)},(o||(o={})).isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&r.a.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource},Object.defineProperty(c.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),c.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},c.prototype.updateFoldersMap=function(){this._foldersMap=l.c.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},c.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}};var d=(h.prototype.toResource=function(e){return s.f(this.uri,e)},h.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},h);function h(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return C})),n.d(t,"c",(function(){return A}));var i,o,r=(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)}),s=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},a=(l.isDigitCharacter=function(e){return 48<=e&&e<=57},l.isVariableCharacter=function(e){return 95===e||97<=e&&e<=122||65<=e&&e<=90},l.prototype.text=function(e){this.value=e,this.pos=0},l.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},l.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var e,t=this.pos,n=0,i=this.value.charCodeAt(t);if("number"==typeof(e=l._table[i]))return this.pos+=1,{type:e,pos:t,len:1};if(l.isDigitCharacter(i)){for(e=8;n+=1,i=this.value.charCodeAt(t+n),l.isDigitCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}}if(l.isVariableCharacter(i)){for(e=9;i=this.value.charCodeAt(t+ ++n),l.isVariableCharacter(i)||l.isDigitCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}}for(e=10;n+=1,i=this.value.charCodeAt(t+n),!isNaN(i)&&void 0===l._table[i]&&!l.isDigitCharacter(i)&&!l.isVariableCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}},l._table=((o={})[36]=0,o[58]=1,o[44]=2,o[123]=3,o[125]=4,o[92]=5,o[47]=6,o[124]=7,o[43]=11,o[45]=12,o[63]=13,o),l);function l(){this.value="",this.pos=0}var u=(c.prototype.appendChild=function(e){return e instanceof h&&this._children[this._children.length-1]instanceof h?this._children[this._children.length-1].value+=e.value:(e.parent=this)._children.push(e),this},c.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,s([i,1],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(c.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof P)return e;e=e.parent}},enumerable:!0,configurable:!0}),c.prototype.toString=function(){return this.children.reduce((function(e,t){return e+t.toString()}),"")},c.prototype.len=function(){return 0},c);function c(){this._children=[]}var d,h=(r(p,d=u),p.prototype.toString=function(){return this.value},p.prototype.len=function(){return this.value.length},p.prototype.clone=function(){return new p(this.value)},p);function p(e){var t=d.call(this)||this;return t.value=e,t}var f,g=(r(m,f=u),m);function m(){return null!==f&&f.apply(this,arguments)||this}var v,_=(r(b,v=g),b.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0},Object.defineProperty(b.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof C?this._children[0]:void 0},enumerable:!0,configurable:!0}),b.prototype.clone=function(){var e=new b(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},b);function b(e){var t=v.call(this)||this;return t.index=e,t}var y,C=(r(w,y=u),w.prototype.appendChild=function(e){return e instanceof h&&(e.parent=this).options.push(e),this},w.prototype.toString=function(){return this.options[0].value},w.prototype.len=function(){return this.options[0].len()},w.prototype.clone=function(){var e=new w;return this.options.forEach(e.appendChild,e),e},w);function w(){var e=null!==y&&y.apply(this,arguments)||this;return e.options=[],e}var S,O=(r(L,S=u),L.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 x&&Boolean(e.elseValue)}))&&(i=this._replace([])),i},L.prototype._replace=function(e){for(var t="",n=0,i=this._children;n<i.length;n++){var o=i[n];if(o instanceof x){var r=e[o.index]||"";t+=r=o.resolve(r)}else t+=o.toString()}return t},L.prototype.toString=function(){return""},L.prototype.clone=function(){var e=new L;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},L);function L(){var e=null!==S&&S.apply(this,arguments)||this;return e.regexp=new RegExp(""),e}var D,x=(r(N,D=u),N.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},N.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},N.prototype.clone=function(){return new N(this.index,this.shorthandName,this.ifValue,this.elseValue)},N);function N(e,t,n,i){var o=D.call(this)||this;return o.index=e,o.shorthandName=t,o.ifValue=n,o.elseValue=i,o}var k,E=(r(I,k=g),I.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new h(t)],!0)},I.prototype.clone=function(){var e=new I(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},I);function I(e){var t=k.call(this)||this;return t.name=e,t}function M(e,t){for(var n=s(e);0<n.length;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,i.children)}}var T,P=(r(R,T=u),Object.defineProperty(R.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk((function(n){return n instanceof _&&(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(R.prototype,"placeholders",{get:function(){return this.placeholderInfo.all},enumerable:!0,configurable:!0}),R.prototype.offset=function(e){var t=0,n=!1;return this.walk((function(i){return i===e?!(n=!0):(t+=i.len(),!0)})),n?t:-1},R.prototype.fullLen=function(e){var t=0;return M([e],(function(e){return t+=e.len(),!0})),t},R.prototype.enclosingPlaceholders=function(e){for(var t=[],n=e.parent;n;)n instanceof _&&t.push(n),n=n.parent;return t},R.prototype.resolveVariables=function(e){var t=this;return this.walk((function(n){return n instanceof E&&n.resolve(e)&&(t._placeholders=void 0),!0})),this},R.prototype.appendChild=function(e){return this._placeholders=void 0,T.prototype.appendChild.call(this,e)},R.prototype.replace=function(e,t){return this._placeholders=void 0,T.prototype.replace.call(this,e,t)},R.prototype.clone=function(){var e=new R;return this._children=this.children.map((function(e){return e.clone()})),e},R.prototype.walk=function(e){M(this.children,e)},R);function R(){return null!==T&&T.apply(this,arguments)||this}var A=(F.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},F.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();for(var i=new P;this._parse(i););var o=new Map,r=[],s=0;i.walk((function(e){return e instanceof _&&(s+=1,e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&0<e.children.length?o.set(e.index,e.children):r.push(e)),!0}));for(var a=0,l=r;a<l.length;a++){var u=l[a],c=o.get(u.index);if(c){var d=new _(u.index);d.transform=u.transform;for(var h=0,p=c;h<p.length;h++){var f=p[h];d.appendChild(f.clone())}i.replace(u,[d])}}return n=n||0<s&&t,!o.has(0)&&n&&i.appendChild(new _(0)),i},F.prototype._accept=function(e,t){if(void 0!==e&&this._token.type!==e)return!1;var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n},F.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},F.prototype._until=function(e){for(var t=this._token;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){var n=this._scanner.next();if(0!==n.type&&4!==n.type&&5!==n.type)return!1}this._token=this._scanner.next()}var i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i},F.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},F.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 h(t)),!0)},F.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 _(Number(t)):new E(t)),!0):this._backTo(n)},F.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 _(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new h("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(0<i.index&&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 C;;){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}}},F.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 h(n.join(""))),!0)},F.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 E(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 h("${"+t+":")),i.children.forEach(e.appendChild,e),!0}},F.prototype._parseTransform=function(e){for(var t=new O,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);)if(o=void 0,o=this._accept(5,!0))o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new h(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},F.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 x(Number(i))),!0;if(this._accept(4))return e.appendChild(new x(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 x(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(r=this._until(4))return e.appendChild(new x(Number(i),void 0,r,void 0)),!0}else if(this._accept(12)){if(s=this._until(4))return e.appendChild(new x(Number(i),void 0,void 0,s)),!0}else if(this._accept(13)){var r;if((r=this._until(1))&&(s=this._until(4)))return e.appendChild(new x(Number(i),void 0,r,s)),!0}else{var s;if(s=this._until(4))return e.appendChild(new x(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},F.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new h(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},F);function F(){this._scanner=new a,this._token={type:14,pos:0,len:0}}},,,,function(e,t,n){"use strict";n(1357);var i=n(449),o=n(495),r=n(443),s=(n(1358),n(445)),a=n(452),l=n(465),u=(c.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},c.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&0<n.entries.length)},c.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},c.prototype.getParent=function(e,t){return Promise.resolve(null)},c);function c(e){this.modelProvider=Object(l.g)(e.getModel)?e:{getModel:function(){return e}}}var d=(h.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},h.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)},h.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)},h);function h(e){this.modelProvider=e}var p=(f.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},f);function f(e){this.modelProvider=e}var g=(m.prototype.updateStyles=function(e){this.styles=e},m.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t)},m.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t)},m.prototype.renderTemplate=function(e,t,n){return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles)},m.prototype.renderElement=function(e,t,n,i){this.modelProvider.getModel().renderer.renderElement(t,n,i,this.styles)},m.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n)},m);function m(e,t){this.modelProvider=e,this.styles=t}var v=n(976),_=(n(1359),n(446)),b=n(548),y=(C.prototype.set=function(e,t){this._arr.push({keybinding:Object(b.f)(e,a.a),callback:t})},C.prototype.dispatch=function(e){for(var t=this._arr.length-1;0<=t;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},C);function C(){this._arr=[]}var w=(S.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)return!1;if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(r.x(n.target,"scrollbar","monaco-tree"))return!1;if(r.x(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)},S.prototype.onClick=function(e,t,n){return a.e&&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)},S.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o=n,r={origin:i,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(o)};return 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(void 0,_.e):e.expand(t).then(void 0,_.e))),!0},S.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t)},Object.defineProperty(S.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),S.prototype.isClickOnTwistie=function(e){var t=e.target;if(!r.I(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},S.prototype.onContextMenu=function(e,t,n){return n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase()||n&&(n.preventDefault(),n.stopPropagation()),!1},S.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},S.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},S.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},S.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n)||(n.preventDefault(),n.stopPropagation(),0))},S.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(void 0,_.e)),!0},S.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(void 0,_.e)),!0},S.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(void 0,_.e)),!0},S.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(void 0,_.e)),!0},S.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(void 0,_.e)),!0},S.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(void 0,_.e)),!0},S.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(void 0,_.e)}return!0},S.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(void 0,_.e)}return!0},S.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},S.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},S.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)},S);function S(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new y,this.upKeyBindingDispatcher=new y,"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)})),a.e&&(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)))}var O=(L.prototype.getDragURI=function(e,t){return null},L.prototype.onDragStart=function(e,t,n){},L.prototype.onDragOver=function(e,t,n,i){return null},L.prototype.drop=function(e,t,n,i){},L);function L(){}var D=(x.prototype.isVisible=function(e,t){return!0},x);function x(){}var N=(k.prototype.getAriaLabel=function(e,t){return null},k);function k(){}var E=(I.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)},I);function I(e,t){this.styleElement=e,this.selectorSuffix=t}var M,T=n(944),P=n(439),R=n(442),A=(M=function(e,t){return(M=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}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=(Object.defineProperty(j.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),j.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},j);function j(e){this._onDispose=new R.a,this.onDispose=this._onDispose.event,this._item=e}var W=(V.prototype.isLocked=function(e){return!!this.locks[e.id]},V.prototype.run=function(e,t){var n=this,i=this.getLock(e);return new Promise(i?function(o,r){R.b.once(i.onDispose)((function(){return n.run(e,t).then(o,r)}))}:function(i,o){if(e.isDisposed())return o(new Error("Item is disposed."));var r=n.locks[e.id]=new F(e);return t().then((function(t){return delete n.locks[e.id],r.dispose(),t})).then(i,o)})},V.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},V);function V(){this.locks=Object.create({})}var B=(H.prototype.register=function(e){T.a(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(P.e)(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}},H.prototype.deregister=function(e){T.a(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},H.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},H.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},H.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},H.prototype.isDisposed=function(){return this._isDisposed},H);function H(){this._isDisposed=!1,this._onDidRevealItem=new R.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new R.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new R.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new R.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new R.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new R.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new R.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new R.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new R.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new R.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new R.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}var z=(U.prototype.getElement=function(){return this.element},U.prototype.hasChildren=function(){return this.doesHaveChildren},U.prototype.getDepth=function(){return this.depth},U.prototype.isVisible=function(){return this.visible},U.prototype.setVisible=function(e){this.visible=e},U.prototype.isExpanded=function(){return this.expanded},U.prototype._setExpanded=function(e){this.expanded=e},U.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},U.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,(function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(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)}))},U.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(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)?Promise.resolve(!1):this.lock.run(this,(function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)}))},U.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},U.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},U.prototype.hasTrait=function(e){return this.traits[e]||!1},U.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},U.prototype.getHeight=function(){return this.height},U.prototype.refreshChildren=function(e,t,n){var i=this;if(void 0===t&&(t=!1),void 0===n&&(n=!1),!n&&!this.isExpanded())return function e(t){t.needsChildrenRefresh=!0,t.forEachChild(e)}(this),Promise.resolve(this);function o(){var n={item:i,isNested:t};return i._onRefreshChildren.fire(n),(i.doesHaveChildren?i.context.dataSource.getChildren(i.context.tree,i.element):Promise.resolve([])).then((function(t){if(i.isDisposed()||i.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(t))return Promise.reject(new Error("Please return an array of children."));t=t?t.slice(0):[],t=i.sort(t);for(var n={};null!==i.firstChild;)n[i.firstChild.id]=i.firstChild,i.removeChild(i.firstChild);for(var o=0,r=t.length;o<r;o++){var s=t[o],a=i.context.dataSource.getId(i.context.tree,s),l=n[a]||new U(a,i.registry,i.context,i.lock,s);l.element=s,e&&(l.needsChildrenRefresh=e),delete n[a],i.addChild(l)}for(var u in n)n.hasOwnProperty(u)&&n[u].dispose();return e?Promise.all(i.mapEachChild((function(t){return t.doRefresh(e,!0)}))):Promise.all(i.mapEachChild((function(t){return t.isExpanded()&&t.needsChildrenRefresh?t.doRefresh(e,!0):(t.updateVisibility(),Promise.resolve(null))})))})).then(void 0,_.e).then((function(){return i._onDidRefreshChildren.fire(n)}))}return this.needsChildrenRefresh=!1,t?o():this.lock.run(this,o)},U.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)},U.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},U.prototype.refresh=function(e){return this.doRefresh(e)},U.prototype.getNavigator=function(){return new Y(this)},U.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this)},U.prototype.isAncestorOf=function(e){for(var t=e;t;){if(t.id===this.id)return!0;t=t.parent}return!1},U.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild,i=null===t,o=t===this.lastChild;if(n)this.firstChild=this.lastChild=e,e.next=e.previous=null;else if(i){if(!this.firstChild)throw new Error("Invalid tree state");(this.firstChild.previous=e).next=this.firstChild,e.previous=null,this.firstChild=e}else if(o){if(!this.lastChild)throw new Error("Invalid tree state");(this.lastChild.next=e).next=null,e.previous=this.lastChild,this.lastChild=e}else{if(!(e.previous=t))throw new Error("Invalid tree state");if(e.next=t.next,!t.next)throw new Error("Invalid tree state");t.next.previous=e,t.next=e}e.parent=this,e.depth=this.depth+1},U.prototype.removeChild=function(e){var t=this.firstChild===e,n=this.lastChild===e;if(t&&n)this.firstChild=this.lastChild=null;else if(t){if(!e.next)throw new Error("Invalid tree state");e.next.previous=null,this.firstChild=e.next}else if(n){if(!e.previous)throw new Error("Invalid tree state");e.previous.next=null,this.lastChild=e.previous}else{if(!e.next)throw new Error("Invalid tree state");if(e.next.previous=e.previous,!e.previous)throw new Error("Invalid tree state");e.previous.next=e.next}e.parent=null,e.depth=NaN},U.prototype.forEachChild=function(e){for(var t,n=this.firstChild;n;)t=n.next,e(n),n=t},U.prototype.mapEachChild=function(e){var t=[];return this.forEachChild((function(n){t.push(e(n))})),t},U.prototype.sort=function(e){var t=this,n=this.context.sorter;return n?e.sort((function(e,i){return n.compare(t.context.tree,e,i)})):e},U.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},U.prototype._isVisible=function(){return!!this.context.filter&&this.context.filter.isVisible(this.context.tree,this.element)},U.prototype.isDisposed=function(){return this._isDisposed},U.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},U);function U(e,t,n,i,o){this._onDidCreate=new R.a,this._onDidReveal=new R.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new R.a,this.onExpand=this._onExpand.event,this._onDidExpand=new R.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new R.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new R.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new R.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new R.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new R.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new R.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new R.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new R.a,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}var K,q=(A(G,K=z),G.prototype.isVisible=function(){return!1},G.prototype.setVisible=function(e){},G.prototype.isExpanded=function(){return!0},G.prototype._setExpanded=function(e){},G.prototype._getHeight=function(){return 0},G.prototype._isVisible=function(){return!1},G);function G(e,t,n,i,o){return K.call(this,e,t,n,i,o)||this}var Y=(Z.lastDescendantOf=function(e){return e?e instanceof q?Z.lastDescendantOf(e.lastChild):e.isVisible()?e.isExpanded()&&null!==e.lastChild?Z.lastDescendantOf(e.lastChild):e:Z.lastDescendantOf(e.previous):null},Z.prototype.current=function(){return this.item||null},Z.prototype.next=function(){if(this.item)do{if((this.item instanceof q||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},Z.prototype.previous=function(){if(this.item)do{var e=Z.lastDescendantOf(this.item.previous);e?this.item=e: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},Z.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},Z.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},Z.prototype.last=function(){return Z.lastDescendantOf(this.start)},Z);function Z(e,t){void 0===t&&(t=!0),this.item=e,this.start=t?e:null}var X=($.prototype.setInput=function(e){var t=this,n={item:this.input};this._onSetInput.fire(n),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new W,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new B,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 q(i,this.registry,this.context,this.lock,e),n={item:this.input},this._onDidSetInput.fire(n),this.refresh(this.input)},$.prototype.getInput=function(){return this.input?this.input.getElement():null},$.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0);var i=this.getItem(e);if(!i)return Promise.resolve(null);var o={item:i,recursive:t};return this._onRefresh.fire(o),i.refresh(t).then((function(){n._onDidRefresh.fire(o)}))},$.prototype.expand=function(e){var t=this.getItem(e);return t?t.expand():Promise.resolve(!1)},$.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);return n?n.collapse(t):Promise.resolve(!1)},$.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.isExpanded(e)?this.collapse(e,t):this.expand(e)},$.prototype.isExpanded=function(e){var t=this.getItem(e);return!!t&&t.isExpanded()},$.prototype.reveal=function(e,t){var n=this;return void 0===t&&(t=null),this.resolveUnknownParentChain(e).then((function(e){var t=Promise.resolve(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)}))},$.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})):Promise.resolve([])}))},$.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n)},$.prototype.getHighlight=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0]},$.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n)},$.prototype.getSelection=function(e){return void 0===e&&(e=!1),this.getElementsWithTrait("selected",e)},$.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},$.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},$.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)},$.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)},$.prototype.focusParent=function(e){var t=this.getFocus()||this.input,n=this.getNavigator(t,!1).parent();n&&this.setFocus(n,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)},$.prototype.focusFirst=function(e,t){this.focusNth(0,e,t)},$.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)},$.prototype.focusLast=function(e,t){var n,i=this.getParent(t);(n=t&&i?i.lastChild:this.getNavigator(i).last())&&this.setFocus(n,e)},$.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent}return this.getItem(this.input)},$.prototype.getNavigator=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),new Y(this.getItem(e),t)},$.prototype.getItem=function(e){return void 0===e&&(e=null),null===e?this.input:e instanceof z?e:"string"==typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,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])},$.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{for(var n={},i=void 0,o=0,r=t.length;o<r;o++)(i=this.getItem(t[o]))&&(n[i.id]=i);var s=this.traitsToItems[e]||{},a=[],l=void 0;for(l in s)s.hasOwnProperty(l)&&(n.hasOwnProperty(l)?delete n[l]:a.push(s[l]));for(o=0,r=a.length;o<r;o++)(i=a[o]).removeTrait(e),delete s[i.id];for(l in n)n.hasOwnProperty(l)&&((i=n[l]).addTrait(e),s[l]=i);this.traitsToItems[e]=s}},$.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},$.prototype.dispose=function(){this.registry.dispose(),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},$);function $(e){this.registry=new B,this.registryDisposable=P.a.None,this._onSetInput=new R.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new R.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new R.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new R.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new R.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new R.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new R.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new R.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new R.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new R.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new R.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new R.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new R.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new R.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new R.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new R.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new R.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new R.f,this.context=e,this.input=null,this.traitsToItems={}}var J=n(478),Q=n(977),ee=n(702),te=n(444),ne=n(595),ie=n(701),oe=(re.prototype.update=function(e){},re.prototype.getData=function(){return this.elements},re);function re(e){this.elements=e}var se=(ae.prototype.update=function(e){},ae.prototype.getData=function(){return this.elements},ae);function ae(e){this.elements=e}var le=(ue.prototype.update=function(e){e.types&&(this.types=[],Array.prototype.push.apply(this.types,e.types)),e.files&&(this.files=[],Array.prototype.push.apply(this.files,e.files),this.files=this.files.filter((function(e){return e.size||e.type})))},ue.prototype.getData=function(){return{types:this.types,files:this.files}},ue);function ue(){this.types=[],this.files=[]}var ce=n(700),de=n(688),he=(pe.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0},pe.prototype.onInsertItems=function(e,t){void 0===t&&(t=null);var n,i,o,r,s=null,a=0;if(null===t)r=i=0;else{if(i=this.indexes[t]+1,!(n=this.heightMap[i-1]))return;r=n.top+n.height}for(var l=this.heightMap.splice.bind(this.heightMap,i,0),u=[];s=e.next();)(n=this.createViewItem(s)).top=r+a,this.indexes[s.id]=i++,u.push(n),a+=n.height;for(l.apply(this.heightMap,u),o=i;o<this.heightMap.length;o++)(n=this.heightMap[o]).top+=a,this.indexes[n.model.id]=o;for(o=u.length-1;0<=o;o--)this.onInsertItem(u[o]);for(o=this.heightMap.length-1;i<=o;o--)this.onRefreshItem(this.heightMap[o]);return a},pe.prototype.onInsertItem=function(e){},pe.prototype.onRemoveItems=function(e){for(var t,n=null,i=null,o=0,r=0;n=e.next();){if(o=this.indexes[n],!(t=this.heightMap[o]))return;r-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===i&&(i=o)}if(0!==r&&null!==i)for(this.heightMap.splice(i,o-i+1),o=i;o<this.heightMap.length;o++)(t=this.heightMap[o]).top+=r,this.indexes[t.model.id]=o,this.onRefreshItem(t)},pe.prototype.onRemoveItem=function(e){},pe.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 ce.a(n))},pe.prototype.onRefreshItems=function(e){for(var t,n,i,o=null,r=null,s=0;o=e.next();){for(i=this.indexes[o.id];0!==s&&null!==r&&r<i;r++)(t=this.heightMap[r]).top+=s,this.onRefreshItem(t);t=this.heightMap[i],n=o.getHeight(),t.top+=s,s+=n-t.height,t.height=n,this.onRefreshItem(t,!0),r=i+1}if(0!==s&&null!==r)for(;r<this.heightMap.length;r++)(t=this.heightMap[r]).top+=s,this.onRefreshItem(t)},pe.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1)},pe.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},pe.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},pe.prototype.itemAtIndex=function(e){return this.heightMap[e]},pe.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},pe.prototype.createViewItem=function(e){throw new Error("not implemented")},pe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},pe);function pe(){this.heightMap=[],this.indexes={}}var fe,ge=(fe=function(e,t){return(fe=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}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),me=(ve.prototype.preventDefault=function(){},ve.prototype.stopPropagation=function(){},Object.defineProperty(ve.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),ve);function ve(e,t,n){this._posx=e,this._posy=t,this._target=n}var _e,be=(ge(ye,_e=me),ye.prototype.preventDefault=function(){this.originalEvent.preventDefault()},ye.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},ye);function ye(e){var t=_e.call(this,e.posx,e.posy,e.target)||this;return t.originalEvent=e,t}var Ce,we=(ge(Se,Ce=me),Se.prototype.preventDefault=function(){this.originalEvent.preventDefault()},Se.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},Se);function Se(e,t,n){var i=Ce.call(this,e,t,n.target)||this;return i.originalEvent=n,i}var Oe,Le=n(888),De=n(453),xe=(Oe=function(e,t){return(Oe=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}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ne=(ke.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){}t={element:i,templateId:e,templateData:o}}return t},ke.prototype.release=function(e,t){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},ke.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},ke.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]}))},ke.prototype.dispose=function(){this.garbageCollect(),this._cache=null},ke);function ke(e){this.context=e,this._cache={"":[]}}var Ee=(Object.defineProperty(Ie.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"loading",{set:function(e){e?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(Ie.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}),Ie.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},Ie.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},Ie.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 s=te.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",s)}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 a=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(a!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),a?(this.uri=a,this.draggable=!0,this.unbindDragStart=r.j(this.element,"dragstart",(function(e){t.onDragStart(e)}))):this.uri=null),!e&&this.element){var l=0;if(this.context.horizontalScrolling){var u=window.getComputedStyle(this.element);l=parseFloat(u.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=J.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(e){}this.context.horizontalScrolling&&(this.width=r.B(this.element)+l,this.element.style.width="")}}},Ie.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[Ae.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){e.appendChild(this.element)}this.render()}},Ie.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[Ae.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},Ie.prototype.dispose=function(){this.row=null},Ie);function Ie(e,t){var n=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=P.a.None,this._draggable=!1,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")}var Me,Te=(xe(Pe,Me=Ee),Pe.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(" ")}},Pe.prototype.insertInDOM=function(e,t){},Pe.prototype.removeFromDOM=function(){},Pe);function Pe(e,t,n){var i=Me.call(this,e,t)||this;return i.row={element:n,templateData:null,templateId:null},i}var Re,Ae=(xe(Fe,Re=he),Fe.prototype.applyStyles=function(e){this.treeStyler.style(e)},Fe.prototype.createViewItem=function(e){return new Ee(this.context,e)},Fe.prototype.getHTMLElement=function(){return this.domNode},Fe.prototype.focus=function(){this.domNode.focus()},Fe.prototype.isFocused=function(){return document.activeElement===this.domNode},Fe.prototype.blur=function(){this.domNode.blur()},Fe.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout((function(){return e.msGesture.target=e.wrapper}),100))},Fe.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},Fe.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||r.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||r.B(this.wrapper)))},Fe.prototype.render=function(e,t,n,i,o){var r,s,a=e,l=e+t,u=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(l)-1,s=this.indexAt(Math.max(u,a));s<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(l))-1,s=this.indexAt(a);s<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(u));r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));for(r=Math.max(this.indexAfter(l),this.indexAt(this.lastRenderTop)),s=this.indexAfter(u);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=l-a},Fe.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)},Fe.prototype.onRefreshing=function(){this.isRefreshing=!0},Fe.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},Fe.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e,this.updateScrollWidth())},Fe.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}))},Fe.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)}},Fe.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(Fe.prototype,"viewHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},set:function(e){this.scrollableElement.setScrollDimensions({height:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"scrollHeight",{set:function(e){e+=this.horizontalScrolling?10:0,this.scrollableElement.setScrollDimensions({scrollHeight:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"viewWidth",{get:function(){return this.scrollableElement.getScrollDimensions().width},set:function(e){this.scrollableElement.setScrollDimensions({width:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e})},enumerable:!0,configurable:!0}),Object.defineProperty(Fe.prototype,"scrollTop",{get:function(){return this.scrollableElement.getScrollPosition().scrollTop},set:function(e){var t=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:t}),this.scrollableElement.setScrollPosition({scrollTop:e})},enumerable:!0,configurable:!0}),Fe.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new ce.e(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},Fe.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new Te(this.context,e.item,this.wrapper)},Fe.prototype.onItemChildrenRefreshing=function(e){var t=e.item,n=this.items[t.id];if(n&&this.context.options.showLoading&&(n.loadingTimer=setTimeout((function(){n.loadingTimer=0,n.loading=!0}),Fe.LOADING_DECORATION_DELAY)),!e.isNested){for(var i=[],o=t.getNavigator(),r=void 0;r=o.next();)i.push(r.id);this.refreshingPreviousChildrenIds[t.id]=i}},Fe.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=this.refreshingPreviousChildrenIds[n.id],r=[],s=n.getNavigator(),a=void 0;a=s.next();)r.push(a);var l=1e3<Math.abs(o.length-r.length),u=[],c=!1;if(l||(c=(u=new Q.a({getElements:function(){return o}},{getElements:function(){return r.map((function(e){return e.id}))}},null).ComputeDiff(!1).changes).some((function(e){if(0<e.modifiedLength)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n<i;n++)if(t.items.hasOwnProperty(r[n].id))return!0;return!1}))),!l&&!c&&u.length<50)for(var d=0,h=u;d<h.length;d++){var p=h[d];if(0<p.originalLength&&this.onRemoveItems(new ce.a(o,p.originalStart,p.originalStart+p.originalLength)),0<p.modifiedLength){var f=r[p.modifiedStart-1]||n;f=0<f.getDepth()?f:null,this.onInsertItems(new ce.a(r,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null)}}else(l||u.length)&&(this.onRemoveItems(new ce.a(o)),this.onInsertItems(new ce.a(r),0<n.getDepth()?n.id:null));(l||u.length)&&this.onRowsChanged()}},Fe.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},Fe.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter((function(e){return t.items.hasOwnProperty(e.id)}))),this.onRowsChanged()},Fe.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},Fe.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)||0,o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},Fe.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new ce.e(t.getNavigator(),(function(e){return e&&e.id}))),this.onRowsChanged())},Fe.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=1<(n=n<0?0:n)?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:s<=r&&(this.scrollTop=r-this.viewHeight)}},Fe.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(r.f(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},Fe.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(r.P(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},Fe.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();r.Y(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",te.L(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},Fe.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},Fe.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},Fe.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},Fe.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},Fe.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new ne.b(e),n=this.getItemAround(t.target);n&&(J.i&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},Fe.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new ne.b(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},Fe.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new ne.b(e);if(!(t.ctrlKey&&a.f&&a.e)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},Fe.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new ne.b(e);if(!(t.ctrlKey&&a.f&&a.e)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)}}},Fe.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},Fe.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},Fe.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i=new ie.a(e),o=void 0;if(n=this.model.getFocus()){var s=this.context.dataSource.getId(this.context.tree,n),a=this.items[s];o=r.C(a.element)}else n=this.model.getInput(),o=r.C(this.inputItem.element);t=new we(o.left+o.width,o.top,i)}else{var l=new ne.b(e),u=this.getItemAround(l.target);if(!u)return;n=u.model.getElement(),t=new be(l)}this.context.controller.onContextMenu(this.context.tree,n,t)},Fe.prototype.onKeyDown=function(e){var t=new ie.a(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))},Fe.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ie.a(e))},Fe.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,i=e.model.getElement(),o=this.model.getSelection();if(n=-1<o.indexOf(i)?o:[i],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(Le.a.RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var r;r=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var s=document.createElement("div");s.className="monaco-tree-drag-image",s.textContent=r,document.body.appendChild(s),t.dataTransfer.setDragImage(s,-10,-10),setTimeout((function(){return document.body.removeChild(s)}),0)}this.currentDragAndDropData=new oe(n),Le.c.CurrentDragAndDropData=new se(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new ne.a(t))}},Fe.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=r.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval((function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):o<n&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}}),10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout((function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null}),1e3))},Fe.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},Fe.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},Fe.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,i=new ne.a(e),o=this.getItemAround(i.target);if(!o||0===i.posx&&0===i.posy&&i.browserEvent.type===r.d.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=i.posy,!this.currentDragAndDropData)if(Le.c.CurrentDragAndDropData)this.currentDragAndDropData=Le.c.CurrentDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new le}this.currentDragAndDropData.update(i.browserEvent.dataTransfer);var s,a=o.model;do{if(n=a?a.getElement():this.model.getInput(),!(s=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,i))||1!==s.bubble)break;a=a&&a.parent}while(a);if(!a)return this.currentDropElement=null,!1;var l=s&&s.accept;l?(this.currentDropElement=a.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=0===s.effect?"copy":"move"):this.currentDropElement=null;var u,c,d=a.id===this.inputItem.id?this.inputItem:this.items[a.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(c=s,!(!(u=this.currentDropElementReaction)&&!c||u&&c&&u.accept===c.accept&&u.bubble===c.bubble&&u.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,l)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===s.bubble)for(var h=a.getNavigator(),p=void 0;p=h.next();)(o=this.items[p.id])&&(o.dropTarget=!0,this.currentDropTargets.push(o));if(s.autoExpand){var f=Object(De.l)(500);this.currentDropDisposable=P.h((function(){return f.cancel()})),f.then((function(){return t.context.tree.expand(t.currentDropElement)})).then((function(){return t.shouldInvalidateDropReaction=!0}))}}return!0},Fe.prototype.onDrop=function(e){if(this.currentDropElement){var t=new ne.a(e);t.preventDefault(),this.currentDragAndDropData.update(t.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},Fe.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,Le.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},Fe.prototype.onFocus=function(){this.context.options.alwaysFocused||r.f(this.domNode,"focused"),this._onDOMFocus.fire()},Fe.prototype.onBlur=function(){this.context.options.alwaysFocused||r.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},Fe.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"}},Fe.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},Fe.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},Fe.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},Fe.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},Fe.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop},Fe.prototype.getItemAround=function(e){var t=this.inputItem,n=e;do{if(n[Fe.BINDING]&&(t=n[Fe.BINDING]),n===this.wrapper||n===this.domNode)return t;if(n===this.scrollableElement.getDomNode()||n===document.body)return}while(n=n.parentElement)},Fe.prototype.releaseModel=function(){this.model&&(this.modelListeners=P.f(this.modelListeners),this.model=null)},Fe.prototype.dispose=function(){var e=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=P.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach((function(t){return e.items[t].removeFromDOM()})),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),Re.prototype.dispose.call(this)},Fe.BINDING="monaco-tree-row",Fe.LOADING_DECORATION_DELAY=800,Fe.counter=0,Fe);function Fe(e,t){var n=Re.call(this)||this;n.model=null,n.lastPointerType="",n.lastClickTimeStamp=0,n.contentWidthUpdateDelayer=new De.a(50),n.isRefreshing=!1,n.refreshingPreviousChildrenIds={},n.currentDragAndDropData=null,n.currentDropTarget=null,n.currentDropTargets=null,n.currentDropDisposable=P.a.None,n.gestureDisposable=P.a.None,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.dragAndDropMouseY=null,n.highlightedItemWasDraggable=!1,n.onHiddenScrollTop=null,n._onDOMFocus=new R.a,n.onDOMFocus=n._onDOMFocus.event,n._onDOMBlur=new R.a,n._onDidScroll=new R.a,Fe.counter++,n.instance=Fe.counter;var i=void 0===e.options.horizontalScrollMode?2:e.options.horizontalScrollMode;n.horizontalScrolling=2!==i,n.context={dataSource:e.dataSource,renderer:e.renderer,controller:e.controller,dnd:e.dnd,filter:e.filter,sorter:e.sorter,tree:e.tree,accessibilityProvider:e.accessibilityProvider,options:e.options,cache:new Ne(e),horizontalScrolling:n.horizontalScrolling},n.modelListeners=[],n.viewListeners=[],n.items={},n.domNode=document.createElement("div"),n.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+n.instance,n.domNode.tabIndex=e.options.preventRootFocus?-1:0,n.styleElement=r.w(n.domNode),n.treeStyler=e.styler||new E(n.styleElement,"monaco-tree-instance-"+n.instance),n.domNode.setAttribute("role","tree"),n.context.options.ariaLabel&&n.domNode.setAttribute("aria-label",n.context.options.ariaLabel),n.context.options.alwaysFocused&&r.f(n.domNode,"focused"),n.context.options.paddingOnRow||r.f(n.domNode,"no-row-padding"),n.wrapper=document.createElement("div"),n.wrapper.className="monaco-tree-wrapper",n.scrollableElement=new de.b(n.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:i,vertical:void 0!==e.options.verticalScrollMode?e.options.verticalScrollMode:1,useShadows:e.options.useShadows}),n.scrollableElement.onScroll((function(e){n.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),n._onDidScroll.fire()})),J.i?(n.wrapper.style.msTouchAction="none",n.wrapper.style.msContentZooming="none"):n.gestureDisposable=ee.b.addTarget(n.wrapper),n.rowsContainer=document.createElement("div"),n.rowsContainer.className="monaco-tree-rows",e.options.showTwistie&&(n.rowsContainer.className+=" show-twisties");var o=r.Z(n.domNode);return n.viewListeners.push(o.onDidFocus((function(){return n.onFocus()}))),n.viewListeners.push(o.onDidBlur((function(){return n.onBlur()}))),n.viewListeners.push(o),n.viewListeners.push(r.j(n.domNode,"keydown",(function(e){return n.onKeyDown(e)}))),n.viewListeners.push(r.j(n.domNode,"keyup",(function(e){return n.onKeyUp(e)}))),n.viewListeners.push(r.j(n.domNode,"mousedown",(function(e){return n.onMouseDown(e)}))),n.viewListeners.push(r.j(n.domNode,"mouseup",(function(e){return n.onMouseUp(e)}))),n.viewListeners.push(r.j(n.wrapper,"auxclick",(function(e){e&&1===e.button&&n.onMouseMiddleClick(e)}))),n.viewListeners.push(r.j(n.wrapper,"click",(function(e){return n.onClick(e)}))),n.viewListeners.push(r.j(n.domNode,"contextmenu",(function(e){return n.onContextMenu(e)}))),n.viewListeners.push(r.j(n.wrapper,ee.a.Tap,(function(e){return n.onTap(e)}))),n.viewListeners.push(r.j(n.wrapper,ee.a.Change,(function(e){return n.onTouchChange(e)}))),J.i&&(n.viewListeners.push(r.j(n.wrapper,"MSPointerDown",(function(e){return n.onMsPointerDown(e)}))),n.viewListeners.push(r.j(n.wrapper,"MSGestureTap",(function(e){return n.onMsGestureTap(e)}))),n.viewListeners.push(r.m(n.wrapper,"MSGestureChange",(function(e){return n.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})))),n.viewListeners.push(r.j(window,"dragover",(function(e){return n.onDragOver(e)}))),n.viewListeners.push(r.j(n.wrapper,"drop",(function(e){return n.onDrop(e)}))),n.viewListeners.push(r.j(window,"dragend",(function(e){return n.onDragEnd(e)}))),n.viewListeners.push(r.j(window,"dragleave",(function(e){return n.onDragOver(e)}))),n.wrapper.appendChild(n.rowsContainer),n.domNode.appendChild(n.scrollableElement.getDomNode()),t.appendChild(n.domNode),n.lastRenderTop=0,n.lastRenderHeight=0,n.didJustPressContextMenuKey=!1,n.currentDropTarget=null,n.currentDropTargets=[],n.shouldInvalidateDropReaction=!1,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.onRowsChanged(),n.layout(),n.setupMSGesture(),n.applyStyles(e.options),n}var je=n(490),We=n(505),Ve=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 w({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new O,this.filter=t.filter||new D,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new N,this.styler=t.styler},Be={listFocusBackground:je.a.fromHex("#073655"),listActiveSelectionBackground:je.a.fromHex("#0E639C"),listActiveSelectionForeground:je.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:je.a.fromHex("#094771"),listFocusAndSelectionForeground:je.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:je.a.fromHex("#3F3F46"),listHoverBackground:je.a.fromHex("#2A2D2E"),listDropBackground:je.a.fromHex("#383B3D")},He=(ze.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(ze.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),ze.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},ze.prototype.layout=function(e,t){this.view.layout(e,t)},ze.prototype.domFocus=function(){this.view.focus()},ze.prototype.isDOMFocused=function(){return this.view.isFocused()},ze.prototype.domBlur=function(){this.view.blur()},ze.prototype.setInput=function(e){return this.model.setInput(e)},ze.prototype.getInput=function(){return this.model.getInput()},ze.prototype.expand=function(e){return this.model.expand(e)},ze.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},ze.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},ze.prototype.isExpanded=function(e){return this.model.isExpanded(e)},ze.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},ze.prototype.getHighlight=function(){return this.model.getHighlight()},ze.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},ze.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},ze.prototype.getSelection=function(){return this.model.getSelection()},ze.prototype.clearSelection=function(e){this.model.setSelection([],e)},ze.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},ze.prototype.getFocus=function(){return this.model.getFocus()},ze.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},ze.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},ze.prototype.focusParent=function(e){this.model.focusParent(e)},ze.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},ze.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},ze.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},ze.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},ze.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},ze.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},ze.prototype.clearFocus=function(e){this.model.setFocus(null,e)},ze.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},ze);function ze(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new R.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new R.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new R.f,this._onDidExpandItem=new R.f,this._onDidCollapseItem=new R.f,this._onDispose=new R.a,this.onDidDispose=this._onDispose.event,this.container=e,Object(We.g)(n,Be,!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 Ve(this,t,n),this.model=new X(this.context),this.view=new Ae(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}n(1360);var Ue,Ke,qe=(Ue=function(e,t){return(Ue=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}Ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ge={progressBarBackground:je.a.fromHex("#0E70C0")},Ye=(qe(Ze,Ke=P.a),Ze.prototype.create=function(e){this.element=document.createElement("div"),Object(r.f)(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),Object(r.f)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},Ze.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(r.Q)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},Ze.prototype.stop=function(){return this.doDone(!1)},Ze.prototype.doDone=function(e){var t=this;return Object(r.f)(this.element,"done"),Object(r.I)(this.element,"infinite")?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout((function(){return t.off()}),200):this.off(),this},Ze.prototype.hide=function(){Object(r.J)(this.element),this.showDelayedScheduler.cancel()},Ze.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},Ze.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}},Ze);function Ze(e,t){var n=Ke.call(this)||this;return n.options=t||Object.create(null),Object(We.g)(n.options,Ge,!1),n.workedVal=0,n.progressBarBackground=n.options.progressBarBackground,n._register(n.showDelayedScheduler=new De.d((function(){return Object(r.X)(n.element)}),0)),n.create(e),n}var Xe,$e,Je=(Xe=function(e,t){return(Xe=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}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Qe=(Je(et,$e=w),et.prototype.onContextMenu=function(e,t,n){return a.e?this.onLeftClick(e,t,n):$e.prototype.onContextMenu.call(this,e,t,n)},et);function et(){return null!==$e&&$e.apply(this,arguments)||this}var tt,nt={background:je.a.fromHex("#1E1E1E"),foreground:je.a.fromHex("#CCCCCC"),pickerGroupForeground:je.a.fromHex("#0097FB"),pickerGroupBorder:je.a.fromHex("#3F3F46"),widgetShadow:je.a.fromHex("#000000"),progressBarBackground:je.a.fromHex("#0E70C0")},it=s.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),ot=(Je(rt,tt=P.a),rt.prototype.getModel=function(){return this.model},rt.prototype.create=function(){var e=this;this.element=document.createElement("div"),r.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(r.j(this.element,r.d.CONTEXT_MENU,(function(e){return r.c.stop(e,!0)}))),this._register(r.j(this.element,r.d.FOCUS,(function(t){return e.gainingFocus()}),!0)),this._register(r.j(this.element,r.d.BLUR,(function(t){return e.loosingFocus(t)}),!0)),this._register(r.j(this.element,r.d.KEY_DOWN,(function(t){var n=new ie.a(t);if(9===n.keyCode)r.c.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]?(r.c.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(r.c.stop(t,!0),i[0].focus())}}))),this.progressBar=this._register(new Ye(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),r.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new v.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:it,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(r.j(this.inputBox.inputElement,r.d.INPUT,(function(t){return e.onType()}))),this._register(r.j(this.inputBox.inputElement,r.d.KEY_DOWN,(function(t){var n=new ie.a(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.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){r.c.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1)}}))),this.resultCount=document.createElement("div"),r.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),r.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new He(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new u(this),controller:new Qe({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new g(this,this.styles),filter:new p(this),accessibilityProvider:new d(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:s.a("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&&0<t.selection.length){var n=t.payload&&t.payload.originalEvent instanceof ne.b?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?2:1)}}))),this._register(r.j(this.treeContainer,r.d.KEY_DOWN,(function(t){var n=new ie.a(t);if(e.quickNavigateConfiguration)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.stop(t,!0),e.navigateInTree(n.keyCode);else if(3===n.keyCode){r.c.stop(t,!0);var i=e.tree.getFocus();i&&e.elementSelected(i,t)}}))),this._register(r.j(this.treeContainer,r.d.KEY_UP,(function(t){var n=new ie.a(t),i=n.keyCode;if(e.quickNavigateConfiguration&&e.quickNavigateConfiguration.keybindings.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 o=e.tree.getFocus();o&&e.elementSelected(o,t)}}))),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(r.j(this.treeContainer,r.d.KEY_DOWN,(function(t){var n=new ie.a(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(r.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())}))),this.element},rt.prototype.style=function(e){this.styles=e,this.applyStyles()},rt.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():"",t=this.styles.background?this.styles.background.toString():"",n=this.styles.borderColor?this.styles.borderColor.toString():"",i=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.boxShadow=i?"0 5px 8px "+i:""}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)},rt.prototype.shouldOpenInBackground=function(e){if(e instanceof ie.a){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},rt.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?r.J(this.helpText):r.X(this.helpText)),this.callbacks.onType(e)},rt.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();1<i.length&&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)},rt.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){var n=this.treeElement.getAttribute("aria-activedescendant");n?this.inputElement.setAttribute("aria-activedescendant",n):this.inputElement.removeAttribute("aria-activedescendant");var i={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,i)}},rt.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)},rt.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)}},rt.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(r.J(this.inputContainer),r.X(this.element),this.tree.domFocus()):(r.X(this.inputContainer),r.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||l.j(e)?r.J(this.helpText):r.X(this.helpText)),l.j(e)?this.doShowWithPrefix(e):(t&&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()},rt.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},rt.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},rt.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},rt.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&&0<e.entries.length)),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)}))},rt.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},rt.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,l=t;a<l.length;a++){var u=l[a],c=e.dataSource.getLabel(u)||"";if(i||0!==c.indexOf(r)?o||0!==c.toLowerCase().indexOf(s)||(o=u):i=u,i&&o)break}var d=i||o;if(d)return this.tree.setFocus(d),void this.tree.reveal(d,.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?1<t.length&&this.tree.focusNth(1):n.autoFocusLastEntry&&1<t.length&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus()))},rt.prototype.getHeight=function(e){var t=this,n=e.renderer;if(!e){var i=n.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*i:0}var o,r=0;this.layoutDimensions&&this.layoutDimensions.height&&(o=.4*(this.layoutDimensions.height-50)),(!o||rt.MAX_ITEMS_HEIGHT<o)&&(o=rt.MAX_ITEMS_HEIGHT);for(var s=e.entries.filter((function(n){return t.isElementVisible(e,n)})),a=this.options.maxItemsToShow||s.length,l=0;l<a&&l<s.length;l++){var u=n.getHeight(s[l]);if(!(r+u<=o))break;r+=u}return r},rt.prototype.updateResultCount=function(e){this.resultCount.textContent=s.a({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",e)},rt.prototype.hide=function(e){this.isVisible()&&(this.visible=!1,r.J(this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?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))},rt.prototype.setInput=function(e,t,n){this.isVisible()&&(this.getInput()&&this.onInputChanging(),this.setInputAndLayout(e,t),this.inputBox&&this.inputBox.setAriaLabel(n||it))},rt.prototype.onInputChanging=function(){var e=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),r.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout((function(){r.P(e.element,"content-changing")}),500)},rt.prototype.getInput=function(){return this.tree.getInput()},rt.prototype.isVisible=function(){return this.visible},rt.prototype.layout=function(e){this.layoutDimensions=e;var t=Math.min(.62*this.layoutDimensions.width,rt.MAX_WIDTH);this.element&&(this.element.style.width=t+"px",this.element.style.marginLeft="-"+t/2+"px",this.inputContainer.style.width=t-12+"px")},rt.prototype.gainingFocus=function(){this.isLoosingFocus=!1},rt.prototype.loosingFocus=function(e){var t=this;if(this.isVisible()){var n=e.relatedTarget;!this.quickNavigateConfiguration&&r.K(n,this.element)||(this.isLoosingFocus=!0,setTimeout((function(){t.isLoosingFocus&&!t.isDisposed&&(t.callbacks.onFocusLost&&t.callbacks.onFocusLost()||t.hide(1))}),0))}},rt.prototype.dispose=function(){tt.prototype.dispose.call(this),this.isDisposed=!0},rt.MAX_WIDTH=600,rt.MAX_ITEMS_HEIGHT=440,rt);function rt(e,t,n){var i=tt.call(this)||this;return i.isDisposed=!1,i.container=e,i.callbacks=t,i.options=n,i.styles=n||Object.create(null),Object(We.g)(i.styles,nt,!1),i.model=null,i}var st=n(461),at=n(826),lt=(ut.prototype.setInput=function(e,t){this.quickOpenWidget.setInput(e,t)},ut.prototype.getId=function(){return ut.ID},ut.prototype.getDomNode=function(){return this.domNode},ut.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},ut.prototype.show=function(e){this.visible=!0;var t=this.codeEditor.getLayoutInfo();t&&this.quickOpenWidget.layout(new r.b(t.width,t.height)),this.quickOpenWidget.show(e),this.codeEditor.layoutOverlayWidget(this)},ut.prototype.getPosition=function(){return this.visible?{preference:2}:null},ut.ID="editor.contrib.quickOpenEditorWidget",ut);function ut(e,t,n,i,o,r){this.codeEditor=e,this.themeService=r,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new ot(this.domNode,{onOk:t,onCancel:n,onType:i},{inputPlaceHolder:void 0,inputAriaLabel:o.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(at.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:st.W}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}var ct=n(451);n.d(t,"a",(function(){return mt}));var dt,ht=(dt=function(e,t){return(dt=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}dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pt=(ft.get=function(e){return e.getContribution(ft.ID)},ft.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},ft.prototype.run=function(e){var t=this;function n(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&&(this.widget.destroy(),this.widget=null),this.widget=new lt(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("")},ft.prototype.decorateLine=function(e,t){var n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var i=[{range:e,options:ft._RANGE_HIGHLIGHT_DECORATION}],o=t.deltaDecorations(n,i);this.rangeHighlightDecorationId=o[0]},ft.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},ft.ID="editor.controller.quickOpenController",ft._RANGE_HIGHLIGHT_DECORATION=o.a.register({className:"rangeHighlight",isWholeLine:!0}),ft=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,ct.c)],ft));function ft(e,t){this.themeService=t,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=e}var gt,mt=(ht(vt,gt=i.b),vt.prototype.getController=function(e){return pt.get(e)},vt.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},vt);function vt(e,t){var n=gt.call(this,t)||this;return n._inputAriaLabel=e,n}Object(i.h)(pt.ID,pt)},function(e,t,n){"use strict";var i,o,r=n(443),s=n(972),a=n(439),l=n(445),u=n(573),c=n(789),d=n(456),h=n(448),p=n(531),f=n(571),g=n(826),m=n(451),v=(n(1364),n(442)),_=n(701),b=n(888),y=n(459),C=n(973),w=n(686),S=n(760),O=((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)})(L,o=Error),L);function L(e,t){return o.call(this,"TreeError ["+e+"] "+t)||this}var D=(x.prototype.map=function(e){var t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t},x);function x(e){this.fn=e,this._map=new WeakMap}var N=n(700),k=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function E(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function I(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function M(e){return"boolean"==typeof e.collapsible}var T=(P.prototype.splice=function(e,t,n,i,o){var r,s=this;if(0===e.length)throw new O(this.user,"Invalid tree location");for(var a=this.getParentNodeWithListIndex(e),l=a.parentNode,u=a.listIndex,c=a.revealed,d=a.visible,h=[],p=N.d.map(N.d.from(n),(function(e){return s.createTreeNode(e,l,l.visible?1:0,c,h,i)})),f=e[e.length-1],g=0,m=f;0<=m&&m<l.children.length;m--)if((L=l.children[m]).visible){g=L.visibleChildIndex;break}var v=[],_=0,b=0;N.d.forEach(p,(function(e){v.push(e),b+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+_++)}));for(var y=(r=l.children).splice.apply(r,k([f,t],v)),C=0,w=0,S=y;w<S.length;w++)(L=S[w]).visible&&C++;if(0!==C)for(m=f+v.length;m<l.children.length;m++){var L;(L=l.children[m]).visible&&(L.visibleChildIndex-=C)}if(l.visibleChildrenCount+=_-C,c&&d){var D=y.reduce((function(e,t){return e+(t.visible?t.renderNodeCount:0)}),0);this._updateAncestorsRenderNodeCount(l,b-D),this.list.splice(u,D,h)}0<y.length&&o&&y.forEach((function e(t){o(t),t.children.forEach(e)})),this._onDidSplice.fire({insertedNodes:v,deletedNodes:y})},P.prototype.rerender=function(e){if(0===e.length)throw new O(this.user,"Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,i=t.listIndex;t.revealed&&this.list.splice(i,1,[n])},P.prototype.has=function(e){return this.hasTreeNode(e)},P.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,i=t.visible,o=t.revealed;return i&&o?n:-1},P.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},P.prototype.isCollapsible=function(e){return this.getTreeNode(e).collapsible},P.prototype.setCollapsible=function(e,t){var n=this,i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);var o={collapsible:t};return this.eventBufferer.bufferEvents((function(){return n._setCollapseState(e,o)}))},P.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},P.prototype.setCollapsed=function(e,t,n){var i=this,o=this.getTreeNode(e);void 0===t&&(t=!o.collapsed);var r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents((function(){return i._setCollapseState(e,r)}))},P.prototype._setCollapseState=function(e,t){var n=this.getTreeNodeWithListIndex(e),i=n.node,o=n.listIndex,r=n.revealed,s=this._setListNodeCollapseState(i,o,r,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!M(t)&&i.collapsible&&!i.collapsed&&!t.recursive){for(var a=-1,l=0;l<i.children.length;l++)if(i.children[l].visible){if(-1<a){a=-1;break}a=l}-1<a&&this._setCollapseState(k(e,[a]),t)}return s},P.prototype._setListNodeCollapseState=function(e,t,n,i){var o=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!o)return o;var r=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=r-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),o},P.prototype._setNodeCollapseState=function(e,t,n){var i;if(e===this.root?i=!1:(M(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!M(t)&&t.recursive)for(var o=0,r=e.children;o<r.length;o++){var s=r[o];i=this._setNodeCollapseState(s,t,!0)||i}return i},P.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents((function(){for(var n=t.getTreeNode(e);n.parent;)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapseState(e,{collapsed:!1,recursive:!1})}))},P.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},P.prototype.createTreeNode=function(e,t,n,i,o,r){var s=this,a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},l=this._filterNode(a,n);i&&o.push(a);var u=N.d.from(e.children),c=i&&0!==l&&!a.collapsed,d=N.d.map(u,(function(e){return s.createTreeNode(e,a,l,c,o,r)})),h=0,p=1;return N.d.forEach(d,(function(e){a.children.push(e),p+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)})),a.collapsible=a.collapsible||0<a.children.length,a.visibleChildrenCount=h,a.visible=2===l?0<h:1===l,a.visible?a.collapsed||(a.renderNodeCount=p):(a.renderNodeCount=0,i&&o.pop()),r&&r(a),a},P.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},P.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,i=e.children;n<i.length;n++){var o=i[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(o,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},P.prototype.updateNodeAfterFilterChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},P.prototype._updateNodeAfterFilterChange=function(e,t,n,i){var o;if(void 0===i&&(i=!0),e!==this.root){if(0===(o=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}var r=n.length;e.renderNodeCount=e===this.root?0:1;var s=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{for(var a=0,l=0,u=e.children;l<u.length;l++){var c=u[l];s=this._updateNodeAfterFilterChange(c,o,n,i&&!e.collapsed)||s,c.visible&&(c.visibleChildIndex=a++)}e.visibleChildrenCount=a}return e!==this.root&&(e.visible=2===o?s:1===o),e.visible?e.collapsed||(e.renderNodeCount+=n.length-r):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},P.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},P.prototype._filterNode=function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof n?(e.filterData=void 0,n?1:0):E(n)?(e.filterData=n.data,I(n.visibility)):(e.filterData=void 0,I(n))},P.prototype.hasTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return!0;var n=e[0],i=e.slice(1);return!(n<0||n>t.children.length)&&this.hasTreeNode(i,t.children[n])},P.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],i=e.slice(1);if(n<0||n>t.children.length)throw new O(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])},P.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,o=t.revealed,r=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new O(this.user,"Invalid tree location");var a=n.children[s];return{node:a,listIndex:i,revealed:o,visible:r&&a.visible}},P.prototype.getParentNodeWithListIndex=function(e,t,n,i,o){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0);var r=e[0],s=e.slice(1);if(r<0||r>t.children.length)throw new O(this.user,"Invalid tree location");for(var a=0;a<r;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,o=o&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:o}:this.getParentNodeWithListIndex(s,t.children[r],n+1,i,o)},P.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},P.prototype.getNodeLocation=function(e){for(var t=[],n=e;n.parent;)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()},P.prototype.getParentNodeLocation=function(e){return 0===e.length?void 0:1===e.length?[]:Object(y.w)(e)[0]},P);function P(e,t,n,i){void 0===i&&(i={}),this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new v.c,this._onDidChangeCollapseState=new v.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new v.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new v.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}var R,A,F=n(453),j=n(452),W=n(553),V=n(962),B=n(822),H=(R=function(e,t){return(R=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}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),z=function(){return(z=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)},U=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},K=(H(q,A=C.a),q);function q(e){var t=A.call(this,e.elements.map((function(e){return e.element})))||this;return t.data=e,t}function G(e){return e instanceof C.a?new K(e):e}var Y=(Z.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},Z.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},Z.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(G(e),t)},Z.prototype.onDragOver=function(e,t,n,i,o){var r=this;void 0===o&&(o=!0);var s=this.dnd.onDragOver(G(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return s;if(a&&"boolean"!=typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(F.g)((function(){var e=r.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),r.autoExpandNode=void 0}),500)),"boolean"==typeof s||!s.accept||void 0===s.bubble||s.feedback)return o?s:{accept:"boolean"==typeof s?s:s.accept,effect:"boolean"==typeof s?void 0:s.effect,feedback:[n]};if(1===s.bubble){var l=this.modelProvider(),u=l.getNodeLocation(t),c=l.getParentNodeLocation(u),d=l.getNode(c),h=c&&l.getListIndex(c);return this.onDragOver(e,d,h,i,!1)}var p=this.modelProvider(),f=p.getNodeLocation(t),g=p.getListIndex(f),m=p.getListRenderCount(f);return z(z({},s),{feedback:Object(y.u)(g,g+m)})},Z.prototype.drop=function(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(G(e),t&&t.element,n,i)},Z.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},Z);function Z(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.a.None}var X,$,J=(Q.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},Q.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},Q.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},Q.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},Q);function Q(e){this.delegate=e}($=X=X||{}).None="none",$.OnHover="onHover",$.Always="always";var ee=(Object.defineProperty(te.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),te);function te(e,t){var n=this;void 0===t&&(t=[]),this._elements=t,this.onDidChange=v.b.forEach(e,(function(e){return n._elements=e}))}var ne=(ie.prototype.updateOptions=function(e){if(void 0===e&&(e={}),void 0!==e.indent&&(this.indent=Object(V.a)(e.indent,0,40)),void 0!==e.renderIndentGuides){var t=e.renderIndentGuides!==X.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){var n=new a.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)},ie.prototype.renderTemplate=function(e){var t=Object(r.q)(e,Object(r.a)(".monaco-tl-row")),n=Object(r.q)(t,Object(r.a)(".monaco-tl-indent")),i=Object(r.q)(t,Object(r.a)(".monaco-tl-twistie")),o=Object(r.q)(t,Object(r.a)(".monaco-tl-contents")),s=this.renderer.renderTemplate(o);return{container:e,indent:n,twistie:i,indentGuidesDisposable:a.a.None,templateData:s}},ie.prototype.renderElement=function(e,t,n,i){"number"==typeof i&&(this.renderedNodes.set(e,{templateData:n,height:i}),this.renderedElements.set(e.element,e));var o=ie.DefaultIndent+(e.depth-1)*this.indent;n.twistie.style.paddingLeft=o+"px",n.indent.style.width=o+this.indent-16+"px",this.renderTwistie(e,n),"number"==typeof i&&this.renderIndentGuides(e,n),this.renderer.renderElement(e,t,n.templateData,i)},ie.prototype.disposeElement=function(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"==typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},ie.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},ie.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},ie.prototype.onDidChangeNodeTwistieState=function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))},ie.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||0<e.visibleChildrenCount)?(Object(r.g)(t.twistie,"codicon","codicon-chevron-down","collapsible"),Object(r.Y)(t.twistie,"collapsed",e.collapsed)):Object(r.Q)(t.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},ie.prototype.renderIndentGuides=function(e,t){var n=this;if(Object(r.t)(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){for(var i=new a.b,o=this.modelProvider(),s=e,l=function(){var e=o.getNodeLocation(s),l=o.getParentNodeLocation(e);if(!l)return"break";var c=o.getNode(l),d=Object(r.a)(".indent-guide",{style:"width: "+u.indent+"px"});u.activeIndentNodes.has(c)&&Object(r.f)(d,"active"),0===t.indent.childElementCount?t.indent.appendChild(d):t.indent.insertBefore(d,t.indent.firstElementChild),u.renderedIndentGuides.add(c,d),i.add(Object(a.h)((function(){return n.renderedIndentGuides.delete(c,d)}))),s=c},u=this;"break"!==l(););t.indentGuidesDisposable=i}},ie.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this.shouldRenderIndentGuides){var n=new Set,i=this.modelProvider();e.forEach((function(e){var t=i.getNodeLocation(e);try{var o=i.getParentNodeLocation(t);e.collapsible&&0<e.children.length&&!e.collapsed?n.add(e):o&&n.add(i.getNode(o))}catch(e){}})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(r.P)(e,"active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(r.f)(e,"active")}))})),this.activeIndentNodes=n}},ie.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(a.f)(this.disposables)},ie.DefaultIndent=8,ie);function ie(e,t,n,i,o){void 0===o&&(o={}),this.renderer=e,this.modelProvider=t,this.activeNodes=i,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=ie.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new B.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.a.None,this.disposables=new a.b,this.templateId=e.templateId,this.updateOptions(o),v.b.map(n,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}var oe=(Object.defineProperty(re.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(re.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),re.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;if(0===("boolean"==typeof n?n?1:0:E(n)?I(n.visibility):n))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:S.a.Default,visibility:!0};var i=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=i&&i.toString();if(void 0===o)return{data:S.a.Default,visibility:!0};var r=Object(S.d)(this._pattern,this._lowercasePattern,0,o,o.toLowerCase(),0,!0);return r?(this._matchCount++,{data:r,visibility:!0}):this.tree.options.filterOnType?2:{data:S.a.Default,visibility:!0}},re.prototype.reset=function(){this._totalCount=0,this._matchCount=0},re.prototype.dispose=function(){Object(a.f)(this.disposables)},re);function re(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.b,e.onWillRefilter(this.reset,this,this.disposables)}var se=(Object.defineProperty(ae.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(ae.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(ae.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),ae.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},ae.prototype.enable=function(){var e=this;if(!this._enabled){var t=v.b.chain(Object(w.a)(this.view.getHTMLElement(),"keydown")).filter((function(t){return!le(t.target)||t.target===e.filterOnTypeDomNode})).filter((function(e){return"Dead"!==e.key&&!/^Media/.test(e.key)})).map((function(e){return new _.a(e)})).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).filter((function(t){return e.keyboardNavigationDelegate.mightProducePrintableCharacter(t)||(0<e.pattern.length||e.triggered)&&(9===t.keyCode||1===t.keyCode)&&!t.altKey&&!t.ctrlKey&&!t.metaKey||1===t.keyCode&&(j.e?t.altKey&&!t.metaKey:t.ctrlKey)&&!t.shiftKey})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).event,n=Object(w.a)(this.clearDomNode,"click");v.b.chain(v.b.any(t,n)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},ae.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},ae.prototype.onEventOrInput=function(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(j.e?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)},ae.prototype.onInput=function(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,(function(e){return!S.a.isDefault(e.filterData)}));var n=this.tree.getFocus();if(0<n.length){var i=n[0];null===this.tree.getRelativeTop(i)&&this.tree.reveal(i,.5)}this.render(),e||(this.triggered=!1)},ae.prototype.onDragStart=function(){function e(){switch(c){case"nw":t.domNode.style.top="4px",t.domNode.style.left="4px";break;case"ne":t.domNode.style.top="4px",t.domNode.style.left=o-l-6+"px"}}var t=this,n=this.view.getHTMLElement(),i=Object(r.C)(n).left,o=n.clientWidth,s=o/2,l=this.domNode.clientWidth,u=new a.b,c=this.positionClassName;e(),Object(r.P)(this.domNode,c),Object(r.f)(this.domNode,"dragging"),u.add(Object(a.h)((function(){return Object(r.P)(t.domNode,"dragging")}))),Object(w.a)(document,"dragover")((function(t){t.preventDefault();var n=t.screenX-i;t.dataTransfer&&(t.dataTransfer.dropEffect="none"),c=n<s?"nw":"ne",e()}),null,u),Object(w.a)(this.domNode,"dragend")((function(){t.positionClassName=c,t.domNode.className="monaco-list-type-filter "+t.positionClassName,t.domNode.style.top="",t.domNode.style.left="",Object(a.f)(u)}),null,u),b.c.CurrentDragAndDropData=new b.b("vscode-ui"),u.add(Object(a.h)((function(){return b.c.CurrentDragAndDropData=void 0})))},ae.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},ae.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},ae.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(l.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(l.a)("enable filter on type","Enable Filter on Type")},ae.prototype.render=function(){var e=0<this.filter.totalCount&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(l.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(r.Y)(this.domNode,"no-matches",e),this.domNode.title=Object(l.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=16<this.pattern.length?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},ae.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||0<this.filter.totalCount&&this.filter.matchCount<=1||!S.a.isDefault(e.filterData)},ae.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(a.f)(this.disposables)},ae);function ae(e,t,n,i,o){this.tree=e,this.view=n,this.filter=i,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new v.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new v.a,this.enabledDisposables=new a.b,this.disposables=new a.b,this.domNode=Object(r.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(w.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(r.q)(n.getHTMLElement(),Object(r.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(r.q)(this.domNode,Object(r.a)("span.label"));var s=Object(r.q)(this.domNode,Object(r.a)(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(r.q)(s,Object(r.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(w.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(r.q)(s,Object(r.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(l.a)("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}function le(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function ue(e){return{elements:e.elements.map((function(e){return e.element})),browserEvent:e.browserEvent}}function ce(e,t){t(e),e.children.forEach((function(e){return ce(e,t)}))}var de=(Object.defineProperty(he.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),he.prototype.set=function(e,t){Object(y.g)(this.nodes,e)||this._set(e,!1,t)},he.prototype._set=function(e,t,n){if(this.nodes=U(e),this.elements=void 0,this._nodeSet=void 0,!t){var i=this;this._onDidChange.fire({get elements(){return i.get()},browserEvent:n})}},he.prototype.get=function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),U(this.elements)},he.prototype.getNodes=function(){return this.nodes},he.prototype.has=function(e){return this.nodeSet.has(e)},he.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,i=e.deletedNodes;if(!this.identityProvider){var o=this.createNodeSet(),r=function(e){return o.delete(e)};return i.forEach((function(e){return ce(e,r)})),void this.set(Object(W.e)(o))}function s(e){return a.add(t.identityProvider.getId(e.element).toString())}var a=new Set;function l(e){return u.set(t.identityProvider.getId(e.element).toString(),e)}i.forEach((function(e){return ce(e,s)}));var u=new Map;n.forEach((function(e){return ce(e,l)}));for(var c=[],d=0,h=this.nodes;d<h.length;d++){var p=h[d],f=this.identityProvider.getId(p.element).toString();if(a.has(f)){var g=u.get(f);g&&c.push(g)}else c.push(p)}this._set(c,!0)},he.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var i=n[t];e.add(i)}return e},he);function he(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new v.a,this.onDidChange=this._onDidChange.event}var pe,fe=(H(ge,pe=s.d),ge.prototype.onPointer=function(e){if(!le(e.browserEvent.target)){var t=e.element;if(!t)return pe.prototype.onPointer.call(this,e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return pe.prototype.onPointer.call(this,e);var n=Object(r.I)(e.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==e.browserEvent.detail&&!n)return pe.prototype.onPointer.call(this,e);var i;if((i="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!n)return pe.prototype.onPointer.call(this,e);if(t.collapsible){var o=this.tree.model,s=o.getNodeLocation(t),a=e.browserEvent.altKey;if(o.setCollapsed(s,void 0,a),i&&n)return}pe.prototype.onPointer.call(this,e)}},ge.prototype.onDoubleClick=function(e){Object(r.I)(e.browserEvent.target,"monaco-tl-twistie")||pe.prototype.onDoubleClick.call(this,e)},ge);function ge(e,t){var n=pe.call(this,e)||this;return n.tree=t,n}var me,ve=(H(_e,me=s.c),_e.prototype.createMouseController=function(e){return new fe(this,e.tree)},_e.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),me.prototype.splice.call(this,e,t,n),0!==n.length){var o=[],r=[];n.forEach((function(t,n){i.focusTrait.has(t)&&o.push(e+n),i.selectionTrait.has(t)&&r.push(e+n)})),0<o.length&&me.prototype.setFocus.call(this,Object(y.f)(U(me.prototype.getFocus.call(this),o))),0<r.length&&me.prototype.setSelection.call(this,Object(y.f)(U(me.prototype.getSelection.call(this),r)))}},_e.prototype.setFocus=function(e,t,n){var i=this;void 0===n&&(n=!1),me.prototype.setFocus.call(this,e,t),n||this.focusTrait.set(e.map((function(e){return i.element(e)})),t)},_e.prototype.setSelection=function(e,t,n){var i=this;void 0===n&&(n=!1),me.prototype.setSelection.call(this,e,t),n||this.selectionTrait.set(e.map((function(e){return i.element(e)})),t)},_e);function _e(e,t,n,i,o,r,s){var a=me.call(this,e,t,n,i,s)||this;return a.focusTrait=o,a.selectionTrait=r,a}var be=(Object.defineProperty(ye.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"onDidOpen",{get:function(){return v.b.map(this.view.onDidOpen,ue)},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"openOnSingleClick",{get:function(){return void 0===this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"expandOnlyOnTwistieClick",{get:function(){return void 0!==this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(ye.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),ye.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=z(z({},this._options),e);for(var t=0,n=this.renderers;t<n.length;t++)n[t].updateOptions(e);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(r.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===X.Always)},Object.defineProperty(ye.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),ye.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(ye.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e},enumerable:!0,configurable:!0}),ye.prototype.domFocus=function(){this.view.domFocus()},ye.prototype.layout=function(e,t){this.view.layout(e,t)},ye.prototype.style=function(e){var t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(".monaco-list"+t+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+t+".always .monaco-tl-indent > .indent-guide { border-color: "+e.treeIndentGuidesStroke.transparent(.4)+"; }"),n.push(".monaco-list"+t+" .monaco-tl-indent > .indent-guide.active { border-color: "+e.treeIndentGuidesStroke+"; }"));var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)},ye.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!0,t)},ye.prototype.expand=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!1,t)},ye.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},ye.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},ye.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},ye.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},ye.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.selection.set(i,t);var o=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return-1<e}));this.view.setSelection(o,t,!0)},ye.prototype.getSelection=function(){return this.selection.get()},ye.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.focus.set(i,t);var o=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return-1<e}));this.view.setFocus(o,t,!0)},ye.prototype.focusNext=function(e,t,n,i){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===i&&(i=this.focusNavigationFilter),this.view.focusNext(e,t,n,i)},ye.prototype.getFocus=function(){return this.focus.get()},ye.prototype.reveal=function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)},ye.prototype.getRelativeTop=function(e){var t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)},ye.prototype.onLeftArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!0)){var o=this.model.getParentNodeLocation(i);if(!o)return;var r=this.model.getListIndex(o);this.view.reveal(r),this.view.setFocus([r])}}},ye.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!1)){if(!n.children.some((function(e){return e.visible})))return;var o=this.view.getFocus()[0]+1;this.view.reveal(o),this.view.setFocus([o])}}},ye.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,o)}},ye.prototype.dispose=function(){Object(a.f)(this.disposables),this.view.dispose()},ye);function ye(e,t,n,i,o){var l=this;void 0===o&&(o={}),this._options=o,this.eventBufferer=new v.c,this.disposables=new a.b,this._onWillRefilter=new v.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new v.a;var u,c,d,h=new J(n),p=new v.f,f=new v.f,g=new ee(f.event);this.renderers=i.map((function(e){return new ne(e,(function(){return l.model}),p.event,g,o)}));for(var m=0,b=this.renderers;m<b.length;m++){var C=b[m];this.disposables.add(C)}o.keyboardNavigationLabelProvider&&(u=new oe(this,o.keyboardNavigationLabelProvider,o.filter),o=z(z({},o),{filter:u}),this.disposables.add(u)),this.focus=new de(o.identityProvider),this.selection=new de(o.identityProvider),this.view=new ve(e,t,h,this.renderers,this.focus,this.selection,z(z({},(c=function(){return l.model},(d=o)&&z(z({},d),{identityProvider:d.identityProvider&&{getId:function(e){return d.identityProvider.getId(e.element)}},dnd:d.dnd&&new Y(c,d.dnd),multipleSelectionController:d.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return d.multipleSelectionController.isSelectionSingleChangeEvent(z(z({},e),{element:e.element}))},isSelectionRangeChangeEvent:function(e){return d.multipleSelectionController.isSelectionRangeChangeEvent(z(z({},e),{element:e.element}))}},accessibilityProvider:d.accessibilityProvider&&z(z({},d.accessibilityProvider),{getAriaLabel:function(e){return d.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth},getActiveDescendantId:d.accessibilityProvider.getActiveDescendantId&&function(e){return d.accessibilityProvider.getActiveDescendantId(e.element)}}),keyboardNavigationLabelProvider:d.keyboardNavigationLabelProvider&&z(z({},d.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(e){return d.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:d.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(e){var t=c(),n=t.getNodeLocation(e),i=t.getParentNodeLocation(n);return t.getNode(i).visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1},isChecked:d.ariaProvider&&d.ariaProvider.isChecked?function(e){return d.ariaProvider.isChecked(e.element)}:void 0,getRole:d.ariaProvider&&d.ariaProvider.getRole?function(e){return d.ariaProvider.getRole(e.element)}:void 0}}))),{tree:this})),this.model=this.createModel(e,this.view,o),p.input=this.model.onDidChangeCollapseState;var w=v.b.forEach(this.model.onDidSplice,(function(e){l.eventBufferer.bufferEvents((function(){l.focus.onDidModelSplice(e),l.selection.onDidModelSplice(e)}))}));if(w((function(){return null}),null,this.disposables),f.input=v.b.chain(v.b.any(w,this.focus.onDidChange,this.selection.onDidChange)).debounce((function(){return null}),0).map((function(){for(var e=new Set,t=0,n=l.focus.getNodes();t<n.length;t++){var i=n[t];e.add(i)}for(var o=0,r=l.selection.getNodes();o<r.length;o++)i=r[o],e.add(i);return Object(y.n)(e)})).event,!1!==o.keyboardSupport){var S=v.b.chain(this.view.onKeyDown).filter((function(e){return!le(e.target)})).map((function(e){return new _.a(e)}));S.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),S.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),S.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}if(o.keyboardNavigationLabelProvider){var O=o.keyboardNavigationDelegate||s.a;this.typeFilterController=new se(this,this.model,this.view,u,O),this.focusNavigationFilter=function(e){return l.typeFilterController.shouldAllowFocus(e)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(r.w)(this.view.getHTMLElement()),Object(r.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===X.Always)}var Ce=function(){return(Ce=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)},we=(Se.prototype.setChildren=function(e,t,n,i){var o=this.getElementLocation(e);this._setChildren(o,this.preserveCollapseState(t),n,i)},Se.prototype._setChildren=function(e,t,n,i){var o=this,r=new Set,s=new Set;this.model.splice(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(e,[0]),Number.MAX_VALUE,t,(function(e){if(r.add(e.element),o.nodes.set(e.element,e),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.add(t),o.nodesByIdentity.set(t,e)}n&&n(e)}),(function(e){if(r.has(e.element)||o.nodes.delete(e.element),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.has(t)||o.nodesByIdentity.delete(t)}i&&i(e)}))},Se.prototype.preserveCollapseState=function(e){var t=this,n=e?Object(N.f)(e):N.d.empty();return this.sorter&&(n=N.d.fromArray(Object(y.r)(N.d.collect(n),this.sorter.compare.bind(this.sorter)))),N.d.map(n,(function(e){var n=t.nodes.get(e.element);if(!n&&t.identityProvider){var i=t.identityProvider.getId(e.element).toString();n=t.nodesByIdentity.get(i)}if(!n)return Ce(Ce({},e),{children:t.preserveCollapseState(e.children)});var o="boolean"==typeof e.collapsible?e.collapsible:n.collapsible,r=void 0!==e.collapsed?e.collapsed:n.collapsed;return Ce(Ce({},e),{collapsible:o,collapsed:r,children:t.preserveCollapseState(e.children)})}))},Se.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},Se.prototype.has=function(e){return this.nodes.has(e)},Se.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},Se.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},Se.prototype.isCollapsible=function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)},Se.prototype.setCollapsible=function(e,t){var n=this.getElementLocation(e);return this.model.setCollapsible(n,t)},Se.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},Se.prototype.setCollapsed=function(e,t,n){var i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)},Se.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},Se.prototype.refilter=function(){this.model.refilter()},Se.prototype.getNode=function(e){if(void 0===e&&(e=null),null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return t},Se.prototype.getNodeLocation=function(e){return e.element},Se.prototype.getParentNodeLocation=function(e){if(null===e)throw new O(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);var n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n);return this.model.getNode(i).element},Se.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)},Se);function Se(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new T(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare:function(e,t){return n.sorter.compare(e.element,t.element)}}),this.identityProvider=n.identityProvider}var Oe=function(){return(Oe=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 Le(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:N.d.map(N.d.from(e.children),Le),collapsible:e.collapsible,collapsed:e.collapsed}}function De(e){for(var t,n,i=[e.element],o=e.incompressible||!1;t=N.d.from(e.children),1===(n=N.d.collect(t,2)).length&&!(e=n[0]).incompressible;)i.push(e.element);return{element:{elements:i,incompressible:o},children:N.d.map(N.d.concat(N.d.fromArray(n),t),De),collapsible:e.collapsible,collapsed:e.collapsed}}function xe(e){return function e(t,n){var i;return void 0===n&&(n=0),i=n<t.element.elements.length-1?N.d.single(e(t,n+1)):N.d.map(N.d.from(t.children),(function(t){return e(t,0)})),0===n&&t.element.incompressible?{element:t.element.elements[n],children:i,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[n],children:i,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}var Ne=(Object.defineProperty(ke.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),ke.prototype.setChildren=function(e,t){if(null!==e){var n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");var i=this.model.getNode(n),o=this.model.getParentNodeLocation(n),r=this.model.getNode(o),s=function e(t,n,i){return t.element===n?Oe(Oe({},t),{children:i}):Oe(Oe({},t),{children:N.d.map(N.d.from(t.children),(function(t){return e(t,n,i)}))})}(xe(i),e,N.d.from(t)),a=(this.enabled?De:Le)(s),l=r.children.map((function(e){return e===i?a:e}));this._setChildren(r.element,l)}else{var u=N.d.map(N.d.from(t),this.enabled?De:Le);this._setChildren(null,u)}},ke.prototype.setCompressionEnabled=function(e){if(e!==this.enabled){this.enabled=e;var t=this.model.getNode(),n=N.d.from(t.children),i=N.d.map(n,xe),o=N.d.map(i,e?De:Le);this._setChildren(null,o)}},ke.prototype._setChildren=function(e,t){var n=this,i=new Set;this.model.setChildren(e,t,(function(e){for(var t=0,o=e.element.elements;t<o.length;t++){var r=o[t];i.add(r),n.nodes.set(r,e.element)}}),(function(e){for(var t=0,o=e.element.elements;t<o.length;t++){var r=o[t];i.has(r)||n.nodes.delete(r)}}))},ke.prototype.has=function(e){return this.nodes.has(e)},ke.prototype.getListIndex=function(e){var t=this.getCompressedNode(e);return this.model.getListIndex(t)},ke.prototype.getListRenderCount=function(e){var t=this.getCompressedNode(e);return this.model.getListRenderCount(t)},ke.prototype.getNode=function(e){if(void 0===e)return this.model.getNode();var t=this.getCompressedNode(e);return this.model.getNode(t)},ke.prototype.getNodeLocation=function(e){var t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]},ke.prototype.getParentNodeLocation=function(e){var t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]},ke.prototype.isCollapsible=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsible(t)},ke.prototype.setCollapsible=function(e,t){var n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)},ke.prototype.isCollapsed=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsed(t)},ke.prototype.setCollapsed=function(e,t,n){var i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)},ke.prototype.expandTo=function(e){var t=this.getCompressedNode(e);this.model.expandTo(t)},ke.prototype.rerender=function(e){var t=this.getCompressedNode(e);this.model.rerender(t)},ke.prototype.refilter=function(){this.model.refilter()},ke.prototype.getCompressedNode=function(e){if(null===e)return null;var t=this.nodes.get(e);if(!t)throw new O(this.user,"Tree element not found: "+e);return t},ke);function ke(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.model=new we(e,t,n),this.enabled=void 0===n.compressionEnabled||n.compressionEnabled}function Ee(e){return e[e.length-1]}var Ie=(Object.defineProperty(Me.prototype,"element",{get:function(){return null===this.node.element?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"children",{get:function(){var e=this;return this.node.children.map((function(t){return new Me(e.unwrapper,t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Me);function Me(e,t){this.unwrapper=e,this.node=t}var Te=(Object.defineProperty(Pe.prototype,"onDidSplice",{get:function(){var e=this;return v.b.map(this.model.onDidSplice,(function(t){var n=t.insertedNodes,i=t.deletedNodes;return{insertedNodes:n.map((function(t){return e.nodeMapper.map(t)})),deletedNodes:i.map((function(t){return e.nodeMapper.map(t)}))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(Pe.prototype,"onDidChangeCollapseState",{get:function(){var e=this;return v.b.map(this.model.onDidChangeCollapseState,(function(t){var n=t.node,i=t.deep;return{node:e.nodeMapper.map(n),deep:i}}))},enumerable:!0,configurable:!0}),Pe.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Pe.prototype.setCompressionEnabled=function(e){this.model.setCompressionEnabled(e)},Pe.prototype.has=function(e){return this.model.has(e)},Pe.prototype.getListIndex=function(e){return this.model.getListIndex(e)},Pe.prototype.getListRenderCount=function(e){return this.model.getListRenderCount(e)},Pe.prototype.getNode=function(e){return this.nodeMapper.map(this.model.getNode(e))},Pe.prototype.getNodeLocation=function(e){return e.element},Pe.prototype.getParentNodeLocation=function(e){return this.model.getParentNodeLocation(e)},Pe.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},Pe.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},Pe.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},Pe.prototype.setCollapsed=function(e,t,n){return this.model.setCollapsed(e,t,n)},Pe.prototype.expandTo=function(e){return this.model.expandTo(e)},Pe.prototype.rerender=function(e){return this.model.rerender(e)},Pe.prototype.refilter=function(){return this.model.refilter()},Pe.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getNode(e)},Pe);function Pe(e,t,n){var i,o,r,s,a=this;function l(e){return a.elementMapper(e.elements)}void 0===n&&(n={}),this.elementMapper=n.elementMapper||Ee,this.nodeMapper=new D((function(e){return new Ie(l,e)})),this.model=new Ne(e,(r=this.nodeMapper,s=t,{splice:function(e,t,n){s.splice(e,t,n.map((function(e){return r.map(e)})))}}),(i=l,Oe(Oe({},o=n),{sorter:o.sorter&&{compare:function(e,t){return o.sorter.compare(e.elements[0],t.elements[0])}},identityProvider:o.identityProvider&&{getId:function(e){return o.identityProvider.getId(i(e))}},filter:o.filter&&{filter:function(e,t){return o.filter.filter(i(e),t)}}})))}var Re,Ae,Fe=n(881),je=(Re=function(e,t){return(Re=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}Re(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),We=function(){return(We=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)},Ve=(je(Be,Ae=be),Object.defineProperty(Be.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Be.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},Be.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},Be.prototype.hasElement=function(e){return this.model.has(e)},Be.prototype.createModel=function(e,t,n){return new we(e,t,n)},Be);function Be(e,t,n,i,o){return void 0===o&&(o={}),Ae.call(this,e,t,n,i,o)||this}var He=(Object.defineProperty(ze.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),ze.prototype.renderTemplate=function(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}},ze.prototype.renderElement=function(e,t,n,i){var o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,n.data,i))},ze.prototype.disposeElement=function(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)},ze.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.data)},ze.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)},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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);3<r&&s&&Object.defineProperty(t,n,s)}([Fe.a],ze.prototype,"compressedTreeNodeProvider",null),ze);function ze(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}var Ue,Ke=(je(qe,Ue=Ve),qe.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},qe.prototype.createModel=function(e,t,n){return new Te(e,t,n)},qe.prototype.updateOptions=function(e){void 0===e&&(e={}),Ue.prototype.updateOptions.call(this,e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)},qe.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getCompressedTreeNode(e)},qe);function qe(e,t,n,i,o){function r(){return l}void 0===o&&(o={});var s,a,l=this,u=i.map((function(e){return new He(r,e)}));return l=Ue.call(this,e,t,n,u,(s=r,(a=o)&&We(We({},a),{keyboardNavigationLabelProvider:a.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(e){var t;try{t=s().getCompressedTreeNode(e)}catch(t){return a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e)}return 1===t.element.elements.length?a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e):a.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.element.elements)}}})))||this}var Ge,Ye=n(446),Ze=(Ge=function(e,t){return(Ge=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}Ge(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xe=function(){return(Xe=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)},$e=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Je=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=0<(o=s.trys).length&&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(a){r=[6,a],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 Qe(e){return Xe(Xe({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function et(e,t){return!!t.parent&&(t.parent===e||et(e,t.parent))}var tt=(Object.defineProperty(nt.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"children",{get:function(){return this.node.children.map((function(e){return new nt(e)}))},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(nt.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),nt);function nt(e){this.node=e}var it=(ot.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},ot.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},ot.prototype.renderTwistie=function(e,t){return Object(r.Y)(t,"codicon-loading",e.slow),!1},ot.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},ot.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},ot.prototype.dispose=function(){this.renderedNodes.clear()},ot);function ot(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}function rt(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}var st,at=(Ze(lt,st=C.a),lt);function lt(e){var t=st.call(this,e.elements.map((function(e){return e.element})))||this;return t.data=e,t}function ut(e){return e instanceof C.a?new at(e):e}var ct=(dt.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},dt.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},dt.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(ut(e),t)},dt.prototype.onDragOver=function(e,t,n,i,o){return void 0===o&&(o=!0),this.dnd.onDragOver(ut(e),t&&t.element,n,i)},dt.prototype.drop=function(e,t,n,i){this.dnd.drop(ut(e),t&&t.element,n,i)},dt.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},dt);function dt(e){this.dnd=e}function ht(e){return e&&Xe(Xe({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new ct(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Xe(Xe({},t),{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Xe(Xe({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Xe(Xe({},e.accessibilityProvider),{getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)},getAriaLevel:e.accessibilityProvider.getAriaLevel&&function(t){return e.accessibilityProvider.getAriaLevel(t.element)},getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&function(t){return e.accessibilityProvider.getActiveDescendantId(t.element)}}),filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Xe(Xe({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:e.ariaProvider&&{getPosInSet:function(t,n){return e.ariaProvider.getPosInSet(t.element,n)},getSetSize:function(t,n,i){return e.ariaProvider.getSetSize(t.element,n,i)},getRole:e.ariaProvider.getRole?function(t){return e.ariaProvider.getRole(t.element)}:void 0,isChecked:e.ariaProvider.isChecked?function(t){var n;return(null===(n=e.ariaProvider)||void 0===n?void 0:n.isChecked)(t.element)}:void 0},additionalScrollHeight:e.additionalScrollHeight})}function pt(e,t){t(e),e.children.forEach((function(e){return pt(e,t)}))}var ft=(Object.defineProperty(gt.prototype,"onDidChangeFocus",{get:function(){return v.b.map(this.tree.onDidChangeFocus,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidChangeSelection",{get:function(){return v.b.map(this.tree.onDidChangeSelection,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidOpen",{get:function(){return v.b.map(this.tree.onDidOpen,rt)},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(gt.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),gt.prototype.createTree=function(e,t,n,i,o){var r=this,s=new J(n),a=i.map((function(e){return new it(e,r.nodeMapper,r._onDidChangeNodeSlowState.event)})),l=ht(o)||{};return new Ve(e,t,s,a,l)},gt.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},gt.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(gt.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),gt.prototype.domFocus=function(){this.tree.domFocus()},gt.prototype.layout=function(e,t){this.tree.layout(e,t)},gt.prototype.style=function(e){this.tree.style(e)},gt.prototype.getInput=function(){return this.root.element},gt.prototype.setInput=function(e,t){return $e(this,void 0,void 0,(function(){var n;return Je(this,(function(i){switch(i.label){case 0:return this.refreshPromises.forEach((function(e){return e.cancel()})),this.refreshPromises.clear(),this.root.element=e,n=t&&{viewState:t,focus:[],selection:[]},[4,this._updateChildren(e,!0,!1,n)];case 1:return i.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}}))}))},gt.prototype._updateChildren=function(e,t,n,i){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),void 0===n&&(n=!1),$e(this,void 0,void 0,(function(){var o;return Je(this,(function(r){switch(r.label){case 0:if(void 0===this.root.element)throw new O(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return r.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 2:r.sent(),r.label=3;case 3:return o=this.getDataNode(e),[4,this.refreshAndRenderNode(o,t,i)];case 4:if(r.sent(),n)try{this.tree.rerender(o)}catch(r){}return[2]}}))}))},gt.prototype.rerender=function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()},gt.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)},gt.prototype.expand=function(e,t){return void 0===t&&(t=!1),$e(this,void 0,void 0,(function(){var n,i;return Je(this,(function(o){switch(o.label){case 0:if(void 0===this.root.element)throw new O(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return o.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 2:o.sent(),o.label=3;case 3:return n=this.getDataNode(e),this.tree.hasElement(n)&&!this.tree.isCollapsible(n)?[2,!1]:n.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return o.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 5:o.sent(),o.label=6;case 6:return n===this.root||n.refreshPromise||this.tree.isCollapsed(n)?(i=this.tree.expand(n===this.root?null:n,t),n.refreshPromise?[4,this.root.refreshPromise]:[3,9]):[2,!1];case 7:return o.sent(),[4,v.b.toPromise(this._onDidRender.event)];case 8:o.sent(),o.label=9;case 9:return[2,i]}}))}))},gt.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(i,t)},gt.prototype.getSelection=function(){return this.tree.getSelection().map((function(e){return e.element}))},gt.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(i,t)},gt.prototype.getFocus=function(){return this.tree.getFocus().map((function(e){return e.element}))},gt.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},gt.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new O(this.user,"Data tree node not found: "+e);return t},gt.prototype.refreshAndRenderNode=function(e,t,n){return $e(this,void 0,void 0,(function(){return Je(this,(function(i){switch(i.label){case 0:return[4,this.refreshNode(e,t,n)];case 1:return i.sent(),this.render(e,n),[2]}}))}))},gt.prototype.refreshNode=function(e,t,n){return $e(this,void 0,void 0,(function(){var i,o=this;return Je(this,(function(r){return this.subTreeRefreshPromises.forEach((function(r,s){var a,l;i||(a=s)!==(l=e)&&!et(a,l)&&!et(l,a)||(i=r.then((function(){return o.refreshNode(e,t,n)})))})),i?[2,i]:[2,this.doRefreshSubTree(e,t,n)]}))}))},gt.prototype.doRefreshSubTree=function(e,t,n){return $e(this,void 0,void 0,(function(){var i,o,r=this;return Je(this,(function(s){switch(s.label){case 0:e.refreshPromise=new Promise((function(e){return i=e})),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((function(){e.refreshPromise=void 0,r.subTreeRefreshPromises.delete(e)})),s.label=1;case 1:return s.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return o=s.sent(),e.stale=!1,[4,Promise.all(o.map((function(e){return r.doRefreshSubTree(e,t,n)})))];case 3:return s.sent(),[3,5];case 4:return i(),[7];case 5:return[2]}}))}))},gt.prototype.doRefreshNode=function(e,t,n){return $e(this,void 0,void 0,(function(){var i,o,r,s,a=this;return Je(this,(function(l){switch(l.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),i=e.hasChildren?((o=Object(F.l)(800)).then((function(){e.slow=!0,a._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),this.doGetChildren(e).finally((function(){return o.cancel()}))):Promise.resolve([]),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,i];case 2:return r=l.sent(),[2,this.setChildren(e,r,t,n)];case 3:if(s=l.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),Object(Ye.d)(s))return[2,[]];throw s;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}}))}))},gt.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=Object(F.f)((function(){return $e(t,void 0,void 0,(function(){var t;return Je(this,(function(n){switch(n.label){case 0:return[4,this.dataSource.getChildren(e.element)];case 1:return t=n.sent(),[2,this.processChildren(t)]}}))}))})),this.refreshPromises.set(e,n),n.finally((function(){return t.refreshPromises.delete(e)})))},gt.prototype._onDidChangeCollapseState=function(e){var t=e.node,n=e.deep;!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(Ye.e))},gt.prototype.setChildren=function(e,t,n,i){var o,r=this;if(0===e.children.length&&0===t.length)return[];for(var s=new Map,a=new Map,l=0,u=e.children;l<u.length;l++){var c=u[l];if(s.set(c.element,c),this.identityProvider){var d=this.tree.isCollapsed(c);a.set(c.id,{node:c,collapsed:d})}}for(var h=[],p=t.map((function(t){var o=!!r.dataSource.hasChildren(t);if(!r.identityProvider){var l=Qe({element:t,parent:e,hasChildren:o});return o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(l.collapsedByDefault=!1,h.push(l)),l}var u=r.identityProvider.getId(t).toString(),c=a.get(u);if(c)return l=c.node,s.delete(l.element),r.nodes.delete(l.element),r.nodes.set(t,l),l.element=t,l.hasChildren=o,n?c.collapsed?(l.children.forEach((function(e){return pt(e,(function(e){return r.nodes.delete(e.element)}))})),l.children.splice(0,l.children.length),l.stale=!0):h.push(l):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(l.collapsedByDefault=!1,h.push(l)),l;var d=Qe({element:t,parent:e,id:u,hasChildren:o});return i&&i.viewState.focus&&-1<i.viewState.focus.indexOf(u)&&i.focus.push(d),i&&i.viewState.selection&&-1<i.viewState.selection.indexOf(u)&&i.selection.push(d),i&&i.viewState.expanded&&-1<i.viewState.expanded.indexOf(u)?h.push(d):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(d.collapsedByDefault=!1,h.push(d)),d})),f=0,g=Object(W.e)(s);f<g.length;f++)pt(g[f],(function(e){return r.nodes.delete(e.element)}));for(var m=0,v=p;m<v.length;m++)c=v[m],this.nodes.set(c.element,c);return(o=e.children).splice.apply(o,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}([0,e.children.length],p)),e!==this.root&&this.autoExpandSingleChildren&&1===p.length&&0===h.length&&(p[0].collapsedByDefault=!1,h.push(p[0])),h},gt.prototype.render=function(e,t){var n=this,i=e.children.map((function(e){return n.asTreeElement(e,t)}));this.tree.setChildren(e===this.root?null:e,i),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()},gt.prototype.asTreeElement=function(e,t){var n,i=this;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(n=!(t&&t.viewState.expanded&&e.id&&-1<t.viewState.expanded.indexOf(e.id))&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?N.d.map(N.d.fromArray(e.children),(function(e){return i.asTreeElement(e,t)})):[],collapsible:e.hasChildren,collapsed:n})},gt.prototype.processChildren=function(e){return this.sorter&&e.sort(this.sorter.compare.bind(this.sorter)),e},gt.prototype.dispose=function(){this.disposables.dispose()},gt);function gt(e,t,n,i,o,r){void 0===r&&(r={}),this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new v.a,this._onDidChangeNodeSlowState=new v.a,this.nodeMapper=new D((function(e){return new tt(e)})),this.disposables=new a.b,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=void 0!==r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,n,i,r),this.root=Qe({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Xe(Xe({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}var mt=(Object.defineProperty(vt.prototype,"element",{get:function(){return{elements:this.node.element.elements.map((function(e){return e.element})),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"children",{get:function(){return this.node.children.map((function(e){return new vt(e)}))},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),vt);function vt(e){this.node=e}var _t=(bt.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},bt.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},bt.prototype.renderCompressedElements=function(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},bt.prototype.renderTwistie=function(e,t){return Object(r.Y)(t,"codicon-loading",e.slow),!1},bt.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},bt.prototype.disposeCompressedElements=function(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},bt.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},bt.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(a.f)(this.disposables)},bt);function bt(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}var yt,Ct=(Ze(wt,yt=ft),wt.prototype.createTree=function(e,t,n,i,o){var r,s,a=this,l=new J(n),u=i.map((function(e){return new _t(e,a.nodeMapper,(function(){return a.compressibleNodeMapper}),a._onDidChangeNodeSlowState.event)})),c=(s=(r=o)&&ht(r))&&Xe(Xe({},s),{keyboardNavigationLabelProvider:s.keyboardNavigationLabelProvider&&Xe(Xe({},s.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(e){return r.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(e.map((function(e){return e.element})))}})})||{};return new Ke(e,t,l,u,c)},wt.prototype.asTreeElement=function(e,t){return Xe({incompressible:this.compressionDelegate.isIncompressible(e.element)},yt.prototype.asTreeElement.call(this,e,t))},wt.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},wt.prototype.render=function(e,t){var n=this;if(!this.identityProvider)return yt.prototype.render.call(this,e,t);function i(e){return n.identityProvider.getId(e).toString()}function o(e){for(var t=new Set,o=0,r=e;o<r.length;o++){var s=r[o],a=n.tree.getCompressedTreeNode(s===n.root?null:s);if(a.element)for(var l=0,u=a.element.elements;l<u.length;l++){var c=u[l];t.add(i(c.element))}}return t}var r=o(this.tree.getSelection()),s=o(this.tree.getFocus());yt.prototype.render.call(this,e,t);var a=this.getSelection(),l=!1,u=this.getFocus(),c=!1;!function e(t){var n=t.element;if(n)for(var o=0;o<n.elements.length;o++){var d=i(n.elements[o].element),h=n.elements[n.elements.length-1].element;r.has(d)&&-1===a.indexOf(h)&&(a.push(h),l=!0),s.has(d)&&-1===u.indexOf(h)&&(u.push(h),c=!0)}t.children.forEach(e)}(this.tree.getCompressedTreeNode(e===this.root?null:e)),l&&this.setSelection(a),c&&this.setFocus(u)},wt.prototype.processChildren=function(e){var t=this;return this.filter&&(e=e.filter((function(e){var n,i="boolean"==typeof(n=t.filter.filter(e,1))?n?1:0:E(n)?I(n.visibility):I(n);if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),yt.prototype.processChildren.call(this,e)},wt);function wt(e,t,n,i,o,r,s){void 0===s&&(s={});var a=yt.call(this,e,t,n,o,r,s)||this;return a.compressionDelegate=i,a.compressibleNodeMapper=new D((function(e){return new mt(e)})),a.filter=s.filter,a}var St,Ot,Lt=((St=function(e,t){return(St=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}St(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Dt,Ot=be),Dt.prototype.createModel=function(e,t,n){return new we(e,t,n)},Dt);function Dt(e,t,n,i,o,r){void 0===r&&(r={});var s=Ot.call(this,e,t,n,i,r)||this;return s.user=e,s.dataSource=o,s.identityProvider=r.identityProvider,s}var xt=n(759);n.d(t,"a",(function(){return Pt})),n.d(t,"b",(function(){return Rt})),n.d(t,"d",(function(){return Wt})),n.d(t,"c",(function(){return gn}));var Nt,kt,Et=(Nt=function(e,t){return(Nt=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}Nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),It=function(){return(It=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)},Mt=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},Tt=function(e,t){return function(n,i){t(n,i,e)}},Pt=Object(h.c)("listService"),Rt=(Object.defineProperty(At.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),At.prototype.register=function(e,t){var n=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var i=new s.b(Object(r.w)(),"");this.disposables.add(Object(g.b)(i,this._themeService))}if(this.lists.some((function(t){return t.widget===e})))throw new Error("Cannot register the same widget multiple times");var o={widget:e,extraContextKeys:t};return this.lists.push(o),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(a.e)(e.onDidFocus((function(){return n._lastFocusedWidget=e})),Object(a.h)((function(){return n.lists.splice(n.lists.indexOf(o),1)})),e.onDidDispose((function(){n.lists=n.lists.filter((function(e){return e!==o})),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})))},At.prototype.dispose=function(){this.disposables.dispose()},At=Mt([Tt(0,m.c)],At));function At(e){this._themeService=e,this.disposables=new a.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}var Ft=new d.d("listFocus",!0),jt=new d.d("listSupportsMultiselect",!0),Wt=d.a.and(Ft,d.a.not("inputFocus")),Vt=new d.d("listHasSelectionOrFocus",!1),Bt=new d.d("listDoubleSelection",!1),Ht=new d.d("listMultiSelection",!1),zt=new d.d("listSupportsKeyboardNavigation",!0),Ut="listAutomaticKeyboardNavigation",Kt=new d.d(Ut,!0),qt=!1,Gt="workbench.list.multiSelectModifier",Yt="workbench.list.openMode",Zt="workbench.list.horizontalScrolling",Xt="workbench.list.keyboardNavigation",$t="workbench.list.automaticKeyboardNavigation",Jt="workbench.tree.indent",Qt="workbench.tree.renderIndentGuides";function en(e){return"alt"===e.getValue(Gt)}function tn(e){return"doubleClick"!==e.getValue(Yt)}var nn,on=(Et(rn,nn=a.a),rn.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(Gt)&&(e.useAltAsMultipleSelectionModifier=en(e.configurationService))})))},rn.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(s.f)(e)},rn.prototype.isSelectionRangeChangeEvent=function(e){return Object(s.e)(e)},rn);function rn(e){var t=nn.call(this)||this;return t.configurationService=e,t.useAltAsMultipleSelectionModifier=en(e),t.registerListeners(),t}var sn,an,ln,un=(Et(cn,sn=a.a),cn.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(Yt)&&(e.openOnSingleClick=tn(e.configurationService))})))},cn.prototype.shouldOpen=function(e){if(e instanceof MouseEvent){var t=0===e.button,n=2===e.detail;return!(t&&!this.openOnSingleClick&&!n)&&(t||1===e.button)&&(!this.existingOpenController||this.existingOpenController.shouldOpen(e))}return!this.existingOpenController||this.existingOpenController.shouldOpen(e)},cn);function cn(e,t){var n=sn.call(this)||this;return n.configurationService=e,n.existingOpenController=t,n.openOnSingleClick=tn(e),n.registerListeners(),n}function dn(e,t,n,i,o,r,s,a,l,u,c){var d=this,h=_n(t,o,r,l,u,c),p=h.options,f=h.getAutomaticKeyboardNavigation,g=h.disposable;return(d=an.call(this,e,t,n,i,p)||this).disposables.add(g),d.internals=new bn(d,p,f,o.overrideStyles,r,s,a,l,c),d.disposables.add(d.internals),d}function hn(e,t,n,i,o,r,s,a,l,u,c,d){var h=this,p=_n(t,r,s,u,c,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=ln.call(this,e,t,n,i,o,f)||this).disposables.add(m),h.internals=new bn(h,f,g,r.overrideStyles,s,a,l,u,d),h.disposables.add(h.internals),h}Et(dn,an=Ve),dn=Mt([Tt(5,d.c),Tt(6,Pt),Tt(7,m.c),Tt(8,u.a),Tt(9,p.a),Tt(10,xt.b)],dn),Et(hn,ln=Lt),hn.prototype.updateOptions=function(e){void 0===e&&(e={}),ln.prototype.updateOptions.call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)},hn=Mt([Tt(6,d.c),Tt(7,Pt),Tt(8,m.c),Tt(9,u.a),Tt(10,p.a),Tt(11,xt.b)],hn);var pn,fn,gn=(Et(mn,pn=ft),mn.prototype.updateOptions=function(e){void 0===e&&(e={}),pn.prototype.updateOptions.call(this,e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)},mn=Mt([Tt(6,d.c),Tt(7,Pt),Tt(8,m.c),Tt(9,u.a),Tt(10,p.a),Tt(11,xt.b)],mn));function mn(e,t,n,i,o,r,s,a,l,u,c,d){var h=this,p=_n(t,r,s,u,c,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=pn.call(this,e,t,n,i,o,f)||this).disposables.add(m),h.internals=new bn(h,f,g,r.overrideStyles,s,a,l,u,d),h.disposables.add(h.internals),h}function vn(e,t,n,i,o,r,s,a,l,u,c,d,h){var p=this,f=_n(t,s,a,c,d,h),g=f.options,m=f.getAutomaticKeyboardNavigation,v=f.disposable;return(p=fn.call(this,e,t,n,i,o,r,g)||this).disposables.add(v),p.internals=new bn(p,g,m,s.overrideStyles,a,l,u,c,h),p.disposables.add(p.internals),p}function _n(e,t,n,i,o,r){function s(){var e=n.getContextKeyValue(Ut);return e&&i.getValue($t)}zt.bindTo(n),qt||(Kt.bindTo(n),qt=!0);var l,c,d,h,p=r.isScreenReaderOptimized()?"simple":i.getValue(Xt),f=void 0!==t.horizontalScrolling?t.horizontalScrolling:(l=i,Object(u.f)(l,Zt,"workbench.tree.horizontalScrolling")),g=tn(i),m=function(e,t,n){var i=new a.b,o=It({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var r=new on(t);o.multipleSelectionController=r,i.add(r)}var s=new un(t,e.openController);return o.openController=s,i.add(s),o.keyboardNavigationDelegate={mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}},[o,i]}(t,i,o),v=m[0],_=m[1],b=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:s,disposable:_,options:It(It({keyboardSupport:!1},v),{indent:i.getValue(Jt),renderIndentGuides:i.getValue(Qt),automaticKeyboardNavigation:s(),simpleKeyboardNavigation:"simple"===p,filterOnType:"filter"===p,horizontalScrolling:f,openOnSingleClick:g,keyboardNavigationEventFilter:(c=e,d=o,h=!1,function(e){if(h)return h=!1;var t=d.softDispatch(e,c);return t&&t.enterChord?!(h=!0):!(h=!1)}),additionalScrollHeight:b,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements})}}Et(vn,fn=Ct),vn=Mt([Tt(7,d.c),Tt(8,Pt),Tt(9,m.c),Tt(10,u.a),Tt(11,p.a),Tt(12,xt.b)],vn);var bn=(yn.prototype.updateStyleOverrides=function(e){Object(a.f)(this.styler),this.styler=e?Object(g.b)(this.tree,this.themeService,e):a.a.None},yn.prototype.dispose=function(){this.disposables=Object(a.f)(this.disposables),this.styler=Object(a.f)(this.styler)},yn=Mt([Tt(4,d.c),Tt(5,Pt),Tt(6,m.c),Tt(7,u.a),Tt(8,xt.b)],yn));function yn(e,t,n,i,o,r,s,a,l){var u,c,d=this;this.tree=e,this.themeService=s,this.disposables=[],this.contextKeyService=(u=e,c=o.createScoped(u.getHTMLElement()),Ft.bindTo(c),c),jt.bindTo(this.contextKeyService).set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=Vt.bindTo(this.contextKeyService),this.hasDoubleSelection=Bt.bindTo(this.contextKeyService),this.hasMultiSelection=Ht.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=en(a);var h=new Set;function p(){var t=l.isScreenReaderOptimized()?"simple":a.getValue(Xt);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})}h.add(Ut),this.updateStyleOverrides(i),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection((function(){var t=e.getSelection(),n=e.getFocus();d.hasSelectionOrFocus.set(0<t.length||0<n.length),d.hasMultiSelection.set(1<t.length),d.hasDoubleSelection.set(2===t.length)})),e.onDidChangeFocus((function(){var t=e.getSelection(),n=e.getFocus();d.hasSelectionOrFocus.set(0<t.length||0<n.length)})),a.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(Yt)&&e.updateOptions({openOnSingleClick:tn(a)}),t.affectsConfiguration(Gt)&&(d._useAltAsMultipleSelectionModifier=en(a)),t.affectsConfiguration(Jt)){var i=a.getValue(Jt);e.updateOptions({indent:i})}if(t.affectsConfiguration(Qt)){var o=a.getValue(Qt);e.updateOptions({renderIndentGuides:o})}t.affectsConfiguration(Xt)&&p(),t.affectsConfiguration($t)&&e.updateOptions({automaticKeyboardNavigation:n()})})),this.contextKeyService.onDidChangeContext((function(t){t.affectsSome(h)&&e.updateOptions({automaticKeyboardNavigation:n()})})),l.onDidChangeScreenReaderOptimized((function(){return p()})))}f.a.as(c.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(l.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:((kt={})[Gt]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(l.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(l.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(l.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},kt[Yt]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(l.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},kt[Zt]={type:"boolean",default:!1,description:Object(l.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},kt["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(l.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(l.a)("deprecated","This setting is deprecated, please use '{0}' instead.",Zt)},kt[Jt]={type:"number",default:8,minimum:0,maximum:40,description:Object(l.a)("tree indent setting","Controls tree indentation in pixels.")},kt[Qt]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(l.a)("render tree indent guides","Controls whether the tree should render indent guides.")},kt[Xt]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(l.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(l.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(l.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(l.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},kt[$t]={type:"boolean",default:!0,markdownDescription:Object(l.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},kt)})},,,function(e,t,n){"use strict";n(1363);var i,o,r,s=n(445),a=n(439),l=n(465),u=n(459),c=n(881),d=n(443),h=n(452),p=n(702),f=n(701),g=n(442),m=n(686),v=(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)});(r=o=o||{}).TREE="tree",r.FORM="form";var _,b=(v(y,_=Error),y);function y(e,t){return _.call(this,"ListError ["+e+"] "+t)||this}var C=n(973),w=n(490),S=n(505),O=(L.prototype.splice=function(e,t,n){this.spliceables.forEach((function(i){return i.splice(e,t,n)}))},L);function L(e){this.spliceables=e}var D=n(962),x=n(760);n.d(t,"a",(function(){return G})),n.d(t,"f",(function(){return Q})),n.d(t,"e",(function(){return ee})),n.d(t,"d",(function(){return oe})),n.d(t,"b",(function(){return se})),n.d(t,"c",(function(){return _e}));var N,k=(N=function(e,t){return(N=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}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(){return(E=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)},I=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},M=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},T=(Object.defineProperty(P.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),P.prototype.renderTemplate=function(e){return e},P.prototype.renderElement=function(e,t,n){var i=Object(u.k)(this.renderedElements,(function(e){return e.templateData===n}));if(0<=i){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)},P.prototype.splice=function(e,t,n){for(var i=[],o=0,r=this.renderedElements;o<r.length;o++){var s=r[o];s.index<e?i.push(s):s.index>=e+t&&i.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=i},P.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;-1<e.indexOf(o)&&this.trait.renderIndex(o,r)}},P.prototype.disposeTemplate=function(e){var t=Object(u.k)(this.renderedElements,(function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)},P);function P(e){this.trait=e,this.renderedElements=[]}var R=(Object.defineProperty(A.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"renderer",{get:function(){return new T(this)},enumerable:!0,configurable:!0}),A.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=M(this.sortedIndexes.filter((function(t){return t<e})),n.map((function(t,n){return t?n+e:-1})).filter((function(e){return-1!==e})),this.sortedIndexes.filter((function(e){return o<=e})).map((function(e){return e+i})));this.renderer.splice(e,t,n.length),this._set(r,r)},A.prototype.renderIndex=function(e,t){d.Y(t,this._trait,this.contains(e))},A.prototype.unrender=function(e){d.P(e,this._trait)},A.prototype.set=function(e,t){return this._set(e,M(e).sort(de),t)},A.prototype._set=function(e,t,n){var i=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var r=ce(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:n}),i},A.prototype.get=function(){return this.indexes},A.prototype.contains=function(e){return 0<=Object(u.c)(this.sortedIndexes,e,de)},A.prototype.dispose=function(){Object(a.f)(this._onChange)},I([c.a],A.prototype,"renderer",null),A);function A(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.a,this.onChange=this._onChange.event}var F,j=(k(W,F=R),W.prototype.renderIndex=function(e,t){F.prototype.renderIndex.call(this,e,t),this.contains(e)?t.setAttribute("aria-selected","true"):t.removeAttribute("aria-selected")},W);function W(){return F.call(this,"focused")||this}var V=(B.prototype.splice=function(e,t,n){var i=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var o=this.trait.get().map((function(e){return i.identityProvider.getId(i.view.element(e)).toString()})),r=n.map((function(e){return-1<o.indexOf(i.identityProvider.getId(e).toString())}));this.trait.splice(e,t,r)},B);function B(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}function H(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var z,U,K=(q.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)},q.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()},q.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()},q.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},q.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},q.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(u.u)(this.list.length),e.browserEvent),this.view.domNode.focus()},q.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},q.prototype.dispose=function(){this.disposables.dispose()},q);function q(e,t,n){this.list=e,this.view=t,this.disposables=new a.b;var i=!1!==n.multipleSelectionSupport;this.openController=n.openController||ie;var o=g.b.chain(Object(m.a)(t.domNode,"keydown")).filter((function(e){return!H(e.target)})).map((function(e){return new f.a(e)}));o.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),o.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),o.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),o.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),o.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),o.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),i&&o.filter((function(e){return(h.e?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.disposables)}(U=z=z||{})[U.Idle=0]="Idle",U[U.Typing=1]="Typing";var G=(Y.prototype.mightProducePrintableCharacter=function(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30||93<=e.keyCode&&e.keyCode<=102||80<=e.keyCode&&e.keyCode<=90)},new Y);function Y(){}var Z=(X.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},X.prototype.enable=function(){var e=this;if(!this.enabled){var t=g.b.chain(Object(m.a)(this.view.domNode,"keydown")).filter((function(e){return!H(e.target)})).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).map((function(e){return new f.a(e)})).filter((function(t){return e.delegate.mightProducePrintableCharacter(t)})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).map((function(e){return e.browserEvent.key})).event,n=g.b.debounce(t,(function(){return null}),800);g.b.reduce(g.b.any(t,n),(function(e,t){return null===t?null:(e||"")+t}))(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},X.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},X.prototype.onInput=function(e){if(!e)return this.state=z.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=0<t.length?t[0]:0,i=this.state===z.Idle?1:0;this.state=z.Typing;for(var o=0;o<this.list.length;o++){var r=(n+o+i)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r)),a=s&&s.toString();if(void 0===a||Object(x.g)(e,a))return this.list.setFocus([r]),void this.list.reveal(r)}},X.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},X);function X(e,t,n,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=i,this.enabled=!1,this.state=z.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new a.b,this.disposables=new a.b,this.updateOptions(e.options)}var $=(J.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]);if(n){var i=n.querySelector("[tabIndex]");if(i&&i instanceof HTMLElement&&-1!==i.tabIndex){var o=window.getComputedStyle(i);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}}}}},J.prototype.dispose=function(){this.disposables.dispose()},J);function J(e,t){this.list=e,this.view=t,this.disposables=new a.b,g.b.chain(Object(m.a)(t.domNode,"keydown")).filter((function(e){return!H(e.target)})).map((function(e){return new f.a(e)})).filter((function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)})).on(this.onTab,this,this.disposables)}function Q(e){return h.e?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function ee(e){return e.browserEvent.shiftKey}function te(e){return e instanceof MouseEvent&&2===e.button}var ne={isSelectionSingleChangeEvent:Q,isSelectionRangeChangeEvent:ee},ie={shouldOpen:function(e){return!(e instanceof MouseEvent)||!te(e)}},oe=(re.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):h.e?e.browserEvent.metaKey:e.browserEvent.ctrlKey},re.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},re.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},re.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},re.prototype.onContextMenu=function(e){var t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},re.prototype.onPointer=function(e){if(this.mouseSupport&&!H(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var i=e.index;if(void 0===i)return this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent);if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.list.setFocus([i],e.browserEvent),te(e.browserEvent)||(this.list.setSelection([i],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))}},re.prototype.onDoubleClick=function(e){if(!(H(e.browserEvent.target)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},re.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=Math.min(t,n),o=Math.max(t,n),r=Object(u.u)(i,o+1),s=function(e,t){var n=e.indexOf(t);if(-1===n)return[];for(var i=[],o=n-1;0<=o&&e[o]===t-(n-o);)i.push(e[o--]);for(i.reverse(),o=n;o<e.length&&e[o]===t+(o-n);)i.push(e[o++]);return i}(ce(l=this.list.getSelection(),[t]),t);if(0===s.length)return;var a=ce(r,function(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]){i++,o++;continue}e[i]<t[o]?n.push(e[i++]):o++}return n}(l,s));this.list.setSelection(a,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){var l;a=(l=this.list.getSelection()).filter((function(e){return e!==n})),this.list.setFocus([n]),l.length===a.length?this.list.setSelection(M(a,[n]),e.browserEvent):this.list.setSelection(a,e.browserEvent)}},re.prototype.dispose=function(){this.disposables.dispose()},re);function re(e){this.list=e,this.disposables=new a.b,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||ne),this.openController=e.options.openController||ie,this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(p.b.addTarget(e.getHTMLElement()))),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}var se=(ae.prototype.style=function(e){var t=this.selectorSuffix&&"."+this.selectorSuffix,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(".monaco-list"+t+" .monaco-list-rows { background: "+e.listBackground+"; }"):h.e),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("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),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+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover:not(.selected):not(.focused) { 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("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.focused { outline: 1px solid "+e.listFocusOutline+"; outline-offset: -1px; }\n\t\t\t"),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; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-list"+t+".drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFilterWidgetBackground&&n.push(".monaco-list-type-filter { background-color: "+e.listFilterWidgetBackground+" }"),e.listFilterWidgetOutline&&n.push(".monaco-list-type-filter { border: 1px solid "+e.listFilterWidgetOutline+"; }"),e.listFilterWidgetNoMatchesOutline&&n.push(".monaco-list-type-filter.no-matches { border: 1px solid "+e.listFilterWidgetNoMatchesOutline+"; }"),e.listMatchesShadow&&n.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+e.listMatchesShadow+"; }");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},ae);function ae(e,t){this.styleElement=e,this.selectorSuffix=t}var le={listFocusBackground:w.a.fromHex("#7FB0D0"),listActiveSelectionBackground:w.a.fromHex("#0E639C"),listActiveSelectionForeground:w.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:w.a.fromHex("#094771"),listFocusAndSelectionForeground:w.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:w.a.fromHex("#3F3F46"),listHoverBackground:w.a.fromHex("#2A2D2E"),listDropBackground:w.a.fromHex("#383B3D"),treeIndentGuidesStroke:w.a.fromHex("#a9a9a9")},ue={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:o.TREE};function ce(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 de=function(e,t){return e-t},he=(Object.defineProperty(pe.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))},pe.prototype.renderElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++)s[r].renderElement(e,t,n[o++],i)},pe.prototype.disposeElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++){var a=s[r];a.disposeElement&&a.disposeElement(e,t,n[o],i),o+=1}},pe.prototype.disposeTemplate=function(e){for(var t=0,n=0,i=this.renderers;n<i.length;n++)i[n].disposeTemplate(e[t++])},pe);function pe(e,t){this._templateId=e,this.renderers=t}var fe=(ge.prototype.renderTemplate=function(e){return e},ge.prototype.renderElement=function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");var o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof o?n.setAttribute("aria-level",""+o):n.removeAttribute("aria-level")},ge.prototype.disposeTemplate=function(e){},ge);function ge(e){this.accessibilityProvider=e,this.templateId="a18n"}var me=(ve.prototype.getDragElements=function(e){var t=this.list.getSelectedElements();return-1<t.indexOf(e)?t:[e]},ve.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},ve.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)},ve.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},ve.prototype.onDragOver=function(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)},ve.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},ve.prototype.drop=function(e,t,n,i){this.dnd.drop(e,t,n,i)},ve);function ve(e,t){this.list=e,this.dnd=t}var _e=(Object.defineProperty(be.prototype,"onFocusChange",{get:function(){var e=this;return g.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onSelectionChange",{get:function(){var e=this;return g.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onContextMenu",{get:function(){var e=this,t=g.b.chain(Object(m.a)(this.view.domNode,"keydown")).map((function(e){return new f.a(e)})).filter((function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode})).filter((function(e){return e.preventDefault(),e.stopPropagation(),!1})).event,n=g.b.chain(Object(m.a)(this.view.domNode,"keyup")).filter((function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t})).filter((function(){return 0<e.getFocus().length&&!!e.view.domElement(e.getFocus()[0])})).map((function(t){var n=e.getFocus()[0];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t}})).event,i=g.b.chain(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;return g.b.any(t,n,i)},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"onKeyDown",{get:function(){return Object(m.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),be.prototype.createMouseController=function(e){return new oe(this)},be.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=E(E({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(be.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),be.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new b(this.user,"Invalid start index: "+e);if(t<0)throw new b(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents((function(){return i.spliceable.splice(e,t,n)}))},be.prototype.rerender=function(){this.view.rerender()},be.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(be.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(be.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),be.prototype.domFocus=function(){this.view.domNode.focus()},be.prototype.layout=function(e,t){this.view.layout(e,t)},be.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 b(this.user,"Invalid index "+o)}this.selection.set(e,t)},be.prototype.getSelection=function(){return this.selection.get()},be.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))},be.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 b(this.user,"Invalid index "+o)}this.focus.set(e,t)},be.prototype.focusNext=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findNextIndex(0<o.length?o[0]+e:0,t,i);-1<r&&this.setFocus([r],n)}},be.prototype.focusPrevious=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findPreviousIndex(0<o.length?o[0]-e:0,t,i);-1<r&&this.setFocus([r],n)}},be.prototype.focusNextPage=function(e,t){var n=this,i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;var o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){var s=this.findPreviousIndex(i,!1,t);-1<s&&r!==this.view.element(s)?this.setFocus([s],e):this.setFocus([i],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==a&&setTimeout((function(){return n.focusNextPage(e,t)}),0)}},be.prototype.focusPreviousPage=function(e,t){var n,i=this,o=this.view.getScrollTop();n=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);var r=this.view.element(n),s=this.getFocusedElements()[0];if(s!==r){var a=this.findNextIndex(n,!1,t);-1<a&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([n],e)}else{var l=o;this.view.setScrollTop(o-this.view.renderHeight),this.view.getScrollTop()!==l&&setTimeout((function(){return i.focusPreviousPage(e,t)}),0)}},be.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);-1<n&&this.setFocus([n],e)}},be.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);-1<n&&this.setFocus([n],e)}},be.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},be.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1},be.prototype.getFocus=function(){return this.focus.get()},be.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))},be.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new b(this.user,"Invalid index "+e);var n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(Object(l.h)(t)){var r=o-this.view.renderHeight;this.view.setScrollTop(r*Object(D.a)(t,0,1)+i)}else{var s=i+o,a=n+this.view.renderHeight;i<n&&a<=s||(i<n?this.view.setScrollTop(i):a<=s&&this.view.setScrollTop(s-this.view.renderHeight))}},be.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new b(this.user,"Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;var o=i-this.view.renderHeight;return Math.abs((t-n)/o)},be.prototype.getHTMLElement=function(){return this.view.domNode},be.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 b(this.user,"Invalid index "+r)}this._onDidOpen.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},be.prototype.pin=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 b(this.user,"Invalid index "+r)}this._onDidPin.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},be.prototype.style=function(e){this.styleController.style(e)},be.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}},be.prototype._onFocusChange=function(){var e=this.focus.get();d.Y(this.view.domNode,"element-focused",0<e.length),this.onDidChangeActiveDescendant()},be.prototype.onDidChangeActiveDescendant=function(){var e,t=this.focus.get();if(0<t.length){var n=void 0;null!==(e=this.accessibilityProvider)&&void 0!==e&&e.getActiveDescendantId&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},be.prototype._onSelectionChange=function(){var e=this.selection.get();d.Y(this.view.domNode,"selection-none",0===e.length),d.Y(this.view.domNode,"selection-single",1===e.length),d.Y(this.view.domNode,"selection-multiple",1<e.length)},be.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},I([c.a],be.prototype,"onFocusChange",null),I([c.a],be.prototype,"onSelectionChange",null),I([c.a],be.prototype,"onContextMenu",null),be);function be(e,t,n,i,r){void 0===r&&(r=ue),this.user=e,this._options=r,this.eventBufferer=new g.c,this.disposables=new a.b,this._onDidOpen=new g.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new g.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new g.a,this.onDidDispose=this._onDidDispose.event,this.focus=new j,this.selection=new R("selected"),Object(S.g)(r,le,!1);var l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(l.push(new fe(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),i=i.map((function(e){return new he(e.templateId,M(l,[e]))}));var u=E(E({},r),{dnd:r.dnd&&new me(this,r.dnd)});if(this.view=new C.b(t,n,i,u),"string"!=typeof r.ariaRole?this.view.domNode.setAttribute("role",o.TREE):this.view.domNode.setAttribute("role",r.ariaRole),r.styleController)this.styleController=r.styleController(this.view.domId);else{var c=d.w(this.view.domNode);this.styleController=new se(c,this.view.domId)}if(this.spliceable=new O([new V(this.focus,this.view,r.identityProvider),new V(this.selection,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=g.b.map(Object(m.a)(this.view.domNode,"focus",!0),(function(){return null})),this.onDidBlur=g.b.map(Object(m.a)(this.view.domNode,"blur",!0),(function(){return null})),this.disposables.add(new $(this,this.view)),"boolean"!=typeof r.keyboardSupport||r.keyboardSupport){var h=new K(this,this.view,r);this.disposables.add(h)}if(r.keyboardNavigationLabelProvider){var p=r.keyboardNavigationDelegate||G;this.typeLabelController=new Z(this,this.view,r.keyboardNavigationLabelProvider,p),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(r)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),r.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(s.a)("aria list","{0}. Use the navigation keys to navigate.",r.ariaLabel))}},function(e,t,n){"use strict";var i=n(505),o=n(439),r=n(702),s=n(443),a=n(442),l=n(686),u=n(688),c=n(896);function d(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=c.a.intersect(e,r.range);c.a.isEmpty(s)||n.push({range:s,size:r.size})}}return n}function h(e,t){return{start:e.start+t,end:e.end+t}}var p=(f.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var i=n.length-t,o=d({start:0,end:e},this.groups),r=d({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:h(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,l=r.size;n&&l===n.size?n.range.end=a:(n={range:{start:s,end:a},size:l},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(f.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),f.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},f.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},f.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},f);function f(){this.groups=[],this._size=0}var g=(m.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=Object(s.a)(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t},m.prototype.release=function(e){e&&this.releaseRow(e)},m.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(Object(s.P)(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)},m.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},m.prototype.dispose=function(){var e=this;this.cache.forEach((function(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];e.getRenderer(n).disposeTemplate(r.templateData),r.domNode=null,r.templateData=null}})),this.cache.clear()},m.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},m);function m(e){this.renderers=e,this.cache=new Map}var v=n(881),_=n(459),b=n(888),y=n(453),C=n(478);n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return I}));var w=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},S=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},O={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},L=(D.prototype.update=function(){},D.prototype.getData=function(){return this.elements},D);function D(e){this.elements=e}var x=(N.prototype.update=function(){},N.prototype.getData=function(){return this.elements},N);function N(e){this.elements=e}var k=(E.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,S([0,this.types.length],e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var i=e.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}},E.prototype.getData=function(){return{types:this.types,files:this.files}},E);function E(){this.types=[],this.files=[]}var I=(Object.defineProperty(M.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),M.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,this._onDidChangeContentHeight.fire(this.contentHeight)}},M.prototype._splice=function(e,t,n){var i,r=this;void 0===n&&(n=[]);for(var s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),a={start:e,end:e+t},l=c.a.intersect(s,a),u=l.start;u<l.end;u++)this.removeItemFromDOM(u);var d,f={start:e+t,end:this.items.length},g=c.a.intersect(f,s),m=c.a.relativeComplement(f,s),v=n.map((function(e){return{id:String(r.itemId++),element:e,templateId:r.virtualDelegate.getTemplateId(e),size:r.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!r.virtualDelegate.hasDynamicHeight&&r.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:o.a.None}}));d=0===e&&t>=this.items.length?(this.rangeMap=new p,this.rangeMap.splice(0,0,v),this.items=v,[]):(this.rangeMap.splice(e,t,v),(i=this.items).splice.apply(i,S([e,t],v)));var _=n.length-t,b=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),y=h(g,_),C=c.a.intersect(b,y);for(u=C.start;u<C.end;u++)this.updateItemInDOM(this.items[u],u);for(var w=0,O=c.a.relativeComplement(y,b);w<O.length;w++)for(u=(I=O[w]).start;u<I.end;u++)this.removeItemFromDOM(u);for(var L=m.map((function(e){return h(e,_)})),D={start:e,end:e+n.length},x=S([D],L).map((function(e){return c.a.intersect(b,e)})),N=this.getNextToLastElement(x),k=0,E=x;k<E.length;k++){var I;for(u=(I=E[k]).start;u<I.end;u++)this.insertItemInDOM(u,N)}return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((function(e){return e.element}))},M.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=s.W((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))},M.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()}))},M.prototype.updateScrollWidth=function(){if(this.horizontalScrolling){0===this.items.length&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var e=0,t=0,n=this.items;t<n.length;t++){var i=n[t];void 0!==i.width&&(e=Math.max(e,i.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},M.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++)t[e].lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(M.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"renderHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},enumerable:!0,configurable:!0}),M.prototype.element=function(e){return this.items[e].element},M.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},M.prototype.elementHeight=function(e){return this.items[e].size},M.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},M.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},M.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},M.prototype.layout=function(e,t){var n={height:"number"==typeof e?e:s.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:s.B(this.domNode)}))},M.prototype.render=function(e,t,n,i){for(var o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=this.getRenderRange(e,t),s=c.a.relativeComplement(r,o),a=c.a.relativeComplement(o,r),l=this.getNextToLastElement(s),u=0,d=s;u<d.length;u++)for(var h=(g=d[u]).start;h<g.end;h++)this.insertItemInDOM(h,l);for(var p=0,f=a;p<f.length;p++){var g;for(h=(g=f[p]).start;h<g.end;h++)this.removeItemFromDOM(h)}this.rowsContainer.style.left="-"+n+"px",this.rowsContainer.style.top="-"+e+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(i,this.renderWidth)+"px"),this.lastRenderTop=e,this.lastRenderHeight=t},M.prototype.insertItemInDOM=function(e,t){var n=this,i=this.items[e];if(!i.row){i.row=this.cache.alloc(i.templateId);var o=this.ariaProvider.getRole?this.ariaProvider.getRole(i.element):"treeitem";i.row.domNode.setAttribute("role",o);var r=this.ariaProvider.isChecked?this.ariaProvider.isChecked(i.element):void 0;void 0!==r&&i.row.domNode.setAttribute("aria-checked",String(r))}i.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(i.row.domNode,t):this.rowsContainer.appendChild(i.row.domNode)),this.updateItemInDOM(i,e);var s=this.renderers.get(i.templateId);if(!s)throw new Error("No renderer found for template id "+i.templateId);s&&s.renderElement(i.element,e,i.row.templateData,i.size);var a=this.dnd.getDragURI(i.element);if(i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a){var u=Object(l.a)(i.row.domNode,"dragstart");i.dragStartDisposable=u((function(e){return n.onDragStart(i.element,a,e)}))}this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())},M.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width=C.h?"-moz-fit-content":"fit-content",e.width=s.B(e.row.domNode);var t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}},M.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.style.height=e.size+"px",this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"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",String(this.ariaProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),s.Y(e.row.domNode,"drop-target",e.dropTarget)},M.prototype.removeItemFromDOM=function(e){var t=this.items[e];t.dragStartDisposable.dispose();var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},M.prototype.getScrollTop=function(){return this.scrollableElement.getScrollPosition().scrollTop},M.prototype.setScrollTop=function(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})},Object.defineProperty(M.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onMouseClick",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"click"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onMouseDblClick",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"dblclick"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onMouseMiddleClick",{get:function(){var e=this;return a.b.filter(a.b.map(Object(l.a)(this.domNode,"auxclick"),(function(t){return e.toMouseEvent(t)})),(function(e){return 1===e.browserEvent.button}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onMouseDown",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"mousedown"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onContextMenu",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"contextmenu"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onTouchStart",{get:function(){var e=this;return a.b.map(Object(l.a)(this.domNode,"touchstart"),(function(t){return e.toTouchEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(M.prototype,"onTap",{get:function(){var e=this;return a.b.map(Object(l.a)(this.rowsContainer,r.a.Tap),(function(t){return e.toGestureEvent(t)}))},enumerable:!0,configurable:!0}),M.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},M.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},M.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},M.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},M.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(e){throw e}},M.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},M.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(b.a.RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){var o=void 0;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(i,n)),void 0===o&&(o=String(i.length));var r=s.a(".monaco-drag-image");r.textContent=o,document.body.appendChild(r),n.dataTransfer.setDragImage(r,-10,-10),setTimeout((function(){return document.body.removeChild(r)}),0)}this.currentDragData=new L(i),b.c.CurrentDragAndDropData=new x(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},M.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),b.c.CurrentDragAndDropData&&"vscode-ui"===b.c.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(b.c.CurrentDragAndDropData)this.currentDragData=b.c.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new k}var n,i,r,a=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof a?a:a.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof a&&0===a.effect?"copy":"move",n="boolean"!=typeof a&&a.feedback?a.feedback:void 0===e.index?[-1]:[e.index],n=-1===(n=Object(_.e)(n).filter((function(e){return-1<=e&&e<t.length})).sort((function(e,t){return e-t})))[0]?[-1]:n,i=this.currentDragFeedback,r=n,Array.isArray(i)&&Array.isArray(r)?Object(_.g)(i,r):i===r)return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])s.f(this.domNode,"drop-target"),s.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(o.h)((function(){s.P(t.domNode,"drop-target"),s.P(t.rowsContainer,"drop-target")}));else{for(var l=0,u=n;l<u.length;l++){var c=u[l],d=this.items[c];d.dropTarget=!0,d.row&&d.row.domNode&&s.f(d.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(o.h)((function(){for(var e=0,i=n;e<i.length;e++){var o=i[e],r=t.items[o];r.dropTarget=!1,r.row&&r.row.domNode&&s.P(r.row.domNode,"drop-target")}}))}return!0},M.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(y.g)((function(){return e.clearDragOverFeedback()}),100)},M.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}},M.prototype.onDragEnd=function(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},M.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=o.a.None},M.prototype.setupDragAndDropScrollTopAnimation=function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=s.F(this.domNode).top;this.dragOverAnimationDisposable=s.p(this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(y.g)((function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY},M.prototype.animateDragAndDropScrollTop=function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):n<t&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},M.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},M.prototype.getItemIndexFromEventTarget=function(e){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}t=t.parentElement}},M.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},M.prototype._rerender=function(e,t){var n,i,o=this.getRenderRange(e,t);e===this.elementTop(o.start)?(n=o.start,i=0):1<o.end-o.start&&(n=o.start+1,i=this.elementTop(n)-e);for(var r=0;;){for(var s=this.getRenderRange(e,t),a=!1,l=s.start;l<s.end;l++){var u=this.probeDynamicHeight(l);0!==u&&this.rangeMap.splice(l,1,[this.items[l]]),r+=u,a=a||0!==u}if(!a){0!==r&&this.eventuallyUpdateScrollDimensions();for(var d=0,h=c.a.relativeComplement(o,s);d<h.length;d++)for(l=(g=h[d]).start;l<g.end;l++)this.items[l].row&&this.removeItemFromDOM(l);for(var p=0,f=c.a.relativeComplement(s,o);p<f.length;p++){var g;for(l=(g=f[p]).start;l<g.end;l++){var m=l+1,v=m<this.items.length?this.items[m].row:null,_=v?v.domNode:null;this.insertItemInDOM(l,_)}}for(l=s.start;l<s.end;l++)this.items[l].row&&this.updateItemInDOM(this.items[l],l);return"number"==typeof n&&(this.scrollTop=this.elementTop(n)-i),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},M.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);var o=this.renderers.get(t.templateId);return o&&(o.renderElement(t.element,e,i.templateData,void 0),o.disposeElement&&o.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n},M.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},M.prototype.getElementDomId=function(e){return this.domId+"_"+e},M.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row){var i=this.renderers.get(n.row.templateId);i&&i.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(o.f)(this.disposables)},M.InstanceCount=0,w([v.a],M.prototype,"onMouseClick",null),w([v.a],M.prototype,"onMouseDblClick",null),w([v.a],M.prototype,"onMouseMiddleClick",null),w([v.a],M.prototype,"onMouseDown",null),w([v.a],M.prototype,"onContextMenu",null),w([v.a],M.prototype,"onTouchStart",null),w([v.a],M.prototype,"onTap",null),M);function M(e,t,n,c){var d=this;if(void 0===c&&(c=O),this.virtualDelegate=t,this.domId="list_id_"+ ++M.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new y.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=o.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=o.a.None,this.onDragLeaveTimeout=o.a.None,this.disposables=new o.b,this._onDidChangeContentHeight=new a.a,c.horizontalScrolling&&c.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new p;for(var h=0,f=n;h<f.length;h++){var m=f[h];this.renderers.set(m.templateId,m)}this.cache=this.disposables.add(new g(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",s.f(this.domNode,this.domId),this.domNode.tabIndex=0,s.Y(this.domNode,"mouse-support","boolean"!=typeof c.mouseSupport||c.mouseSupport),this.horizontalScrolling=Object(i.f)(c,(function(e){return e.horizontalScrolling}),O.horizontalScrolling),s.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=void 0===c.additionalScrollHeight?0:c.additionalScrollHeight,this.ariaProvider=c.ariaProvider||{getSetSize:function(e,t,n){return n},getPosInSet:function(e,t){return t+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(r.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new u.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(i.f)(c,(function(e){return e.verticalScrollMode}),O.verticalScrollMode),useShadows:Object(i.f)(c,(function(e){return e.useShadows}),O.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(l.a)(this.rowsContainer,r.a.Change)(this.onTouchChange,this,this.disposables),Object(l.a)(this.scrollableElement.getDomNode(),"scroll")((function(e){return e.target.scrollTop=0}),null,this.disposables),a.b.map(Object(l.a)(this.domNode,"dragover"),(function(e){return d.toDragEvent(e)}))(this.onDragOver,this,this.disposables),a.b.map(Object(l.a)(this.domNode,"drop"),(function(e){return d.toDragEvent(e)}))(this.onDrop,this,this.disposables),Object(l.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(l.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(i.f)(c,(function(e){return e.setRowLineHeight}),O.setRowLineHeight),this.supportDynamicHeights=Object(i.f)(c,(function(e){return e.supportDynamicHeights}),O.supportDynamicHeights),this.dnd=Object(i.f)(c,(function(e){return e.dnd}),O.dnd),this.layout()}},function(e,t,n){"use strict";var i=n(446),o=n(444),r=n(794),s=n(1085),a=n(440),l=n(466),u=(c.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new a.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},c.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,o=n[1].range;return new l.a(i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)},c);function c(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}var d=n(555),h=n(823),p=n(825),f=n(575);n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return y}));var g,m=(g=function(e,t){return(g=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}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=(_.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new s.a(n[o],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},_.outdent=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new s.a(n[o],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},_.shiftIndent=function(e,t,n){return n=n||1,s.a.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},_.unshiftIndent=function(e,t,n){return n=n||1,s.a.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},_._distributedPaste=function(e,t,n,i){for(var o=[],s=0,a=n.length;s<a;s++)o[s]=new r.a(n[s],i[s]);return new d.e(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._simplePaste=function(e,t,n,i,o){for(var s=[],l=0,u=n.length;l<u;l++){var c=n[l],h=c.getPosition();if(o&&!c.isEmpty()&&(o=!1),o&&i.indexOf("\n")!==i.length-1&&(o=!1),o){var p=new a.a(h.lineNumber,1,h.lineNumber,1);s[l]=new r.b(p,i,c,!0)}else s[l]=new r.a(c,i)}return new d.e(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._distributePasteToCursors=function(e,t,n,i,o){if(i)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));var r=n.split(/\r\n|\r|\n/);if(r.length===t.length)return r}return null},_.paste=function(e,t,n,i,o,r){var s=this._distributePasteToCursors(e,n,i,o,r);return s?(n=n.sort(a.a.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,o)},_._goodIndentForLine=function(e,t,n){var i=null,r="",s=f.a.getInheritIndentForLine(e.autoIndent,t,n,!1);if(s)i=s.action,r=s.indentation;else if(1<n){var l=void 0;for(l=n-1;1<=l;l--){var u=t.getLineContent(l);if(0<=o.D(u))break}if(l<1)return null;var c=t.getLineMaxColumn(l),d=f.a.getEnterAction(e.autoIndent,t,new a.a(l,c,l,c));d&&(r=d.indentation+d.appendText)}return i&&(i===p.a.Indent&&(r=_.shiftIndent(e,r)),i===p.a.Outdent&&(r=_.unshiftIndent(e,r)),r=e.normalizeIndentation(r)),r||null},_._replaceJumpToNextIndent=function(e,t,n,i){var o="",s=n.getStartPosition();if(e.insertSpaces)for(var a=d.a.visibleColumnFromColumn2(e,t,s),l=e.indentSize,u=l-a%l,c=0;c<u;c++)o+=" ";else o="\t";return new r.a(n,o,i)},_.tab=function(e,t,n){for(var i=[],l=0,u=n.length;l<u;l++){var c=n[l];if(c.isEmpty()){var d=t.getLineContent(c.startLineNumber);if(/^\s*$/.test(d)&&t.isCheapToTokenize(c.startLineNumber)){var h=this._goodIndentForLine(e,t,c.startLineNumber);h=h||"\t";var p=e.normalizeIndentation(h);if(!o.N(d,p)){i[l]=new r.a(new a.a(c.startLineNumber,1,c.startLineNumber,d.length+1),p,!0);continue}}i[l]=this._replaceJumpToNextIndent(e,t,c,!0)}else{if(c.startLineNumber===c.endLineNumber){var f=t.getLineMaxColumn(c.startLineNumber);if(1!==c.startColumn||c.endColumn!==f){i[l]=this._replaceJumpToNextIndent(e,t,c,!1);continue}}i[l]=new s.a(c,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i},_.replacePreviousChar=function(e,t,n,i,o,s){for(var l=[],u=0,c=i.length;u<c;u++){var h=i[u];if(h.isEmpty()){var p=h.getPosition(),f=Math.max(1,p.column-s),g=new a.a(p.lineNumber,f,p.lineNumber,p.column);l[u]=new r.a(g,o)}else l[u]=null}return new d.e(1,l,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},_._typeCommand=function(e,t,n){return n?new r.e(e,t,!0):new r.a(e,t,!0)},_._enter=function(e,t,n,i){if(0===e.autoIndent)return _._typeCommand(i,"\n",n);if(!t.isCheapToTokenize(i.getStartPosition().lineNumber)||1===e.autoIndent){var s=t.getLineContent(i.startLineNumber),l=o.t(s).substring(0,i.startColumn-1);return _._typeCommand(i,"\n"+e.normalizeIndentation(l),n)}var u=f.a.getEnterAction(e.autoIndent,t,i);if(u){if(u.indentAction===p.a.None)return _._typeCommand(i,"\n"+e.normalizeIndentation(u.indentation+u.appendText),n);if(u.indentAction===p.a.Indent)return _._typeCommand(i,"\n"+e.normalizeIndentation(u.indentation+u.appendText),n);if(u.indentAction===p.a.IndentOutdent){var c=e.normalizeIndentation(u.indentation),h=e.normalizeIndentation(u.indentation+u.appendText),g="\n"+h+"\n"+c;return n?new r.e(i,g,!0):new r.d(i,g,-1,h.length-c.length,!0)}if(u.indentAction===p.a.Outdent){var m=_.unshiftIndent(e,u.indentation);return _._typeCommand(i,"\n"+e.normalizeIndentation(m+u.appendText),n)}}var v=t.getLineContent(i.startLineNumber),b=o.t(v).substring(0,i.startColumn-1);if(4<=e.autoIndent){var y=f.a.getIndentForEnter(e.autoIndent,t,i,{unshiftIndent:function(t){return _.unshiftIndent(e,t)},shiftIndent:function(t){return _.shiftIndent(e,t)},normalizeIndentation:function(t){return e.normalizeIndentation(t)}});if(y){var C=d.a.visibleColumnFromColumn2(e,t,i.getEndPosition()),w=i.endColumn,S="\n";b!==e.normalizeIndentation(y.beforeEnter)&&(S=e.normalizeIndentation(y.beforeEnter)+v.substring(b.length,i.startColumn-1)+"\n",i=new a.a(i.startLineNumber,1,i.endLineNumber,i.endColumn));var O=t.getLineContent(i.endLineNumber),L=o.q(O);if(i=0<=L?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,L+1)):i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new r.e(i,S+e.normalizeIndentation(y.afterEnter),!0);var D=0;return w<=L+1&&(e.insertSpaces||(C=Math.ceil(C/e.indentSize)),D=Math.min(C+1-e.normalizeIndentation(y.afterEnter).length-1,0)),new r.d(i,S+e.normalizeIndentation(y.afterEnter),0,D,!0)}}return _._typeCommand(i,"\n"+e.normalizeIndentation(b),n)},_._isAutoIndentType=function(e,t,n){if(e.autoIndent<4)return!1;for(var i=0,o=n.length;i<o;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0},_._runAutoIndentType=function(e,t,n,i){var o=f.a.getIndentationAtPosition(t,n.startLineNumber,n.startColumn),r=f.a.getIndentActionForType(e.autoIndent,t,n,i,{shiftIndent:function(t){return _.shiftIndent(e,t)},unshiftIndent:function(t){return _.unshiftIndent(e,t)}});if(null===r)return null;if(r===e.normalizeIndentation(o))return null;var s=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return _._typeCommand(new a.a(n.startLineNumber,0,n.endLineNumber,n.endColumn),0===s?e.normalizeIndentation(r)+i:e.normalizeIndentation(r)+t.getLineContent(n.startLineNumber).substring(s-1,n.startColumn-1)+i,!1)},_._isAutoClosingOvertype=function(e,t,n,i,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(o))return!1;for(var r=0,s=n.length;r<s;r++){var a=n[r];if(!a.isEmpty())return!1;var l=a.getPosition(),u=t.getLineContent(l.lineNumber);if(u.charAt(l.column-1)!==o)return!1;var c=Object(d.g)(o);if(92===(2<l.column?u.charCodeAt(l.column-2):0)&&c)return!1;if("auto"===e.autoClosingOvertype){for(var h=!1,p=0,f=i.length;p<f;p++){var g=i[p];if(l.lineNumber===g.startLineNumber&&l.column===g.startColumn){h=!0;break}}if(!h)return!1}}return!0},_._runAutoClosingOvertype=function(e,t,n,i,o){for(var s=[],l=0,u=i.length;l<u;l++){var c=i[l].getPosition(),h=new a.a(c.lineNumber,c.column,c.lineNumber,c.column+1);s[l]=new r.a(h,o)}return new d.e(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},_._autoClosingPairIsSymmetric=function(e){var t=e.open,n=e.close;return 0<=t.indexOf(n)||0<=n.indexOf(t)},_._isBeforeClosingBrace=function(e,t,n){var i=e.autoClosingPairsClose2.get(n);if(!i)return!1;for(var o=_._autoClosingPairIsSymmetric(t),r=0,s=i;r<s.length;r++){var a=s[r],l=_._autoClosingPairIsSymmetric(a);if(o||!l)return!0}return!1},_._findAutoClosingPairOpen=function(e,t,n,i){var o=e.autoClosingPairsOpen2.get(i);if(!o)return null;for(var r=null,s=0,l=o;s<l.length;s++){var u=l[s];if(null===r||u.open.length>r.open.length){for(var c=!0,d=0,h=n;d<h.length;d++){var p=h[d];if(t.getValueInRange(new a.a(p.lineNumber,p.column-u.open.length+1,p.lineNumber,p.column))+i!==u.open){c=!1;break}}c&&(r=u)}}return r},_._isAutoClosingOpenCharType=function(e,t,n,o,r){var s=Object(d.g)(o),a=s?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;var l=this._findAutoClosingPairOpen(e,t,n.map((function(e){return e.getPosition()})),o);if(!l)return null;for(var u=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket,c=0,p=n.length;c<p;c++){var g=n[c];if(!g.isEmpty())return null;var m=g.getPosition(),v=t.getLineContent(m.lineNumber);if(v.length>m.column-1){var b=v.charAt(m.column-1);if(!_._isBeforeClosingBrace(e,l,b)&&!u(b))return null}if(!t.isCheapToTokenize(m.lineNumber))return null;if(1===l.open.length&&s&&"always"!==a){var y=Object(h.a)(e.wordSeparators);if(r&&1<m.column&&0===y.get(v.charCodeAt(m.column-2)))return null;if(!r&&2<m.column&&0===y.get(v.charCodeAt(m.column-3)))return null}t.forceTokenization(m.lineNumber);var C=t.getLineTokens(m.lineNumber),w=!1;try{w=f.a.shouldAutoClosePair(l,C,r?m.column:m.column-1)}catch(e){Object(i.e)(e)}if(!w)return null}return l},_._runAutoClosingOpenCharType=function(e,t,n,i,o,r,s){for(var a=[],l=0,u=i.length;l<u;l++){var c=i[l];a[l]=new y(c,o,r,s.close)}return new d.e(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},_._shouldSurroundChar=function(e,t){return Object(d.g)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},_._isSurroundSelectionType=function(e,t,n,i){if(!_._shouldSurroundChar(e,i)||!e.surroundingPairs.hasOwnProperty(i))return!1;for(var o=Object(d.g)(i),r=0,s=n.length;r<s;r++){var a=n[r];if(a.isEmpty())return!1;for(var l=!0,u=a.startLineNumber;u<=a.endLineNumber;u++){var c=t.getLineContent(u),h=u===a.startLineNumber?a.startColumn-1:0,p=u===a.endLineNumber?a.endColumn-1:c.length,f=c.substring(h,p);if(/[^ \t]/.test(f)){l=!1;break}}if(l)return!1;if(o&&a.startLineNumber===a.endLineNumber&&a.startColumn+1===a.endColumn){var g=t.getValueInRange(a);if(Object(d.g)(g))return!1}}return!0},_._runSurroundSelectionType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var l=i[s],c=t.surroundingPairs[o];r[s]=new u(l,o,c)}return new d.e(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},_._typeInterceptorElectricChar=function(e,t,n,s,l){if(!t.electricChars.hasOwnProperty(l)||!s.isEmpty())return null;var u=s.getPosition();n.forceTokenization(u.lineNumber);var c,h=n.getLineTokens(u.lineNumber);try{c=f.a.onElectricCharacter(l,h,u.column)}catch(e){return Object(i.e)(e),null}if(!c)return null;if(c.matchOpenBracket){var p=(h.getLineContent()+l).lastIndexOf(c.matchOpenBracket)+1,g=n.findMatchingBracketUp(c.matchOpenBracket,{lineNumber:u.lineNumber,column:p});if(g){if(g.startLineNumber===u.lineNumber)return null;var m=n.getLineContent(g.startLineNumber),v=o.t(m),_=t.normalizeIndentation(v),b=n.getLineContent(u.lineNumber),y=n.getLineFirstNonWhitespaceColumn(u.lineNumber)||u.column,C=_+b.substring(y-1,u.column-1)+l,w=new a.a(u.lineNumber,1,u.lineNumber,u.column),S=new r.a(w,C);return new d.e(1,[S],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},_.compositionEndWithInterceptors=function(e,t,n,i,o,s){if(!i||l.a.selectionsArrEqual(i,o))return null;for(var u=null,c=0,h=o;c<h.length;c++){var p=h[c];if(!p.isEmpty())return null;var f=p.getPosition(),g=n.getValueInRange(new a.a(f.lineNumber,f.column-1,f.lineNumber,f.column));if(null===u)u=g;else if(u!==g)return null}if(!u)return null;if(this._isAutoClosingOvertype(t,n,o,s,u)){var m=o.map((function(e){return new r.a(new a.a(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new d.e(1,m,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var v=this._isAutoClosingOpenCharType(t,n,o,u,!1);return v?this._runAutoClosingOpenCharType(e,t,n,o,u,!1,v):null},_.typeWithInterceptors=function(e,t,n,i,o,s){if("\n"===s){for(var a=[],l=0,u=i.length;l<u;l++)a[l]=_._enter(t,n,!1,i[l]);return new d.e(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(t,n,i)){var c=[],h=!1;for(l=0,u=i.length;l<u;l++)if(c[l]=this._runAutoIndentType(t,n,i[l],s),!c[l]){h=!0;break}if(!h)return new d.e(1,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(t,n,i,o,s))return this._runAutoClosingOvertype(e,t,n,i,s);var p=this._isAutoClosingOpenCharType(t,n,i,s,!0);if(p)return this._runAutoClosingOpenCharType(e,t,n,i,s,!0,p);if(this._isSurroundSelectionType(t,n,i,s))return this._runSurroundSelectionType(e,t,n,i,s);if(this._isTypeInterceptorElectricChar(t,n,i)){var f=this._typeInterceptorElectricChar(e,t,n,i[0],s);if(f)return f}var g=[];for(l=0,u=i.length;l<u;l++)g[l]=new r.a(i[l],s);var m=1!==e;return" "===s&&(m=!0),new d.e(1,g,{shouldPushStackElementBefore:m,shouldPushStackElementAfter:!1})},_.typeWithoutInterceptors=function(e,t,n,i,o){for(var s=[],a=0,l=i.length;a<l;a++)s[a]=new r.a(i[a],o);return new d.e(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},_.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,s=n.length;o<s;o++){var l=n[o].positionLineNumber;if(1===l)i[o]=new r.e(new a.a(1,1,1,1),"\n");else{l--;var u=t.getLineMaxColumn(l);i[o]=this._enter(e,t,!1,new a.a(l,u,l,u))}}return i},_.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber,l=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new a.a(s,l,s,l))}return i},_.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},_);function _(){}var b,y=(m(C,b=r.d),C.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.a(n.startLineNumber,n.endColumn-this._closeCharacter.length,n.endLineNumber,n.endColumn),this.enclosingRange=new a.a(n.startLineNumber,n.endColumn-this._openCharacter.length-this._closeCharacter.length,n.endLineNumber,n.endColumn),b.prototype.computeCursorState.call(this,e,t)},C);function C(e,t,n,i){var o=b.call(this,e,(n?t:"")+i,0,-i.length)||this;return o._openCharacter=t,o._closeCharacter=i,o.closeCharacterRange=null,o.enclosingRange=null,o}},function(e,t,n){"use strict";var i=n(445),o=n(465),r=n(960),s=n(772),a=n(961),l=n(443),u=(n(1356),n(505)),c=n(1092),d=l.a,h=(p.prototype.set=function(e,t){this.didEverRender&&this.keybinding===e&&p.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())},p.prototype.render=function(){if(l.t(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&&(l.q(this.domNode,d("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()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},p.prototype.renderPart=function(e,t,n){var i=c.b.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(null==n?void 0:n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(null==n?void 0:n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(null==n?void 0:n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(null==n?void 0:n.metaKey),i.separator);var o=t.keyLabel;o&&this.renderKey(e,o,Boolean(null==n?void 0:n.keyCode),"")},p.prototype.renderKey=function(e,t,n,i){l.q(e,d("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&l.q(e,d("span.monaco-keybinding-key-separator",void 0,i))},p.prototype.renderUnbound=function(e){l.q(e,d("span.monaco-keybinding-key",void 0,Object(i.a)("unbound","Unbound")))},p.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(u.e)(e.firstPart,t.firstPart)&&Object(u.e)(e.chordPart,t.chordPart)},p);function p(e,t,n){this.os=t,this.options=n,this.domNode=l.q(e,d(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}var f=n(452),g=n(459);n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return k}));var m,v=(m=function(e,t){return(m=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}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=0,b=(y.prototype.getId=function(){return this.id},y.prototype.getLabel=function(){},y.prototype.getLabelOptions=function(){},y.prototype.getAriaLabel=function(){return Object(g.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},y.prototype.getDetail=function(){},y.prototype.getIcon=function(){},y.prototype.getDescription=function(){},y.prototype.getTooltip=function(){},y.prototype.getDescriptionTooltip=function(){},y.prototype.getKeybinding=function(){},y.prototype.isHidden=function(){return!!this.hidden},y.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},y.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},y.prototype.run=function(e,t){return!1},y);function y(e){void 0===e&&(e=[]),this.id=(_++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}var C,w=(v(S,C=b),S.prototype.getGroupLabel=function(){return this.groupLabel},S.prototype.setGroupLabel=function(e){this.groupLabel=e},S.prototype.showBorder=function(){return!!this.withBorder},S.prototype.setShowBorder=function(e){this.withBorder=e},S.prototype.getLabel=function(){return this.entry?this.entry.getLabel():C.prototype.getLabel.call(this)},S.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():C.prototype.getLabelOptions.call(this)},S.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():C.prototype.getAriaLabel.call(this)},S.prototype.getDetail=function(){return this.entry?this.entry.getDetail():C.prototype.getDetail.call(this)},S.prototype.getIcon=function(){return this.entry?this.entry.getIcon():C.prototype.getIcon.call(this)},S.prototype.getDescription=function(){return this.entry?this.entry.getDescription():C.prototype.getDescription.call(this)},S.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():C.prototype.getHighlights.call(this)},S.prototype.isHidden=function(){return this.entry?this.entry.isHidden():C.prototype.isHidden.call(this)},S.prototype.setHighlights=function(e,t,n){this.entry?this.entry.setHighlights(e,t,n):C.prototype.setHighlights.call(this,e,t,n)},S.prototype.run=function(e,t){return this.entry?this.entry.run(e,t):C.prototype.run.call(this,e,t)},S);function S(e,t,n){var i=C.call(this)||this;return i.entry=e,i.groupLabel=t,i.withBorder=n,i}var O=(L.prototype.hasActions=function(e,t){return!1},L.prototype.getActions=function(e,t){return null},L);function L(){}var D="quickOpenEntryGroup",x=(N.prototype.getHeight=function(e){return e.getDetail()?44:22},N.prototype.getTemplateId=function(e){return e instanceof w?D:"quickOpenEntry"},N.prototype.renderTemplate=function(e,t,n){var i=document.createElement("div");l.f(i,"sub-content"),t.appendChild(i);var o=l.a(".quick-open-row"),u=l.a(".quick-open-row"),c=l.a(".quick-open-entry",void 0,o,u);i.appendChild(c);var d=document.createElement("span");o.appendChild(d);var p=new r.a(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),g=document.createElement("span");o.appendChild(g),l.f(g,"quick-open-entry-keybinding");var m=new h(g,f.a),v=document.createElement("div");u.appendChild(v),l.f(v,"quick-open-entry-meta");var _,b=new a.a(v,!0);e===D&&(_=document.createElement("div"),l.f(_,"results-group"),t.appendChild(_)),l.f(t,"actions");var y=document.createElement("div");return l.f(y,"primary-action-bar"),t.appendChild(y),{container:t,entry:c,icon:d,label:p,detail:b,keybinding:m,group:_,actionBar:new s.a(y,{actionRunner:this.actionRunner})}},N.prototype.renderElement=function(e,t,n,i){this.actionProvider.hasActions(null,e)?l.f(n.container,"has-actions"):l.P(n.container,"has-actions"),n.actionBar.context=e;var o=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&o&&0<o.length?n.actionBar.push(o,{icon:!0,label:!1}):n.actionBar.isEmpty()||o&&0!==o.length||n.actionBar.clear(),e instanceof w&&e.getGroupLabel()?l.f(n.container,"has-group-label"):l.P(n.container,"has-group-label"),e instanceof w){var r=e,s=n;r.showBorder()?(l.f(s.container,"results-group-separator"),i.pickerGroupBorder&&(s.container.style.borderTopColor=i.pickerGroupBorder.toString())):(l.P(s.container,"results-group-separator"),s.container.style.borderTopColor="");var a=r.getGroupLabel()||"";s.group&&(s.group.textContent=a,i.pickerGroupForeground&&(s.group.style.color=i.pickerGroupForeground.toString()))}if(e instanceof b){var u=e.getHighlights(),c=u[0],d=u[1],h=u[2],p=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=p;var f=e.getLabelOptions()||Object.create(null);f.matches=c||[],f.title=e.getTooltip(),f.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),f.descriptionMatches=d||[],n.label.setLabel(e.getLabel()||"",e.getDescription(),f),n.detail.set(e.getDetail(),h),n.keybinding.set(e.getKeybinding())}},N.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},N);function N(e,t){void 0===e&&(e=new O),this.actionProvider=e,this.actionRunner=t}var k=(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 o.o(e.getLabel())},E.prototype.getAriaLabel=function(e){return e.getAriaLabel()?i.a("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):i.a("quickOpenAriaLabel","picker")},E.prototype.isVisible=function(e){return!e.isHidden()},E.prototype.run=function(e,t,n){return e.run(t,n)},E);function E(e,t){void 0===e&&(e=[]),void 0===t&&(t=new O),this._entries=e,(this._dataSource=this)._renderer=new x(t),((this._filter=this)._runner=this)._accessibilityProvider=this}},function(e,t,n){"use strict";n(1333);var i=n(445),o=n(478),r=n(443),s=n(943),a=n(635),l=n(772),u=n(442),c=n(597),d=n(490),h=n(505),p=n(700),f=(g.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},g.prototype.next=function(){return this._navigator.next()},g.prototype.previous=function(){return this._navigator.previous()},g.prototype.current=function(){return this._navigator.current()},g.prototype.parent=function(){return null},g.prototype.first=function(){return this._navigator.first()},g.prototype.last=function(){return this._navigator.last()},g.prototype.has=function(e){return this._history.has(e)},g.prototype._onChange=function(){this._reduceToLimit();var e=this._elements;this._navigator=new p.b(e,0,e.length,e.length)},g.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},g.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(g.prototype,"_elements",{get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),g);function g(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}var m=n(688),v=n(686);n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return D}));var _,b,y=(_=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)}),C=r.a,w={inputBackground:d.a.fromHex("#3C3C3C"),inputForeground:d.a.fromHex("#CCCCCC"),inputValidationInfoBorder:d.a.fromHex("#55AAFF"),inputValidationInfoBackground:d.a.fromHex("#063B49"),inputValidationWarningBorder:d.a.fromHex("#B89500"),inputValidationWarningBackground:d.a.fromHex("#352A05"),inputValidationErrorBorder:d.a.fromHex("#BE1100"),inputValidationErrorBackground:d.a.fromHex("#5A1D1D")},S=(y(O,b=c.a),O.prototype.onBlur=function(){this._hideMessage()},O.prototype.onFocus=function(){this._showMessage()},O.prototype.setPlaceHolder=function(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e},O.prototype.setAriaLabel=function(e){(this.ariaLabel=e)?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(O.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(O.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}),Object.defineProperty(O.prototype,"height",{get:function(){return"number"==typeof this.cachedHeight?this.cachedHeight:r.G(this.element)},enumerable:!0,configurable:!0}),O.prototype.focus=function(){this.input.focus()},O.prototype.blur=function(){this.input.blur()},O.prototype.hasFocus=function(){return document.activeElement===this.input},O.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},O.prototype.enable=function(){this.input.removeAttribute("disabled")},O.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(O.prototype,"width",{get:function(){return r.H(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;this.mirror&&(t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)),this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"paddingRight",{set:function(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+e+"px)":this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")},enumerable:!0,configurable:!0}),O.prototype.updateScrollDimensions=function(){if("number"==typeof this.cachedContentHeight&&"number"==typeof this.cachedHeight&&this.scrollableElement){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},O.prototype.showMessage=function(e,t){this.message=e,r.P(this.element,"idle"),r.P(this.element,"info"),r.P(this.element,"warning"),r.P(this.element,"error"),r.f(this.element,this.classForType(e.type));var n,o=this.stylesForType(this.message.type);this.element.style.border=o.border?"1px solid "+o.border:"",n=3===e.type?i.a("alertErrorMessage","Error: {0}",e.content):2===e.type?i.a("alertWarningMessage","Warning: {0}",e.content):i.a("alertInfoMessage","Info: {0}",e.content),a.a(n),(this.hasFocus()||t)&&this._showMessage()},O.prototype.hideMessage=function(){this.message=null,r.P(this.element,"info"),r.P(this.element,"warning"),r.P(this.element,"error"),r.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},O.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},O.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}}},O.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},O.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=r.H(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(i){if(!e.message)return null;t=r.q(i,C(".monaco-inputbox-container")),n();var o=(e.message.formatContent?Object(s.b):Object(s.c))(e.message.content,{inline:!0,className:"monaco-inputbox-message"});r.f(o,e.classForType(e.message.type));var a=e.stylesForType(e.message.type);return o.style.backgroundColor=a.background?a.background.toString():"",o.style.color=a.foreground?a.foreground.toString():"",o.style.border=a.border?"1px solid "+a.border:"",r.q(t,o),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},O.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},O.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),r.Y(this.input,"empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},O.prototype.updateMirror=function(){if(this.mirror){var e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},O.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()},O.prototype.applyStyles=function(){var e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";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":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n},O.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=r.G(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},O.prototype.insertAtCursor=function(e){var t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,o=t.value;null!==n&&null!==i&&(this.value=o.substr(0,n)+e+o.substr(i),t.setSelectionRange(n+1,n+1),this.layout())},O.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),b.prototype.dispose.call(this)},O);function O(e,t,n){var i=b.call(this)||this;i.state="idle",i.maxHeight=Number.POSITIVE_INFINITY,i._onDidChange=i._register(new u.a),i.onDidChange=i._onDidChange.event,i._onDidHeightChange=i._register(new u.a),i.onDidHeightChange=i._onDidHeightChange.event,i.contextViewProvider=t,i.options=n||Object.create(null),Object(h.g)(i.options,w,!1),i.message=null,i.placeholder=i.options.placeholder||"",i.ariaLabel=i.options.ariaLabel||"",i.inputBackground=i.options.inputBackground,i.inputForeground=i.options.inputForeground,i.inputBorder=i.options.inputBorder,i.inputValidationInfoBorder=i.options.inputValidationInfoBorder,i.inputValidationInfoBackground=i.options.inputValidationInfoBackground,i.inputValidationInfoForeground=i.options.inputValidationInfoForeground,i.inputValidationWarningBorder=i.options.inputValidationWarningBorder,i.inputValidationWarningBackground=i.options.inputValidationWarningBackground,i.inputValidationWarningForeground=i.options.inputValidationWarningForeground,i.inputValidationErrorBorder=i.options.inputValidationErrorBorder,i.inputValidationErrorBackground=i.options.inputValidationErrorBackground,i.inputValidationErrorForeground=i.options.inputValidationErrorForeground,i.options.validationOptions&&(i.validation=i.options.validationOptions.validation),i.element=r.q(e,C(".monaco-inputbox.idle"));var s=i.options.flexibleHeight?"textarea":"input",a=r.q(i.element,C(".wrapper"));if(i.input=r.q(a,C(s+".input.empty")),i.input.setAttribute("autocorrect","off"),i.input.setAttribute("autocapitalize","off"),i.input.setAttribute("spellcheck","false"),i.onfocus(i.input,(function(){return r.f(i.element,"synthetic-focus")})),i.onblur(i.input,(function(){return r.P(i.element,"synthetic-focus")})),i.options.flexibleHeight){i.maxHeight="number"==typeof i.options.flexibleMaxHeight?i.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,i.mirror=r.q(a,C("div.mirror")),i.mirror.innerHTML=" ",i.scrollableElement=new m.b(i.element,{vertical:1}),i.options.flexibleWidth&&(i.input.setAttribute("wrap","off"),i.mirror.style.whiteSpace="pre",i.mirror.style.wordWrap="initial"),r.q(e,i.scrollableElement.getDomNode()),i._register(i.scrollableElement),i._register(i.scrollableElement.onScroll((function(e){return i.input.scrollTop=e.scrollTop})));var c=u.b.filter(Object(v.a)(document,"selectionchange"),(function(){var e=document.getSelection();return(null==e?void 0:e.anchorNode)===a}));i._register(c(i.updateScrollDimensions,i)),i._register(i.onDidHeightChange(i.updateScrollDimensions,i))}else i.input.type=i.options.type||"text",i.input.setAttribute("wrap","off");return i.ariaLabel&&i.input.setAttribute("aria-label",i.ariaLabel),i.placeholder&&i.setPlaceHolder(i.placeholder),i.oninput(i.input,(function(){return i.onValueChange()})),i.onblur(i.input,(function(){return i.onBlur()})),i.onfocus(i.input,(function(){return i.onFocus()})),i.placeholder&&o.i&&i.onclick(i.input,(function(e){r.c.stop(e,!0),i.input.focus()})),i.ignoreGesture(i.input),setTimeout((function(){return i.updateMirror()}),0),i.options.actions&&(i.actionbar=i._register(new l.a(i.element)),i.actionbar.push(i.options.actions,{icon:!0,label:!1})),i.applyStyles(),i}var L,D=(y(x,L=S),x.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},x.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();(e=e&&(e===this.value?this.getNextValue():e))&&(this.value=e,a.c(this.value))},x.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();(e=e&&(e===this.value?this.getPreviousValue():e))&&(this.value=e,a.c(this.value))},x.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},x.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},x.prototype.getNextValue=function(){return this.history.next()||this.history.last()},x);function x(e,t,n){var i=L.call(this,e,t,n)||this;return i.history=new f(n.history,100),i}},function(e,t,n){"use strict";var i=(o.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},o.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},o);function o(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}var r=n(952);n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return g}));var s=(a.prototype.getElements=function(){for(var e=this.source,t=new Int32Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t},a);function a(e){this.source=e}function l(e,t,n){return new g(new s(e),new s(t)).ComputeDiff(n).changes}var u=(c.Assert=function(e,t){if(!e)throw new Error(t)},c);function c(){}var d=(h.Copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},h.Copy2=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},h);function h(){}var p=(f.prototype.MarkNextChange=function(){(0<this.m_originalCount||0<this.m_modifiedCount)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},f.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++},f.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++},f.prototype.getChanges=function(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes},f.prototype.getReverseChanges=function(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},f);function f(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}var g=(m._isStringArray=function(e){return 0<e.length&&"string"==typeof e[0]},m._getElements=function(e){var t=e.getElements();if(m._isStringArray(t)){for(var n=new Int32Array(t.length),i=0,o=t.length;i<o;i++)n[i]=Object(r.b)(t[i],0);return[t,n,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]},m.prototype.ElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])},m.prototype.OriginalElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])},m.prototype.ModifiedElementsAreEqual=function(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])},m.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)},m.prototype._ComputeDiff=function(e,t,n,i,o){var r=[!1],s=this.ComputeDiffRecursive(e,t,n,i,r);return o&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}},m.prototype.ComputeDiffRecursive=function(e,t,n,o,r){for(r[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;e<=t&&n<=o&&this.ElementsAreEqual(t,o);)t--,o--;if(t<e||o<n)return n<=o?(u.Assert(e===t+1,"originalStart should only be one more than originalEnd"),[new i(e,0,n,o-n+1)]):e<=t?(u.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),[new i(e,t-e+1,n,0)]):(u.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),[]);var s=[0],a=[0],l=this.ComputeRecursionPoint(e,t,n,o,s,a,r),c=s[0],d=a[0];if(null!==l)return l;if(r[0])return[new i(e,t-e+1,n,o-n+1)];var h,p=this.ComputeDiffRecursive(e,c,n,d,r);return h=r[0]?[new i(c+1,t-(c+1)+1,d+1,o-(d+1)+1)]:this.ComputeDiffRecursive(c+1,t,d+1,o,r),this.ConcatenateChanges(p,h)},m.prototype.WALKTRACE=function(e,t,n,o,r,s,a,l,u,c,d,h,f,g,m,v,_,b){for(var y,C=null,w=new p,S=t,O=n,L=f[0]-v[0]-o,D=-1073741824,x=this.m_forwardHistory.length-1;L=(I=L+e)===S||I<O&&u[I-1]<u[I+1]?(g=(d=u[I+1])-L-o,d<D&&w.MarkNextChange(),D=d,w.AddModifiedElement(d+1,g),I+1-e):(g=(d=u[I-1]+1)-L-o,d<D&&w.MarkNextChange(),D=d-1,w.AddOriginalElement(d,g+1),I-1-e),0<=x&&(e=(u=this.m_forwardHistory[x])[0],S=1,O=u.length-1),-1<=--x;);if(y=w.getReverseChanges(),b[0]){var N=f[0]+1,k=v[0]+1;if(null!==y&&0<y.length){var E=y[y.length-1];N=Math.max(N,E.getOriginalEnd()),k=Math.max(k,E.getModifiedEnd())}C=[new i(N,h-N+1,k,m-k+1)]}else{w=new p,S=s,O=a,L=f[0]-v[0]-l,D=1073741824,x=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var I;L=(I=L+r)===S||I<O&&c[I-1]>=c[I+1]?(g=(d=c[I+1]-1)-L-l,D<d&&w.MarkNextChange(),D=d+1,w.AddOriginalElement(d+1,g+1),I+1-r):(g=(d=c[I-1])-L-l,D<d&&w.MarkNextChange(),D=d,w.AddModifiedElement(d+1,g+1),I-1-r),0<=x&&(r=(c=this.m_reverseHistory[x])[0],S=1,O=c.length-1)}while(-1<=--x);C=w.getChanges()}return this.ConcatenateChanges(y,C)},m.prototype.ComputeRecursionPoint=function(e,t,n,o,r,s,a){var l=0,u=0,c=0,h=0,p=0,f=0;e--,n--,s[r[0]=0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g=t-e+(o-n),m=1+g,v=new Int32Array(m),_=new Int32Array(m),b=o-n,y=t-e,C=e-n,w=t-o,S=(y-b)%2==0;v[b]=e,_[y]=t,a[0]=!1;for(var O=1;O<=g/2+1;O++){var L=0,D=0;c=this.ClipDiagonalBound(b-O,O,b,m),h=this.ClipDiagonalBound(b+O,O,b,m);for(var x=c;x<=h;x+=2){u=(l=x===c||x<h&&v[x-1]<v[x+1]?v[x+1]:v[x-1]+1)-(x-b)-C;for(var N=l;l<t&&u<o&&this.ElementsAreEqual(l+1,u+1);)l++,u++;if(L+D<(v[x]=l)+u&&(L=l,D=u),!S&&Math.abs(x-y)<=O-1&&l>=_[x])return r[0]=l,s[0]=u,N<=_[x]&&O<=1448?this.WALKTRACE(b,c,h,C,y,p,f,w,v,_,l,t,r,u,o,s,S,a):null}var k=(L-e+(D-n)-O)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(L,k))return a[0]=!0,r[0]=L,s[0]=D,0<k&&O<=1448?this.WALKTRACE(b,c,h,C,y,p,f,w,v,_,l,t,r,u,o,s,S,a):[new i(++e,t-e+1,++n,o-n+1)];for(p=this.ClipDiagonalBound(y-O,O,y,m),f=this.ClipDiagonalBound(y+O,O,y,m),x=p;x<=f;x+=2){for(u=(l=x===p||x<f&&_[x-1]>=_[x+1]?_[x+1]-1:_[x-1])-(x-y)-w,N=l;e<l&&n<u&&this.ElementsAreEqual(l,u);)l--,u--;if(_[x]=l,S&&Math.abs(x-b)<=O&&l<=v[x])return r[0]=l,s[0]=u,N>=v[x]&&O<=1448?this.WALKTRACE(b,c,h,C,y,p,f,w,v,_,l,t,r,u,o,s,S,a):null}if(O<=1447){var E=new Int32Array(h-c+2);E[0]=b-c+1,d.Copy2(v,c,E,1,h-c+1),this.m_forwardHistory.push(E),(E=new Int32Array(f-p+2))[0]=y-p+1,d.Copy2(_,p,E,1,f-p+1),this.m_reverseHistory.push(E)}}return this.WALKTRACE(b,c,h,C,y,p,f,w,v,_,l,t,r,u,o,s,S,a)},m.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._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=0<n.originalLength,s=0<n.modifiedLength;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;0<=t;t--){if(n=e[t],(o=i=0)<t){var l=e[t-1];0<l.originalLength&&(i=l.originalStart+l.originalLength),0<l.modifiedLength&&(o=l.modifiedStart+l.modifiedLength)}r=0<n.originalLength,s=0<n.modifiedLength;for(var u=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);c<f&&(c=f,u=d)}n.originalStart-=u,n.modifiedStart-=u}return e},m.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])},m.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(0<t){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},m.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])},m.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(0<t){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},m.prototype._boundaryScore=function(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)},m.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return 0<t.length?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return d.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],d.Copy(t,1,i,e.length,t.length-1),i}return i=new Array(e.length+t.length),d.Copy(e,0,i,0,e.length),d.Copy(t,0,i,e.length,t.length),i},m.prototype.ChangesOverlap=function(e,t,n){if(u.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),u.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 o=e.originalStart,r=e.originalLength,s=e.modifiedStart,a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,s,a),!0}return n[0]=null,!1},m.prototype.ClipDiagonalBound=function(e,t,n,i){if(0<=e&&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},m);function m(e,t,n){void 0===n&&(n=null),this.ContinueProcessingPredicate=n;var i=m._getElements(e),o=i[0],r=i[1],s=i[2],a=m._getElements(t),l=a[0],u=a[1],c=a[2];this._hasStrings=s&&c,this._originalStringElements=o,this._originalElementsOrHash=r,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",(function(){return u}));var i,o,r=n(445),s=n(635),a=n(449),l=n(945),u=((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)})(c,o=a.b),c.prototype.run=function(e,t){var n=!l.b.getTabFocusMode();l.b.setTabFocusMode(n),n?Object(s.a)(r.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(s.a)(r.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},c.ID="editor.action.toggleTabFocusMode",c);function c(){return o.call(this,{id:c.ID,label:r.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this}Object(a.f)(u)},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorDetector",(function(){return _}));var i,o,r=n(453),s=n(490),a=n(446),l=n(952),u=n(439),c=n(449),d=n(504),h=n(440),p=n(495),f=n(454),g=n(1080),m=n(573),v=function(e,t){return function(n,i){t(n,i,e)}},_=((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)})(b,o=u.a),b.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.getOption(12)},b.get=function(e){return e.getContribution(this.ID)},b.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),o.prototype.dispose.call(this)},b.prototype.onModelChanged=function(){var e=this;if(this.stop(),this._isEnabled){var t=this._editor.getModel();t&&f.c.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((function(t){e._timeoutTimer||(e._timeoutTimer=new r.e,e._timeoutTimer.cancelAndSet((function(){e._timeoutTimer=null,e.beginCompute()}),b.RECOMPUTE_TIME))}))),this.beginCompute())}},b.prototype.beginCompute=function(){var e=this;this._computePromise=Object(r.f)((function(t){var n=e._editor.getModel();return n?Object(g.b)(n,t):Promise.resolve([])})),this._computePromise.then((function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null}),a.e)},b.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},b.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:p.a.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])}))},b.prototype.updateColorDecorators=function(e){for(var t=this,n=[],i={},o=0;o<e.length&&n.length<500;o++){var r=e[o].colorInfo.color,a=r.red,u=r.green,c=r.blue,d=r.alpha,h=new s.c(Math.round(255*a),Math.round(255*u),Math.round(255*c),d),p=Object(l.a)(h).toString(16),f="rgba("+h.r+", "+h.g+", "+h.b+", "+h.a+")",g="colorBox-"+p;this._decorationsTypes.has(g)||i[g]||this._codeEditorService.registerDecorationType(g,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:f},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),i[g]=!0,n.push({range:{startLineNumber:e[o].colorInfo.range.startLineNumber,startColumn:e[o].colorInfo.range.startColumn,endLineNumber:e[o].colorInfo.range.endLineNumber,endColumn:e[o].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(g,!0)})}this._decorationsTypes.forEach((function(e){i[e]||t._codeEditorService.removeDecorationType(e)})),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,n)},b.prototype.removeAllDecorations=function(){var e=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach((function(t){e._codeEditorService.removeDecorationType(t)}))},b.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(h.a.fromPositions(e,e)).filter((function(e){return t._colorDatas.has(e.id)}));return 0===i.length?null:this._colorDatas.get(i[0].id)},b.ID="editor.contrib.colorDetector",b.RECOMPUTE_TIME=1e3,b=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([v(1,d.a),v(2,m.a)],b));function b(e,t,n){var i=o.call(this)||this;return i._editor=e,i._codeEditorService=t,i._configurationService=n,i._localToDispose=i._register(new u.b),i._decorationsIds=[],i._colorDatas=new Map,i._colorDecoratorIds=[],i._decorationsTypes=new Set,i._register(e.onDidChangeModel((function(e){i._isEnabled=i.isEnabled(),i.onModelChanged()}))),i._register(e.onDidChangeModelLanguage((function(e){return i.onModelChanged()}))),i._register(f.c.onDidChange((function(e){return i.onModelChanged()}))),i._register(e.onDidChangeConfiguration((function(e){var t=i._isEnabled;i._isEnabled=i.isEnabled(),t!==i._isEnabled&&(i._isEnabled?i.onModelChanged():i.removeAllDecorations())}))),i._timeoutTimer=null,i._computePromise=null,i._isEnabled=i.isEnabled(),i.onModelChanged(),i}Object(c.h)(_.ID,_)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return w})),n(1366);var i=n(445),o=n(453),r=n(446),s=n(795),a=n(778),l=n(440),u=n(454),c=n(449),d=n(1093),h=n(439),p=n(787),f=n(451),g=n(461),m=n(761),v=n(1053),_=n(1094),b=n(450),y=n(465),C=function(e,t){return function(n,i){t(n,i,e)}},w=(S.get=function(e){return e.getContribution(S.ID)},S.prototype.startFindDefinitionFromCursor=function(e){var t=this;return this.startFindDefinition(e).then((function(){t.toUnhookForKeyboard.add(t.editor.onDidChangeCursorPosition((function(){t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear()}))),t.toUnhookForKeyboard.add(t.editor.onKeyDown((function(e){e&&(t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear())})))}))},S.prototype.startFindDefinitionFromMouse=function(e,t){if(!(9===e.target.type&&0<this.linkDecorations.length)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();var n=e.target.position;this.startFindDefinition(n)}},S.prototype.startFindDefinition=function(e){var t,n=this;this.toUnhookForKeyboard.clear();var a=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!a)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===a.startColumn&&this.currentWordAtPosition.endColumn===a.endColumn&&this.currentWordAtPosition.word===a.word)return Promise.resolve(0);this.currentWordAtPosition=a;var u=new m.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(o.f)((function(t){return n.findDefinition(e,t)})),this.previousPromise.then((function(t){if(t&&t.length&&u.validate(n.editor))if(1<t.length)n.addDecoration(new l.a(e.lineNumber,a.startColumn,e.lineNumber,a.endColumn),(new s.a).appendText(i.a("multipleResults","Click to show {0} definitions.",t.length)));else{var o=t[0];if(!o.uri)return;n.textModelResolverService.createModelReference(o.uri).then((function(t){if(t.object&&t.object.textEditorModel){var i=t.object.textEditorModel,r=o.range.startLineNumber;if(r<1||r>i.getLineCount())t.dispose();else{var u,c=n.getPreviewValue(i,r,o);u=o.originSelectionRange?l.a.lift(o.originSelectionRange):new l.a(e.lineNumber,a.startColumn,e.lineNumber,a.endColumn);var d=n.modeService.getModeIdByFilepathOrFirstLine(i.uri);n.addDecoration(u,(new s.a).appendCodeblock(d||"",c)),t.dispose()}}else t.dispose()}))}else n.removeLinkDecorations()})).then(void 0,r.e)},S.prototype.getPreviewValue=function(e,t,n){var i=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(e,t);return i.endLineNumber-i.startLineNumber>=S.MAX_SOURCE_PREVIEW_LINES&&(i=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,i)},S.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()},S.prototype.getPreviewRangeBasedOnIndentation=function(e,t){for(var n=e.getLineFirstNonWhitespaceColumn(t),i=Math.min(e.getLineCount(),t+S.MAX_SOURCE_PREVIEW_LINES),o=t+1;o<i&&n!==e.getLineFirstNonWhitespaceColumn(o);o++);return new l.a(t,1,o+1,1)},S.prototype.getPreviewRangeBasedOnBrackets=function(e,t){for(var n=Math.min(e.getLineCount(),t+S.MAX_SOURCE_PREVIEW_LINES),i=[],o=!0,r=e.findNextBracket(new b.a(t,1));null!==r;){if(0===i.length)i.push(r);else{var s=i[i.length-1];if(s.open[0]===r.open[0]&&s.isOpen&&!r.isOpen?i.pop():i.push(r),0===i.length){if(!o)return new l.a(t,1,r.range.endLineNumber+1,1);o=!1}}var a=e.getLineMaxColumn(t),u=r.range.endLineNumber,c=r.range.endColumn;if(a===r.range.endColumn&&(u++,c=1),n<u)return new l.a(t,1,n+1,1);r=e.findNextBracket(new b.a(u,c))}return new l.a(t,1,n+1,1)},S.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])},S.prototype.removeLinkDecorations=function(){0<this.linkDecorations.length&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},S.prototype.isEnabled=function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&u.f.has(this.editor.getModel())},S.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?Object(d.b)(n,e,t):Promise.resolve(null)},S.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e);var i=new v.DefinitionAction({openToSide:t,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext((function(e){return i.run(e,n.editor)}))},S.prototype.dispose=function(){this.toUnhook.dispose()},S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([C(1,p.a),C(2,a.a)],S));function S(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=new h.b,this.toUnhookForKeyboard=new h.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;var o=new _.a(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i.startFindDefinitionFromMouse(t,Object(y.n)(n))}))),this.toUnhook.add(o.onExecute((function(e){i.isEnabled(e)&&i.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((function(){i.removeLinkDecorations()}),(function(e){i.removeLinkDecorations(),Object(r.e)(e)}))}))),this.toUnhook.add(o.onCancel((function(){i.removeLinkDecorations(),i.currentWordAtPosition=null})))}Object(c.h)(w.ID,w),Object(f.e)((function(e,t){var n=e.getColor(g.n);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",(function(){return _})),n.d(t,"WordLeftCommand",(function(){return C})),n.d(t,"WordRightCommand",(function(){return O})),n.d(t,"CursorWordStartLeft",(function(){return x})),n.d(t,"CursorWordEndLeft",(function(){return E})),n.d(t,"CursorWordLeft",(function(){return T})),n.d(t,"CursorWordStartLeftSelect",(function(){return A})),n.d(t,"CursorWordEndLeftSelect",(function(){return W})),n.d(t,"CursorWordLeftSelect",(function(){return H})),n.d(t,"CursorWordAccessibilityLeft",(function(){return K})),n.d(t,"CursorWordAccessibilityLeftSelect",(function(){return Y})),n.d(t,"CursorWordStartRight",(function(){return $})),n.d(t,"CursorWordEndRight",(function(){return ee})),n.d(t,"CursorWordRight",(function(){return ie})),n.d(t,"CursorWordStartRightSelect",(function(){return se})),n.d(t,"CursorWordEndRightSelect",(function(){return ue})),n.d(t,"CursorWordRightSelect",(function(){return he})),n.d(t,"CursorWordAccessibilityRight",(function(){return ge})),n.d(t,"CursorWordAccessibilityRightSelect",(function(){return _e})),n.d(t,"DeleteWordCommand",(function(){return Ce})),n.d(t,"DeleteWordLeftCommand",(function(){return Oe})),n.d(t,"DeleteWordRightCommand",(function(){return xe})),n.d(t,"DeleteWordStartLeft",(function(){return Ee})),n.d(t,"DeleteWordEndLeft",(function(){return Te})),n.d(t,"DeleteWordLeft",(function(){return Ae})),n.d(t,"DeleteWordStartRight",(function(){return We})),n.d(t,"DeleteWordEndRight",(function(){return He})),n.d(t,"DeleteWordRight",(function(){return Ke}));var i,o,r=n(449),s=n(794),a=n(555),l=n(954),u=n(823),c=n(450),d=n(440),h=n(466),p=n(469),f=n(759),g=n(456),m=n(530),v=(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)}),_=(v(b,o=r.c),b.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=Object(u.a)(t.getOption(96)),r=t.getModel(),s=t.getSelections().map((function(e){var t=new c.a(e.positionLineNumber,e.positionColumn),n=i._move(o,r,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode)}));if(t._getCursors().setStates("moveWordCommand",0,s.map((function(e){return a.d.fromModelSelection(e)}))),1===s.length){var l=new c.a(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(l,0)}}},b.prototype._moveTo=function(e,t,n){return n?new h.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new h.a(t.lineNumber,t.column,t.lineNumber,t.column)},b);function b(e){var t=o.call(this,e)||this;return t._inSelectionMode=e.inSelectionMode,t._wordNavigationType=e.wordNavigationType,t}var y,C=(v(w,y=_),w.prototype._move=function(e,t,n,i){return l.a.moveWordLeft(e,t,n,i)},w);function w(){return null!==y&&y.apply(this,arguments)||this}var S,O=(v(L,S=_),L.prototype._move=function(e,t,n,i){return l.a.moveWordRight(e,t,n,i)},L);function L(){return null!==S&&S.apply(this,arguments)||this}var D,x=(v(N,D=C),N);function N(){return D.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}var k,E=(v(I,k=C),I);function I(){return k.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}var M,T=(v(P,M=C),P);function P(){return M.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}var R,A=(v(F,R=C),F);function F(){return R.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}var j,W=(v(V,j=C),V);function V(){return j.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}var B,H=(v(z,B=C),z);function z(){return B.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}var U,K=(v(q,U=C),q.prototype._move=function(e,t,n,i){return U.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},q);function q(){return U.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:2063},weight:101}})||this}var G,Y=(v(Z,G=C),Z.prototype._move=function(e,t,n,i){return G.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},Z);function Z(){return G.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:3087},weight:101}})||this}var X,$=(v(J,X=O),J);function J(){return X.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}var Q,ee=(v(te,Q=O),te);function te(){return Q.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}var ne,ie=(v(oe,ne=O),oe);function oe(){return ne.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}var re,se=(v(ae,re=O),ae);function ae(){return re.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}var le,ue=(v(ce,le=O),ce);function ce(){return le.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:p.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this}var de,he=(v(pe,de=O),pe);function pe(){return de.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}var fe,ge=(v(me,fe=O),me.prototype._move=function(e,t,n,i){return fe.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},me);function me(){return fe.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:2065},weight:101}})||this}var ve,_e=(v(be,ve=O),be.prototype._move=function(e,t,n,i){return ve.prototype._move.call(this,Object(u.a)(m.e.wordSeparators.defaultValue),t,n,i)},be);function be(){return ve.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(p.a.textInputFocus,f.a),win:{primary:3089},weight:101}})||this}var ye,Ce=(v(we,ye=r.c),we.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=Object(u.a)(t.getOption(96)),r=t.getModel(),a=t.getSelections().map((function(e){var t=i._delete(o,r,e,i._whitespaceHeuristics,i._wordNavigationType);return new s.a(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}},we);function we(e){var t=ye.call(this,e)||this;return t._whitespaceHeuristics=e.whitespaceHeuristics,t._wordNavigationType=e.wordNavigationType,t}var Se,Oe=(v(Le,Se=Ce),Le.prototype._delete=function(e,t,n,i,o){return l.a.deleteWordLeft(e,t,n,i,o)||new d.a(1,1,1,1)},Le);function Le(){return null!==Se&&Se.apply(this,arguments)||this}var De,xe=(v(Ne,De=Ce),Ne.prototype._delete=function(e,t,n,i,o){var r=l.a.deleteWordRight(e,t,n,i,o);if(r)return r;var s=t.getLineCount(),a=t.getLineMaxColumn(s);return new d.a(s,a,s,a)},Ne);function Ne(){return null!==De&&De.apply(this,arguments)||this}var ke,Ee=(v(Ie,ke=Oe),Ie);function Ie(){return ke.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:p.a.writable})||this}var Me,Te=(v(Pe,Me=Oe),Pe);function Pe(){return Me.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:p.a.writable})||this}var Re,Ae=(v(Fe,Re=Oe),Fe);function Fe(){return Re.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this}var je,We=(v(Ve,je=xe),Ve);function Ve(){return je.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:p.a.writable})||this}var Be,He=(v(ze,Be=xe),ze);function ze(){return Be.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:p.a.writable})||this}var Ue,Ke=(v(qe,Ue=xe),qe);function qe(){return Ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}Object(r.g)(new x),Object(r.g)(new E),Object(r.g)(new T),Object(r.g)(new A),Object(r.g)(new W),Object(r.g)(new H),Object(r.g)(new $),Object(r.g)(new ee),Object(r.g)(new ie),Object(r.g)(new se),Object(r.g)(new ue),Object(r.g)(new he),Object(r.g)(new K),Object(r.g)(new Y),Object(r.g)(new ge),Object(r.g)(new _e),Object(r.g)(new Ee),Object(r.g)(new Te),Object(r.g)(new Ae),Object(r.g)(new We),Object(r.g)(new He),Object(r.g)(new Ke)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(453),r=n(439),s=n(444),a=n(449),l=n(469),u=n(794),c=n(450),d=n(440),h=n(466),p=n(947),f=n(599),g=n(495),m=n(461),v=n(451),_=(b.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},b.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},b.prototype.getCount=function(){return this._decorations.length},b.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},b.prototype.getStartPosition=function(){return this._startPosition},b.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},b.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return 0<=t?t+1:1},b.prototype.getCurrentMatchesPosition=function(e){for(var t=0,n=this._editor.getModel().getDecorationsInRange(e);t<n.length;t++){var i=n[t],o=i.options;if(o===b._FIND_MATCH_DECORATION||o===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 1},b.prototype.setCurrentFindMatch=function(e){var t=this,n=null,i=0;if(e)for(var o=0,r=this._decorations.length;o<r;o++){var s=this._editor.getModel().getDecorationRange(this._decorations[o]);if(e.equalsRange(s)){n=this._decorations[o],i=o+1;break}}return null===this._highlightedDecorationId&&null===n||this._editor.changeDecorations((function(e){if(null!==t._highlightedDecorationId&&(e.changeDecorationOptions(t._highlightedDecorationId,b._FIND_MATCH_DECORATION),t._highlightedDecorationId=null),null!==n&&(t._highlightedDecorationId=n,e.changeDecorationOptions(t._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==t._rangeHighlightDecorationId&&(e.removeDecoration(t._rangeHighlightDecorationId),t._rangeHighlightDecorationId=null),null!==n){var i=t._editor.getModel().getDecorationRange(n);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){var o=i.endLineNumber-1,r=t._editor.getModel().getLineMaxColumn(o);i=new d.a(i.startLineNumber,i.startColumn,o,r)}t._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i},b.prototype.set=function(e,t){var n=this;this._editor.changeDecorations((function(i){var o=b._FIND_MATCH_DECORATION,r=[];if(1e3<e.length){o=b._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var s=n._editor.getModel().getLineCount(),a=n._editor.getLayoutInfo().height/s,l=Math.max(2,Math.ceil(3/a)),u=e[0].range.startLineNumber,c=e[0].range.endLineNumber,h=1,p=e.length;h<p;h++){var f=e[h].range;c+l>=f.startLineNumber?f.endLineNumber>c&&(c=f.endLineNumber):(r.push({range:new d.a(u,1,c,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=f.startLineNumber,c=f.endLineNumber)}r.push({range:new d.a(u,1,c,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(e.length);for(h=0,p=e.length;h<p;h++)g[h]={range:e[h].range,options:o};n._decorations=i.deltaDecorations(n._decorations,g),n._overviewRulerApproximateDecorations=i.deltaDecorations(n._overviewRulerApproximateDecorations,r),n._rangeHighlightDecorationId&&(i.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),n._findScopeDecorationId&&(i.removeDecoration(n._findScopeDecorationId),n._findScopeDecorationId=null),t&&(n._findScopeDecorationId=i.addDecoration(t,b._FIND_SCOPE_DECORATION))}))},b.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;0<=t;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])},b.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])},b.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},b._CURRENT_FIND_MATCH_DECORATION=g.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center},minimap:{color:Object(v.f)(m.Hb),position:f.c.Inline}}),b._FIND_MATCH_DECORATION=g.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center},minimap:{color:Object(v.f)(m.Hb),position:f.c.Inline}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=g.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g.a.register({stickiness:1,overviewRuler:{color:Object(v.f)(m.Lb),position:f.d.Center}}),b._RANGE_HIGHLIGHT_DECORATION=g.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=g.a.register({className:"findScope",isWholeLine:!0}),b);function b(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}var y=(C.prototype.getEditOperations=function(e,t){if(0<this._ranges.length){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 d.a.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(var s=0,a=o;s<a.length;s++){var l=a[s];t.addEditOperation(l.range,l.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},C.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},C);function C(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}function w(e,t){if(e&&""!==e[0]){var n=S(e,t,"-"),i=S(e,t,"_");return n&&!i?O(e,t,"-"):!n&&i?O(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s.j(e[0][0])?t[0].toUpperCase()+t.substr(1):t}return t}function S(e,t,n){return-1!==e[0].indexOf(n)&&-1!==t.indexOf(n)&&e[0].split(n).length===t.split(n).length}function O(e,t,n){var i=t.split(n),o=e[0].split(n),r="";return i.forEach((function(e,t){r+=w([o[t]],e)+n})),r.slice(0,-1)}var L=function(e){this.staticValue=e,this.kind=0},D=function(e){this.pieces=e,this.kind=1},x=(N.fromStaticValue=function(e){return new N([k.staticValue(e)])},Object.defineProperty(N.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),N.prototype.buildReplaceString=function(e,t){if(0===this._state.kind)return t?w(e,this._state.staticValue):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+=N._substitute(r.matchIndex,e):n+=r.staticValue}return n},N._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];for(var n="";0<e;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},N);function N(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new L(e[0].staticValue):this._state=new D(e):this._state=new L("")}var k=(E.staticValue=function(e){return new E(e,-1)},E.matchIndex=function(e){return new E(null,e)},E);function E(e,t){this.staticValue=e,this.matchIndex=t}var I=(M.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},M.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},M.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},M.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=k.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=k.matchIndex(e),this._lastCharIndex=t},M.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=k.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new x(this._result)},M);function M(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}var T=n(456),P=new T.d("findWidgetVisible",!1),R=new T.d("findInputFocussed",!1),A=new T.d("replaceInputFocussed",!1),F={primary:545,mac:{primary:2593}},j={primary:565,mac:{primary:2613}},W={primary:560,mac:{primary:2608}},V={primary:554,mac:{primary:2602}},B="editor.action.nextMatchFindAction",H="editor.action.previousMatchFindAction",z="closeFindWidget",U="toggleFindCaseSensitive",K="toggleFindWholeWord",q="toggleFindRegex",G="toggleFindInSelection",Y="editor.action.replaceOne",Z="editor.action.replaceAll",X=19999,$=(J.prototype.dispose=function(){this._isDisposed=!0,Object(r.f)(this._startSearchingTimer),this._toDispose.dispose()},J.prototype._onStateChanged=function(e){var t=this;this._isDisposed||this._editor.hasModel()&&(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))},J._getSearchRange=function(e,t){return t||e.getFullModelRange()},J.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 d.a(n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new d.a(n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var i=this._findMatches(n,!1,X);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())},J.prototype._hasMatches=function(){return 0<this._state.matchesCount},J.prototype._cannotFind=function(){if(this._hasMatches())return!1;var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0},J.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)},J.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$")),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 c.a(n,i)},J.prototype._moveToPrevMatch=function(e,t){if(void 0===t&&(t=!1),this._decorations.getCount()<X){var n=this._decorations.matchBeforePosition(e);return n&&n.isEmpty()&&n.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),n=this._decorations.matchBeforePosition(e)),void(n&&this._setCurrentFindMatch(n))}if(!this._cannotFind()){var i=this._decorations.getFindScope(),o=J._getSearchRange(this._editor.getModel(),i);o.getEndPosition().isBefore(e)&&(e=o.getEndPosition()),e.isBefore(o.getStartPosition())&&(e=o.getEndPosition());var r=e.lineNumber,s=e.column,a=this._editor.getModel(),l=new c.a(r,s),u=a.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(u&&u.range.isEmpty()&&u.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),u=a.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),u)return t||o.containsRange(u.range)?void this._setCurrentFindMatch(u.range):this._moveToPrevMatch(u.range.getStartPosition(),!0)}},J.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},J.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$")),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 c.a(n,i)},J.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<X){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)},J.prototype._getNextMatch=function(e,t,n,i){if(void 0===i&&(i=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),r=J._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(e)&&(e=r.getStartPosition()),e.isBefore(r.getStartPosition())&&(e=r.getStartPosition());var s=e.lineNumber,a=e.column,l=this._editor.getModel(),u=new c.a(s,a),d=l.findNextMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t);return n&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(u)&&(u=this._nextSearchPosition(u),d=l.findNextMatch(this._state.searchString,u,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t)),d?i||r.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),t,n,!0):null},J.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},J.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new x(null);for(var t=new I(e),n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);if(92!==o){if(36===o){if(i<=++n)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(i<=++n)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):x.fromStaticValue(this._state.replaceString)},J.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches,this._state.preserveCase),o=new u.a(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new c.a(t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},J.prototype._findMatches=function(e,t,n){var i=J._getSearchRange(this._editor.getModel(),e);return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,t,n)},J.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=X?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},J.prototype._largeReplaceAll=function(){var e=new p.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="mu";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(),l=this._state.preserveCase;i=a.hasReplacementPatterns||l?r.replace(t,(function(){return a.buildReplaceString(arguments,l)})):r.replace(t,a.buildReplaceString(null,l));var c=new u.b(s,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}},J.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[],o=0,r=n.length;o<r;o++)i[o]=t.buildReplaceString(n[o].matches,this._state.preserveCase);var s=new y(this._editor.getSelection(),n.map((function(e){return e.range})),i);this._executeEditorCommand("replaceAll",s)},J.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824).map((function(e){return new h.a(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)}},J.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},J);function J(e,t){var n=this;this._toDispose=new r.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new o.e,this._decorations=new _(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new o.d((function(){return n.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(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.add(this._editor.onDidChangeModelContent((function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((function(e){return n._onStateChanged(e)}))),this.research(!1,this._state.searchScope)}var Q,ee,te=n(443),ne=(n(1330),n(597)),ie=n(490),oe=n(442),re=n(505),se=(Q=function(e,t){return(Q=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}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ae={inputActiveOptionBorder:ie.a.fromHex("#007ACC00"),inputActiveOptionBackground:ie.a.fromHex("#0E639C50")},le=(se(ue,ee=ne.a),Object.defineProperty(ue.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),ue.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(ue.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}),ue.prototype.width=function(){return 22},ue.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},ue.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},ue.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},ue.prototype.disable=function(){te.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},ue);function ue(e){var t=ee.call(this)||this;return t._onChange=t._register(new oe.a),t.onChange=t._onChange.event,t._onKeyDown=t._register(new oe.a),t.onKeyDown=t._onKeyDown.event,t._opts=re.c(e),re.g(t._opts,ae,!1),t._checked=t._opts.isChecked,t.domNode=document.createElement("div"),t.domNode.title=t._opts.title,t.domNode.className="monaco-custom-checkbox codicon "+(t._opts.actionClassName||"")+" "+(t._checked?"checked":"unchecked"),t.domNode.tabIndex=0,t.domNode.setAttribute("role","checkbox"),t.domNode.setAttribute("aria-checked",String(t._checked)),t.domNode.setAttribute("aria-label",t._opts.title),t.applyStyles(),t.onclick(t.domNode,(function(e){t.checked=!t._checked,t._onChange.fire(!1),e.preventDefault()})),t.ignoreGesture(t.domNode),t.onkeydown(t.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return t.checked=!t._checked,t._onChange.fire(!0),void e.preventDefault();t._onKeyDown.fire(e)})),t}var ce,de,he=(ce=function(e,t){return(ce=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}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pe=i.a("caseDescription","Match Case"),fe=i.a("wordsDescription","Match Whole Word"),ge=i.a("regexDescription","Use Regular Expression"),me=(he(ve,de=le),ve);function ve(e){return de.call(this,{actionClassName:"codicon-case-sensitive",title:pe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var _e,be=(he(ye,_e=le),ye);function ye(e){return _e.call(this,{actionClassName:"codicon-whole-word",title:fe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Ce,we=(he(Se,Ce=le),Se);function Se(e){return Ce.call(this,{actionClassName:"codicon-regex",title:ge+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Oe,Le,De,xe=((Oe=function(e,t){return(Oe=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}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ne,Le=ne.a),Ne.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Ne.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Le.prototype.dispose.call(this)},Ne.prototype.getId=function(){return Ne.ID},Ne.prototype.getDomNode=function(){return this._domNode},Ne.prototype.getPosition=function(){return{preference:0}},Ne.prototype.highlightFindOptions=function(){this._revealTemporarily()},Ne.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},Ne.prototype._onMouseOut=function(){this._hideSoon.schedule()},Ne.prototype._onMouseOver=function(){this._hideSoon.cancel()},Ne.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},Ne.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},Ne.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m.Y),inputActiveOptionBackground:e.getColor(m.X)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},Ne.ID="editor.contrib.findOptionsWidget",Ne);function Ne(e,t,n,i){var r=Le.call(this)||this;r._hideSoon=r._register(new o.d((function(){return r._hide()}),2e3)),r._isVisible=!1,r._editor=e,r._state=t,r._keybindingService=n,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=i.getTheme().getColor(m.Y),a=i.getTheme().getColor(m.X);return r.caseSensitive=r._register(new me({appendTitle:r._keybindingLabelFor(U),isChecked:r._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),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 be({appendTitle:r._keybindingLabelFor(K),isChecked:r._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),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 we({appendTitle:r._keybindingLabelFor(q),isChecked:r._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),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(te.k(r._domNode,(function(e){return r._onMouseOut()}))),r._register(te.j(r._domNode,"mouseover",(function(e){return r._onMouseOver()}))),r._applyTheme(i.getTheme()),r._register(i.onThemeChange(r._applyTheme.bind(r))),r}function ke(e,t){return 1===e||2!==e&&t}Object(v.e)((function(e,t){var n=e.getColor(m.Q);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(m.S);i&&t.addRule(".monaco-editor .findOptionsWidget { color: "+i+"; }");var o=e.getColor(m.hc);o&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(m.e);r&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+r+"; }")}));var Ee,Ie=((De=function(e,t){return(De=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}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Me,Ee=r.a),Object.defineProperty(Me.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"isRegex",{get:function(){return ke(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"wholeWord",{get:function(){return ke(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"matchCase",{get:function(){return ke(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"preserveCase",{get:function(){return ke(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(Me.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),Me.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,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1;0===t&&(e=0),t<e&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,o=i.matchesPosition=!0),this._matchesCount!==t&&(this._matchesCount=t,o=i.matchesCount=!0),void 0!==n&&(d.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,o=i.currentMatch=!0)),o&&this._onFindReplaceStateChange.fire(i)},Me.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,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase,l=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o=i.searchString=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o=i.replaceString=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o=i.isRevealed=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o=i.isReplaceRevealed=!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.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&(d.a.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,o=i.searchScope=!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,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride: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),l!==this.preserveCase&&(o=!0,i.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(i)},Me);function Me(){var e=Ee.call(this)||this;return e._onFindReplaceStateChange=e._register(new oe.a),e.onFindReplaceStateChange=e._onFindReplaceStateChange.event,e._searchString="",e._replaceString="",e._isRevealed=!1,e._isReplaceRevealed=!1,e._isRegex=!1,e._isRegexOverride=0,e._wholeWord=!1,e._wholeWordOverride=0,e._matchCase=!1,e._matchCaseOverride=0,e._preserveCase=!1,e._preserveCaseOverride=0,e._searchScope=null,e._matchesPosition=0,e._matchesCount=0,e._currentMatch=null,e}n(1331);var Te,Pe,Re=n(635),Ae=n(891),Fe=n(446),je=n(452),We=(n(1086),n(976)),Ve=(Te=function(e,t){return(Te=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}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Be=i.a("defaultLabel","input"),He=(Ve(ze,Pe=ne.a),ze.prototype.enable=function(){te.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},ze.prototype.disable=function(){te.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},ze.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},ze.prototype.setEnabled=function(e){e?this.enable():this.disable()},ze.prototype.getValue=function(){return this.inputBox.value},ze.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},ze.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,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()},ze.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};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)}},ze.prototype.select=function(){this.inputBox.select()},ze.prototype.focus=function(){this.inputBox.focus()},ze.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},ze.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},ze.prototype.getWholeWords=function(){return this.wholeWords.checked},ze.prototype.setWholeWords=function(e){this.wholeWords.checked=e},ze.prototype.getRegex=function(){return this.regex.checked},ze.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},ze.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},ze.prototype.highlightFindOptions=function(){te.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,te.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},ze.prototype.validate=function(){this.inputBox.validate()},ze.prototype.clearMessage=function(){this.inputBox.hideMessage()},ze);function ze(e,t,n,i){var o=Pe.call(this)||this;o._showOptionButtons=n,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new oe.a),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new oe.a),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new oe.a),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new oe.a),o._onKeyUp=o._register(new oe.a),o._onCaseSensitiveKeyDown=o._register(new oe.a),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new oe.a),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=t,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||Be,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputActiveOptionBackground=i.inputActiveOptionBackground,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var r=i.appendCaseSensitiveLabel||"",s=i.appendWholeWordsLabel||"",a=i.appendRegexLabel||"",l=i.history||[],u=!!i.flexibleHeight,c=!!i.flexibleWidth,d=i.flexibleMaxHeight;o.domNode=document.createElement("div"),te.f(o.domNode,"monaco-findInput"),o.inputBox=o._register(new We.a(o.domNode,o.contextViewProvider,{placeholder:o.placeholder||"",ariaLabel:o.label||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:l,flexibleHeight:u,flexibleWidth:c,flexibleMaxHeight:d})),o.regex=o._register(new we({appendTitle:a,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.regex.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.regex.onKeyDown((function(e){o._onRegexKeyDown.fire(e)}))),o.wholeWords=o._register(new be({appendTitle:s,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.wholeWords.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o.caseSensitive=o._register(new me({appendTitle:r,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.caseSensitive.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.caseSensitive.onKeyDown((function(e){o._onCaseSensitiveKeyDown.fire(e)}))),o._showOptionButtons&&(o.inputBox.paddingRight=o.caseSensitive.width()+o.wholeWords.width()+o.regex.width());var h=[o.caseSensitive.domNode,o.wholeWords.domNode,o.regex.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=h.indexOf(document.activeElement);if(0<=t){var n=-1;e.equals(17)?n=(t+1)%h.length:e.equals(15)&&(n=0===t?h.length-1:t-1),e.equals(9)?h[t].blur():0<=n&&h[n].focus(),te.c.stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=o._showOptionButtons?"block":"none",p.appendChild(o.caseSensitive.domNode),p.appendChild(o.wholeWords.domNode),p.appendChild(o.regex.domNode),o.domNode.appendChild(p),e&&e.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}var Ue,Ke,qe=n(788),Ge=(Ue=function(e,t){return(Ue=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}Ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ye=i.a("defaultLabel","input"),Ze=i.a("label.preserveCaseCheckbox","Preserve Case"),Xe=(Ge($e,Ke=le),$e);function $e(e){return Ke.call(this,{actionClassName:"codicon-preserve-case",title:Ze+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionBackground:e.inputActiveOptionBackground})||this}var Je,Qe=(Ge(et,Je=ne.a),et.prototype.enable=function(){te.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},et.prototype.disable=function(){te.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},et.prototype.setEnabled=function(e){e?this.enable():this.disable()},et.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,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()},et.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.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)}},et.prototype.select=function(){this.inputBox.select()},et.prototype.focus=function(){this.inputBox.focus()},et.prototype.getPreserveCase=function(){return this.preserveCase.checked},et.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},et.prototype.focusOnPreserve=function(){this.preserveCase.focus()},et.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(et.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),et.prototype.dispose=function(){Je.prototype.dispose.call(this)},et);function et(e,t,n,i){var o=Je.call(this)||this;o._showOptionButtons=n,o.fixFocusOnOptionClickEnabled=!0,o.cachedOptionsWidth=0,o._onDidOptionChange=o._register(new oe.a),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new oe.a),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new oe.a),o._onInput=o._register(new oe.a),o._onKeyUp=o._register(new oe.a),o._onPreserveCaseKeyDown=o._register(new oe.a),o.onPreserveCaseKeyDown=o._onPreserveCaseKeyDown.event,o.contextViewProvider=t,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||Ye,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputActiveOptionBackground=i.inputActiveOptionBackground,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var r=i.history||[],s=!!i.flexibleHeight,a=!!i.flexibleWidth,l=i.flexibleMaxHeight;o.domNode=document.createElement("div"),te.f(o.domNode,"monaco-findInput"),o.inputBox=o._register(new We.a(o.domNode,o.contextViewProvider,{ariaLabel:o.label||"",placeholder:o.placeholder||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:r,flexibleHeight:s,flexibleWidth:a,flexibleMaxHeight:l})),o.preserveCase=o._register(new Xe({appendTitle:"",isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.preserveCase.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.preserveCase.onKeyDown((function(e){o._onPreserveCaseKeyDown.fire(e)}))),o._showOptionButtons?o.cachedOptionsWidth=o.preserveCase.width():o.cachedOptionsWidth=0;var u=[o.preserveCase.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=u.indexOf(document.activeElement);if(0<=t){var n=-1;e.equals(17)?n=(t+1)%u.length:e.equals(15)&&(n=0===t?u.length-1:t-1),e.equals(9)?u[t].blur():0<=n&&u[n].focus(),te.c.stop(e,!0)}}}));var c=document.createElement("div");return c.className="controls",c.style.display=o._showOptionButtons?"block":"none",c.appendChild(o.preserveCase.domNode),o.domNode.appendChild(c),e&&e.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}var tt,nt=(tt=function(e,t){return(tt=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}tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),it=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},ot=function(e,t){return function(n,i){t(n,i,e)}},rt="historyNavigationWidget",st="historyNavigationEnabled";function at(e,t){return e.getContext(document.activeElement).getValue(t)}function lt(e,t){var n,i,o,r=(n=t,e.createScoped(n.target));return i=r,o=t,rt,new T.d("historyNavigationWidget",o).bindTo(i),{scopedContextKeyService:r,historyNavigationEnablement:new T.d(st,!0).bindTo(r)}}var ut,ct=(nt(dt,ut=He),dt=it([ot(3,T.c)],dt));function dt(e,t,n,i,o){void 0===o&&(o=!1);var r=ut.call(this,e,t,o,n)||this;return r._register(lt(i,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}var ht,pt=(nt(ft,ht=Qe),ft=it([ot(3,T.c)],ft));function ft(e,t,n,i,o){void 0===o&&(o=!1);var r=ht.call(this,e,t,o,n)||this;return r._register(lt(i,{target:r.inputBox.element,historyNavigator:r.inputBox}).scopedContextKeyService),r}qe.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:T.a.and(T.a.has(rt),T.a.equals(st,!0)),primary:16,secondary:[528],handler:function(e){var t=at(e.get(T.c),rt);t&&t.historyNavigator.showPreviousValue()}}),qe.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:T.a.and(T.a.has(rt),T.a.equals(st,!0)),primary:18,secondary:[530],handler:function(e){var t=at(e.get(T.c),rt);t&&t.historyNavigator.showNextValue()}});var gt,mt=(gt=function(e,t){return(gt=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}gt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),vt=i.a("label.find","Find"),_t=i.a("placeholder.find","Find"),bt=i.a("label.previousMatchButton","Previous match"),yt=i.a("label.nextMatchButton","Next match"),Ct=i.a("label.toggleSelectionFind","Find in selection"),wt=i.a("label.closeButton","Close"),St=i.a("label.replace","Replace"),Ot=i.a("placeholder.replace","Replace"),Lt=i.a("label.replaceButton","Replace"),Dt=i.a("label.replaceAllButton","Replace All"),xt=i.a("label.toggleReplaceButton","Toggle Replace mode"),Nt=i.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",X),kt=i.a("label.matchesLocation","{0} of {1}"),Et=i.a("label.noResults","No Results"),It=69,Mt="ctrlEnterReplaceAll.windows.donotask",Tt=je.e?256:2048,Pt=function(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"};function Rt(e,t,n){var i=!!t.match(/\n/);n&&i&&0<n.selectionStart&&e.stopPropagation()}function At(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}var Ft,jt=(mt(Wt,Ft=ne.a),Wt.prototype.getId=function(){return Wt.ID},Wt.prototype.getDomNode=function(){return this._domNode},Wt.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},Wt.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._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(68)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=te.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),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=0<this._state.searchString.length&&0===this._state.matchesCount;te.Y(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},Wt.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},Wt.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},Wt.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=It+"px",this._state.matchesCount>=X?this._matchesCount.title=Nt:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),0<this._state.matchesCount){var t=String(this._state.matchesCount);this._state.matchesCount>=X&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s.r(kt,n,t)}else e=Et;this._matchesCount.appendChild(document.createTextNode(e)),Object(Re.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),It=Math.max(It,this._matchesCount.clientWidth)},Wt.prototype._getAriaLabel=function(e,t,n){return e===Et?""===n?i.a("ariaSearchNoResultEmpty","{0} found",e):i.a("ariaSearchNoResult","{0} found for {1}",e,n):t?i.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):i.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},Wt.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},Wt.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=0<this._state.searchString.length,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),te.Y(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},Wt.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var n=!!t&&t.startLineNumber!==t.endLineNumber;this._toggleSelectionFind.checked=n}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){te.f(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&t){var o=this._codeEditor.getDomNode();if(o){var r=te.C(o),s=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),a=r.left+(s?s.left:0),l=s?s.top:0;if(this._viewZone&&l<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(i=!1);var u=te.F(this._domNode).left;u<a&&(i=!1);var c=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());u<r.left+(c?c.left:0)&&(i=!1)}}}this._showViewZone(i)}},Wt.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),te.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},Wt.prototype._layoutViewZone=function(){var e=this;if(this._codeEditor.getOption(28).addExtraSpaceOnTop){if(this._isVisible){var t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((function(n){t.heightInPx=e._getHeight(),e._viewZoneId=n.addZone(t),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+t.heightInPx)}))}}else this._removeViewZone()},Wt.prototype._showViewZone=function(e){var t=this;if(void 0===e&&(e=!0),this._isVisible&&this._codeEditor.getOption(28).addExtraSpaceOnTop){void 0===this._viewZone&&(this._viewZone=new Pt(0));var n=this._viewZone;this._codeEditor.changeViewZones((function(i){if(void 0!==t._viewZoneId){var o=t._getHeight();if(o===n.heightInPx)return;var r=o-n.heightInPx;return n.heightInPx=o,i.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r))}r=t._getHeight(),n.heightInPx=r,t._viewZoneId=i.addZone(n),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r)}))}},Wt.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))},Wt.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m.Y),inputActiveOptionBackground:e.getColor(m.X),inputBackground:e.getColor(m.Z),inputForeground:e.getColor(m.bb),inputBorder:e.getColor(m.ab),inputValidationInfoBackground:e.getColor(m.fb),inputValidationInfoForeground:e.getColor(m.hb),inputValidationInfoBorder:e.getColor(m.gb),inputValidationWarningBackground:e.getColor(m.ib),inputValidationWarningForeground:e.getColor(m.kb),inputValidationWarningBorder:e.getColor(m.jb),inputValidationErrorBackground:e.getColor(m.cb),inputValidationErrorForeground:e.getColor(m.eb),inputValidationErrorBorder:e.getColor(m.db)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)},Wt.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible&&te.M(this._domNode)){var e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)te.f(this._domNode,"hiddenEditor");else{te.I(this._domNode,"hiddenEditor")&&te.P(this._domNode,"hiddenEditor");var t=e.width,n=e.minimapWidth,i=!1,o=!1,r=!1;if(this._resized&&419<te.H(this._domNode))return this._domNode.style.maxWidth=t-28-n-15+"px",void(this._replaceInput.width=te.H(this._findInput.domNode));if(t<=447+n&&(o=!0),t<=447+n-It&&(r=!0),t+50<=447+n-It&&(i=!0),te.Y(this._domNode,"collapsed-find-widget",i),te.Y(this._domNode,"narrow-find-widget",r),te.Y(this._domNode,"reduced-find-widget",o),r||i||(this._domNode.style.maxWidth=t-28-n-15+"px"),this._resized){this._findInput.inputBox.layout();var s=this._findInput.inputBox.element.clientWidth;0<s&&(this._replaceInput.width=s)}else this._isReplaceVisible&&(this._replaceInput.width=te.H(this._findInput.domNode))}}},Wt.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+4},Wt.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},Wt.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},Wt.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},Wt.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},Wt.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&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&&(d.a.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},Wt.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},Wt.prototype._onFindInputKeyDown=function(e){return e.equals(3|Tt)?(this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Rt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?At(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},Wt.prototype._onReplaceInputKeyDown=function(e){return e.equals(3|Tt)?(je.h&&je.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(i.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Mt,!0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),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()):e.equals(16)?Rt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?At(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},Wt.prototype.getHorizontalSashTop=function(e){return 0},Wt.prototype.getHorizontalSashLeft=function(e){return 0},Wt.prototype.getHorizontalSashWidth=function(e){return 500},Wt.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Wt.prototype._buildDomNode=function(){var e=this;this._findInput=this._register(new ct(null,this._contextViewProvider,{width:221,label:vt,placeholder:_t,appendCaseSensitiveLabel:this._keybindingLabelFor(U),appendWholeWordsLabel:this._keybindingLabelFor(K),appendRegexLabel:this._keybindingLabelFor(q),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(t){return{content:t.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(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._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),je.d&&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 Bt({label:bt+this._keybindingLabelFor(H),className:"codicon codicon-arrow-up",onTrigger:function(){e._codeEditor.getAction(H).run().then(void 0,Fe.e)}})),this._nextBtn=this._register(new Bt({label:yt+this._keybindingLabelFor(B),className:"codicon codicon-arrow-down",onTrigger:function(){e._codeEditor.getAction(B).run().then(void 0,Fe.e)}}));var t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);var n=document.createElement("div");n.className="find-actions",t.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new le({actionClassName:"codicon codicon-selection",title:Ct+this._keybindingLabelFor(G),isChecked:!1})),this._register(this._toggleSelectionFind.onChange((function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){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)}))),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Bt({label:wt+this._keybindingLabelFor(z),className:"codicon codicon-close",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())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new pt(null,void 0,{label:St,placeholder:Ot,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.enabled?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new Bt({label:Lt+this._keybindingLabelFor(Y),className:"codicon codicon-replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new Bt({label:Dt+this._keybindingLabelFor(Z),className:"codicon codicon-replace-all",onTrigger:function(){e._controller.replaceAll()}}));var i=document.createElement("div");i.className="replace-part",i.appendChild(this._replaceInput.domNode);var o=document.createElement("div");o.className="replace-actions",i.appendChild(o),o.appendChild(this._replaceBtn.domNode),o.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Bt({label:xt,className:"codicon toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(i),this._resizeSash=new Ae.a(this._domNode,this,{orientation:0}),this._resized=!1;var r=419;this._register(this._resizeSash.onDidStart((function(){r=te.H(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=r+t.startX-t.currentX;n<419||(parseFloat(te.z(e._domNode).maxWidth)||0)<n||(e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((function(){var t=te.H(e._domNode);if(!(t<419)){var n=419;if(!e._resized||419===t){var i=e._codeEditor.getLayoutInfo();n=i.width-28-i.minimapWidth-15,e._resized=!0}e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=te.H(e._findInput.domNode)),e._findInput.inputBox.layout()}})))},Wt.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)},Wt.ID="editor.contrib.findWidget",Wt);function Wt(e,t,n,i,s,a,l,u,c){var d=Ft.call(this)||this;return d._cachedHeight=null,d._codeEditor=e,d._controller=t,d._state=n,d._contextViewProvider=i,d._keybindingService=s,d._contextKeyService=a,d._storageService=u,d._notificationService=c,d._ctrlEnterReplaceAllWarningPrompted=!!u.getBoolean(Mt,0),d._isVisible=!1,d._isReplaceVisible=!1,d._ignoreChangeEvent=!1,d._updateHistoryDelayer=new o.a(500),d._register(Object(r.h)((function(){return d._updateHistoryDelayer.cancel()}))),d._register(d._state.onFindReplaceStateChange((function(e){return d._onStateChanged(e)}))),d._buildDomNode(),d._updateButtons(),d._tryUpdateWidgetWidth(),d._findInput.inputBox.layout(),d._register(d._codeEditor.onDidChangeConfiguration((function(e){if(e.hasChanged(68)&&(d._codeEditor.getOption(68)&&d._state.change({isReplaceRevealed:!1},!1),d._updateButtons()),e.hasChanged(107)&&d._tryUpdateWidgetWidth(),e.hasChanged(2)&&d.updateAccessibilitySupport(),e.hasChanged(28)){var t=d._codeEditor.getOption(28).addExtraSpaceOnTop;t&&!d._viewZone&&(d._viewZone=new Pt(0),d._showViewZone()),!t&&d._viewZone&&d._removeViewZone()}}))),d.updateAccessibilitySupport(),d._register(d._codeEditor.onDidChangeCursorSelection((function(){d._isVisible&&d._updateToggleSelectionFindButton()}))),d._register(d._codeEditor.onDidFocusEditorWidget((function(){if(d._isVisible){var e=d._controller.getGlobalBufferTerm();e&&e!==d._state.searchString&&(d._state.change({searchString:e},!0),d._findInput.select())}}))),d._findInputFocused=R.bindTo(a),d._findFocusTracker=d._register(te.Z(d._findInput.inputBox.inputElement)),d._register(d._findFocusTracker.onDidFocus((function(){d._findInputFocused.set(!0),d._updateSearchScope()}))),d._register(d._findFocusTracker.onDidBlur((function(){d._findInputFocused.set(!1)}))),d._replaceInputFocused=A.bindTo(a),d._replaceFocusTracker=d._register(te.Z(d._replaceInput.inputBox.inputElement)),d._register(d._replaceFocusTracker.onDidFocus((function(){d._replaceInputFocused.set(!0),d._updateSearchScope()}))),d._register(d._replaceFocusTracker.onDidBlur((function(){d._replaceInputFocused.set(!1)}))),d._codeEditor.addOverlayWidget(d),d._codeEditor.getOption(28).addExtraSpaceOnTop&&(d._viewZone=new Pt(0)),d._applyTheme(l.getTheme()),d._register(l.onThemeChange(d._applyTheme.bind(d))),d._register(d._codeEditor.onDidChangeModel((function(){d._isVisible&&(d._viewZoneId=void 0)}))),d._register(d._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?d._layoutViewZone():setTimeout((function(){d._layoutViewZone()}),0)}))),d}var Vt,Bt=(mt(Ht,Vt=ne.a),Object.defineProperty(Ht.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Ht.prototype.isEnabled=function(){return 0<=this._domNode.tabIndex},Ht.prototype.focus=function(){this._domNode.focus()},Ht.prototype.setEnabled=function(e){te.Y(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},Ht.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},Ht.prototype.toggleClass=function(e,t){te.Y(this._domNode,e,t)},Ht);function Ht(e){var t=Vt.call(this)||this;return t._opts=e,t._domNode=document.createElement("div"),t._domNode.title=t._opts.label,t._domNode.tabIndex=0,t._domNode.className="button "+t._opts.className,t._domNode.setAttribute("role","button"),t._domNode.setAttribute("aria-label",t._opts.label),t.onclick(t._domNode,(function(e){t._opts.onTrigger(),e.preventDefault()})),t.onkeydown(t._domNode,(function(e){if(e.equals(10)||e.equals(3))return t._opts.onTrigger(),void e.preventDefault();t._opts.onKeyDown&&t._opts.onKeyDown(e)})),t}Object(v.e)((function(e,t){function n(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")}n(".findMatch",e.getColor(m.t)),n(".currentFindMatch",e.getColor(m.r)),n(".findScope",e.getColor(m.v)),n(".find-widget",e.getColor(m.Q));var i=e.getColor(m.hc);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(m.u);o&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+o+"; box-sizing: border-box; }");var r=e.getColor(m.s);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(m.w);s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var a=e.getColor(m.e);a&&t.addRule(".monaco-editor .find-widget { border: 1px solid "+a+"; }");var l=e.getColor(m.S);l&&t.addRule(".monaco-editor .find-widget { color: "+l+"; }");var u=e.getColor(m.U);u&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+u+"; }");var c=e.getColor(m.T);if(c)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(m.R);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}var h=e.getColor(m.V);h&&t.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+h+"; }")}));var zt=n(955),Ut=n(757),Kt=n(448),qt=n(531),Gt=n(775),Yt=n(532);n.d(t,"getSelectionSearchString",(function(){return Qt})),n.d(t,"CommonFindController",(function(){return tn})),n.d(t,"FindController",(function(){return rn})),n.d(t,"StartFindAction",(function(){return ln})),n.d(t,"StartFindWithSelectionAction",(function(){return dn})),n.d(t,"MatchFindAction",(function(){return fn})),n.d(t,"NextMatchFindAction",(function(){return vn})),n.d(t,"NextMatchFindAction2",(function(){return yn})),n.d(t,"PreviousMatchFindAction",(function(){return Sn})),n.d(t,"PreviousMatchFindAction2",(function(){return Dn})),n.d(t,"SelectionMatchFindAction",(function(){return kn})),n.d(t,"NextSelectionMatchFindAction",(function(){return Mn})),n.d(t,"PreviousSelectionMatchFindAction",(function(){return Rn})),n.d(t,"StartFindReplaceAction",(function(){return jn}));var Zt,Xt=(Zt=function(e,t){return(Zt=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}Zt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$t=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},Jt=function(e,t){return function(n,i){t(n,i,e)}};function Qt(e){if(!e.hasModel())return null;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)<524288)return e.getModel().getValueInRange(t);return null}var en,tn=(Xt(nn,en=r.a),nn.get=function(e){return e.getContribution(nn.ID)},nn.prototype.dispose=function(){this.disposeModel(),en.prototype.dispose.call(this)},nn.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},nn.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)},nn.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),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},nn.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},nn.prototype.isFindInputFocused=function(){return!!R.getValue(this._contextKeyService)},nn.prototype.getState=function(){return this._state},nn.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},nn.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},nn.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){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)}},nn.prototype.setSearchString=function(e){this._state.isRegex&&(e=s.p(e)),this._state.change({searchString:e},!1)},nn.prototype.highlightFindOptions=function(){},nn.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection&&(t=Qt(this._editor))&&(this._state.isRegex?n.searchString=s.p(t):n.searchString=t),!n.searchString&&e.seedSearchStringFromGlobalClipboard&&(t=this.getGlobalBufferTerm())&&(n.searchString=t),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 $(this._editor,this._state))}},nn.prototype.start=function(e){this._start(e)},nn.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},nn.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},nn.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},nn.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},nn.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},nn.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},nn.prototype.setGlobalBufferTerm=function(e){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},nn.ID="editor.contrib.findController",nn=$t([Jt(1,T.c),Jt(2,Gt.a),Jt(3,zt.a)],nn));function nn(e,t,n,i){var r=en.call(this)||this;return r._editor=e,r._findWidgetVisible=P.bindTo(t),r._contextKeyService=t,r._storageService=n,r._clipboardService=i,r._updateHistoryDelayer=new o.a(500),r._state=r._register(new Ie),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),preserveCase:r._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})}))),r}var on,rn=(Xt(sn,on=tn),sn.prototype._start=function(e){this._widget||this._createFindWidget();var t=this._editor.getSelection(),n=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!t&&t.startLineNumber!==t.endLineNumber}e.updateSearchScope=n,on.prototype._start.call(this,e),2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput()},sn.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},sn.prototype._createFindWidget=function(){this._widget=this._register(new jt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new xe(this._editor,this._state,this._keybindingService,this._themeService))},sn=$t([Jt(1,Ut.b),Jt(2,T.c),Jt(3,qt.a),Jt(4,v.c),Jt(5,Yt.a),Jt(6,Gt.a),Jt(7,Object(Kt.d)(zt.a))],sn));function sn(e,t,n,i,o,r,s,a){var l=on.call(this,e,n,s,a)||this;return l._contextViewService=t,l._keybindingService=i,l._themeService=o,l._notificationService=r,l._widget=null,l._findOptionsWidget=null,l}var an,ln=(Xt(un,an=a.b),un.prototype.run=function(e,t){var n=tn.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},un);function un(){return an.call(this,{id:"actions.find",label:i.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:17,group:"3_find",title:i.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}var cn,dn=(Xt(hn,cn=a.b),hn.prototype.run=function(e,t){var n=tn.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},hn);function hn(){return cn.call(this,{id:"actions.findWithSelection",label:i.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}var pn,fn=(Xt(gn,pn=a.b),gn.prototype.run=function(e,t){var n=tn.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},gn);function gn(){return null!==pn&&pn.apply(this,arguments)||this}var mn,vn=(Xt(_n,mn=fn),_n.prototype._run=function(e){return e.moveToNextMatch()},_n);function _n(){return mn.call(this,{id:B,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}var bn,yn=(Xt(Cn,bn=fn),Cn.prototype._run=function(e){return e.moveToNextMatch()},Cn);function Cn(){return bn.call(this,{id:B,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:T.a.and(l.a.focus,R),primary:3,weight:100}})||this}var wn,Sn=(Xt(On,wn=fn),On.prototype._run=function(e){return e.moveToPrevMatch()},On);function On(){return wn.call(this,{id:H,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}var Ln,Dn=(Xt(xn,Ln=fn),xn.prototype._run=function(e){return e.moveToPrevMatch()},xn);function xn(){return Ln.call(this,{id:H,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:T.a.and(l.a.focus,R),primary:1027,weight:100}})||this}var Nn,kn=(Xt(En,Nn=a.b),En.prototype.run=function(e,t){var n=tn.get(t);if(n){var i=Qt(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},En);function En(){return null!==Nn&&Nn.apply(this,arguments)||this}var In,Mn=(Xt(Tn,In=kn),Tn.prototype._run=function(e){return e.moveToNextMatch()},Tn);function Tn(){return In.call(this,{id:"editor.action.nextSelectionMatchFindAction",label:i.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:2109,weight:100}})||this}var Pn,Rn=(Xt(An,Pn=kn),An.prototype._run=function(e){return e.moveToPrevMatch()},An);function An(){return Pn.call(this,{id:"editor.action.previousSelectionMatchFindAction",label:i.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:3133,weight:100}})||this}var Fn,jn=(Xt(Wn,Fn=a.b),Wn.prototype.run=function(e,t){if(t.hasModel()&&!t.getOption(68)){var n=tn.get(t),i=t.getSelection(),o=n.isFindInputFocused(),r=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getOption(28).seedSearchStringFromSelection&&!o,s=o||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getOption(28).seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},Wn);function Wn(){return Fn.call(this,{id:"editor.action.startFindReplaceAction",label:i.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:17,group:"3_find",title:i.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}Object(a.h)(tn.ID,rn),Object(a.f)(ln),Object(a.f)(dn),Object(a.f)(vn),Object(a.f)(yn),Object(a.f)(Sn),Object(a.f)(Dn),Object(a.f)(Mn),Object(a.f)(Rn),Object(a.f)(jn);var Vn=a.c.bindToContribution(tn.get);Object(a.g)(new Vn({id:z,precondition:P,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.g)(new Vn({id:U,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),Object(a.g)(new Vn({id:K,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:j.primary,mac:j.mac,win:j.win,linux:j.linux}})),Object(a.g)(new Vn({id:q,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:W.primary,mac:W.mac,win:W.win,linux:W.linux}})),Object(a.g)(new Vn({id:G,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:V.primary,mac:V.mac,win:V.win,linux:V.linux}})),Object(a.g)(new Vn({id:Y,precondition:P,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:3094}})),Object(a.g)(new Vn({id:Y,precondition:P,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:T.a.and(l.a.focus,A),primary:3}})),Object(a.g)(new Vn({id:Z,precondition:P,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:2563}})),Object(a.g)(new Vn({id:Z,precondition:P,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:T.a.and(l.a.focus,A),primary:void 0,mac:{primary:2051}}})),Object(a.g)(new Vn({id:"editor.action.selectAllMatches",precondition:P,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:515}}))},function(e,t,n){"use strict";n.r(t);var i,o=n(445),r=n(442),s=n(439),a=n(456),l=n(773),u=n(440),c=n(449),d=n(451),h=n(469),p=(n(1335),n(443)),f=n(461),g=n(490),m=n(688),v=n(956),_=n(459),b=n(916),y=n(554),C=n(889);(i||(i={})).className=function(e){switch(e){case C.a.Ignore:return"severity-ignore codicon-info";case C.a.Info:return"codicon-info";case C.a.Warning:return"codicon-warning";case C.a.Error:return"codicon-error"}return""},Object(d.e)((function(e,t){var n=e.getColor(f.Pb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-error,\n\t\t\t.markers-panel .marker-icon.codicon-error,\n\t\t\t.extensions-viewlet > .extensions .codicon-error,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-error {\n\t\t\t\tcolor: "+n+";\n\t\t\t}\n\t\t");var i=e.getColor(f.Rb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-warning,\n\t\t\t.markers-panel .marker-icon.codicon-warning,\n\t\t\t.extensions-viewlet > .extensions .codicon-warning,\n\t\t\t.extension-editor .codicon-warning,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-warning {\n\t\t\t\tcolor: "+i+";\n\t\t\t}\n\t\t");var o=e.getColor(f.Qb);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-info,\n\t\t\t.markers-panel .marker-icon.codicon-info,\n\t\t\t.extensions-viewlet > .extensions .codicon-info,\n\t\t\t.extension-editor .codicon-info,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-info {\n\t\t\t\tcolor: "+o+";\n\t\t\t}\n\t\t")}));var w,S=(w=function(e,t){return(w=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}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),O=(L.prototype.dispose=function(){Object(s.f)(this._disposables)},L.prototype.update=function(e){var t=this,n=e.source,i=e.message,o=e.relatedInformation,r=e.code,s=((null==n?void 0:n.length)||0)+"()".length;r&&(s+="string"==typeof r?r.length:r.value.length);var a=i.split(/\r\n|\r|\n/g);this._lines=a.length;for(var l=this._longestLineLength=0,u=a;l<u.length;l++){var c=u[l];this._longestLineLength=Math.max(c.length+s,this._longestLineLength)}p.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var d=this._messageBlock,h=0,f=a;h<f.length;h++)c=f[h],""===((d=document.createElement("div")).innerText=c)&&(d.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(d);if(n||r){var g,m=document.createElement("span");if(p.f(m,"details"),d.appendChild(m),n){var b=document.createElement("span");b.innerText=n,p.f(b,"source"),m.appendChild(b)}r&&("string"==typeof r?((g=document.createElement("span")).innerText="("+r+")",p.f(g,"code"),m.appendChild(g)):(this._codeLink=p.a("a.code-link"),this._codeLink.setAttribute("href",""+r.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(r.link),e.preventDefault(),e.stopPropagation()},(g=p.q(this._codeLink,p.a("span"))).innerText=r.value,m.appendChild(this._codeLink)))}if(p.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(_.q)(o)){var y=this._relatedBlock.appendChild(document.createElement("div"));y.style.paddingTop=Math.floor(.66*this._editor.getOption(49))+"px",this._lines+=1;for(var C=0,w=o;C<w.length;C++){var S=w[C],O=document.createElement("div"),L=document.createElement("a");p.f(L,"filename"),L.innerHTML=Object(v.a)(S.resource)+"("+S.startLineNumber+", "+S.startColumn+"): ",L.title=Object(v.b)(S.resource,void 0),this._relatedDiagnostics.set(L,S);var D=document.createElement("span");D.innerText=S.message,O.appendChild(L),O.appendChild(D),this._lines+=1,y.appendChild(O)}}var x=this._editor.getOption(34),N=Math.ceil(x.typicalFullwidthCharacterWidth*this._longestLineLength*.75),k=x.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:N,scrollHeight:k})},L.prototype.layout=function(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})},L.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},L);function L(e,t,n,i){var o=this;this._openerService=i,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new s.b,this._editor=t;var r=document.createElement("div");r.className="descriptioncontainer",r.setAttribute("aria-live","assertive"),r.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),p.f(this._messageBlock,"message"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(p.o(this._relatedBlock,"click",(function(e){e.preventDefault();var t=o._relatedDiagnostics.get(e.target);t&&n(t)}))),this._scrollable=new m.b(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((function(e){r.style.left="-"+e.scrollLeft+"px",r.style.top="-"+e.scrollTop+"px"}))),this._disposables.add(this._scrollable)}var D,x=(S(N,D=b.c),N.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(R);var t=M;this._severity===l.c.Warning?t=T:this._severity===l.c.Info&&(t=P);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(b.q),secondaryHeadingColor:e.getColor(b.r)})},N.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),D.prototype._applyStyles.call(this)},N.prototype.dispose=function(){this._callOnDispose.dispose(),D.prototype.dispose.call(this)},N.prototype._fillHead=function(e){D.prototype._fillHead.call(this,e),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},N.prototype._fillTitleIcon=function(e){this._icon=p.q(e,p.a(""))},N.prototype._getActionBarOptions=function(){return{orientation:0}},N.prototype._fillBody=function(e){var t=this;this._parentContainer=e,p.f(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new O(this._container,this.editor,(function(e){return t._onDidSelectRelatedInformation.fire(e)}),this._openerService),this._disposables.add(this._message)},N.prototype.show=function(e,t){throw new Error("call showAtMarker")},N.prototype.showAtMarker=function(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getTheme());var r=u.a.lift(e),s=this.editor.getPosition(),a=s&&r.containsPosition(s)?s:r.getStartPosition();D.prototype.show.call(this,a,this.computeRequiredHeight());var c=this.editor.getModel();if(c){var d=1<n?o.a("problems","{0} of {1} problems",t,n):o.a("change","{0} of {1} problem",t,n);this.setTitle(Object(y.b)(c.uri),d)}this._icon.className="codicon "+i.className(l.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(a,0),this.editor.focus()},N.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e)},N.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},N.prototype._doLayoutBody=function(e,t){D.prototype._doLayoutBody.call(this,e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"},N.prototype._onWidth=function(e){this._message.layout(this._heightInPixel,e)},N.prototype._relayout=function(){D.prototype._relayout.call(this,this.computeRequiredHeight())},N.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},N);function N(e,t,n,i){var o=D.call(this,e,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return o.actions=t,o._themeService=n,o._openerService=i,o._callOnDispose=new s.b,o._onDidSelectRelatedInformation=new r.a,o.onDidSelectRelatedInformation=o._onDidSelectRelatedInformation.event,o._severity=l.c.Warning,o._backgroundColor=g.a.white,o._applyTheme(n.getTheme()),o._callOnDispose.add(n.onThemeChange(o._applyTheme.bind(o))),o.create(),o}var k=Object(f.Kb)(f.q,f.p),E=Object(f.Kb)(f.P,f.O),I=Object(f.Kb)(f.H,f.G),M=Object(f.Tb)("editorMarkerNavigationError.background",{dark:k,light:k,hc:k},o.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),T=Object(f.Tb)("editorMarkerNavigationWarning.background",{dark:E,light:E,hc:E},o.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),P=Object(f.Tb)("editorMarkerNavigationInfo.background",{dark:I,light:I,hc:I},o.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),R=Object(f.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:g.a.white,hc:"#0C141F"},o.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(d.e)((function(e,t){var n=e.getColor(f.ec);n&&(t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }"),t.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+n+"; }"))}));var A=n(444),F=n(504),j=n(446),W=n(755),V=n(703),B=n(531),H=n(636);n.d(t,"MarkerController",(function(){return X})),n.d(t,"NextMarkerAction",(function(){return ne}));var z,U=(z=function(e,t){return(z=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}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),K=function(e,t){return function(n,i){t(n,i,e)}},q=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},G=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},Y=(Object.defineProperty(Z.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),Z.prototype.setMarkers=function(e){var t=0<=this._nextIdx?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(Q.compareMarker),this._nextIdx=t?Math.max(-1,Object(_.c)(this._markers,t,Q.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},Z.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},Z.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i<this._markers.length;i++){var o=u.a.lift(this._markers[i]);if(o.isEmpty()&&this._editor.getModel()){var r=this._editor.getModel().getWordAtPosition(o.getStartPosition());r&&(o=new u.a(o.startLineNumber,r.startColumn,o.startLineNumber,r.endColumn))}if(n&&(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(Z.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(e){var t=this._nextIdx;this._nextIdx=-1,e&&(this._nextIdx=this.indexOf(e)),this._nextIdx!==t&&this._onCurrentMarkerChanged.fire(e)},enumerable:!0,configurable:!0}),Z.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||0<this._nextIdx?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},Z.prototype.canNavigate=function(){return 0<this._markers.length},Z.prototype.findMarkerAtPosition=function(e){return Object(_.h)(this._markers,(function(t){return u.a.containsPosition(t,e)}))},Object.defineProperty(Z.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),Z.prototype.indexOf=function(e){return 1+this._markers.indexOf(e)},Z.prototype.dispose=function(){this._toUnbind.dispose()},Z);function Z(e,t){var n=this;this._toUnbind=new s.b,this._editor=e,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new r.a,this._onMarkerSetChanged=new r.a,this.setMarkers(t),this._toUnbind.add(this._editor.onDidDispose((function(){return n.dispose()}))),this._toUnbind.add(this._editor.onDidChangeCursorPosition((function(){n._ignoreSelectionChange||n.currentMarker&&n._editor.getPosition()&&u.a.containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1)})))}var X=($.get=function(e){return e.getContribution($.ID)},$.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},$.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},$.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();this._model=new Y(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var n=this._keybindingService.lookupKeybinding(re.ID),i=this._keybindingService.lookupKeybinding(ne.ID),o=[new V.a(ne.ID,ne.LABEL+(i?" ("+i.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),(function(){return q(e,void 0,void 0,(function(){return G(this,(function(e){return this._model&&this._model.move(!0,!0),[2]}))}))})),new V.a(re.ID,re.LABEL+(n?" ("+n.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),(function(){return q(e,void 0,void 0,(function(){return G(this,(function(e){return this._model&&this._model.move(!1,!0),[2]}))}))}))];this._widget=new x(this._editor,o,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose((function(){return e.closeMarkersNavigation()}),this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var r=0,s=o;r<s.length;r++){var a=s[r];this._disposeOnClose.add(a)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation((function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:u.a.lift(t).collapseToStart()}},e._editor).then(void 0,j.e),e.closeMarkersNavigation(!1)}))),this._disposeOnClose.add(this._editor.onDidChangeModel((function(){return e._cleanUp()}))),this._disposeOnClose.add(this._model.onCurrentMarkerChanged((function(t){t&&e._model?e._model.withoutWatchingEditorPosition((function(){e._widget&&e._model&&e._widget.showAtMarker(t,e._model.indexOf(t),e._model.total)})):e._cleanUp()}))),this._disposeOnClose.add(this._model.onMarkerSetChanged((function(){if(e._widget&&e._widget.position&&e._model){var t=e._model.findMarkerAtPosition(e._widget.position);t?e._widget.updateMarker(t):e._widget.showStale()}}))),this._model},$.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus()},$.prototype.show=function(e){this.getOrCreateModel().currentMarker=e},$.prototype._onMarkerChanged=function(e){var t=this._editor.getModel();t&&this._model&&e.some((function(e){return Object(y.e)(t.uri,e)}))&&this._model.setMarkers(this._getMarkers())},$.prototype._getMarkers=function(){var e=this._editor.getModel();return e?this._markerService.read({resource:e.uri,severities:l.c.Error|l.c.Warning|l.c.Info}):[]},$.ID="editor.contrib.markerController",$=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([K(1,l.b),K(2,a.c),K(3,d.c),K(4,F.a),K(5,B.a),K(6,H.a)],$));function $(e,t,n,i,o,r,a){this._markerService=t,this._contextKeyService=n,this._themeService=i,this._editorService=o,this._keybindingService=r,this._openerService=a,this._model=null,this._widget=null,this._disposeOnClose=new s.b,this._editor=e,this._widgetVisible=pe.bindTo(this._contextKeyService)}var J,Q=(U(ee,J=c.b),ee.prototype.run=function(e,t){var n=this,i=e.get(l.b),o=e.get(F.a),r=X.get(t);if(!r)return Promise.resolve(void 0);var s=r.getOrCreateModel();if(!s.move(this._isNext,!this._multiFile)||!this._multiFile)return Promise.resolve(void 0);var a=i.read({severities:l.c.Error|l.c.Warning|l.c.Info}).sort(ee.compareMarker);if(0===a.length)return Promise.resolve(void 0);var u=t.getModel();if(!u)return Promise.resolve(void 0);var c=s.currentMarker||{resource:u.uri,severity:l.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},d=Object(_.c)(a,c,ee.compareMarker);d<0?(d=~d,d%=a.length):d=this._isNext?(d+1)%a.length:(d+a.length-1)%a.length;var h=a[d];return Object(y.e)(h.resource,u.uri)?(s.move(this._isNext,!0),Promise.resolve(void 0)):(r.closeMarkersNavigation(),o.openCodeEditor({resource:h.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:h}},t).then((function(e){if(e)return e.getAction(n.id).run()})))},ee.compareMarker=function(e,t){var n=Object(A.e)(e.resource.toString(),t.resource.toString());return 0===n&&(n=l.c.compare(e.severity,t.severity)),0===n&&(n=u.a.compareRangesUsingStarts(e,t)),n},ee);function ee(e,t,n){var i=J.call(this,n)||this;return i._isNext=e,i._multiFile=t,i}var te,ne=(U(ie,te=Q),ie.ID="editor.action.marker.next",ie.LABEL=o.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),ie);function ie(){return te.call(this,!0,!1,{id:ie.ID,label:ie.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:578,weight:100}})||this}var oe,re=(U(se,oe=Q),se.ID="editor.action.marker.prev",se.LABEL=o.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),se);function se(){return oe.call(this,!1,!1,{id:se.ID,label:se.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:1602,weight:100}})||this}var ae,le=(U(ue,ae=Q),ue);function ue(){return ae.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:o.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:66,weight:100}})||this}var ce,de=(U(he,ce=Q),he);function he(){return ce.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:o.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:h.a.writable,kbOpts:{kbExpr:h.a.focus,primary:1090,weight:100}})||this}Object(c.h)(X.ID,X),Object(c.f)(ne),Object(c.f)(re),Object(c.f)(le),Object(c.f)(de);var pe=new a.d("markersNavigationVisible",!1),fe=c.c.bindToContribution(X.get);Object(c.g)(new fe({id:"closeMarkersNavigation",precondition:pe,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:150,kbExpr:h.a.focus,primary:9,secondary:[1033]}})),W.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:o.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),W.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:o.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},function(e,t,n){"use strict";n.r(t);var i,o,r=n(635),s=n(453),a=n(548),l=n(452),u=n(892),c=n(449),d=n(504),h=n(450),p=n(440),f=n(469),g=n(454),m=n(887),v=n(916),_=n(1117),b=n(897),y=n(445),C=n(755),w=n(456),S=n(532),O=n(774),L=n(1093),D=n(489),x=n(761),N=n(448),k=n(792),E=n(788),I=n(439),M=n(442),T=n(531),P=n(554),R=(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=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},F=function(e,t){return function(n,i){t(n,i,e)}},j=new w.d("hasSymbols",!1),W=Object(N.c)("ISymbolNavigationService"),V=(B.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(I.f)(this._currentState),Object(I.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},B.prototype.put=function(e){var t=this,n=e.parent.parent;if(n.references.length<=1)this.reset();else{this._currentModel=n,this._currentIdx=n.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();var i=new z(this._editorService),o=i.onDidChange((function(e){if(!t._ignoreEditorChange){var i=t._editorService.getActiveCodeEditor();if(i){var o=i.getModel(),r=i.getPosition();if(o&&r){for(var s=!1,a=!1,l=0,u=n.references;l<u.length;l++){var c=u[l];if(Object(P.e)(c.uri,o.uri))s=!0,a=a||p.a.containsPosition(c.range,r);else if(s)break}s&&a||t.reset()}}}}));this._currentState=Object(I.e)(i,o)}},B.prototype.revealNext=function(e){var t=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:p.a.collapseToStart(n.range),revealInCenterIfOutsideViewport:!0}},e).finally((function(){t._ignoreEditorChange=!1}))},B.prototype._showMessage=function(){Object(I.f)(this._currentMessage);var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?Object(y.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(y.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)},B=A([F(0,w.c),F(1,d.a),F(2,S.a),F(3,T.a)],B));function B(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=j.bindTo(e)}function H(){return o.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:j,kbOpts:{weight:100,primary:70}})||this}Object(k.b)(W,V,!0),Object(c.g)((R(H,o=c.c),H.prototype.runEditorCommand=function(e,t){return e.get(W).revealNext(t)},new H)),E.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:j,primary:9,handler:function(e){e.get(W).reset()}});var z=(U.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(I.f)},U.prototype._onDidAddEditor=function(e){var t=this;this._listener.set(e,Object(I.e)(e.onDidChangeCursorPosition((function(n){return t._onDidChange.fire({editor:e})})),e.onDidChangeModelContent((function(n){return t._onDidChange.fire({editor:e})}))))},U.prototype._onDidRemoveEditor=function(e){Object(I.f)(this._listener.get(e)),this._listener.delete(e)},U=A([F(0,d.a)],U));function U(e){this._listener=new Map,this._disposables=new I.b,this._onDidChange=new M.a,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}var K=n(478),q=n(479),G=n(465),Y=n(957);n.d(t,"DefinitionAction",(function(){return de}));var Z,X,$,J,Q,ee,te,ne,ie,oe=(Z=function(e,t){return(Z=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}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),re=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},se=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}};C.c.appendMenuItem(7,{submenu:8,title:y.a("peek.submenu","Peek"),group:"navigation",order:100});var ae,le=(oe(ue,ae=c.b),ue.prototype.run=function(e,t){var n=this;if(!t.hasModel())return Promise.resolve(void 0);var i=e.get(S.a),o=e.get(d.a),a=e.get(O.a),l=e.get(W),u=t.getModel(),c=t.getPosition(),h=new x.b(t,5),p=Object(s.j)(this._getLocationModel(u,c,h.token),h.token).then((function(e){return re(n,void 0,void 0,(function(){var n,i,s,a;return se(this,(function(d){if(!e||h.token.isCancellationRequested)return[2];if(Object(r.a)(e.ariaMessage),e.referenceAt(u.uri,c)&&(i=this._getAlternativeCommand(t))!==this.id&&(n=t.getAction(i)),0===(s=e.references.length))this._configuration.muteMessage||(a=u.getWordAtPosition(c),m.a.get(t).showMessage(this._getNoResultFoundMessage(a),c));else{if(1!==s||!n)return[2,this._onResult(o,l,t,e)];n.run()}return[2]}))}))}),(function(e){i.error(e)})).finally((function(){h.dispose()}));return a.showWhile(p,250),p},ue.prototype._onResult=function(e,t,n,i){return re(this,void 0,void 0,(function(){var o,r,s,a;return se(this,(function(l){switch(l.label){case 0:return o=this._getGoToPreference(n),n instanceof Y.a||!(this._configuration.openInPeek||"peek"===o&&1<i.references.length)?[3,1]:(this._openInPeek(n,i),[3,3]);case 1:return r=i.firstReference(),s=1<i.references.length&&"gotoAndPeek"===o,[4,this._openReference(n,e,r,this._configuration.openToSide,!s)];case 2:a=l.sent(),s&&a?this._openInPeek(a,i):i.dispose(),"goto"===o&&t.put(r),l.label=3;case 3:return[2]}}))}))},ue.prototype._openReference=function(e,t,n,i,o){return re(this,void 0,void 0,(function(){var r,s,a,l;return se(this,(function(u){switch(u.label){case 0:return r=void 0,Object(g.G)(n)&&(r=n.targetSelectionRange),r=r||n.range,[4,t.openCodeEditor({resource:n.uri,options:{selection:p.a.collapseToStart(r),revealInCenterIfOutsideViewport:!0}},e,i)];case 1:return(s=u.sent())?(o&&(a=s.getModel(),l=s.deltaDecorations([],[{range:r,options:{className:"symbolHighlight"}}]),setTimeout((function(){s.getModel()===a&&s.deltaDecorations(l,[])}),350)),[2,s]):[2,void 0]}}))}))},ue.prototype._openInPeek=function(e,t){var n=_.a.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(s.f)((function(e){return Promise.resolve(t)})),this._configuration.openInPeek):t.dispose()},ue);function ue(e,t){var n=ae.call(this,t)||this;return n._configuration=e,n}var ce,de=(oe(he,ce=le),he.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(L.b)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),y.a("def.title","Definitions")]))]}}))}))},he.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("noResultWord","No definition found for '{0}'",e.word):y.a("generic.noResults","No definition found")},he.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDefinitionCommand},he.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDefinitions},he);function he(){return null!==ce&&ce.apply(this,arguments)||this}var pe,fe,ge,me=l.g&&!K.l?2118:70;function ve(){var e=pe.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:ve.id,label:y.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:w.a.and(f.a.hasDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:me,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:y.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return D.a.registerCommandAlias("editor.action.goToDeclaration",ve.id),e}function _e(){var e=fe.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:_e.id,label:y.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:w.a.and(f.a.hasDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:Object(a.a)(2089,me),weight:100}})||this;return D.a.registerCommandAlias("editor.action.openDeclarationToTheSide",_e.id),e}function be(){var e=ge.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:be.id,label:y.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:w.a.and(f.a.hasDefinitionProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return D.a.registerCommandAlias("editor.action.previewDeclaration",be.id),e}Object(c.f)((oe(ve,pe=de),(X=ve).id="editor.action.revealDefinition",X)),Object(c.f)((oe(_e,fe=de),($=_e).id="editor.action.revealDefinitionAside",$)),Object(c.f)((oe(be,ge=de),(J=be).id="editor.action.peekDefinition",J));var ye,Ce,we,Se=(oe(Oe,ye=le),Oe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(L.a)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),y.a("decl.title","Declarations")]))]}}))}))},Oe.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("decl.noResultWord","No declaration found for '{0}'",e.word):y.a("decl.generic.noResults","No declaration found")},Oe.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDeclarationCommand},Oe.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDeclarations},Oe);function Oe(){return null!==ye&&ye.apply(this,arguments)||this}function Le(){return Ce.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Le.id,label:y.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:w.a.and(f.a.hasDeclarationProvider,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:y.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}function De(){return we.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:y.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:w.a.and(f.a.hasDeclarationProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}Object(c.f)((oe(Le,Ce=Se),Le.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("decl.noResultWord","No declaration found for '{0}'",e.word):y.a("decl.generic.noResults","No declaration found")},(Q=Le).id="editor.action.revealDeclaration",Q)),Object(c.f)((oe(De,we=Se),De));var xe,Ne,ke,Ee=(oe(Ie,xe=le),Ie.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(L.e)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),y.a("typedef.title","Type Definitions")]))]}}))}))},Ie.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):y.a("goToTypeDefinition.generic.noResults","No type definition found")},Ie.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeTypeDefinitionCommand},Ie.prototype._getGoToPreference=function(e){return e.getOption(41).multipleTypeDefinitions},Ie);function Ie(){return null!==xe&&xe.apply(this,arguments)||this}function Me(){return Ne.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Me.ID,label:y.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:w.a.and(f.a.hasTypeDefinitionProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:y.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}function Te(){return ke.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Te.ID,label:y.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:w.a.and(f.a.hasTypeDefinitionProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}Object(c.f)((oe(Me,Ne=Ee),(ee=Me).ID="editor.action.goToTypeDefinition",ee)),Object(c.f)((oe(Te,ke=Ee),(te=Te).ID="editor.action.peekTypeDefinition",te));var Pe,Re,Ae,Fe=(oe(je,Pe=le),je.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(L.c)(e,t,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),y.a("impl.title","Implementations")]))]}}))}))},je.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):y.a("goToImplementation.generic.noResults","No implementation found")},je.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeImplementationCommand},je.prototype._getGoToPreference=function(e){return e.getOption(41).multipleImplementations},je);function je(){return null!==Pe&&Pe.apply(this,arguments)||this}function We(){return Re.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:We.ID,label:y.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:w.a.and(f.a.hasImplementationProvider,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:y.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}function Ve(){return Ae.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Ve.ID,label:y.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:w.a.and(f.a.hasImplementationProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}Object(c.f)((oe(We,Re=Fe),(ne=We).ID="editor.action.goToImplementation",ne)),Object(c.f)((oe(Ve,Ae=Fe),(ie=Ve).ID="editor.action.peekImplementation",ie));var Be,He,ze,Ue=(oe(Ke,Be=le),Ke.prototype._getNoResultFoundMessage=function(e){return e?y.a("references.no","No references found for '{0}'",e.word):y.a("references.noGeneric","No references found")},Ke.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeReferenceCommand},Ke.prototype._getGoToPreference=function(e){return e.getOption(41).multipleReferences},Ke);function Ke(){return null!==Be&&Be.apply(this,arguments)||this}function qe(){return He.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:y.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:w.a.and(f.a.hasReferenceProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:f.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:y.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}function Ge(){return ze.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:y.a("references.action.label","Peek References"),alias:"Peek References",precondition:w.a.and(f.a.hasReferenceProvider,v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}Object(c.f)((oe(qe,He=Ue),qe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(L.d)(e,t,!0,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),y.a("ref.title","References")]))]}}))}))},qe)),Object(c.f)((oe(Ge,ze=Ue),Ge.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){var i;return se(this,(function(o){switch(o.label){case 0:return i=b.c.bind,[4,Object(L.d)(e,t,!1,n)];case 1:return[2,new(i.apply(b.c,[void 0,o.sent(),y.a("ref.title","References")]))]}}))}))},Ge));var Ye,Ze=(oe(Xe,Ye=le),Xe.prototype._getLocationModel=function(e,t,n){return re(this,void 0,void 0,(function(){return se(this,(function(e){return[2,new b.c(this._references,y.a("generic.title","Locations"))]}))}))},Xe.prototype._getNoResultFoundMessage=function(e){return e&&y.a("generic.noResult","No results for '{0}'",e.word)||""},Xe.prototype._getGoToPreference=function(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(41).multipleReferences},Xe.prototype._getAlternativeCommand=function(){return""},Xe);function Xe(e,t,n){var i=Ye.call(this,e,{id:"editor.action.goToLocation",label:y.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:w.a.and(v.b.notInPeekEditor,f.a.isInEmbeddedEditor.toNegated())})||this;return i._references=t,i._gotoMultipleBehaviour=n,i}D.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:q.a},{name:"position",description:"The position at which to start",constraint:h.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,o,r){return re(void 0,void 0,void 0,(function(){var s,a;return se(this,(function(l){switch(l.label){case 0:return Object(G.a)(q.a.isUri(t)),Object(G.a)(h.a.isIPosition(n)),Object(G.a)(Array.isArray(i)),Object(G.a)(void 0===o||"string"==typeof o),Object(G.a)(void 0===r||"boolean"==typeof r),[4,(s=e.get(d.a)).openCodeEditor({resource:t},s.getFocusedCodeEditor())];case 1:return a=l.sent(),Object(u.a)(a)?(a.setPosition(n),a.revealPositionInCenterIfOutsideViewport(n,0),[2,a.invokeWithinContext((function(e){var t=new Ze({muteMessage:!0,openInPeek:Boolean(r),openToSide:!1},i,o);e.get(N.a).invokeFunction(t.run.bind(t),a)}))]):[2]}}))}))}}),D.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:q.a},{name:"position",description:"The position at which to start",constraint:h.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,o){return re(void 0,void 0,void 0,(function(){return se(this,(function(r){return e.get(D.b).executeCommand("editor.action.goToLocations",t,n,i,o,!0),[2]}))}))}}),D.a.registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){Object(G.a)(q.a.isUri(t)),Object(G.a)(h.a.isIPosition(n));var i=e.get(d.a);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then((function(e){if(Object(u.a)(e)&&e.hasModel()){var t=_.a.get(e);if(t){var i=Object(s.f)((function(t){return Object(L.d)(e.getModel(),h.a.lift(n),!1,t).then((function(e){return new b.c(e,y.a("ref.title","References"))}))})),o=new p.a(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,!1))}}}))}}),D.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(452),o=i.b.performance&&"function"==typeof i.b.performance.now,r=(s.create=function(e){return void 0===e&&(e=!0),new s(e)},s.prototype.stop=function(){this._stopTime=this._now()},s.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},s.prototype._now=function(){return this._highResolution?i.b.performance.now():(new Date).getTime()},s);function s(e){this._highResolution=o&&e,this._startTime=this._now(),this._stopTime=-1}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=!1,o=null;function r(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 i=!0,null}catch(e){return i=!0,null}return e.parent}function s(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 a=(l.getSameOriginWindowChain=function(){if(!o){o=[];for(var e,t=window;(e=r(t))?o.push({window:t,iframeElement:s(e,t)}):o.push({window:t,iframeElement:null}),t=e;);}return o.slice(0)},l.hasDifferentOriginAncestor=function(){return o||this.getSameOriginWindowChain(),i},l.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,i=0,o=0,r=this.getSameOriginWindowChain();o<r.length;o++){var s=r[o];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}},l);function l(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(571),o=n(442),r={JSONContribution:"base.contributions.json"};function s(){this._onDidChangeSchema=new o.a,this.schemasById={}}var a=new(s.prototype.registerSchema=function(e,t){var n;this.schemasById[0<(n=e).length&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n]=t,this._onDidChangeSchema.fire(e)},s.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},s);i.a.add(r.JSONContribution,a)},function(e,t,n){"use strict";function i(e){return e<0?0:255<e?255:0|e}function o(e){return e<0?0:4294967295<e?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var i=n(459),o=n(444),r=n(1076),s=n(791),a=n(553),l=n(453),u="**",c="[/\\\\]",d="[^/\\\\]",h=/\//g;function p(e){switch(e){case 0:return"";case 1:return d+"*?";default:return"(?:"+c+"|"+d+"+"+c+"|"+c+d+"+)*?"}}function f(e,t){if(!e)return[];for(var n=[],i=!1,o=!1,r="",s=0,a=e;s<a.length;s++){var l=a[s];switch(l){case t:if(i||o)break;n.push(r),r="";continue;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1}r+=l}return r&&n.push(r),n}var g=/^\*\*\/\*\.[\w\.-]+$/,m=/^\*\*\/([\w\.-]+)\/?$/,v=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,_=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,y=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new a.a(1e4),w=function(){return!1},S=function(){return null};function O(e,t){if(!e)return S;var n,r,s,a,l,h,w,N=(n=(n="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions,E=C.get(N);if(E)return L(E,e);if(g.test(n)){var I=n.substr(4);E=function(e){return"string"==typeof e&&o.m(e,I)?n:null}}else E=(r=m.exec(D(n,t)))?(s=r[1],a=n,l="/"+s,h="\\"+s,M.basenames=w=[s],M.patterns=[a],M.allBasenames=w,M):(t.trimForExclusions?_:v).test(n)?function(e,t){var n=k(e.slice(1,-1).split(",").map((function(e){return O(e,t)})).filter((function(e){return e!==S})),e),o=n.length;if(!o)return S;if(1===o)return n[0];function r(t,i){for(var o=0,r=n.length;o<r;o++)if(n[o](t,i))return e;return null}var s=i.j(n,(function(e){return!!e.allBasenames}));s&&(r.allBasenames=s.allBasenames);var a=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return a.length&&(r.allPaths=a),r}(n,t):(r=b.exec(D(n,t)))?x(r[1].substr(1),n,!0):(r=y.exec(D(n,t)))?x(r[1],n,!1):function(t){try{var n=new RegExp("^"+function e(t){if(!t)return"";var n="",i=f(t,"/");if(i.every((function(e){return e===u})))n=".*";else{var r=!1;i.forEach((function(t,s){if(t!==u){for(var a=!1,l="",h=!1,g="",m=0,v=t;m<v.length;m++){var _=v[m];if("}"!==_&&a)l+=_;else if(!h||"]"===_&&g)switch(_){case"{":a=!0;continue;case"[":h=!0;continue;case"}":var b="(?:"+f(l,",").map((function(t){return e(t)})).join("|")+")";n+=b,a=!1,l="";break;case"]":n+="["+g+"]",h=!1,g="";break;case"?":n+=d;continue;case"*":n+=p(1);continue;default:n+=o.p(_)}else g+="-"===_?_:"^"!==_&&"!"!==_||g?"/"===_?"":o.p(_):"^"}s<i.length-1&&(i[s+1]!==u||s+2<i.length)&&(n+=c),r=!1}else r||(n+=p(2),r=!0)}))}return n}(t)+"$");return function(e,i){return n.lastIndex=0,"string"==typeof e&&n.test(e)?t:null}}catch(e){return S}}(n);function M(e,t){return"string"!=typeof e?null:t?t===s?a:null:e===s||o.m(e,l)||o.m(e,h)?a:null}return C.set(N,E),L(E,e)}function L(e,t){return"string"==typeof t?e:function(n,i){return r.a(n,t.base)?e(s.relative(t.base,n),i):null}}function D(e,t){return t.trimForExclusions&&o.m(e,"/**")?e.substr(0,e.length-2):e}function x(e,t,n){var i=s.sep!==s.posix.sep?e.replace(h,s.sep):e,r=s.sep+i,a=n?function(e,n){return"string"!=typeof e||e!==i&&!o.m(e,r)?null:t}:function(e,n){return"string"==typeof e&&e===i?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function N(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t){if(void 0===t&&(t={}),!e)return w;if("string"==typeof e||function(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){var n=O(e,t);if(n===S)return w;var o=function(e,t){return!!n(e,t)};return n.allBasenames&&(o.allBasenames=n.allBasenames),n.allPaths&&(o.allPaths=n.allPaths),o}return function(e,t){var n=k(Object.getOwnPropertyNames(e).map((function(n){return function(e,t,n){if(!1===t)return S;var i=O(e,n);if(i===S)return S;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=s(o.replace("$(basename)",r));return Object(l.i)(a)?a.then((function(t){return t?e:null})):a?e:null};return r.requiresSiblings=!0,r}}return i}(n,e[n],t)})).filter((function(e){return e!==S}))),o=n.length;if(!o)return S;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===o)return n[0];var r=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},a=i.j(n,(function(e){return!!e.allBasenames}));a&&(r.allBasenames=a.allBasenames);var u=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return u.length&&(r.allPaths=u),r}function c(e,t,i){for(var o=void 0,r=0,a=n.length;r<a;r++){var l=n[r];l.requiresSiblings&&i&&(t=t||s.basename(e),o=o||t.substr(0,t.length-s.extname(e).length));var u=l(e,t,o,i);if(u)return u}return null}var d=i.j(n,(function(e){return!!e.allBasenames}));d&&(c.allBasenames=d.allBasenames);var h=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return h.length&&(c.allPaths=h),c}(e,t)}(e)(t,void 0,n)}function k(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}),[]);function a(e,t){if("string"!=typeof e)return null;if(!t){var n=void 0;for(n=e.length;0<n;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 l=e.filter((function(e){return!e.basenames}));return l.push(a),l}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n(444),o=n(791);function r(e){return e.replace(/[\\/]/g,o.posix.sep)}function s(e,t,n,r){if(void 0===r&&(r=o.sep),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!Object(i.O)(e,t))return!1;if(t.length===e.length)return!0;var s=t.length;return t.charAt(t.length-1)===r&&s--,e.charAt(s)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function a(e){return 65<=e&&e<=90||97<=e&&e<=122}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b}));var i,o=n(478),r=n(443),s=n(453),a=n(442),l=n(439),u=n(452),c=n(444),d=n(1078),h=n(466),p=n(820),f=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},g={forceCopyWithSyntaxHighlighting:!(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)})},m=(v.prototype.set=function(e,t){this._lastState={lastCopiedValue:e,data:t}},v.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:this._lastState=null},v.INSTANCE=new v,v);function v(){this._lastState=null}var _,b=(f(y,_=l.a),y.prototype._installSelectionChangeListener=function(){var e=this,t=0;return r.j(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&o.d&&u.h){var i=Date.now(),r=i-t;if(t=i,!(r<5)){var s=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(s<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var l=e._textArea.getSelectionStart(),c=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==l||e._textAreaState.selectionEnd!==c){var d=e._textAreaState.deduceEditorPosition(l),p=e._host.deduceModelPosition(d[0],d[1],d[2]),f=e._textAreaState.deduceEditorPosition(c),g=e._host.deduceModelPosition(f[0],f[1],f[2]),m=new h.a(p.lineNumber,p.column,g.lineNumber,g.column);e._onSelectionChangeRequest.fire(m)}}}}}}))},y.prototype.dispose=function(){_.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},y.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},y.prototype.isFocused=function(){return this._hasFocus},y.prototype.refreshFocusState=function(){var e=r.E(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):r.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},y.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(o.e?this._setAndWriteTextAreaState("focusgain",d.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},y.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},y.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},y.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getDataToCopy(C.canUseTextData(e)&&p.a.clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};m.INSTANCE.set(o.h?t.text.replace(/\r\n/g,"\n"):t.text,n),C.canUseTextData(e)?C.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",d.b.selectedText(t.text))},y.prototype._firePaste=function(e,t){t=t||m.INSTANCE.get(e),this._onPaste.fire({text:e,metadata:t})},y);function y(e,t){var n=_.call(this)||this;function i(e){var t=n._textAreaState,i=d.b.readFromTextArea(n._textArea);return[i,d.b.deduceInput(t,i,e)]}function l(e){var t=n._textAreaState,i=d.b.selectedText(e);return[i,{text:i.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]}function h(e){return!(!o.f||"ja"!==e)||!(!o.i||0!==e.indexOf("zh-Han"))}return n.textArea=t,n._onFocus=n._register(new a.a),n.onFocus=n._onFocus.event,n._onBlur=n._register(new a.a),n.onBlur=n._onBlur.event,n._onKeyDown=n._register(new a.a),n.onKeyDown=n._onKeyDown.event,n._onKeyUp=n._register(new a.a),n.onKeyUp=n._onKeyUp.event,n._onCut=n._register(new a.a),n.onCut=n._onCut.event,n._onPaste=n._register(new a.a),n.onPaste=n._onPaste.event,n._onType=n._register(new a.a),n.onType=n._onType.event,n._onCompositionStart=n._register(new a.a),n.onCompositionStart=n._onCompositionStart.event,n._onCompositionUpdate=n._register(new a.a),n.onCompositionUpdate=n._onCompositionUpdate.event,n._onCompositionEnd=n._register(new a.a),n.onCompositionEnd=n._onCompositionEnd.event,n._onSelectionChangeRequest=n._register(new a.a),n.onSelectionChangeRequest=n._onSelectionChangeRequest.event,n._host=e,n._textArea=n._register(new O(t)),n._asyncTriggerCut=n._register(new s.d((function(){return n._onCut.fire()}),0)),n._textAreaState=d.b.EMPTY,n._selectionChangeListener=null,n.writeScreenReaderContent("ctor"),n._hasFocus=!1,n._isDoingComposition=!1,n._nextCommand=0,n._register(r.o(t.domNode,"keydown",(function(e){!n._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),n._onKeyDown.fire(e)}))),n._register(r.o(t.domNode,"keyup",(function(e){n._onKeyUp.fire(e)}))),n._register(r.j(t.domNode,"compositionstart",(function(e){n._isDoingComposition||(n._isDoingComposition=!0,o.f||n._setAndWriteTextAreaState("compositionstart",d.b.EMPTY),n._onCompositionStart.fire())}))),n._register(r.j(t.domNode,"compositionupdate",(function(e){if(h(e.locale)){var t=i(!1),o=t[0],r=t[1];return n._textAreaState=o,n._onType.fire(r),void n._onCompositionUpdate.fire(e)}var s=l(e.data),a=s[0],u=s[1];n._textAreaState=a,n._onType.fire(u),n._onCompositionUpdate.fire(e)}))),n._register(r.j(t.domNode,"compositionend",(function(e){if(n._isDoingComposition){if(h(e.locale)){var t=i(!1),r=t[0],s=t[1];n._textAreaState=r,n._onType.fire(s)}else{var a=l(e.data);r=a[0],s=a[1],n._textAreaState=r,n._onType.fire(s)}(o.f||o.d)&&(n._textAreaState=d.b.readFromTextArea(n._textArea)),n._isDoingComposition&&(n._isDoingComposition=!1,n._onCompositionEnd.fire())}}))),n._register(r.j(t.domNode,"input",(function(){if(n._textArea.setIgnoreSelectionChangeTime("received input event"),!n._isDoingComposition){var e=i(u.e),t=e[0],o=e[1];0===o.replaceCharCnt&&1===o.text.length&&c.z(o.text.charCodeAt(0))||(n._textAreaState=t,0===n._nextCommand?""!==o.text&&n._onType.fire(o):(""===o.text&&0===o.replaceCharCnt||n._firePaste(o.text,null),n._nextCommand=0))}}))),n._register(r.j(t.domNode,"cut",(function(e){n._textArea.setIgnoreSelectionChangeTime("received cut event"),n._ensureClipboardGetsEditorSelection(e),n._asyncTriggerCut.schedule()}))),n._register(r.j(t.domNode,"copy",(function(e){n._ensureClipboardGetsEditorSelection(e)}))),n._register(r.j(t.domNode,"paste",(function(e){if(n._textArea.setIgnoreSelectionChangeTime("received paste event"),C.canUseTextData(e)){var t=C.getTextData(e),i=t[0],o=t[1];""!==i&&n._firePaste(i,o)}else n._textArea.getSelectionStart()!==n._textArea.getSelectionEnd()&&n._setAndWriteTextAreaState("paste",d.b.EMPTY),n._nextCommand=1}))),n._register(r.j(t.domNode,"focus",(function(){n._setHasFocus(!0)}))),n._register(r.j(t.domNode,"blur",(function(){n._setHasFocus(!1)}))),n}var C=(w.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},w.getTextData=function(e){if(e.clipboardData){e.preventDefault();var t=e.clipboardData.getData("text/plain"),n=null,i=e.clipboardData.getData("vscode-editor-data");if("string"==typeof i)try{1!==(n=JSON.parse(i)).version&&(n=null)}catch(e){}return[t,n]}if(window.clipboardData)return e.preventDefault(),[t=window.clipboardData.getData("Text"),null];throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},w.setTextData=function(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),"string"==typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},w);function w(){}var S,O=(f(L,S=l.a),L.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},L.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},L.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},L.prototype.getValue=function(){return this._actual.domNode.value},L.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},L.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},L.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},L.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,s=r.E(i),a=(s?s.activeElement:document.activeElement)===i,l=i.selectionStart,u=i.selectionEnd;if(a&&l===t&&u===n)o.h&&window.parent!==window&&i.focus();else{if(a)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(o.h&&window.parent!==window&&i.focus());try{var c=r.V(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),r.T(i,c)}catch(e){}}},L);function L(e){var t=S.call(this)||this;return t._actual=e,t._ignoreSelectionChangeTime=0,t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n(444),o=n(450),r=n(440),s=(a.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},a.readFromTextArea=function(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)},a.prototype.collapseSelection=function(){return new a(this.value,this.value.length,this.value.length,null,null)},a.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},a.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)return t=this.value.substring(this.selectionEnd,e),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)},a.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]},a.selectedText=function(e){return new a(e,0,e.length,null,null)},a.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,r=e.selectionStart,s=e.selectionEnd,a=t.value,l=t.selectionStart,u=t.selectionEnd,c=o.substring(s),d=a.substring(u),h=i.d(c,d);a=a.substring(0,a.length-h);var p=(o=o.substring(0,o.length-h)).substring(0,r),f=a.substring(0,l),g=i.c(p,f);if(a=a.substring(g),o=o.substring(g),l-=g,r-=g,u-=g,s-=g,n&&l===u&&0<o.length){var m=null;if(l===a.length?i.N(a,o)&&(m=a.substring(o.length)):i.m(a,o)&&(m=a.substring(0,a.length-o.length)),null!==m&&0<m.length&&(/\uFE0F/.test(m)||i.g(m)))return{text:m,replaceCharCnt:0}}return l===u?o===a&&0===r&&s===o.length&&l===a.length&&-1===a.indexOf("\n")&&i.h(a)?{text:"",replaceCharCnt:0}:{text:a,replaceCharCnt:p.length-g}:{text:a,replaceCharCnt:s-r}},a.EMPTY=new a("",0,0,null,null),a);function a(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o}var l=(u._getPageOfLine=function(e,t){return Math.floor((e-1)/t)},u._getRangeForPage=function(e,t){var n=e*t,i=1+n,o=n+t;return new r.a(i,1,o+1,1)},u.fromEditorSelection=function(e,t,n,i,a){var l,c=u._getPageOfLine(n.startLineNumber,i),d=u._getRangeForPage(c,i),h=u._getPageOfLine(n.endLineNumber,i),p=u._getRangeForPage(h,i),f=d.intersectRanges(new r.a(1,1,n.startLineNumber,n.startColumn)),g=t.getValueInRange(f,1),m=t.getLineCount(),v=t.getLineMaxColumn(m),_=p.intersectRanges(new r.a(n.endLineNumber,n.endColumn,m,v)),b=t.getValueInRange(_,1);if(c===h||c+1===h)l=t.getValueInRange(n,1);else{var y=d.intersectRanges(n),C=p.intersectRanges(n);l=t.getValueInRange(y,1)+String.fromCharCode(8230)+t.getValueInRange(C,1)}return a&&(500<g.length&&(g=g.substring(g.length-500,g.length)),500<b.length&&(b=b.substring(0,500)),1e3<l.length&&(l=l.substring(0,500)+String.fromCharCode(8230)+l.substring(l.length-500,l.length))),new s(g+l+b,g.length,g.length+l.length,new o.a(n.startLineNumber,n.startColumn),new o.a(n.endLineNumber,n.endColumn))},u);function u(){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(484),o=n(446),r=n(479),s=n(449),a=n(440),l=n(454),u=n(598);function c(e,t){var n=[],i=l.c.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}))}function d(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}Object(s.j)("_executeDocumentColorProvider",(function(e,t){var n=t.resource;if(!(n instanceof r.a))throw Object(o.b)();var s=e.get(u.a).getModel(n);if(!s)throw Object(o.b)();var a=[],c=l.c.ordered(s).reverse().map((function(e){return Promise.resolve(e.provideDocumentColors(s,i.a.None)).then((function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i=n[t];a.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]})}}))}));return Promise.all(c).then((function(){return a}))})),Object(s.j)("_executeColorPresentationProvider",(function(e,t){var n=t.resource,s=t.color,c=t.range;if(!(n instanceof r.a&&Array.isArray(s)&&4===s.length&&a.a.isIRange(c)))throw Object(o.b)();var d=s[0],h=s[1],p=s[2],f=s[3],g=e.get(u.a).getModel(n);if(!g)throw Object(o.b)();var m={range:c,color:{red:d,green:h,blue:p,alpha:f}},v=[],_=l.c.ordered(g).reverse().map((function(e){return Promise.resolve(e.provideColorPresentations(g,m,i.a.None)).then((function(e){Array.isArray(e)&&v.push.apply(v,e)}))}));return Promise.all(_).then((function(){return v}))}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return O})),n(1327);var i,o,r,s=n(445),a=n(444),l=n(703),u=n(772),c=n(443),d=n(701),h=n(453),p=n(439),f=n(688),g=n(452),m=(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)}),v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},_=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,b=/(&)?(&)([^\s&])/g;(r=o=o||{})[r.Right=0]="Right",r[r.Left=1]="Left";var y,C=(m(w,y=l.a),w);function w(e,t,n){var i=y.call(this,n||"submenu",e,"",!0)||this;return i.entries=t,i}var S,O=(m(L,S=u.a),L.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",i=e.backgroundColor?""+e.backgroundColor:"",o=e.borderColor?"1px solid "+e.borderColor:"",r=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=o,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof x||t instanceof T)&&t.style(e)}))},L.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(L.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),L.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},L.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++)if(e===this.actionsList.children[t]){this.focusedItem=t;break}},L.prototype.updateFocus=function(e){S.prototype.updateFocus.call(this,e,!0),void 0!==this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},L.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof u.d)return new T(t.context,e,{icon:!0});if(e instanceof C){var i=new E(e,e.entries,n,t);if(t.enableMnemonics&&(r=i.getMnemonic())&&i.isEnabled()){var o=[];this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)}return i}var r,s={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var a=t.getKeyBinding(e);if(a){var l=a.getLabel();l&&(s.keybinding=l)}}return i=new x(t.context,e,s),t.enableMnemonics&&(r=i.getMnemonic())&&i.isEnabled()&&(o=[],this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)),i},L);function L(e,t,n){void 0===n&&(n={});var i=this;Object(c.f)(e,"monaco-menu-container"),e.setAttribute("role","presentation");var o=document.createElement("div");Object(c.f)(o,"monaco-menu"),o.setAttribute("role","presentation"),(i=S.call(this,o,{orientation:2,actionViewItemProvider:function(e){return i.doGetActionViewItem(e,n,r)},context:n.context,actionRunner:n.actionRunner,ariaLabel:n.ariaLabel,triggerKeys:{keys:v([3],g.e?[10]:[]),keyDown:!0}})||this).menuElement=o,i.actionsList.setAttribute("role","menu"),i.actionsList.tabIndex=0,i.menuDisposables=i._register(new p.b),Object(c.j)(o,c.d.KEY_DOWN,(function(e){new d.a(e).equals(2)&&e.preventDefault()})),n.enableMnemonics&&i.menuDisposables.add(Object(c.j)(o,c.d.KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(i.mnemonics.has(t)){c.c.stop(e,!0);var n=i.mnemonics.get(t);if(1===n.length&&(n[0]instanceof E&&n[0].container&&i.focusItemByElement(n[0].container),n[0].onClick(e)),1<n.length){var o=n.shift();o&&o.container&&(i.focusItemByElement(o.container),n.push(o)),i.mnemonics.set(t,n)}}}))),g.d&&i._register(Object(c.j)(o,c.d.KEY_DOWN,(function(e){var t=new d.a(e);t.equals(14)||t.equals(11)?(i.focusedItem=i.viewItems.length-1,i.focusNext(),c.c.stop(e,!0)):(t.equals(13)||t.equals(12))&&(i.focusedItem=0,i.focusPrevious(),c.c.stop(e,!0))}))),i._register(Object(c.j)(i.domNode,c.d.MOUSE_OUT,(function(e){var t=e.relatedTarget;Object(c.K)(t,i.domNode)||(i.focusedItem=void 0,i.updateFocus(),e.stopPropagation())}))),i._register(Object(c.j)(i.actionsList,c.d.MOUSE_OVER,(function(e){var t=e.target;if(t&&Object(c.K)(t,i.actionsList)&&t!==i.actionsList){for(;t.parentElement!==i.actionsList&&null!==t.parentElement;)t=t.parentElement;if(Object(c.I)(t,"action-item")){var n=i.focusedItem;i.setFocusedItem(t),n!==i.focusedItem&&i.updateFocus()}}})));var r={parent:i};i.mnemonics=new Map,i.scrollableElement=i._register(new f.a(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var s=i.scrollableElement.getDomNode();return s.style.position="",i._register(Object(c.j)(s,c.d.MOUSE_UP,(function(e){e.preventDefault()}))),o.style.maxHeight=Math.max(10,window.innerHeight-e.getBoundingClientRect().top-30)+"px",i.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(i.scrollableElement.getDomNode()),i.scrollableElement.scanDomNode(),i.viewItems.filter((function(e){return!(e instanceof T)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),i}var D,x=(m(N,D=u.c),N.prototype.render=function(e){D.prototype.render.call(this,e),this.element&&(this.container=e,this.item=Object(c.q)(this.element,Object(c.a)("a.action-menu-item")),this._action.id===u.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(c.q)(this.item,Object(c.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(c.q)(this.item,Object(c.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(c.q)(this.item,Object(c.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},N.prototype.blur=function(){D.prototype.blur.call(this),this.applyStyle()},N.prototype.focus=function(){D.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},N.prototype.updatePositionInSet=function(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))},N.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=function(e){var t=_,n=t.exec(e);if(!n)return e;var i=!n[1];return e.replace(t,i?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label&&this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=_.exec(e);if(n){e=a.o(e),b.lastIndex=0;for(var i=b.exec(e);i&&i[1];)i=b.exec(e);i&&(e=e.substr(0,i.index)+'<u aria-hidden="true">'+i[3]+"</u>"+e.substr(i.index+i[0].length)),e=e.replace(/&&/g,"&"),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else e=e.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=e.trim())}},N.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=s.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)},N.prototype.updateClass=function(){this.cssClass&&this.item&&Object(c.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(c.f)(this.label,"icon"),this.cssClass&&Object(c.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(c.P)(this.label,"icon")},N.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(c.P)(this.element,"disabled"),this.item&&(Object(c.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(c.f)(this.element,"disabled"),this.item&&(Object(c.f)(this.item,"disabled"),Object(c.S)(this.item)))},N.prototype.updateChecked=function(){this.item&&(this.getAction().checked?(Object(c.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(c.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))},N.prototype.getMnemonic=function(){return this.mnemonic},N.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&Object(c.I)(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=i)}},N.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},N);function N(e,t,n){void 0===n&&(n={});var i=this;if(n.isMenu=!0,(i=D.call(this,t,t,n)||this).options=n,i.options.icon=void 0!==n.icon&&n.icon,i.options.label=void 0===n.label||n.label,i.cssClass="",i.options.label&&n.enableMnemonics){var o=i.getAction().label;if(o){var r=_.exec(o);r&&(i.mnemonic=(r[1]?r[1]:r[3]).toLocaleLowerCase())}}return i.runOnceToEnableMouseUp=new h.d((function(){i.element&&i._register(Object(c.j)(i.element,c.d.MOUSE_UP,(function(e){e.defaultPrevented||(c.c.stop(e,!0),i.onClick(e))})))}),100),i._register(i.runOnceToEnableMouseUp),i}var k,E=(m(I,k=x),I.prototype.render=function(e){var t=this;k.prototype.render.call(this,e),this.element&&(this.item&&(Object(c.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(c.q)(this.item,Object(c.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(c.j)(this.element,c.d.KEY_UP,(function(e){var n=new d.a(e);(n.equals(17)||n.equals(3))&&(c.c.stop(e,!0),t.createSubmenu(!0))}))),this._register(Object(c.j)(this.element,c.d.KEY_DOWN,(function(e){var n=new d.a(e);document.activeElement===t.item&&(n.equals(17)||n.equals(3))&&c.c.stop(e,!0)}))),this._register(Object(c.j)(this.element,c.d.MOUSE_OVER,(function(e){t.mouseOver||(t.mouseOver=!0,t.showScheduler.schedule())}))),this._register(Object(c.j)(this.element,c.d.MOUSE_LEAVE,(function(e){t.mouseOver=!1}))),this._register(Object(c.j)(this.element,c.d.FOCUS_OUT,(function(e){t.element&&!Object(c.K)(document.activeElement,t.element)&&t.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){t.parentData.parent.focus(!1),t.cleanupExistingSubmenu(!1)}))))},I.prototype.onClick=function(e){c.c.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},I.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},I.prototype.createSubmenu=function(e){var t=this;if(void 0===e&&(e=!0),this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(c.q)(this.element,Object(c.a)("div.monaco-submenu")),Object(c.g)(this.submenuContainer,"menubar-menu-items-holder","context-view");var n=getComputedStyle(this.parentData.parent.domNode),i=parseFloat(n.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px",this.parentData.submenu=new O(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var r=this.element.getBoundingClientRect(),s=this.submenuContainer.getBoundingClientRect();this.expandDirection===o.Right?window.innerWidth<=r.right+s.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+r.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"):this.expandDirection===o.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"),this.submenuDisposables.add(Object(c.j)(this.submenuContainer,c.d.KEY_UP,(function(e){new d.a(e).equals(15)&&(c.c.stop(e,!0),t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add(Object(c.j)(this.submenuContainer,c.d.KEY_DOWN,(function(e){new d.a(e).equals(15)&&c.c.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((function(){t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}},I.prototype.updateAriaExpanded=function(e){var t;this.item&&null!==(t=this.item)&&void 0!==t&&t.setAttribute("aria-expanded",e)},I.prototype.applyStyle=function(){if(k.prototype.applyStyle.call(this),this.menuStyle){var e=this.element&&Object(c.I)(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e?""+e:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},I.prototype.dispose=function(){k.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},I);function I(e,t,n,i){var r=k.call(this,e,e,i)||this;return r.submenuActions=t,r.parentData=n,r.submenuOptions=i,r.mysubmenu=null,r.submenuDisposables=r._register(new p.b),r.mouseOver=!1,r.expandDirection=i&&void 0!==i.expandDirection?i.expandDirection:o.Right,r.showScheduler=new h.d((function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1),r.createSubmenu(!1))}),250),r.hideScheduler=new h.d((function(){r.element&&!Object(c.K)(document.activeElement,r.element)&&r.parentData.submenu===r.mysubmenu&&(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0))}),750),r}var M,T=(m(P,M=u.b),P.prototype.style=function(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")},P);function P(){return null!==M&&M.apply(this,arguments)||this}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o=n(442),r=n(439),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=(l.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},l.prototype.withScrollDimensions=function(e){return new l(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,this.scrollTop)},l.prototype.withScrollPosition=function(e){return new l(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.scrollTop)},l.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}},l);function l(e,t,n,i,o,r){(e|=0)<0&&(e=0),(t|=0)<(n|=0)+e&&(n=t-e),n<0&&(n=0),(i|=0)<0&&(i=0),(o|=0)<(r|=0)+i&&(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}var u,c=(s(d,u=r.a),d.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),u.prototype.dispose.call(this)},d.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},d.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},d.prototype.getScrollDimensions=function(){return this._state},d.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},d.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},d.prototype.getCurrentScrollPosition=function(){return this._state},d.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},d.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=f.start(this._state,n,this._smoothScrollDuration);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},d.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())}))}},d.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},d);function d(e,t){var n=u.call(this)||this;return n._onScroll=n._register(new o.a),n.onScroll=n._onScroll.event,n._smoothScrollDuration=e,n._scheduleAtNextAnimationFrame=t,n._state=new a(0,0,0,0,0,0),n._smoothScrolling=null,n}var h=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function p(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var f=(g.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)},g.prototype._initAnimation=function(e,t,n){var i,o,r;if(2.5*n<Math.abs(e-t)){var s,a=void 0;return s=e<t?(a=e+.75*n,t-.75*n):(a=e-.75*n,t+.75*n),i=p(e,a),o=p(s,t),r=.33,function(e){return e<r?i(e/r):o((e-r)/(1-r))}}return p(e,t)},g.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},g.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},g.prototype.tick=function(){return this._tick(Date.now())},g.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 h(n,i,!1)}return new h(this.to.scrollLeft,this.to.scrollTop,!0)},g.prototype.combine=function(e,t,n){return g.start(e,t,n)},g.start=function(e,t,n){return n+=10,new g(e,t,Date.now()-10,n)},g);function g(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(444),o=n(794),r=n(555),s=n(953),a=n(440),l=(u.deleteRight=function(e,t,n,i){for(var r=[],l=3!==e,u=0,c=i.length;u<c;u++){var d=i[u],h=d;if(h.isEmpty()){var p=d.getPosition(),f=s.a.right(t,n,p.lineNumber,p.column);h=new a.a(f.lineNumber,f.column,p.lineNumber,p.column)}h.isEmpty()?r[u]=null:(h.startLineNumber!==h.endLineNumber&&(l=!0),r[u]=new o.a(h,""))}return[l,r]},u._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 s=n[i],a=s.getPosition();if(!s.isEmpty())return!1;var l=t.getLineContent(a.lineNumber),u=l[a.column-2],c=e.autoClosingPairsOpen2.get(u);if(!c)return!1;if(Object(r.g)(u)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var d=l[a.column-1],h=!1,p=0,f=c;p<f.length;p++){var g=f[p];g.open===u&&g.close===d&&(h=!0)}if(!h)return!1}return!0},u._runAutoClosingPairDelete=function(e,t,n){for(var i=[],r=0,s=n.length;r<s;r++){var l=n[r].getPosition(),u=new a.a(l.lineNumber,l.column-1,l.lineNumber,l.column+1);i[r]=new o.a(u,"")}return[!0,i]},u.deleteLeft=function(e,t,n,l){if(this._isAutoClosingPairDelete(t,n,l))return this._runAutoClosingPairDelete(t,n,l);for(var u=[],c=2!==e,d=0,h=l.length;d<h;d++){var p=l[d],f=p;if(f.isEmpty()){var g=p.getPosition();if(t.useTabStops&&1<g.column){var m=n.getLineContent(g.lineNumber),v=i.q(m),_=-1===v?m.length+1:v+1;if(g.column<=_){var b=r.a.visibleColumnFromColumn2(t,n,g),y=r.a.prevIndentTabStop(b,t.indentSize),C=r.a.columnFromVisibleColumn2(t,n,g.lineNumber,y);f=new a.a(g.lineNumber,C,g.lineNumber,g.column)}else f=new a.a(g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var w=s.a.left(t,n,g.lineNumber,g.column);f=new a.a(w.lineNumber,w.column,g.lineNumber,g.column)}}f.isEmpty()?u[d]=null:(f.startLineNumber!==f.endLineNumber&&(c=!0),u[d]=new o.a(f,""))}return[c,u]},u.cut=function(e,t,n){for(var i=[],s=0,l=n.length;s<l;s++){var u=n[s];if(u.isEmpty())if(e.emptySelectionClipboard){var c,d=u.getPosition(),h=void 0,p=void 0,f=void 0;c=d.lineNumber<t.getLineCount()?(h=d.lineNumber,p=1,f=d.lineNumber+1,1):(p=1<d.lineNumber?(h=d.lineNumber-1,t.getLineMaxColumn(d.lineNumber-1)):(h=d.lineNumber,1),f=d.lineNumber,t.getLineMaxColumn(d.lineNumber));var g=new a.a(h,p,f,c);g.isEmpty()?i[s]=null:i[s]=new o.a(g,"")}else i[s]=null;else i[s]=new o.a(u,"")}return new r.e(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},u);function u(){}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return i}));var i,o,r=n(465),s=n(555),a=n(953),l=n(954),u=n(450),c=n(440),d=(h.addCursorDown=function(e,t,n){for(var i=[],o=0,r=0,l=t.length;r<l;r++){var u=t[r];i[o++]=new s.d(u.modelState,u.viewState),i[o++]=n?s.d.fromModelState(a.a.translateDown(e.config,e.model,u.modelState)):s.d.fromViewState(a.a.translateDown(e.config,e.viewModel,u.viewState))}return i},h.addCursorUp=function(e,t,n){for(var i=[],o=0,r=0,l=t.length;r<l;r++){var u=t[r];i[o++]=new s.d(u.modelState,u.viewState),i[o++]=n?s.d.fromModelState(a.a.translateUp(e.config,e.model,u.modelState)):s.d.fromViewState(a.a.translateUp(e.config,e.viewModel,u.viewState))}return i},h.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},h._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)},h._moveToLineStartByView=function(e,t,n){return s.d.fromViewState(a.a.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},h._moveToLineStartByModel=function(e,t,n){return s.d.fromModelState(a.a.moveToBeginningOfLine(e.config,e.model,t.modelState,n))},h.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},h._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),l=o-i.column==a-s.column;return r||l?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},h._moveToLineEndByView=function(e,t,n){return s.d.fromViewState(a.a.moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},h._moveToLineEndByModel=function(e,t,n){return s.d.fromModelState(a.a.moveToEndOfLine(e.config,e.model,t.modelState,n))},h.expandLineSelection=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r,a=t[i],l=a.modelState.selection.startLineNumber,d=e.model.getLineCount(),h=a.modelState.selection.endLineNumber;r=h===d?e.model.getLineMaxColumn(d):(h++,1),n[i]=s.d.fromModelState(new s.f(new c.a(l,1,l,1),0,new u.a(h,r),0))}return n},h.moveToBeginningOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o];i[o]=s.d.fromModelState(a.a.moveToBeginningOfBuffer(e.config,e.model,l.modelState,n))}return i},h.moveToEndOfBuffer=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o];i[o]=s.d.fromModelState(a.a.moveToEndOfBuffer(e.config,e.model,l.modelState,n))}return i},h.selectAll=function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return s.d.fromModelState(new s.f(new c.a(1,1,1,1),0,new u.a(n,i),0))},h.line=function(e,t,n,i,o){var r=e.model.validatePosition(i),a=o?e.validateViewPosition(new u.a(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);if(!n||!t.modelState.hasSelection()){var l=e.model.getLineCount(),d=r.lineNumber+1,h=1;return l<d&&(d=l,h=e.model.getLineMaxColumn(d)),s.d.fromModelState(new s.f(new c.a(r.lineNumber,1,d,h),0,new u.a(d,h),0))}var p=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<p)return s.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(r.lineNumber>p){l=e.viewModel.getLineCount();var f=a.lineNumber+1,g=1;return l<f&&(f=l,g=e.viewModel.getLineMaxColumn(f)),s.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,g,0))}var m=t.modelState.selectionStart.getEndPosition();return s.d.fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))},h.word=function(e,t,n,i){var o=e.model.validatePosition(i);return s.d.fromModelState(l.a.word(e.config,e.model,t.modelState,n,o))},h.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new s.d(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return s.d.fromViewState(new s.f(new c.a(n,i,n,i),0,new u.a(n,i),0))},h.moveTo=function(e,t,n,i,o){var r=e.model.validatePosition(i),a=o?e.validateViewPosition(new u.a(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);return s.d.fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))},h.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),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,l)];case 11:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,l)];case 10:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,l)];case 12:for(var u=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++)r=t[d],c[d]=this.findPositionInViewportIfOutside(e,r,u,i);return c}return null},h.findPositionInViewportIfOutside=function(e,t,n,i){var o=t.viewState.position.lineNumber;if(n.startLineNumber<=o&&o<=n.endLineNumber-1)return new s.d(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)},h._firstLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)},h._lastLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)},h._moveLeft=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r],c=a.a.moveLeft(e.config,e.viewModel,u.viewState,n,i);1===i&&c.position.lineNumber!==u.viewState.position.lineNumber&&e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(c.position).lineNumber===u.modelState.position.lineNumber&&(c=a.a.moveLeft(e.config,e.viewModel,c,n,1)),o[r]=s.d.fromViewState(c)}return o},h._moveHalfLineLeft=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o],u=l.viewState.position.lineNumber,c=Math.round(e.viewModel.getLineContent(u).length/2);i[o]=s.d.fromViewState(a.a.moveLeft(e.config,e.viewModel,l.viewState,n,c))}return i},h._moveRight=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r],c=a.a.moveRight(e.config,e.viewModel,u.viewState,n,i);1===i&&c.position.lineNumber!==u.viewState.position.lineNumber&&e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(c.position).lineNumber===u.modelState.position.lineNumber&&(c=a.a.moveRight(e.config,e.viewModel,c,n,1)),o[r]=s.d.fromViewState(c)}return o},h._moveHalfLineRight=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var l=t[o],u=l.viewState.position.lineNumber,c=Math.round(e.viewModel.getLineContent(u).length/2);i[o]=s.d.fromViewState(a.a.moveRight(e.config,e.viewModel,l.viewState,n,c))}return i},h._moveDownByViewLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromViewState(a.a.moveDown(e.config,e.viewModel,u.viewState,n,i))}return o},h._moveDownByModelLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromModelState(a.a.moveDown(e.config,e.model,u.modelState,n,i))}return o},h._moveUpByViewLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromViewState(a.a.moveUp(e.config,e.viewModel,u.viewState,n,i))}return o},h._moveUpByModelLines=function(e,t,n,i){for(var o=[],r=0,l=t.length;r<l;r++){var u=t[r];o[r]=s.d.fromModelState(a.a.moveUp(e.config,e.model,u.modelState,n,i))}return o},h._moveToViewPosition=function(e,t,n,i,o){return s.d.fromViewState(t.viewState.move(n,i,o,0))},h._moveToModelPosition=function(e,t,n,i,o){return s.d.fromModelState(t.modelState.move(n,i,o,0))},h._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,l=e.viewModel.getLineMinColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._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,l=e.viewModel.getLineFirstNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._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,l=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._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,l=e.viewModel.getLineMaxColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h._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,l=e.viewModel.getLineLastNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,l)}return i},h);function h(){}(o=i=i||{}).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(!r.i(e))return!1;var t=e;return!!r.j(t.to)&&!(!r.k(t.select)&&!r.e(t.select))&&!(!r.k(t.by)&&!r.j(t.by))&&!(!r.k(t.value)&&!r.h(t.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},o.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"},o.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},o.parse=function(e){if(!e.to)return null;var t;switch(e.to){case o.RawDirection.Left:t=0;break;case o.RawDirection.Right:t=1;break;case o.RawDirection.Up:t=2;break;case o.RawDirection.Down:t=3;break;case o.RawDirection.WrappedLineStart:t=4;break;case o.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=5;break;case o.RawDirection.WrappedLineColumnCenter:t=6;break;case o.RawDirection.WrappedLineEnd:t=7;break;case o.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=8;break;case o.RawDirection.ViewPortTop:t=9;break;case o.RawDirection.ViewPortBottom:t=11;break;case o.RawDirection.ViewPortCenter:t=10;break;case o.RawDirection.ViewPortIfOutside:t=12;break;default:return null}var n=0;switch(e.by){case o.RawUnit.Line:n=1;break;case o.RawUnit.WrappedLine:n=2;break;case o.RawUnit.Character:n=3;break;case o.RawUnit.HalfLine:n=4}return{direction:t,unit:n,select:!!e.select,value:e.value||1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(444),o=n(555),r=n(440),s=n(466),a=n(575),l=Object.create(null);function u(e,t){l[e]||(l[e]=["",e]);for(var n=l[e],i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var c=(d.unshiftIndent=function(e,t,n,i,r){var s=o.a.visibleColumnFromColumn(e,t,n);if(r){var a=u(" ",i);return u(a,o.a.prevIndentTabStop(s,i)/i)}return u(a="\t",o.a.prevRenderTabStop(s,n)/n)},d.shiftIndent=function(e,t,n,i,r){var s=o.a.visibleColumnFromColumn(e,t,n);if(r){var a=u(" ",i);return u(a,o.a.nextIndentTabStop(s,i)/i)}return u(a="\t",o.a.nextRenderTabStop(s,n)/n)},d.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},d.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,s=this._selection.endLineNumber;1===this._selection.endColumn&&n!==s&&--s;var l=this._opts,c=l.tabSize,h=l.indentSize,p=l.insertSpaces,f=n===s;if(this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var g=0,m=0,v=n;v<=s;v++,g=m){m=0;var _=e.getLineContent(v),b=i.q(_);if((!this._opts.isUnshift||0!==_.length&&0!==b)&&(f||this._opts.isUnshift||0!==_.length)){if(-1===b&&(b=_.length),1<v&&o.a.visibleColumnFromColumn(_,b+1,c)%h!=0&&e.isCheapToTokenize(v-1)){var y=a.a.getEnterAction(this._opts.autoIndent,e,new r.a(v-1,e.getLineMaxColumn(v-1),v-1,e.getLineMaxColumn(v-1)));if(y){if(m=g,y.appendText)for(var C=0,w=y.appendText.length;C<w&&m<h&&32===y.appendText.charCodeAt(C);C++)m++;for(y.removeText&&(m=Math.max(0,m-y.removeText)),C=0;C<m&&0!==b&&32===_.charCodeAt(b-1);C++)b--}}if(!this._opts.isUnshift||0!==b){var S;S=this._opts.isUnshift?d.unshiftIndent(_,b+1,c,h,p):d.shiftIndent(_,b+1,c,h,p),this._addEditOperation(t,new r.a(v,1,v,b+1),S),v!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=b+1)}}}else{var O=p?u(" ",h):"\t";for(v=n;v<=s;v++)if(_=e.getLineContent(v),b=i.q(_),(!this._opts.isUnshift||0!==_.length&&0!==b)&&(f||this._opts.isUnshift||0!==_.length)&&(-1===b&&(b=_.length),!this._opts.isUnshift||0!==b))if(this._opts.isUnshift){b=Math.min(b,h);for(var L=0;L<b;L++)if(9===_.charCodeAt(L)){b=L+1;break}this._addEditOperation(t,new r.a(v,1,v,b+1),"")}else this._addEditOperation(t,new r.a(v,1,v,1),O),v!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}this._selectionId=t.trackSelection(this._selection)},d.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new s.a(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 s.a(i.startLineNumber,o,i.endLineNumber,i.endColumn):new s.a(i.endLineNumber,i.endColumn,i.startLineNumber,o)}return i},d);function d(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i,o,r=n(439),s=n(443),a=((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)})(l,o=r.a),l.prototype.dispose=function(){this.stopObserving(),o.prototype.dispose.call(this)},l.prototype.getWidth=function(){return this.width},l.prototype.getHeight=function(){return this.height},l.prototype.startObserving=function(){var e=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver((function(){return e._onDidMutate()})),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=s.j(window,"resize",(function(){return e._onDidResizeWindow()})))},l.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},l.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},l.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},l.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},l.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())},l);function l(e,t,n){var i=o.call(this)||this;return i.referenceDomElement=e,i.changeCallback=n,i.width=-1,i.height=-1,i.mutationObserver=null,i.windowSizeListener=null,i.measureReferenceDomElement(!1,t),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=(o.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},o);function o(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}var r=(s.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},s.prototype.setColorZone=function(e){this._colorZone=e},s.prototype.getColorZones=function(){return this._colorZone},s);function s(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}var a=(l.prototype.getId2Color=function(){return this._id2Color},l.prototype.setZones=function(e){this._zones=e,this._zones.sort(r.compare)},l.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0)},l.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},l.prototype.getDOMWidth=function(){return this._domWidth},l.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},l.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0)},l.prototype.getDOMHeight=function(){return this._domHeight},l.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},l.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0)},l.prototype.getOuterHeight=function(){return this._outerHeight},l.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0)},l.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),o=n/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),s=[],a=0,l=this._zones.length;a<l;a++){var u=this._zones[a];if(!e){var c=u.getColorZones();if(c){s.push(c);continue}}var d=Math.floor(o*this._getVerticalOffsetForLine(u.startLineNumber)),h=Math.floor(o*(this._getVerticalOffsetForLine(u.endLineNumber)+t)),p=Math.floor((d+h)/2),f=h-p;f<r&&(f=r),p-f<0&&(p=f),n<p+f&&(p=n-f);var g=u.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var v=new i(p-f,p+f,m);u.setColorZone(v),s.push(v)}return this._colorZonesInvalid=!1,s.sort(i.compare),s},l);function l(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=[]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=(o.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},o.prototype.run=function(){return this.isSupported()&&this._run()||Promise.resolve(void 0)},o);function o(e,t,n,i,o,r){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=o,this._contextKeyService=r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n(444),o=n(824),r=n(756),s={getInitialState:function(){return r.c},tokenize2:function(e,t,n){return Object(r.e)(0,e,t,n)}};function a(e,t){return void 0===t&&(t=s),function(e,t){for(var n='<div class="monaco-tokenized-source">',r=e.split(/\r\n|\r|\n/),s=t.getInitialState(),a=0,l=r.length;a<l;a++){var u=r[a];0<a&&(n+="<br/>");var c=t.tokenize2(u,s,0);o.a.convertToEndOffset(c.tokens,u.length);for(var d=new o.a(c.tokens,u).inflate(),h=0,p=0,f=d.getCount();p<f;p++){var g=d.getClassName(p),m=d.getEndOffset(p);n+='<span class="'+g+'">'+i.o(u.substring(h,m))+"</span>",h=m}s=c.endState}return n+"</div>"}(e,t||s)}function l(e,t,n,i,o,r,s){for(var a="<div>",l=i,u=0,c=0,d=t.getCount();c<d;c++){var h=t.getEndOffset(c);if(!(h<=i)){for(var p="";l<h&&l<o;l++){var f=e.charCodeAt(l);switch(f){case 9:var g=r-(l+u)%r;for(u+=g-1;0<g;)p+=s?" ":" ",g--;break;case 60:p+="<";break;case 62:p+=">";break;case 38:p+="&";break;case 0:p+="�";break;case 65279:case 8232:p+="\ufffd";break;case 13:p+="​";break;case 32:p+=s?" ":" ";break;default:p+=String.fromCharCode(f)}}if(a+='<span style="'+t.getInlineStyle(c,n)+'">'+p+"</span>",o<h||o<=l)break}}return a+"</div>"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n(1074),o=function(e,t){this.index=e,this.remainder=t},r=(s.prototype.insertValues=function(e,t){e=Object(i.a)(e);var n=this.values,o=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},s.prototype.changeValue=function(e,t){return e=Object(i.a)(e),t=Object(i.a)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},s.prototype.removeValues=function(e,t){e=Object(i.a)(e),t=Object(i.a)(t);var n=this.values,o=this.prefixSum;if(e>=n.length)return!1;var r=n.length-e;return r<=t&&(t=r),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),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},s.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},s.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Object(i.a)(e),this._getAccumulatedValue(e))},s.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]},s.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,i=0,r=0,s=0;t<=n;)if(i=t+(n-t)/2|0,e<(s=(r=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(r<=e))break;t=i+1}return new o(i,e-s)},s);function s(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n(445),o=(r.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=n(s);if(null===a)return null;i[o]=l(s,a,this.modifierLabels[e])}return i.join(" ")},r);function r(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}var s=new o({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:i.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),a=new o({ctrlKey:i.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:i.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function l(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)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var i=n(459),o=n(484),r=n(446),s=n(449),a=n(454);function l(e,t,n,o){var s=n.ordered(e).map((function(n){return Promise.resolve(o(n,e,t)).then(void 0,(function(e){Object(r.f)(e)}))}));return Promise.all(s).then(i.m).then(i.d)}function u(e,t,n){return l(e,t,a.f,(function(e,t,i){return e.provideDefinition(t,i,n)}))}function c(e,t,n){return l(e,t,a.e,(function(e,t,i){return e.provideDeclaration(t,i,n)}))}function d(e,t,n){return l(e,t,a.q,(function(e,t,i){return e.provideImplementation(t,i,n)}))}function h(e,t,n){return l(e,t,a.C,(function(e,t,i){return e.provideTypeDefinition(t,i,n)}))}function p(e,t,n,i){var o=this;return l(e,t,a.u,(function(e,t,r){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(o,void 0,void 0,(function(){var o,s;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(a){switch(a.label){case 0:return[4,e.provideReferences(t,r,{includeDeclaration:!0},i)];case 1:return o=a.sent(),n&&o&&2===o.length?[4,e.provideReferences(t,r,{includeDeclaration:!1},i)]:[2,o];case 2:return(s=a.sent())&&1===s.length?[2,s]:[2,o]}}))}))}))}Object(s.k)("_executeDefinitionProvider",(function(e,t){return u(e,t,o.a.None)})),Object(s.k)("_executeDeclarationProvider",(function(e,t){return c(e,t,o.a.None)})),Object(s.k)("_executeImplementationProvider",(function(e,t){return d(e,t,o.a.None)})),Object(s.k)("_executeTypeDefinitionProvider",(function(e,t){return h(e,t,o.a.None)})),Object(s.k)("_executeReferenceProvider",(function(e,t){return p(e,t,!1,o.a.None)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i,o=n(478),r=n(439),s=n(442),a=n(452),l=(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)});function u(e,t){return!!e[t]}var c=function(e,t){this.target=e.target,this.hasTriggerModifier=u(e.event,t.triggerModifier),this.hasSideBySideModifier=u(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=o.i||e.event.detail<=1},d=function(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=u(e,t.triggerModifier)},h=(p.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},p);function p(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}function f(e){return"altKey"===e?a.e?new h(57,"metaKey",6,"altKey"):new h(5,"ctrlKey",6,"altKey"):a.e?new h(6,"altKey",57,"metaKey"):new h(6,"altKey",5,"ctrlKey")}var g,m=(l(v,g=r.a),v.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},v.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},v.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},v.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},v.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},v.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},v.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},v);function v(e){var t=g.call(this)||this;return t._onMouseMoveOrRelevantKeyDown=t._register(new s.a),t.onMouseMoveOrRelevantKeyDown=t._onMouseMoveOrRelevantKeyDown.event,t._onExecute=t._register(new s.a),t.onExecute=t._onExecute.event,t._onCancel=t._register(new s.a),t.onCancel=t._onCancel.event,t._editor=e,t._opts=f(t._editor.getOption(59)),t.lastMouseMoveEvent=null,t.hasTriggerKeyOnMouseDown=!1,t._register(t._editor.onDidChangeConfiguration((function(e){if(e.hasChanged(59)){var n=f(t._editor.getOption(59));if(t._opts.equals(n))return;t._opts=n,t.lastMouseMoveEvent=null,t.hasTriggerKeyOnMouseDown=!1,t._onCancel.fire()}}))),t._register(t._editor.onMouseMove((function(e){return t.onEditorMouseMove(new c(e,t._opts))}))),t._register(t._editor.onMouseDown((function(e){return t.onEditorMouseDown(new c(e,t._opts))}))),t._register(t._editor.onMouseUp((function(e){return t.onEditorMouseUp(new c(e,t._opts))}))),t._register(t._editor.onKeyDown((function(e){return t.onEditorKeyDown(new d(e,t._opts))}))),t._register(t._editor.onKeyUp((function(e){return t.onEditorKeyUp(new d(e,t._opts))}))),t._register(t._editor.onMouseDrag((function(){return t.resetHandler()}))),t._register(t._editor.onDidChangeCursorSelection((function(e){return t.onDidChangeCursorSelection(e)}))),t._register(t._editor.onDidChangeModel((function(e){return t.resetHandler()}))),t._register(t._editor.onDidChangeModelContent((function(){return t.resetHandler()}))),t._register(t._editor.onDidScrollChange((function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&t.resetHandler()}))),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(479);function o(e){var t=JSON.parse(e);return function e(t,n){if(void 0===n&&(n=0),!t||200<n)return t;if("object"==typeof t){switch(t.$mid){case 1:return i.a.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var o in t)Object.hasOwnProperty.call(t,o)&&(t[o]=e(t[o],n+1))}return t}(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(448),o=Object(i.c)("markerDecorationsService")},function(e,t,n){"use strict";n(1374),n(1375)},function(e,t,n){"use strict";n(1376),n(1377);var i=n(445),o=n(451),r=n(461),s=Object(r.Tb)("symbolIcon.arrayForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),a=Object(r.Tb)("symbolIcon.booleanForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(r.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(r.Tb)("symbolIcon.colorForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(r.Tb)("symbolIcon.constantForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(r.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(r.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(r.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(r.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(r.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(r.Tb)("symbolIcon.fileForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(r.Tb)("symbolIcon.folderForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(r.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=Object(r.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(r.Tb)("symbolIcon.keyForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(r.Tb)("symbolIcon.keywordForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(r.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=Object(r.Tb)("symbolIcon.moduleForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=Object(r.Tb)("symbolIcon.namespaceForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(r.Tb)("symbolIcon.nullForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=Object(r.Tb)("symbolIcon.numberForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(r.Tb)("symbolIcon.objectForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=Object(r.Tb)("symbolIcon.operatorForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(r.Tb)("symbolIcon.packageForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(r.Tb)("symbolIcon.propertyForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=Object(r.Tb)("symbolIcon.referenceForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=Object(r.Tb)("symbolIcon.snippetForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=Object(r.Tb)("symbolIcon.stringForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(r.Tb)("symbolIcon.structForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(r.Tb)("symbolIcon.textForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(r.Tb)("symbolIcon.typeParameterForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=Object(r.Tb)("symbolIcon.unitForeground",{dark:r.W,light:r.W,hc:r.W},Object(i.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=Object(r.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(o.e)((function(e,t){var n=e.getColor(s);n&&t.addRule(".codicon-symbol-array { color: "+n+" !important; }");var i=e.getColor(a);i&&t.addRule(".codicon-symbol-boolean { color: "+i+" !important; }");var o=e.getColor(l);o&&t.addRule(".codicon-symbol-class { color: "+o+" !important; }");var r=e.getColor(w);r&&t.addRule(".codicon-symbol-method { color: "+r+" !important; }");var W=e.getColor(u);W&&t.addRule(".codicon-symbol-color { color: "+W+" !important; }");var V=e.getColor(c);V&&t.addRule(".codicon-symbol-constant { color: "+V+" !important; }");var B=e.getColor(d);B&&t.addRule(".codicon-symbol-constructor { color: "+B+" !important; }");var H=e.getColor(h);H&&t.addRule("\n\t\t\t.codicon-symbol-value,.codicon-symbol-enum { color: "+H+" !important; }");var z=e.getColor(p);z&&t.addRule(".codicon-symbol-enum-member { color: "+z+" !important; }");var U=e.getColor(f);U&&t.addRule(".codicon-symbol-event { color: "+U+" !important; }");var K=e.getColor(g);K&&t.addRule(".codicon-symbol-field { color: "+K+" !important; }");var q=e.getColor(m);q&&t.addRule(".codicon-symbol-file { color: "+q+" !important; }");var G=e.getColor(v);G&&t.addRule(".codicon-symbol-folder { color: "+G+" !important; }");var Y=e.getColor(_);Y&&t.addRule(".codicon-symbol-function { color: "+Y+" !important; }");var Z=e.getColor(b);Z&&t.addRule(".codicon-symbol-interface { color: "+Z+" !important; }");var X=e.getColor(y);X&&t.addRule(".codicon-symbol-key { color: "+X+" !important; }");var $=e.getColor(C);$&&t.addRule(".codicon-symbol-keyword { color: "+$+" !important; }");var J=e.getColor(S);J&&t.addRule(".codicon-symbol-module { color: "+J+" !important; }");var Q=e.getColor(O);Q&&t.addRule(".codicon-symbol-namespace { color: "+Q+" !important; }");var ee=e.getColor(L);ee&&t.addRule(".codicon-symbol-null { color: "+ee+" !important; }");var te=e.getColor(D);te&&t.addRule(".codicon-symbol-number { color: "+te+" !important; }");var ne=e.getColor(x);ne&&t.addRule(".codicon-symbol-object { color: "+ne+" !important; }");var ie=e.getColor(N);ie&&t.addRule(".codicon-symbol-operator { color: "+ie+" !important; }");var oe=e.getColor(k);oe&&t.addRule(".codicon-symbol-package { color: "+oe+" !important; }");var re=e.getColor(E);re&&t.addRule(".codicon-symbol-property { color: "+re+" !important; }");var se=e.getColor(I);se&&t.addRule(".codicon-symbol-reference { color: "+se+" !important; }");var ae=e.getColor(M);ae&&t.addRule(".codicon-symbol-snippet { color: "+ae+" !important; }");var le=e.getColor(T);le&&t.addRule(".codicon-symbol-string { color: "+le+" !important; }");var ue=e.getColor(P);ue&&t.addRule(".codicon-symbol-struct { color: "+ue+" !important; }");var ce=e.getColor(R);ce&&t.addRule(".codicon-symbol-text { color: "+ce+" !important; }");var de=e.getColor(A);de&&t.addRule(".codicon-symbol-type-parameter { color: "+de+" !important; }");var he=e.getColor(F);he&&t.addRule(".codicon-symbol-unit { color: "+he+" !important; }");var pe=e.getColor(j);pe&&t.addRule(".codicon-symbol-variable { color: "+pe+" !important; }")}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(450),o=n(440),r=n(786),s=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},a=(l.prototype.provideSelectionRanges=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,o,r,a;return s(this,(function(u){switch(u.label){case 0:n=[],i=function(t){var i,o;return s(this,(function(r){switch(r.label){case 0:return i=[],n.push(i),o=new Map,[4,new Promise((function(n){return l._bracketsRightYield(n,0,e,t,o)}))];case 1:return r.sent(),[4,new Promise((function(n){return l._bracketsLeftYield(n,0,e,t,o,i)}))];case 2:return r.sent(),[2]}}))},o=0,r=t,u.label=1;case 1:return o<r.length?(a=r[o],[5,i(a)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2,n]}}))}))},l._bracketsRightYield=function(e,t,n,i,o){for(var s=new Map,a=Date.now();;){if(l._maxRounds<=t){e();break}if(!i){e();break}var u=n.findNextBracket(i);if(!u){e();break}var c=Date.now()-a;if(l._maxDuration<c){setTimeout((function(){return l._bracketsRightYield(e,t+1,n,i,o)}));break}var d=u.close[0];if(u.isOpen){var h=s.has(d)?s.get(d):0;s.set(d,h+1)}else if(h=s.has(d)?s.get(d):0,--h,s.set(d,Math.max(0,h)),h<0){var p=o.get(d);p||(p=new r.a,o.set(d,p)),p.push(u.range)}i=u.range.getEndPosition()}},l._bracketsLeftYield=function(e,t,n,i,r,s){for(var a=new Map,u=Date.now();;){if(l._maxRounds<=t&&0===r.size){e();break}if(!i){e();break}var c=n.findPrevBracket(i);if(!c){e();break}var d=Date.now()-u;if(l._maxDuration<d){setTimeout((function(){return l._bracketsLeftYield(e,t+1,n,i,r,s)}));break}var h=c.close[0];if(c.isOpen){if(v=a.has(h)?a.get(h):0,--v,a.set(h,Math.max(0,v)),v<0){var p=r.get(h);if(p){var f=p.shift();0===p.size&&r.delete(h);var g=o.a.fromPositions(c.range.getEndPosition(),f.getStartPosition()),m=o.a.fromPositions(c.range.getStartPosition(),f.getEndPosition());s.push({range:g}),s.push({range:m}),l._addBracketLeading(n,m,s)}}}else{var v=a.has(h)?a.get(h):0;a.set(h,v+1)}i=c.range.getStartPosition()}},l._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var r=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(r);0!==s&&s!==t.startColumn&&(n.push({range:o.a.fromPositions(new i.a(r,s),t.getEndPosition())}),n.push({range:o.a.fromPositions(new i.a(r,1),t.getEndPosition())}));var a=r-1;if(0<a){var l=e.getLineFirstNonWhitespaceColumn(a);l===t.startColumn&&l!==e.getLineLastNonWhitespaceColumn(a)&&(n.push({range:o.a.fromPositions(new i.a(a,l),t.getEndPosition())}),n.push({range:o.a.fromPositions(new i.a(a,1),t.getEndPosition())}))}}},l._maxDuration=30,l._maxRounds=2,l);function l(){}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=(o.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(o.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),o);function o(e){this.executor=e,this._didRun=!1}var r,s,a=n(439),l=n(444),u=n(449),c=n(951),d=n(469),h=n(885),p=n(459),f=n(446),g=n(887),m=n(448),v=n(443),_=n(772),b=n(703),y=n(450),C=n(454),w=n(886),S=n(757),O=n(531),L=(r=function(e,t){return(r=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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(){return(D=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)},x=function(e,t){return function(n,i){t(n,i,e)}},N=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},k=(L(E,s=b.a),E);function E(e,t){var n=s.call(this,e.command?e.command.id:e.title,e.title,void 0,!e.disabled,t)||this;return n.action=e,n}var I,M=(L(T,I=a.a),Object.defineProperty(T.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),T.prototype.show=function(e,t,n,i){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var o,r,s,a,l=this;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(u){if(!(o=i.includeDisabledActions?t.allActions:t.validActions).length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(f.a)();return this._visible=!0,this._showingActions.value=t,r=this.getMenuActions(e,o),s=y.a.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return s},getActions:function(){return r},onHide:function(){l._visible=!1,l._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof k?a(e.action):void 0}}),[2]}))}))},T.prototype.getMenuActions=function(e,t){function n(e){return new k(e,(function(){return r._delegate.onSelectCodeAction(e)}))}var i,o,r=this,s=t.map(n),a=this._editor.getModel();if(a&&s.length)for(var l=0,u=C.a.all(a);l<u.length;l++){var c=u[l];if(c._getAdditionalMenuItems){var d=c._getAdditionalMenuItems({trigger:e.type,only:null===(o=null===(i=e.filter)||void 0===i?void 0:i.include)||void 0===o?void 0:o.value},t);d.length&&s.push.apply(s,N([new _.d],d.map((function(e){return n({title:e.title,command:e})}))))}}return s},T.prototype._toCoords=function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=Object(v.C)(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}},T=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([x(2,S.a),x(3,O.a)],T));function T(e,t,n,i){var o=I.call(this)||this;return o._editor=e,o._delegate=t,o._contextMenuService=n,o._visible=!1,o._showingActions=o._register(new a.d),o._keybindingResolver=new P({getKeybindings:function(){return i.getKeybindings()}}),o}var P=(R.prototype.getResolver=function(){var e=this,t=new i((function(){return e._keybindingProvider.getKeybindings().filter((function(e){return 0<=R.codeActionCommands.indexOf(e.command)})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===h.d?t={kind:w.b.SourceOrganizeImports.value}:e.command===h.b&&(t={kind:w.b.SourceFixAll.value}),D({resolvedKeybinding:e.resolvedKeybinding},w.a.fromUser(t,{kind:w.b.None,apply:"never"}))}))}));return function(n){if(n.kind){var i=e.bestKeybindingForCodeAction(n,t.getValue());return null==i?void 0:i.resolvedKeybinding}}},R.prototype.bestKeybindingForCodeAction=function(e,t){if(e.kind){var n=new w.b(e.kind);return t.filter((function(e){return e.kind.contains(n)})).filter((function(t){return!t.preferred||e.isPreferred})).reduceRight((function(e,t){return!e||e.kind.contains(t.kind)?t:e}),void 0)}},R.codeActionCommands=[h.e,h.a,h.f,h.d,h.b],R);function R(e){this._keybindingProvider=e}var A,F,j=n(793),W=n(442),V=(n(1325),n(495)),B=n(445),H=n(451),z=n(461),U=n(702),K=(A=function(e,t){return(A=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}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){e.Hidden={type:0},e.Showing=function(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}}(F=F||{});var q,G=(K(Y,q=a.a),Y.prototype.dispose=function(){q.prototype.dispose.call(this),this._editor.removeContentWidget(this)},Y.prototype.getId=function(){return"LightBulbWidget"},Y.prototype.getDomNode=function(){return this._domNode},Y.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},Y.prototype.update=function(e,t,n){var i=this;if(e.validActions.length<=0)return this.hide();var o=this._editor.getOptions();if(!o.get(47).enabled)return this.hide();var r=n.lineNumber,s=n.column,a=this._editor.getModel();if(!a)return this.hide();function l(e){return 2<e&&i._editor.getTopForLineNumber(e)===i._editor.getTopForLineNumber(e-1)}var u=a.getOptions().tabSize,c=o.get(34),d=a.getLineContent(r),h=V.b.computeIndentLevel(d,u),p=r;if(!(22<c.spaceWidth*h))if(1<r&&!l(r-1))--p;else if(l(r+1)){if(s*c.spaceWidth<22)return this.hide()}else p+=1;this.state=new F.Showing(e,t,n,{position:{lineNumber:p,column:1},preference:Y._posPref}),v.Y(this._domNode,"codicon-lightbulb-autofix",e.hasAutoFix),this._editor.layoutContentWidget(this)},Y.prototype.hide=function(){this.state=F.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(Y.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),Y.prototype._updateLightBulbTitle=function(){if(1===this.state.type&&this.state.actions.hasAutoFix){var e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=B.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}var t=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=t?B.a("quickFixWithKb","Show Fixes ({0})",t.getLabel()):B.a("quickFix","Show Fixes")},Object.defineProperty(Y.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),Y._posPref=[0],Y=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(3,O.a)],Y));function Y(e,t,n,i){var o=q.call(this)||this;return o._editor=e,o._quickFixActionId=t,o._preferredFixActionId=n,o._keybindingService=i,o._onClick=o._register(new W.a),o.onClick=o._onClick.event,o._state=F.Hidden,o._domNode=document.createElement("div"),o._domNode.className="codicon codicon-lightbulb",o._editor.addContentWidget(o),o._register(o._editor.onDidChangeModelContent((function(e){var t=o._editor.getModel();(1!==o.state.type||!t||o.state.editorPosition.lineNumber>=t.getLineCount())&&o.hide()}))),U.b.ignoreTarget(o._domNode),o._register(v.n(o._domNode,(function(e){if(1===o.state.type){o._editor.focus(),e.preventDefault();var t=v.C(o._domNode),n=t.top,i=t.height,r=o._editor.getOption(49),s=Math.floor(r/3);null!==o.state.widgetPosition.position&&o.state.widgetPosition.position.lineNumber<o.state.editorPosition.lineNumber&&(s+=r),o._onClick.fire({x:e.posx,y:n+i+s,actions:o.state.actions,trigger:o.state.trigger})}}))),o._register(v.j(o._domNode,"mouseenter",(function(e){if(1==(1&e.buttons)){o.hide();var t=new j.a;t.startMonitoring(e.target,e.buttons,j.b,(function(){}),(function(){t.dispose()}))}}))),o._register(o._editor.onDidChangeConfiguration((function(e){e.hasChanged(47)&&!o._editor.getOption(47).enabled&&o.hide()}))),o._updateLightBulbTitle(),o._register(o._keybindingService.onDidUpdateKeybindings(o._updateLightBulbTitle,o)),o}Object(H.e)((function(e,t){var n=e.getColor(z.J);n&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb {\n\t\t\tcolor: "+n+";\n\t\t}");var i=e.getColor(z.I);i&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb-autofix {\n\t\t\tcolor: "+i+";\n\t\t}")}));var Z,X,$=(Z=function(e,t){return(Z=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}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Q=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},ee=($(te,X=a.a),te.prototype.update=function(e){var t,n,i;return J(this,void 0,void 0,(function(){var o,r,s,a,l;return Q(this,(function(u){switch(u.label){case 0:if(1!==e.type)return null!==(t=this._lightBulbWidget.rawValue)&&void 0!==t&&t.hide(),[2];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,e.actions];case 2:return o=u.sent(),[3,4];case 3:return r=u.sent(),Object(f.e)(r),[2];case 4:if(this._lightBulbWidget.getValue().update(o,e.trigger,e.position),2!==e.trigger.type)return[3,11];if(null===(n=e.trigger.filter)||void 0===n||!n.include)return[3,10];if(!(s=this.tryGetValidActionToApply(e.trigger,o)))return[3,9];u.label=5;case 5:return u.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(s,!1)];case 6:return u.sent(),[3,8];case 7:return o.dispose(),[7];case 8:return[2];case 9:if(e.trigger.context&&(a=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,o))&&a.disabled)return g.a.get(this._editor).showMessage(a.disabled,e.trigger.context.position),o.dispose(),[2];u.label=10;case 10:return l=!(null===(i=e.trigger.filter)||void 0===i||!i.include),!e.trigger.context||o.allActions.length&&(l||o.validActions.length)?(this._activeCodeActions.value=o,this._codeActionWidget.getValue().show(e.trigger,o,e.position,{includeDisabledActions:l}),[3,12]):(g.a.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),(this._activeCodeActions.value=o).dispose(),[2]);case 11:this._codeActionWidget.getValue().isVisible?o.dispose():this._activeCodeActions.value=o,u.label=12;case 12:return[2]}}))}))},te.prototype.getInvalidActionThatWouldHaveBeenApplied=function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?Object(p.h)(t.allActions,(function(e){return e.disabled})):void 0},te.prototype.tryGetValidActionToApply=function(e,t){if(t.validActions.length)return"first"===e.autoApply&&0<t.validActions.length||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0},te.prototype.showCodeActionList=function(e,t,n,i){return J(this,void 0,void 0,(function(){return Q(this,(function(o){return this._codeActionWidget.getValue().show(e,t,n,i),[2]}))}))},te=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(4,m.a)],te));function te(e,t,n,o,r){var s=X.call(this)||this;return s._editor=e,s.delegate=o,s._activeCodeActions=s._register(new a.d),s._codeActionWidget=new i((function(){return s._register(r.createInstance(M,s._editor,{onSelectCodeAction:function(e){return J(s,void 0,void 0,(function(){return Q(this,(function(t){return this.delegate.applyCodeAction(e,!0),[2]}))}))}}))})),s._lightBulbWidget=new i((function(){var e=s._register(r.createInstance(G,s._editor,t,n));return s._register(e.onClick((function(e){return s.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1})}))),e})),s}var ne,ie,oe,re=n(489),se=n(456),ae=n(773),le=n(532),ue=n(774),ce=n(821),de=n(453),he=n(440),pe=n(554),fe=(ne=function(e,t){return(ne=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}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=new se.d("supportedCodeAction",""),me=(fe(ve,ie=a.a),ve.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},ve.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return Object(pe.e)(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:1})}),this._delay)},ve.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:1})}),this._delay)},ve.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],r=t.validateRange(o);if(he.a.intersectRanges(r,e))return he.a.lift(r)}},ve.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&1===e.type){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}},ve.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),o=i?i.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:o};return this._signalChange(r),r}this._signalChange(void 0)},ve);function ve(e,t,n,i){void 0===i&&(i=250);var o=ie.call(this)||this;return o._editor=e,o._markerService=t,o._signalChange=n,o._delay=i,o._autoTriggerTimer=o._register(new de.e),o._register(o._markerService.onMarkerChanged((function(e){return o._onMarkerChanges(e)}))),o._register(o._editor.onDidChangeCursorPosition((function(){return o._onCursorChange()}))),o}!function(e){e.Empty={type:0},e.Triggered=function(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}}(oe=oe||{});var _e,be=(fe(ye,_e=a.a),ye.prototype.dispose=function(){_e.prototype.dispose.call(this),this.setState(oe.Empty,!0)},ye.prototype._update=function(){var e=this;this._codeActionOracle.value=void 0,this.setState(oe.Empty);var t=this._editor.getModel();if(t&&C.a.has(t)&&!this._editor.getOption(68)){for(var n=[],i=0,o=C.a.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.value=new me(this._editor,this._markerService,(function(n){if(n){var i=Object(de.f)((function(e){return Object(h.c)(t,n.selection,n.trigger,e)}));e._progressService&&2===n.trigger.type&&e._progressService.showWhile(i,250),e.setState(new oe.Triggered(n.trigger,n.selection,n.position,i))}else e.setState(oe.Empty)}),void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},ye.prototype.trigger=function(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)},ye.prototype.setState=function(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))},ye);function ye(e,t,n,i){var o=_e.call(this)||this;return o._editor=e,o._markerService=t,o._progressService=i,o._codeActionOracle=o._register(new a.d),o._state=oe.Empty,o._onDidChangeState=o._register(new W.a),o.onDidChangeState=o._onDidChangeState.event,o._supportedCodeActions=ge.bindTo(n),o._register(o._editor.onDidChangeModel((function(){return o._update()}))),o._register(o._editor.onDidChangeModelLanguage((function(){return o._update()}))),o._register(C.a.onDidChange((function(){return o._update()}))),o._update(),o}n.d(t,"f",(function(){return Ee})),n.d(t,"e",(function(){return Re})),n.d(t,"b",(function(){return je})),n.d(t,"g",(function(){return Be})),n.d(t,"h",(function(){return Ue})),n.d(t,"d",(function(){return Ge})),n.d(t,"c",(function(){return Xe})),n.d(t,"a",(function(){return Qe}));var Ce,we=(Ce=function(e,t){return(Ce=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}Ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Se=function(e,t){return function(n,i){t(n,i,e)}},Oe=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Le=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},De=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i};function xe(e){return se.a.regex(ge.keys()[0],new RegExp("(\\s|^)"+Object(l.p)(e.value)+"\\b"))}var Ne,ke={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:B.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:B.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[B.a("args.schema.apply.first","Always apply the first returned code action."),B.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),B.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:B.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},Ee=(we(Ie,Ne=a.a),Ie.get=function(e){return e.getContribution(Ie.ID)},Ie.prototype.update=function(e){this._ui.getValue().update(e)},Ie.prototype.showCodeActions=function(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})},Ie.prototype.manualTriggerAtCurrentPosition=function(e,t,n){if(this._editor.hasModel()){g.a.get(this._editor).closeMessage();var i=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}},Ie.prototype._trigger=function(e){return this._model.trigger(e)},Ie.prototype._applyCodeAction=function(e){return this._instantiationService.invokeFunction(Me,e,this._editor)},Ie.ID="editor.contrib.quickFixController",Ie=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Se(1,ae.b),Se(2,se.c),Se(3,ue.a),Se(4,m.a)],Ie));function Ie(e,t,n,o,r){var s=Ne.call(this)||this;return s._instantiationService=r,s._editor=e,s._model=s._register(new be(s._editor,t,n,o)),s._register(s._model.onDidChangeState((function(e){return s.update(e)}))),s._ui=new i((function(){return s._register(new ee(e,Re.Id,Qe.Id,{applyCodeAction:function(e,t){return Oe(s,void 0,void 0,(function(){return Le(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,this._applyCodeAction(e)];case 1:return n.sent(),[3,3];case 2:return t&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}}))}))}},s._instantiationService))})),s}function Me(e,t,n){return Oe(this,void 0,void 0,(function(){var i,o,r,s,a,l;return Le(this,(function(u){switch(u.label){case 0:return i=e.get(c.a),o=e.get(re.b),r=e.get(ce.a),s=e.get(le.a),r.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.title,codeActionKind:t.kind,codeActionIsPreferred:!!t.isPreferred}),t.edit?[4,i.apply(t.edit,{editor:n})]:[3,2];case 1:u.sent(),u.label=2;case 2:if(!t.command)return[3,6];u.label=3;case 3:return u.trys.push([3,5,,6]),[4,o.executeCommand.apply(o,De([t.command.id],t.command.arguments||[]))];case 4:return u.sent(),[3,6];case 5:return a=u.sent(),l="string"==typeof(d=a)?d:d instanceof Error&&"string"==typeof d.message?d.message:void 0,s.error("string"==typeof l?l:B.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}var d}))}))}function Te(e,t,n,i){if(e.hasModel()){var o=Ee.get(e);o&&o.manualTriggerAtCurrentPosition(t,n,i)}}var Pe,Re=(we(Ae,Pe=u.b),Ae.prototype.run=function(e,t){return Te(t,B.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},Ae.Id="editor.action.quickFix",Ae);function Ae(){return Pe.call(this,{id:Ae.Id,label:B.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),kbOpts:{kbExpr:d.a.editorTextFocus,primary:2132,weight:100}})||this}var Fe,je=(we(We,Fe=u.c),We.prototype.runEditorCommand=function(e,t,n){var i=w.a.fromUser(n,{kind:w.b.Empty,apply:"ifSingle"});return Te(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?B.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):B.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?B.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):B.a("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},We);function We(){return Fe.call(this,{id:h.a,precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:ke}]}})||this}var Ve,Be=(we(He,Ve=u.b),He.prototype.run=function(e,t,n){var i=w.a.fromUser(n,{kind:w.b.Refactor,apply:"never"});return Te(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?B.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):B.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?B.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):B.a("editor.action.refactor.noneMessage","No refactorings available"),{include:w.b.Refactor.contains(i.kind)?i.kind:w.b.None,onlyIncludePreferredActions:i.preferred},i.apply)},He);function He(){return Ve.call(this,{id:h.e,label:B.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),kbOpts:{kbExpr:d.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:se.a.and(d.a.writable,xe(w.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:ke}]}})||this}var ze,Ue=(we(Ke,ze=u.b),Ke.prototype.run=function(e,t,n){var i=w.a.fromUser(n,{kind:w.b.Source,apply:"never"});return Te(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?B.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):B.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?B.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):B.a("editor.action.source.noneMessage","No source actions available"),{include:w.b.Source.contains(i.kind)?i.kind:w.b.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},Ke);function Ke(){return ze.call(this,{id:h.f,label:B.a("source.label","Source Action..."),alias:"Source Action...",precondition:se.a.and(d.a.writable,d.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:se.a.and(d.a.writable,xe(w.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:ke}]}})||this}var qe,Ge=(we(Ye,qe=u.b),Ye.prototype.run=function(e,t){return Te(t,B.a("editor.action.organize.noneMessage","No organize imports action available"),{include:w.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},Ye);function Ye(){return qe.call(this,{id:h.d,label:B.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:se.a.and(d.a.writable,xe(w.b.SourceOrganizeImports)),kbOpts:{kbExpr:d.a.editorTextFocus,primary:1581,weight:100}})||this}var Ze,Xe=(we($e,Ze=u.b),$e.prototype.run=function(e,t){return Te(t,B.a("fixAll.noneMessage","No fix all action available"),{include:w.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},$e);function $e(){return Ze.call(this,{id:h.b,label:B.a("fixAll.label","Fix All"),alias:"Fix All",precondition:se.a.and(d.a.writable,xe(w.b.SourceFixAll))})||this}var Je,Qe=(we(et,Je=u.b),et.prototype.run=function(e,t){return Te(t,B.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:w.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},et.Id="editor.action.autoFix",et);function et(){return Je.call(this,{id:et.Id,label:B.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:se.a.and(d.a.writable,xe(w.b.QuickFix)),kbOpts:{kbExpr:d.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}},function(e,t,n){"use strict";var i=n(445),o=n(446),r=n(439),s=n(504),a=n(448),l=n(456),u=n(573),c=n(775),d=n(897),h=(n(1361),n(443)),p=n(490),f=n(442),g=n(596),m=n(554),v=n(957),_=n(440),b=n(495),y=n(787),C=n(960),w=(n(1362),n(444)),S=n(505),O={badgeBackground:p.a.fromHex("#4D4D4D"),badgeForeground:p.a.fromHex("#FFFFFF")},L=(D.prototype.setCount=function(e){this.count=e,this.render()},D.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},D.prototype.render=function(){this.element.textContent=Object(w.r)(this.countFormat,this.count),this.element.title=Object(w.r)(this.titleFormat,this.count),this.applyStyles()},D.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},D.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}},D);function D(e,t){this.count=0,this.options=t||Object.create(null),Object(S.g)(this.options,O,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(h.q)(e,Object(h.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}var x,N=n(898),k=n(451),E=n(826),I=n(956),M=n(531),T=n(760),P=n(961),R=(x=function(e,t){return(x=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}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},F=function(e,t){return function(n,i){t(n,i,e)}},j=(W.prototype.hasChildren=function(e){return e instanceof d.c||e instanceof d.a&&!e.failure},W.prototype.getChildren=function(e){if(e instanceof d.c)return e.groups;if(e instanceof d.a)return e.resolve(this._resolverService).then((function(e){return e.children}));throw new Error("bad tree")},W=A([F(0,y.a)],W));function W(e){this._resolverService=e}var V=(B.prototype.getHeight=function(){return 23},B.prototype.getTemplateId=function(e){return e instanceof d.a?Z.id:Q.id},B);function B(){}var H=(z.prototype.getKeyboardNavigationLabel=function(e){if(e instanceof d.b){var t=e.parent.preview,n=t&&t.preview(e.range);if(n)return n.value}return Object(m.b)(e.uri)},z=A([F(0,M.a)],z));function z(e){this._keybindingService=e}var U=(K.prototype.getId=function(e){return e instanceof d.b?e.id:e.uri},K);function K(){}var q,G=(R(Y,q=r.a),Y.prototype.set=function(e,t){var n=Object(m.d)(e.uri);this.file.setLabel(Object(I.a)(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});var o=e.children.length;this.badge.setCount(o),e.failure?this.badge.setTitleFormat(Object(i.a)("referencesFailre","Failed to resolve file.")):1<o?this.badge.setTitleFormat(Object(i.a)("referencesCount","{0} references",o)):this.badge.setTitleFormat(Object(i.a)("referenceCount","{0} reference",o))},Y=A([F(1,N.a),F(2,k.c)],Y));function Y(e,t,n){var i=q.call(this)||this;i._uriLabel=t;var o=document.createElement("div");return h.f(o,"reference-file"),i.file=i._register(new C.a(o,{supportHighlights:!0})),i.badge=new L(h.q(o,h.a(".count"))),i._register(Object(E.a)(i.badge,n)),e.appendChild(o),i}var Z=(X.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(G,e)},X.prototype.renderElement=function(e,t,n){n.set(e.element,Object(T.c)(e.filterData))},X.prototype.disposeTemplate=function(e){e.dispose()},X.id="FileReferencesRenderer",X=A([F(0,a.a)],X));function X(e){this._instantiationService=e,this.templateId=X.id}var $=(J.prototype.set=function(e,t){var n=e.parent.preview,i=n&&n.preview(e.range);if(i){var o=i.value,r=i.highlight;t&&!T.a.isDefault(t)?(h.Y(this.label.element,"referenceMatch",!1),this.label.set(o,Object(T.c)(t))):(h.Y(this.label.element,"referenceMatch",!0),this.label.set(o,[r]))}else this.label.set(Object(m.b)(e.uri)+":"+(e.range.startLineNumber+1)+":"+(e.range.startColumn+1))},J);function J(e){this.label=new P.a(e,!1)}var Q=(ee.prototype.renderTemplate=function(e){return new $(e)},ee.prototype.renderElement=function(e,t,n){n.set(e.element,e.filterData)},ee.prototype.disposeTemplate=function(){},ee.id="OneReferenceRenderer",ee);function ee(){this.templateId=ee.id}var te=(ne.prototype.getAriaLabel=function(e){return e.ariaMessage},ne);function ne(){}var ie,oe=n(969),re=n(461),se=n(916),ae=(n(1365),n(465)),le=n(962),ue=n(459),ce=n(891),de=n(686),he=(ie=function(e,t){return(ie=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}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pe=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},fe={separatorBorder:p.a.transparent},ge=(Object.defineProperty(me.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"visible",{get:function(){return void 0===this._cachedVisibleSize},enumerable:!0,configurable:!0}),me.prototype.setVisible=function(e,t){e!==this.visible&&(e?(this.size=Object(le.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),h.Y(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))},Object.defineProperty(me.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"enabled",{set:function(e){this.container.style.pointerEvents=e?null:"none"},enumerable:!0,configurable:!0}),me.prototype.layout=function(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)},me.prototype.dispose=function(){return this.disposable.dispose(),this.view},me);function me(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"==typeof n?(this._size=n,this._cachedVisibleSize=void 0,h.f(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}var ve,_e=(he(be,ve=ge),be.prototype.layoutContainer=function(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"},be);function be(){return null!==ve&&ve.apply(this,arguments)||this}var ye,Ce,we,Se,Oe,Le=(he(De,ye=ge),De.prototype.layoutContainer=function(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"},De);function De(){return null!==ye&&ye.apply(this,arguments)||this}(we=Ce=Ce||{})[we.Idle=0]="Idle",we[we.Busy=1]="Busy",(Oe=Se=Se||{}).Distribute={type:"distribute"},Oe.Split=function(e){return{type:"split",index:e}},Oe.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};var xe,Ne=(he(ke,xe=r.a),Object.defineProperty(ke.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++)n[t].sash.orthogonalStartSash=e;this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++)n[t].sash.orthogonalEndSash=e;this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Object.defineProperty(ke.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),ke.prototype.style=function(e){e.separatorBorder.isTransparent()?(h.P(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(h.f(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))},ke.prototype.addView=function(e,t,n){void 0===n&&(n=this.viewItems.length),this.doAddView(e,t,n,!1)},ke.prototype.layout=function(e,t){var n=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(var o=0;o<this.viewItems.length;o++){var r=this.viewItems[o];r.size=Object(le.a)(Math.round(this.proportions[o]*e),r.minimumSize,r.maximumSize)}else{var s=Object(ue.u)(this.viewItems.length),a=s.filter((function(e){return 1===n.viewItems[e].priority})),l=s.filter((function(e){return 2===n.viewItems[e].priority}));this.resize(this.viewItems.length-1,e-i,void 0,a,l)}this.distributeEmptySpace(),this.layoutViews()},ke.prototype.saveProportions=function(){var e=this;this.proportionalLayout&&0<this.contentSize&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))},ke.prototype.onSashStart=function(e){for(var t=this,n=e.sash,i=e.start,o=e.alt,s=0,a=this.viewItems;s<a.length;s++)a[s].enabled=!1;var l=Object(ue.k)(this.sashItems,(function(e){return e.sash===n})),u=Object(r.e)(Object(de.a)(document.body,"keydown")((function(e){return c(t.sashDragState.current,e.altKey)})),Object(de.a)(document.body,"keyup")((function(){return c(t.sashDragState.current,!1)}))),c=function(e,n){var i,o,r=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;if(t.inverseAltBehavior&&(n=!n),n&&(a=l===t.sashItems.length-1?(s=((y=t.viewItems[l]).minimumSize-y.size)/2,(y.maximumSize-y.size)/2):(s=((y=t.viewItems[l+1]).size-y.maximumSize)/2,(y.size-y.minimumSize)/2)),!n){var c=Object(ue.u)(l,-1),d=Object(ue.u)(l+1,t.viewItems.length),h=c.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-r[n])}),0),p=c.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-r[n])}),0),f=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,n){return e+(r[n]-t.viewItems[n].minimumSize)}),0),g=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,n){return e+(r[n]-t.viewItems[n].viewMaximumSize)}),0),m=Math.max(h,g),v=Math.min(f,p),_=t.findFirstSnapIndex(c),b=t.findFirstSnapIndex(d);if("number"==typeof _){var y=t.viewItems[_],C=Math.floor(y.viewMinimumSize/2);i={index:_,limitDelta:y.visible?m-C:m+C,size:y.size}}"number"==typeof b&&(y=t.viewItems[b],C=Math.floor(y.viewMinimumSize/2),o={index:b,limitDelta:y.visible?v+C:v-C,size:y.size})}t.sashDragState={start:e,current:e,index:l,sizes:r,minDelta:s,maxDelta:a,alt:n,snapBefore:i,snapAfter:o,disposable:u}};c(i,o)},ke.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,i=n.index,o=n.start,r=n.sizes,s=n.alt,a=n.minDelta,l=n.maxDelta,u=n.snapBefore,c=n.snapAfter,d=(this.sashDragState.current=t)-o,h=this.resize(i,d,r,void 0,void 0,a,l,u,c);if(s){var p=i===this.sashItems.length-1,f=this.viewItems.map((function(e){return e.size})),g=p?i:i+1,m=this.viewItems[g],v=m.size-m.maximumSize,_=m.size-m.minimumSize,b=p?i-1:i+1;this.resize(b,-h,f,void 0,void 0,v,_)}this.distributeEmptySpace(),this.layoutViews()},ke.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(var t=0,n=this.viewItems;t<n.length;t++)n[t].enabled=!0},ke.prototype.onViewChange=function(e,t){var n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=Object(le.a)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&0<n?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))},ke.prototype.resizeView=function(e,t){var n=this;if(this.state!==Ce.Idle)throw new Error("Cant modify splitview");if(this.state=Ce.Busy,!(e<0||e>=this.viewItems.length)){var i=Object(ue.u)(this.viewItems.length).filter((function(t){return t!==e})),o=pe(i.filter((function(e){return 1===n.viewItems[e].priority})),[e]),r=i.filter((function(e){return 2===n.viewItems[e].priority})),s=this.viewItems[e];t=Math.round(t),t=Object(le.a)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(o,r),this.state=Ce.Idle}},ke.prototype.distributeViewSizes=function(){for(var e=this,t=[],n=0,i=0,o=this.viewItems;i<o.length;i++)0<(l=o[i]).maximumSize-l.minimumSize&&(t.push(l),n+=l.size);for(var r=Math.floor(n/t.length),s=0,a=t;s<a.length;s++){var l;(l=a[s]).size=Object(le.a)(r,l.minimumSize,l.maximumSize)}var u=Object(ue.u)(this.viewItems.length),c=u.filter((function(t){return 1===e.viewItems[t].priority})),d=u.filter((function(t){return 2===e.viewItems[t].priority}));this.relayout(c,d)},ke.prototype.getViewSize=function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size},ke.prototype.doAddView=function(e,t,n,i){var o=this;if(void 0===n&&(n=this.viewItems.length),this.state!==Ce.Idle)throw new Error("Cant modify splitview");this.state=Ce.Busy;var s=h.a(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(n));var a,l=e.onDidChange((function(e){return o.onViewChange(p,e)})),u=Object(r.h)((function(){return o.viewContainer.removeChild(s)})),c=Object(r.e)(l,u);a="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var d,p=new(0===this.orientation?_e:Le)(s,e,a,c);if(this.viewItems.splice(n,0,p),1<this.viewItems.length){var g=0===this.orientation?1:0,m=0===this.orientation?{getHorizontalSashTop:function(e){return o.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return o.getSashPosition(e)}},v=new ce.a(this.sashContainer,m,{orientation:g,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),_=0===this.orientation?function(e){return{sash:v,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:v,start:e.startX,current:e.currentX,alt:e.altKey}},b=f.b.map(v.onDidStart,_)(this.onSashStart,this),y=f.b.map(v.onDidChange,_)(this.onSashChange,this),C=f.b.map(v.onDidEnd,(function(){return Object(ue.k)(o.sashItems,(function(e){return e.sash===v}))}))(this.onSashEnd,this),w=v.onDidReset((function(){var e=Object(ue.k)(o.sashItems,(function(e){return e.sash===v})),t=Object(ue.u)(e,-1),n=Object(ue.u)(e+1,o.viewItems.length),i=o.findFirstSnapIndex(t),r=o.findFirstSnapIndex(n);"number"==typeof i&&!o.viewItems[i].visible||"number"==typeof r&&!o.viewItems[r].visible||o._onDidSashReset.fire(e)})),S=Object(r.e)(b,y,C,w,v),O={sash:v,disposable:S};this.sashItems.splice(n-1,0,O)}s.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(d=[t.index]),i||this.relayout([n],d),this.state=Ce.Idle,i||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()},ke.prototype.relayout=function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},ke.prototype.resize=function(e,t,n,i,o,r,s,a,l){var u=this;if(void 0===n&&(n=this.viewItems.map((function(e){return e.size}))),void 0===r&&(r=Number.NEGATIVE_INFINITY),void 0===s&&(s=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var c=Object(ue.u)(e,-1),d=Object(ue.u)(e+1,this.viewItems.length);if(o)for(var h=0,p=o;h<p.length;h++){var f=p[h];Object(ue.t)(c,f),Object(ue.t)(d,f)}if(i)for(var g=0,m=i;g<m.length;g++){var v=m[g];Object(ue.s)(c,v),Object(ue.s)(d,v)}var _,b=c.map((function(e){return u.viewItems[e]})),y=c.map((function(e){return n[e]})),C=d.map((function(e){return u.viewItems[e]})),w=d.map((function(e){return n[e]})),S=c.reduce((function(e,t){return e+(u.viewItems[t].minimumSize-n[t])}),0),O=c.reduce((function(e,t){return e+(u.viewItems[t].maximumSize-n[t])}),0),L=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-u.viewItems[t].minimumSize)}),0),D=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-u.viewItems[t].maximumSize)}),0),x=Math.max(S,D,r),N=Math.min(L,O,s),k=!1;if(a){var E=this.viewItems[a.index];k=(_=t>=a.limitDelta)!==E.visible,E.setVisible(_,a.size)}if(!k&&l&&(E=this.viewItems[l.index],k=(_=t<l.limitDelta)!==E.visible,E.setVisible(_,l.size)),k)return this.resize(e,t,n,i,o,r,s);for(var I=0,M=t=Object(le.a)(t,x,N);I<b.length;I++){var T=b[I];M-=(R=Object(le.a)(y[I]+M,T.minimumSize,T.maximumSize))-y[I],T.size=R}I=0;for(var P=t;I<C.length;I++){var R;T=C[I],P+=(R=Object(le.a)(w[I]-P,T.minimumSize,T.maximumSize))-w[I],T.size=R}return t},ke.prototype.distributeEmptySpace=function(e){for(var t=this,n=this.viewItems.reduce((function(e,t){return e+t.size}),0),i=this.size-n,o=Object(ue.u)(this.viewItems.length-1,-1),r=o.filter((function(e){return 1===t.viewItems[e].priority})),s=0,a=o.filter((function(e){return 2===t.viewItems[e].priority}));s<a.length;s++){var l=a[s];Object(ue.t)(o,l)}for(var u=0,c=r;u<c.length;u++)l=c[u],Object(ue.s)(o,l);"number"==typeof e&&Object(ue.s)(o,e);for(var d=0;0!==i&&d<o.length;d++){var h=this.viewItems[o[d]],p=Object(le.a)(h.size+i,h.minimumSize,h.maximumSize);i-=p-h.size,h.size=p}},ke.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);for(var e=0,t=0,n=this.viewItems;t<n.length;t++){var i=n[t];i.layout(e,this.layoutContext),e+=i.size}this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()},ke.prototype.updateSashEnablement=function(){var e=!1,t=this.viewItems.map((function(t){return e=0<t.size-t.minimumSize||e}));e=!1;var n=this.viewItems.map((function(t){return e=0<t.maximumSize-t.size||e})),i=pe(this.viewItems).reverse();e=!1;var o=i.map((function(t){return e=0<t.size-t.minimumSize||e})).reverse();e=!1;for(var r=i.map((function(t){return e=0<t.maximumSize-t.size||e})).reverse(),s=0,a=0;a<this.sashItems.length;a++){var l=this.sashItems[a].sash;s+=this.viewItems[a].size;var u=!(t[a]&&r[a+1]),c=!(n[a]&&o[a+1]);if(u&&c){var d=Object(ue.u)(a,-1),h=Object(ue.u)(a+1,this.viewItems.length),p=this.findFirstSnapIndex(d),f=this.findFirstSnapIndex(h),g="number"==typeof p&&!this.viewItems[p].visible,m="number"==typeof f&&!this.viewItems[f].visible;g&&o[a]&&(0<s||this.startSnappingEnabled)?l.state=1:m&&t[a]&&(s<this.contentSize||this.endSnappingEnabled)?l.state=2:l.state=0}else l.state=u&&!c?1:!u&&c?2:3}},ke.prototype.getSashPosition=function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return Math.min(t,this.contentSize-2);return 0},ke.prototype.findFirstSnapIndex=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];if((s=this.viewItems[i]).visible&&s.snap)return i}for(var o=0,r=e;o<r.length;o++){var s;if(i=r[o],(s=this.viewItems[i]).visible&&0<s.maximumSize-s.minimumSize)return;if(!s.visible&&s.snap)return i}},ke.prototype.dispose=function(){xe.prototype.dispose.call(this),this.viewItems.forEach((function(e){return e.dispose()})),this.viewItems=[],this.sashItems.forEach((function(e){return e.disposable.dispose()})),this.sashItems=[]},ke);function ke(e,t){void 0===t&&(t={});var n=xe.call(this)||this;return n.size=0,n.contentSize=0,n.proportions=void 0,n.viewItems=[],n.sashItems=[],n.state=Ce.Idle,n._onDidSashChange=n._register(new f.a),n.onDidSashChange=n._onDidSashChange.event,n._onDidSashReset=n._register(new f.a),n._startSnappingEnabled=!0,n._endSnappingEnabled=!0,n.orientation=ae.k(t.orientation)?0:t.orientation,n.inverseAltBehavior=!!t.inverseAltBehavior,n.proportionalLayout=!!ae.k(t.proportionalLayout)||!!t.proportionalLayout,n.el=document.createElement("div"),h.f(n.el,"monaco-split-view2"),h.f(n.el,0===n.orientation?"vertical":"horizontal"),e.appendChild(n.el),n.sashContainer=h.q(n.el,h.a(".sash-container")),n.viewContainer=h.q(n.el,h.a(".split-view-container")),n.style(t.styles||fe),t.descriptor&&(n.size=t.descriptor.size,t.descriptor.views.forEach((function(e,t){var i=ae.k(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},o=e.view;n.doAddView(o,i,t,!0)})),n.contentSize=n.viewItems.reduce((function(e,t){return e+t.size}),0),n.saveProportions()),n}var Ee,Ie=(Ee=function(e,t){return(Ee=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}Ee(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Me=function(e,t){return function(n,i){t(n,i,e)}},Te=(Pe.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},Pe.prototype._onModelChanged=function(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e)for(var t=0,n=this._model.groups;t<n.length;t++){var i=n[t];if(Object(m.e)(i.uri,e.uri))return void this._addDecorations(i)}},Pe.prototype._addDecorations=function(e){var t=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((function(e){return t._onDecorationChanged()})));for(var n=[],i=[],o=0,r=e.children.length;o<r;o++){var s=e.children[o];this._decorationIgnoreSet.has(s.id)||(n.push({range:s.range,options:Pe.DecorationOptions}),i.push(o))}var a=this._editor.deltaDecorations([],n);for(o=0;o<a.length;o++)this._decorations.set(a[o],e.children[i[o]])}},Pe.prototype._onDecorationChanged=function(){var e=this,t=[],n=this._editor.getModel();if(n){this._decorations.forEach((function(i,o){var r=n.getDecorationRange(o);if(r){var s=!1;_.a.equalsRange(r,i.range)||(!_.a.spansMultipleLines(r)&&i.range.endColumn-i.range.startColumn==r.endColumn-r.startColumn||(s=!0),s?(e._decorationIgnoreSet.add(i.id),t.push(o)):i.range=r)}}));for(var i=0,o=t.length;i<o;i++)this._decorations.delete(t[i]);this._editor.deltaDecorations(t,[])}},Pe.prototype.removeDecorations=function(){var e=[];this._decorations.forEach((function(t,n){e.push(n)})),this._editor.deltaDecorations(e,[]),this._decorations.clear()},Pe.DecorationOptions=b.a.register({stickiness:1,className:"reference-decoration"}),Pe);function Pe(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new r.b,this._callOnModelChange=new r.b,this._callOnDispose.add(this._editor.onDidChangeModel((function(){return n._onModelChanged()}))),this._onModelChanged()}var Re=(Ae.fromJSON=function(e){var t,n;try{var i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:n||18}},Ae);function Ae(){this.ratio=.7,this.heightInLines=18}var Fe,je=(Ie(We,Fe=se.c),We.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(r.f)(this._preview),Object(r.f)(this._previewNotAvailableMessage),Object(r.f)(this._tree),Object(r.f)(this._previewModelReference),this._splitView.dispose(),Fe.prototype.dispose.call(this)},We.prototype._applyTheme=function(e){var t=e.getColor(se.e)||p.a.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(se.p)||p.a.transparent,primaryHeadingColor:e.getColor(se.q),secondaryHeadingColor:e.getColor(se.r)})},We.prototype.show=function(e){this.editor.revealRangeInCenterIfOutsideViewport(e,0),Fe.prototype.show.call(this,e,this.layoutData.heightInLines||18)},We.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},We.prototype.focusOnPreviewEditor=function(){this._preview.focus()},We.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},We.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"})},We.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=h.q(e,h.a("div.messages")),h.J(this._messageContainer),this._splitView=new Ne(e,{orientation:1}),this._previewContainer=h.q(e,h.a("div.preview.inline")),this._preview=this._instantiationService.createInstance(v.a,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),h.J(this._previewContainer),this._previewNotAvailableMessage=b.b.createFromString(i.a("missingPreviewMessage","no preview available")),this._treeContainer=h.q(e,h.a("div.ref-tree.inline"));var n={ariaLabel:i.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new te,keyboardNavigationLabelProvider:this._instantiationService.createInstance(H),identityProvider:new U,overrideStyles:{listBackground:se.j}};function o(e,n){e instanceof d.b&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))}this._tree=this._instantiationService.createInstance(oe.c,"ReferencesWidget",this._treeContainer,new V,[this._instantiationService.createInstance(Z),this._instantiationService.createInstance(Q)],this._instantiationService.createInstance(j),n),this._splitView.addView({onDidChange:f.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},Se.Distribute),this._splitView.addView({onDidChange:f.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(e){t._treeContainer.style.height=t._dim.height+"px",t._treeContainer.style.width=e+"px",t._tree.layout(t._dim.height,e)}},Se.Distribute),this._disposables.add(this._splitView.onDidSashChange((function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)}),void 0)),this._tree.onDidChangeFocus((function(e){o(e.elements[0],"show")})),this._tree.onDidOpen((function(e){e.browserEvent instanceof MouseEvent&&(e.browserEvent.ctrlKey||e.browserEvent.metaKey||e.browserEvent.altKey)?o(e.elements[0],"side"):e.browserEvent instanceof KeyboardEvent||e.browserEvent instanceof MouseEvent&&2===e.browserEvent.detail||2===e.browserEvent.tapCount?o(e.elements[0],"goto"):o(e.elements[0],"show")})),h.J(this._treeContainer)},We.prototype._onWidth=function(e){this._dim&&this._doLayoutBody(this._dim.height,e)},We.prototype._doLayoutBody=function(e,t){Fe.prototype._doLayoutBody.call(this,e,t),this._dim={height:e,width:t},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)},We.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then((function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))}))},We.prototype.setModel=function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()},We.prototype._onNewModel=function(){var e=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=i.a("noResults","No results"),h.X(this._messageContainer),Promise.resolve(void 0)):(h.J(this._messageContainer),this._decorationsManager=new Te(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((function(t){return e._tree.rerender(t)}))),this._disposeOnNewModel.add(this._preview.onMouseDown((function(t){var n=t.event,i=t.target;if(2===n.detail){var o=e._getFocusedReference();o&&e._onDidSelectReference.fire({element:{uri:o.uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}}))),h.f(this.container,"results-loaded"),h.X(this._treeContainer),h.X(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)},We.prototype._getFocusedReference=function(){var e=this._tree.getFocus()[0];return e instanceof d.b?e:e instanceof d.a&&0<e.children.length?e.children[0]:void 0},We.prototype._revealReference=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,o,s,a,l;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(u){switch(u.label){case 0:return this._revealedReference===e?[2]:((this._revealedReference=e).uri.scheme!==g.b.inMemory?this.setTitle(Object(m.c)(e.uri),this._uriLabel.getUriLabel(Object(m.d)(e.uri))):this.setTitle(i.a("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent?[3,1]:(this._tree.reveal(e),[3,3]));case 1:return t&&this._tree.reveal(e.parent),[4,this._tree.expand(e.parent)];case 2:u.sent(),this._tree.reveal(e),u.label=3;case 3:return[4,n];case 4:return o=u.sent(),this._model?(Object(r.f)(this._previewModelReference),(s=o.object)?(a=this._preview.getModel()===s.textEditorModel?0:1,l=_.a.lift(e.range).collapseToStart(),this._previewModelReference=o,this._preview.setModel(s.textEditorModel),this._preview.setSelection(l),this._preview.revealRangeInCenter(l,a)):(this._preview.setModel(this._previewNotAvailableMessage),o.dispose())):o.dispose(),[2]}}))}))},We=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Me(3,k.c),Me(4,y.a),Me(5,a.a),Me(6,se.a),Me(7,N.a)],We));function We(e,t,n,i,o,s,a,l){var u=Fe.call(this,e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return u._defaultTreeKeyboardSupport=t,u.layoutData=n,u._textModelResolverService=o,u._instantiationService=s,u._peekViewService=a,u._uriLabel=l,u._disposeOnNewModel=new r.b,u._callOnDispose=new r.b,u._onDidSelectReference=new f.a,u.onDidSelectReference=u._onDidSelectReference.event,u._dim={height:0,width:0},u._applyTheme(i.getTheme()),u._callOnDispose.add(i.onThemeChange(u._applyTheme.bind(u))),u._peekViewService.addExclusiveWidget(e,u),u.create(),u}Object(k.e)((function(e,t){var n=e.getColor(se.m);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+n+"; }");var i=e.getColor(se.h);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor(se.i);o&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }");var r=e.getColor(re.b);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+r+"; box-sizing: border-box; }");var s=e.getColor(se.j);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+s+"; }");var a=e.getColor(se.l);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+a+"; }");var l=e.getColor(se.k);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+l+"; }");var u=e.getColor(se.n);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+u+"; }");var c=e.getColor(se.o);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(se.f);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(se.g);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")}));var Ve=n(450),Be=n(532),He=n(453),ze=n(788),Ue=n(548),Ke=n(489);n.d(t,"a",(function(){return Ye}));var qe=function(e,t){return function(n,i){t(n,i,e)}},Ge=new l.d("referenceSearchVisible",!1),Ye=(Ze.get=function(e){return e.getContribution(Ze.ID)},Ze.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(r.f)(this._widget),Object(r.f)(this._model),this._widget=void 0,this._model=void 0},Ze.prototype.toggleWidget=function(e,t,n){var o,r=this;if(this._widget&&(o=this._widget.position),this.closeWidget(),!o||!e.containsPosition(o)){this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((function(){r.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((function(){r._ignoreModelChangeEvent||r.closeWidget()})));var s="peekViewLayout",a=Re.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(je,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(i.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((function(){t.cancel(),r._widget&&(r._storageService.store(s,JSON.stringify(r._widget.layoutData),0),r._widget=void 0),r.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((function(e){var t=e.element,i=e.kind;if(t)switch(i){case"open":"editor"===e.source&&r._configurationService.getValue("editor.stablePeek")||r.openReference(t,!1);break;case"side":r.openReference(t,!0);break;case"goto":n?r._gotoReference(t):r.openReference(t,!1)}})));var l=++this._requestIdPool;t.then((function(t){if(l===r._requestIdPool&&r._widget)return r._model&&r._model.dispose(),r._model=t,r._widget.setModel(r._model).then((function(){if(r._widget&&r._model&&r._editor.hasModel()){r._model.isEmpty?r._widget.setMetaTitle(""):r._widget.setMetaTitle(i.a("metaTitle.N","{0} ({1})",r._model.title,r._model.references.length));var t=r._editor.getModel().uri,n=new Ve.a(e.startLineNumber,e.startColumn),o=r._model.nearestReference(t,n);if(o)return r._widget.setSelection(o).then((function(){r._widget&&"editor"===r._editor.getOption(65)&&r._widget.focusOnPreviewEditor()}))}}))}),(function(e){r._notificationService.error(e)}))}},Ze.prototype.changeFocusBetweenPreviewAndReferences=function(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())},Ze.prototype.goToNextOrPreviousReference=function(e){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,n,i,o,r;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(s){switch(s.label){case 0:return this._editor.hasModel()&&this._model&&this._widget&&(t=this._widget.position)&&(n=this._model.nearestReference(this._editor.getModel().uri,t))?(i=this._model.nextOrPreviousReference(n,e),o=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(i)]):[2];case 1:return s.sent(),[4,this._gotoReference(i)];case 2:return s.sent(),o?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor(),[2]}}))}))},Ze.prototype.closeWidget=function(e){void 0===e&&(e=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(r.f)(this._widget),Object(r.f)(this._model),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1},Ze.prototype._gotoReference=function(e){var t=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=_.a.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n}},this._editor).then((function(e){var i;if(t._ignoreModelChangeEvent=!1,e&&t._widget)if(t._editor===e)t._widget.show(n),t._widget.focusOnReferenceTree();else{var o=Ze.get(e),r=t._model.clone();t.closeWidget(),e.focus(),o.toggleWidget(n,Object(He.f)((function(e){return Promise.resolve(r)})),null!==(i=t._peekMode)&&void 0!==i&&i)}else t.closeWidget()}),(function(e){t._ignoreModelChangeEvent=!1,Object(o.e)(e)}))},Ze.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)},Ze.ID="editor.contrib.referencesController",Ze=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([qe(2,l.c),qe(3,s.a),qe(4,Be.a),qe(5,a.a),qe(6,c.a),qe(7,u.a)],Ze));function Ze(e,t,n,i,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new r.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Ge.bindTo(n)}function Xe(e,t){var n=Object(se.d)(e);if(n){var i=Ye.get(n);i&&t(i)}}ze.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(Ue.a)(2089,60),when:l.a.or(Ge,se.b.inPeekEditor),handler:function(e){Xe(e,(function(e){e.changeFocusBetweenPreviewAndReferences()}))}}),ze.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:l.a.or(Ge,se.b.inPeekEditor),handler:function(e){Xe(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),ze.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:l.a.or(Ge,se.b.inPeekEditor),handler:function(e){Xe(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),Ke.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Ke.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Ke.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Ke.a.registerCommand("closeReferenceSearch",(function(e){return Xe(e,(function(e){return e.closeWidget()}))})),ze.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:l.a.and(se.b.inPeekEditor,l.a.not("config.editor.stablePeek"))}),ze.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:l.a.and(Ge,l.a.not("config.editor.stablePeek"))}),ze.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:l.a.and(Ge,oe.d),handler:function(e){var t,n=null===(t=e.get(oe.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof d.b&&Xe(e,(function(e){return e.openReference(n[0],!0)}))}}),Ke.a.registerCommand("openReference",(function(e){var t,n=null===(t=e.get(oe.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof d.b&&Xe(e,(function(e){return e.openReference(n[0],!1)}))}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processSize=function(e){return/^\d+$/.test(e)?"".concat(e,"px"):e},t.noop=function(){}},,,,,,,,,function(e,t,n){"use strict";n.r(t),n(1318);var i,o,r=n(478),s=n(443),a=n(488),l=n(943),u=n(635),c=n(597),d=n(439),h=n(452),p=n(444),f=n(479),g=n(449),m=n(469),v=n(1003),_=n(456),b=n(448),y=n(531),C=n(636),w=n(461),S=n(451),O=n(754),L=(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)}),D=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}},N=new _.d("accessibilityHelpWidgetVisible",!1),k=(L(E,o=d.a),E.get=function(e){return e.getContribution(E.ID)},E.prototype.show=function(){this._widget.show()},E.prototype.hide=function(){this._widget.hide()},E.ID="editor.contrib.accessibilityHelpController",E=D([x(1,b.a)],E));function E(e,t){var n=o.call(this)||this;return n._editor=e,n._widget=n._register(t.createInstance(M,n._editor)),n}var I,M=(L(T,I=c.a),T.prototype.dispose=function(){this._editor.removeOverlayWidget(this),I.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?p.r(t,i.getAriaLabel()):p.r(n,e)},T.prototype._buildContent=function(){var e=this._editor.getOptions(),t=this._editor.getSelections(),n=0;if(t){var i=this._editor.getModel();i&&t.forEach((function(e){n+=i.getValueLengthInRange(e)}))}var o,r,s=(r=n,(o=t)&&0!==o.length?1===o.length?r?p.r(O.a.singleSelectionRange,o[0].positionLineNumber,o[0].positionColumn,r):p.r(O.a.singleSelection,o[0].positionLineNumber,o[0].positionColumn):r?p.r(O.a.multiSelectionRange,o.length,r):0<o.length?p.r(O.a.multiSelection,o.length):"":O.a.noSelection);e.get(45)?e.get(68)?s+=O.a.readonlyDiffEditor:s+=O.a.editableDiffEditor:e.get(68)?s+=O.a.readonlyEditor:s+=O.a.editableEditor;var a=h.e?O.a.changeConfigToOnMac:O.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:s+="\n\n - "+a;break;case 2:s+="\n\n - "+O.a.auto_on;break;case 1:s+="\n\n - "+O.a.auto_off,s+=" "+a}e.get(106)?s+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,O.a.tabFocusModeOnMsg,O.a.tabFocusModeOnMsgNoKb):s+="\n\n - "+this._descriptionForCommand(v.ToggleTabFocusModeAction.ID,O.a.tabFocusModeOffMsg,O.a.tabFocusModeOffMsgNoKb),s+="\n\n - "+(h.e?O.a.openDocMac:O.a.openDocWinLinux),s+="\n\n"+O.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(l.b)(s)),this._contentDomNode.domNode.setAttribute("aria-label",s)},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,s.t(this._contentDomNode.domNode),this._editor.focus())},T.prototype._layout=function(){var e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(T.WIDTH,e.width-40)),n=Math.max(5,Math.min(T.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(n);var i=Math.round((e.height-n)/2);this._domNode.setTop(i);var o=Math.round((e.width-t)/2);this._domNode.setLeft(o)},T.ID="editor.contrib.accessibilityHelpWidget",T.WIDTH=500,T.HEIGHT=300,T=D([x(1,_.c),x(2,y.a),x(3,C.a)],T));function T(e,t,n,i){var o=I.call(this)||this;return o._contextKeyService=t,o._keybindingService=n,o._openerService=i,o._editor=e,o._isVisibleKey=N.bindTo(o._contextKeyService),o._domNode=Object(a.b)(document.createElement("div")),o._domNode.setClassName("accessibilityHelpWidget"),o._domNode.setDisplay("none"),o._domNode.setAttribute("role","dialog"),o._domNode.setAttribute("aria-hidden","true"),o._contentDomNode=Object(a.b)(document.createElement("div")),o._contentDomNode.setAttribute("role","document"),o._domNode.appendChild(o._contentDomNode),o._isVisible=!1,o._register(o._editor.onDidLayoutChange((function(){o._isVisible&&o._layout()}))),o._register(s.o(o._contentDomNode.domNode,"keydown",(function(e){if(o._isVisible&&(e.equals(2083)&&(Object(u.a)(O.a.emergencyConfOn),o._editor.updateOptions({accessibilitySupport:"on"}),s.t(o._contentDomNode.domNode),o._buildContent(),o._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(u.a)(O.a.openingDocs);var t=o._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),o._openerService.open(f.a.parse(t)),e.preventDefault(),e.stopPropagation()}}))),o.onblur(o._contentDomNode.domNode,(function(){o.hide()})),o._editor.addOverlayWidget(o),o}var P,R=(L(A,P=g.b),A.prototype.run=function(e,t){var n=k.get(t);n&&n.show()},A);function A(){return P.call(this,{id:"editor.action.showAccessibilityHelp",label:O.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:m.a.focus,primary:r.i?2107:571,weight:100}})||this}Object(g.h)(k.ID,k),Object(g.f)(R);var F=g.c.bindToContribution(k.get);Object(g.g)(new F({id:"closeAccessibilityHelp",precondition:N,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:m.a.focus,primary:9,secondary:[1033]}})),Object(S.e)((function(e,t){var n=e.getColor(w.Q);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(w.S);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: "+i+"; }");var o=e.getColor(w.hc);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(w.e);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+r+"; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",(function(){return N})),n(1320);var i,o,r=n(445),s=n(453),a=n(439),l=n(449),u=n(450),c=n(440),d=n(466),h=n(469),p=n(599),f=n(495),g=n(572),m=n(461),v=n(451),_=n(755),b=(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)}),y=Object(m.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},r.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),C=(b(w,o=l.b),w.prototype.run=function(e,t){var n=N.get(t);n&&n.jumpToBracket()},w);function w(){return o.call(this,{id:"editor.action.jumpToBracket",label:r.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:h.a.editorTextFocus,primary:3160,weight:100}})||this}var S,O=(b(L,S=l.b),L.prototype.run=function(e,t,n){var i=N.get(t);if(i){var o=!0;n&&!1===n.selectBrackets&&(o=!1),i.selectToBracket(o)}},L);function L(){return S.call(this,{id:"editor.action.selectToBracket",label:r.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}var D,x=function(e,t,n){this.position=e,this.brackets=t,this.options=n},N=(b(k,D=a.a),k.get=function(e){return e.getContribution(k.ID)},k.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.findEnclosingBrackets(n);if(r)o=r[0].getStartPosition();else{var s=e.findNextBracket(n);s&&s.range&&(o=s.range.getStartPosition())}}return o?new d.a(o.lineNumber,o.column,o.lineNumber,o.column):new d.a(n.lineNumber,n.column,n.lineNumber,n.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}},k.prototype.selectToBracket=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=[];this._editor.getSelections().forEach((function(i){var o=i.getStartPosition(),r=t.matchBracket(o);if(!r&&!(r=t.findEnclosingBrackets(o))){var s=t.findNextBracket(o);s&&s.range&&(r=t.matchBracket(s.range.getStartPosition()))}var a=null,l=null;if(r){r.sort(c.a.compareRangesUsingStarts);var u=r[0],h=r[1];a=e?u.getStartPosition():u.getEndPosition(),l=e?h.getEndPosition():h.getStartPosition()}a&&l&&n.push(new d.a(a.lineNumber,a.column,l.lineNumber,l.column))})),0<n.length&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}},k.prototype._updateBrackets=function(){if("never"!==this._matchBrackets){this._recomputeBrackets();for(var e=[],t=0,n=0,i=this._lastBracketsData;n<i.length;n++){var o=i[n],r=o.brackets;r&&(e[t++]={range:r[0],options:o.options},e[t++]={range:r[1],options:o.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}},k.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getSelections();if(100<e.length)return this._lastBracketsData=[],void(this._lastVersionId=0);var t=this._editor.getModel(),n=t.getVersionId(),i=[];this._lastVersionId===n&&(i=this._lastBracketsData);for(var o=[],r=0,s=0,a=e.length;s<a;s++){var l=e[s];l.isEmpty()&&(o[r++]=l.getStartPosition())}1<o.length&&o.sort(u.a.compare);var c=[],d=0,h=0,p=i.length;for(s=0,a=o.length;s<a;s++){for(var f=o[s];h<p&&i[h].position.isBefore(f);)h++;if(h<p&&i[h].position.equals(f))c[d++]=i[h];else{var g=t.matchBracket(f),m=k._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;g||"always"!==this._matchBrackets||(g=t.findEnclosingBrackets(f,20),m=k._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),c[d++]=new x(f,g,m)}}this._lastBracketsData=c,this._lastVersionId=n},k.ID="editor.contrib.bracketMatchingController",k._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=f.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(v.f)(y),position:p.d.Center}}),k._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=f.a.register({stickiness:1,className:"bracket-match"}),k);function k(e){var t=D.call(this)||this;return t._editor=e,t._lastBracketsData=[],t._lastVersionId=0,t._decorations=[],t._updateBracketsSoon=t._register(new s.d((function(){return t._updateBrackets()}),50)),t._matchBrackets=t._editor.getOption(53),t._updateBracketsSoon.schedule(),t._register(e.onDidChangeCursorPosition((function(e){"never"!==t._matchBrackets&&t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModelContent((function(e){t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModel((function(e){t._lastBracketsData=[],t._decorations=[],t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeModelLanguageConfiguration((function(e){t._lastBracketsData=[],t._updateBracketsSoon.schedule()}))),t._register(e.onDidChangeConfiguration((function(e){e.hasChanged(53)&&(t._matchBrackets=t._editor.getOption(53),t._decorations=t._editor.deltaDecorations(t._decorations,[]),t._lastBracketsData=[],t._lastVersionId=0,t._updateBracketsSoon.schedule())}))),t}Object(l.h)(N.ID,N),Object(l.f)(O),Object(l.f)(C),Object(v.e)((function(e,t){var n=e.getColor(g.c);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var i=e.getColor(g.d);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+i+"; }")})),_.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:r.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},function(e,t,n){"use strict";n.r(t),n(1322);var i,o,r=n(445),s=n(478),a=n(452),l=n(1077),u=n(449),c=n(504),d=n(469),h=(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)}),p="9_cutcopypaste",f=a.f||document.queryCommandSupported("cut"),g=a.f||document.queryCommandSupported("copy"),m=g&&!s.f,v=a.f||!s.d&&document.queryCommandSupported("paste"),_=(h(b,o=u.b),b.prototype.runCommand=function(e,t){var n=e.get(c.a).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},b.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},b);function b(e,t){var n=o.call(this,t)||this;return n.browserCommand=e,n}var y,C=(h(w,y=_),w.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||y.prototype.run.call(this,e,t))},w);function w(){var e={kbExpr:d.a.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return a.f||(e=void 0),y.call(this,"cut",{id:"editor.action.clipboardCutAction",label:r.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:d.a.writable,kbOpts:e,contextMenuOpts:{group:p,order:1},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this}var S,O=(h(L,S=_),L.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||S.prototype.run.call(this,e,t))},L);function L(){var e={kbExpr:d.a.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return a.f||(e=void 0),S.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:r.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:e,contextMenuOpts:{group:p,order:2},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this}var D,x=(h(N,D=_),N);function N(){var e={kbExpr:d.a.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return a.f||(e=void 0),D.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:r.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:d.a.writable,kbOpts:e,contextMenuOpts:{group:p,order:3},menuOpts:{menuId:17,group:"2_ccp",title:r.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this}var k,E=(h(I,k=_),I.prototype.run=function(e,t){t.hasModel()&&(!t.getOption(25)&&t.getSelection().isEmpty()||(l.a.forceCopyWithSyntaxHighlighting=!0,k.prototype.run.call(this,e,t),l.a.forceCopyWithSyntaxHighlighting=!1))},I);function I(){return k.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:r.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.a.textInputFocus,primary:0,weight:100}})||this}f&&Object(u.f)(C),g&&Object(u.f)(O),v&&Object(u.f)(x),m&&Object(u.f)(E)},function(e,t,n){"use strict";n.r(t);var i=n(449),o=n(1116);Object(i.h)(o.f.ID,o.f),Object(i.f)(o.e),Object(i.f)(o.g),Object(i.f)(o.h),Object(i.f)(o.d),Object(i.f)(o.a),Object(i.f)(o.c),Object(i.g)(new o.b)},function(e,t,n){"use strict";n.r(t),n.d(t,"CursorUndoRedoController",(function(){return p})),n.d(t,"CursorUndo",(function(){return m})),n.d(t,"CursorRedo",(function(){return b}));var i,o=n(445),r=n(439),s=n(449),a=n(469),l=(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)}),u=(c.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},c);function c(e){this.selections=e}var d,h=function(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n},p=(l(f,d=r.a),f.get=function(e){return e.getContribution(f.ID)},f.prototype.cursorUndo=function(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new h(new u(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))},f.prototype.cursorRedo=function(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new h(new u(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))},f.prototype._applyState=function(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1},f.ID="editor.contrib.cursorUndoRedoController",f);function f(e){var t=d.call(this)||this;return t._editor=e,t._isCursorUndoRedo=!1,t._undoStack=[],t._redoStack=[],t._register(e.onDidChangeModel((function(e){t._undoStack=[],t._redoStack=[]}))),t._register(e.onDidChangeModelContent((function(e){t._undoStack=[],t._redoStack=[]}))),t._register(e.onDidChangeCursorSelection((function(n){if(!t._isCursorUndoRedo&&n.oldSelections&&n.oldModelVersionId===n.modelVersionId){var i=new u(n.oldSelections);0<t._undoStack.length&&t._undoStack[t._undoStack.length-1].cursorState.equals(i)||(t._undoStack.push(new h(i,e.getScrollTop(),e.getScrollLeft())),t._redoStack=[],50<t._undoStack.length&&t._undoStack.shift())}}))),t}var g,m=(l(v,g=s.b),v.prototype.run=function(e,t,n){p.get(t).cursorUndo()},v);function v(){return g.call(this,{id:"cursorUndo",label:o.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:a.a.textInputFocus,primary:2099,weight:100}})||this}var _,b=(l(y,_=s.b),y.prototype.run=function(e,t,n){p.get(t).cursorRedo()},y);function y(){return _.call(this,{id:"cursorRedo",label:o.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}Object(s.h)(p.ID,p),Object(s.f)(m),Object(s.f)(b)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(445),s=n(449),a=n(883),l=(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)}),u=(l(c,o=s.b),c.prototype.run=function(e,t){a.a.setZoomLevel(a.a.getZoomLevel()+1)},c);function c(){return o.call(this,{id:"editor.action.fontZoomIn",label:r.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}var d,h=(l(p,d=s.b),p.prototype.run=function(e,t){a.a.setZoomLevel(a.a.getZoomLevel()-1)},p);function p(){return d.call(this,{id:"editor.action.fontZoomOut",label:r.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}var f,g=(l(m,f=s.b),m.prototype.run=function(e,t){a.a.setZoomLevel(0)},m);function m(){return f.call(this,{id:"editor.action.fontZoomReset",label:r.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}Object(s.f)(u),Object(s.f)(h),Object(s.f)(g)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",(function(){return g})),n.d(t,"GotoLineAction",(function(){return _})),n(1354);var i,o,r=n(444),s=n(975),a=n(892),l=n(449),u=n(450),c=n(440),d=n(469),h=n(968),p=n(754),f=(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)}),g=(f(m,o=s.a),m.prototype.parseInput=function(e){var t,n,i=e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}));if(t=0===i.length?new u.a(-1,-1):1===i.length?new u.a(i[0],1):new u.a(i[0],i[1]),Object(a.a)(this.editor))n=this.editor.getModel();else{var o=this.editor.getModel();n=o?o.modified:null}var s=!!n&&n.validatePosition(t).equals(t);return{position:t,isValid:s,label:s?t.column&&1<t.column?r.r(p.b.gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):r.r(p.b.gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?r.r(p.b.gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):r.r(p.b.gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0)}},m.prototype.getLabel=function(){return this.parseResult.label},m.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return r.r(p.b.gotoLineAriaLabel,t,this.parseResult.label)},m.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},m.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},m.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},m.prototype.toSelection=function(){return new c.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},m);function m(e,t,n){var i=o.call(this)||this;return i.editor=t,i.decorator=n,i.parseResult=i.parseInput(e),i}var v,_=(f(b,v=h.a),b.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new s.c([new g(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:0<e.length}}})},b);function b(){return v.call(this,p.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:p.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:2085,mac:{primary:293},weight:100}})||this}Object(l.f)(_)},function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",(function(){return c})),n(1369);var i,o,r=n(478),s=n(443),a=n(439),l=n(449),u=(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)}),c=(u(d,o=a.a),d.prototype.update=function(){var e=!this.editor.getOption(68);!this.widget&&e?this.widget=new p(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)},d.prototype.dispose=function(){o.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},d.ID="editor.contrib.iPadShowKeyboard",d);function d(e){var t=o.call(this)||this;return t.editor=e,t.widget=null,r.j&&(t._register(e.onDidChangeConfiguration((function(){return t.update()}))),t.update()),t}var h,p=(u(f,h=a.a),f.prototype.dispose=function(){this.editor.removeOverlayWidget(this),h.prototype.dispose.call(this)},f.prototype.getId=function(){return f.ID},f.prototype.getDomNode=function(){return this._domNode},f.prototype.getPosition=function(){return{preference:1}},f.ID="editor.contrib.ShowKeyboardWidget",f);function f(e){var t=h.call(this)||this;return t.editor=e,t._domNode=document.createElement("textarea"),t._domNode.className="iPadShowKeyboard",t._register(s.j(t._domNode,"touchstart",(function(e){t.editor.focus()}))),t._register(s.j(t._domNode,"focus",(function(e){t.editor.focus()}))),t.editor.addOverlayWidget(t),t}Object(l.h)(c.ID,c)},function(e,t,n){"use strict";n.r(t),n(1370);var i,o,r=n(490),s=n(439),a=n(444),l=n(449),u=n(454),c=n(756),d=n(778),h=n(827),p=n(461),f=n(451),g=n(754),m=(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)}),v=function(e,t){return function(n,i){t(n,i,e)}},_=(m(b,o=s.a),b.get=function(e){return e.getContribution(b.ID)},b.prototype.dispose=function(){this.stop(),o.prototype.dispose.call(this)},b.prototype.launch=function(){this._widget||this._editor.hasModel()&&(this._widget=new O(this._editor,this._modeService))},b.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},b.ID="editor.contrib.inspectTokens",b=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([v(1,h.a),v(2,d.a)],b));function b(e,t,n){var i=o.call(this)||this;return i._editor=e,i._modeService=n,i._widget=null,i._register(i._editor.onDidChangeModel((function(e){return i.stop()}))),i._register(i._editor.onDidChangeModelLanguage((function(e){return i.stop()}))),i._register(u.B.onDidChange((function(e){return i.stop()}))),i}var y,C=(m(w,y=l.b),w.prototype.run=function(e,t){var n=_.get(t);n&&n.launch()},w);function w(){return y.call(this,{id:"editor.action.inspectTokens",label:g.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}var S,O=(m(L,S=s.a),L.prototype.dispose=function(){this._editor.removeContentWidget(this),S.prototype.dispose.call(this)},L.prototype.getId=function(){return L._ID},L.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;0<=i;i--){var o=t.tokens1[i];if(e.column-1>=o.offset){n=i;break}}var s=0;for(i=t.tokens2.length>>>1;0<=i;i--)if(e.column-1>=t.tokens2[i<<1]){s=i;break}var l="",u=this._model.getLineContent(e.lineNumber),c="";if(n<t.tokens1.length){var d=t.tokens1[n].offset,h=n+1<t.tokens1.length?t.tokens1[n+1].offset:u.length;c=u.substring(d,h)}l+='<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}(c)+'<span class="tm-token-length">('+c.length+" "+(1===c.length?"char":"chars")+")</span></h2>",l+='<hr class="tokens-inspect-separator" style="clear:both"/>';var p=this._decodeMetadata(t.tokens2[1+(s<<1)]);l+='<table class="tm-metadata-table"><tbody>',l+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(a.o)(p.languageIdentifier.language)+"</td>",l+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(p.tokenType)+"</td>",l+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(p.fontStyle)+"</td>",l+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+r.a.Format.CSS.formatHex(p.foreground)+"</td>",l+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+r.a.Format.CSS.formatHex(p.background)+"</td>",l+="</tbody></table>",l+='<hr class="tokens-inspect-separator"/>',n<t.tokens1.length&&(l+='<span class="tm-token-type">'+Object(a.o)(t.tokens1[n].type)+"</span>"),this._domNode.innerHTML=l,this._editor.layoutContentWidget(this)},L.prototype._decodeMetadata=function(e){var t=u.B.getColorMap(),n=u.A.getLanguageId(e),i=u.A.getTokenType(e),o=u.A.getFontStyle(e),r=u.A.getForeground(e),s=u.A.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},L.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},L.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},L.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}},L.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},L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},L._ID="editor.contrib.inspectTokensWidget",L);function L(e,t){var n,i=S.call(this)||this;return i.allowEditorOverflow=!0,i._editor=e,i._modeService=t,i._model=i._editor.getModel(),i._domNode=document.createElement("div"),i._domNode.className="tokens-inspect-widget",i._tokenizationSupport=(n=i._model.getLanguageIdentifier(),u.B.get(n.language)||{getInitialState:function(){return c.c},tokenize:function(e,t,i){return Object(c.d)(n.language,e,t,i)},tokenize2:function(e,t,i){return Object(c.e)(n.id,e,t,i)}}),i._compute(i._editor.getPosition()),i._register(i._editor.onDidChangeCursorPosition((function(e){return i._compute(i._editor.getPosition())}))),i._editor.addContentWidget(i),i}Object(l.h)(_.ID,_),Object(l.f)(C),Object(f.e)((function(e,t){var n=e.getColor(p.B);if(n){var i=e.type===f.b?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.A);o&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+o+"; }");var r=e.getColor(p.C);r&&t.addRule(".monaco-editor .tokens-inspect-widget { color: "+r+"; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"InsertCursorAbove",(function(){return w})),n.d(t,"InsertCursorBelow",(function(){return L})),n.d(t,"MultiCursorSessionResult",(function(){return A})),n.d(t,"MultiCursorSession",(function(){return F})),n.d(t,"MultiCursorSelectionController",(function(){return V})),n.d(t,"MultiCursorSelectionControllerAction",(function(){return z})),n.d(t,"AddSelectionToNextFindMatchAction",(function(){return q})),n.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return Z})),n.d(t,"MoveSelectionToNextFindMatchAction",(function(){return J})),n.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return te})),n.d(t,"SelectHighlightsAction",(function(){return oe})),n.d(t,"CompatChangeAll",(function(){return ae})),n.d(t,"SelectionHighlighter",(function(){return he}));var i,o,r=n(445),s=n(453),a=n(548),l=n(439),u=n(449),c=n(1084),d=n(440),h=n(466),p=n(469),f=n(599),g=n(495),m=n(454),v=n(1051),_=n(461),b=n(451),y=n(456),C=(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)}),w=(C(S,o=u.b),S.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,c.b.addCursorUp(r,o.getAll(),i)),o.reveal(n.source,!0,1,0))}},S);function S(){return o.call(this,{id:"editor.action.insertCursorAbove",label:r.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}var O,L=(C(D,O=u.b),D.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,c.b.addCursorDown(r,o.getAll(),i)),o.reveal(n.source,!0,2,0))}},D);function D(){return O.call(this,{id:"editor.action.insertCursorBelow",label:r.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}var x,N=(C(k,x=u.b),k.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 h.a(i,o,i,o))}1<e.endColumn&&n.push(new h.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},k.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel(),o=t.getSelections(),r=[];o.forEach((function(e){return n.getCursorsForSelection(e,i,r)})),0<r.length&&t.setSelections(r)}},k);function k(){return x.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:r.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}var E,I=(C(M,E=u.b),M.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=t.getModel().getLineCount(),o=[],r=n[0].startLineNumber;r<=i;r++)o.push(new h.a(r,n[0].startColumn,r,n[0].endColumn));0<o.length&&t.setSelections(o)}},M);function M(){return E.call(this,{id:"editor.action.addCursorsToBottom",label:r.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}var T,P=(C(R,T=u.b),R.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=[],o=n[0].startLineNumber;1<=o;o--)i.push(new h.a(o,n[0].startColumn,o,n[0].endColumn));0<i.length&&t.setSelections(i)}},R);function R(){return T.call(this,{id:"editor.action.addCursorsToTop",label:r.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}var A=function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n},F=(j.create=function(e,t){if(!e.hasModel())return null;var n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&0<n.searchString.length)return new j(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);var i,o,r=!1,s=e.getSelections();o=1===s.length&&s[0].isEmpty()?i=r=!0:(i=n.wholeWord,n.matchCase);var a,l=e.getSelection(),u=null;if(l.isEmpty()){var c=e.getModel().getWordAtPosition(l.getStartPosition());if(!c)return null;a=c.word,u=new h.a(l.startLineNumber,c.startColumn,l.startLineNumber,c.endColumn)}else a=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new j(e,t,r,a,i,o,u)},j.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new A(t.concat(e),e,0)},j.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new A(t.slice(0,t.length-1).concat(e),e,0)},j.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;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.getOption(96):null,!1);return i?new h.a(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},j.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new A(t.concat(e),e,0)},j.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new A(t.slice(0,t.length-1).concat(e),e,0)},j.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;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.getOption(96):null,!1);return i?new h.a(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},j.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},j);function j(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}var W,V=(C(B,W=l.a),B.get=function(e){return e.getContribution(B.ID)},B.prototype.dispose=function(){this._endSession(),W.prototype.dispose.call(this)},B.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=F.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.add(this._editor.onDidChangeCursorSelection((function(e){t._ignoreSelectionChange||t._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((function(){t._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((function(e){(e.matchCase||e.wholeWord)&&t._endSession()})))}},B.prototype._endSession=function(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null},B.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},B.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new h.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},B.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},B.prototype.getSession=function(e){return this._session},B.prototype.addSelectionToNextFindMatch=function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(1<t.length){var n=e.getState().matchCase;if(!fe(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())}},B.prototype.addSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},B.prototype.moveSelectionToNextFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},B.prototype.moveSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},B.prototype.selectAll=function(e){if(this._editor.hasModel()){var t=null,n=e.getState();if(n.isRevealed&&0<n.searchString.length&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){for(var i=n.searchScope,o=[],r=0;r<t.length;r++)t[r].range.endLineNumber<=i.endLineNumber&&t[r].range.startLineNumber>=i.startLineNumber&&o.push(t[r]);t=o}if(0<t.length){for(var s=this._editor.getSelection(),a=(r=0,t.length);r<a;r++){var l=t[r];if(l.range.intersectRanges(s)){t[r]=t[0],t[0]=l;break}}this._setSelections(t.map((function(e){return new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})))}}},B.ID="editor.contrib.multiCursorController",B);function B(e){var t=W.call(this)||this;return t._sessionDispose=t._register(new l.b),t._editor=e,t._ignoreSelectionChange=!1,t._session=null,t}var H,z=(C(U,H=u.b),U.prototype.run=function(e,t){var n=V.get(t);if(n){var i=v.CommonFindController.get(t);i&&this._run(n,i)}},U);function U(){return null!==H&&H.apply(this,arguments)||this}var K,q=(C(G,K=z),G.prototype._run=function(e,t){e.addSelectionToNextFindMatch(t)},G);function G(){return K.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:r.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:2082,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}var Y,Z=(C(X,Y=z),X.prototype._run=function(e,t){e.addSelectionToPreviousFindMatch(t)},X);function X(){return Y.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:r.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}var $,J=(C(Q,$=z),Q.prototype._run=function(e,t){e.moveSelectionToNextFindMatch(t)},Q);function Q(){return $.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:r.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:Object(a.a)(2089,2082),weight:100}})||this}var ee,te=(C(ne,ee=z),ne.prototype._run=function(e,t){e.moveSelectionToPreviousFindMatch(t)},ne);function ne(){return ee.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:r.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}var ie,oe=(C(re,ie=z),re.prototype._run=function(e,t){e.selectAll(t)},re);function re(){return ie.call(this,{id:"editor.action.selectHighlights",label:r.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:3114,weight:100},menuOpts:{menuId:25,group:"3_multi",title:r.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}var se,ae=(C(le,se=z),le.prototype._run=function(e,t){e.selectAll(t)},le);function le(){return se.call(this,{id:"editor.action.changeAll",label:r.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:y.a.and(p.a.writable,p.a.editorTextFocus),kbOpts:{kbExpr:p.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}var ue=(ce.softEquals=function(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators},ce);function ce(e,t,n){this.searchText=e,this.matchCase=t,this.wordSeparators=n}var de,he=(C(pe,de=l.a),pe.prototype._update=function(){this._setState(pe._createState(this._isEnabled,this.editor))},pe._createState=function(e,t){if(!e)return null;if(!t.hasModel())return null;var n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;var i=V.get(t);if(!i)return null;var o=v.CommonFindController.get(t);if(!o)return null;var r=i.getSession(o);if(!r){var s=t.getSelections();if(1<s.length){var a=o.getState().matchCase;if(!fe(t.getModel(),s,a))return null}r=F.create(t,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(200<r.searchText.length)return null;var l=o.getState(),u=l.matchCase;if(l.isRevealed){var c=l.searchString;u||(c=c.toLowerCase());var d=r.searchText;if(u||(d=d.toLowerCase()),c===d&&r.matchCase===l.matchCase&&r.wholeWord===l.wholeWord&&!l.isRegex)return null}return new ue(r.searchText,r.matchCase,r.wholeWord?t.getOption(96):null)},pe.prototype._setState=function(e){if(ue.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()){var t=this.editor.getModel();if(!t.isTooLargeForTokenization()){var n=m.i.has(t),i=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map((function(e){return e.range}));i.sort(d.a.compareRangesUsingStarts);var o=this.editor.getSelections();o.sort(d.a.compareRangesUsingStarts);for(var r=[],s=0,a=0,l=i.length,u=o.length;s<l;){var c=i[s];if(u<=a)r.push(c),s++;else{var h=d.a.compareRangesUsingStarts(c,o[a]);h<0?(!o[a].isEmpty()&&d.a.areIntersecting(c,o[a])||r.push(c),s++):(0<h||s++,a++)}}var p=r.map((function(e){return{range:e,options:n?pe._SELECTION_HIGHLIGHT:pe._SELECTION_HIGHLIGHT_OVERVIEW}}));this.decorations=this.editor.deltaDecorations(this.decorations,p)}}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},pe.prototype.dispose=function(){this._setState(null),de.prototype.dispose.call(this)},pe.ID="editor.contrib.selectionHighlighter",pe._SELECTION_HIGHLIGHT_OVERVIEW=g.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(b.f)(_.Mb),position:f.d.Center}}),pe._SELECTION_HIGHLIGHT=g.a.register({stickiness:1,className:"selectionHighlight"}),pe);function pe(e){var t=de.call(this)||this;return t.editor=e,t._isEnabled=e.getOption(82),t.decorations=[],t.updateSoon=t._register(new s.d((function(){return t._update()}),300)),t.state=null,t._register(e.onDidChangeConfiguration((function(n){t._isEnabled=e.getOption(82)}))),t._register(e.onDidChangeCursorSelection((function(e){t._isEnabled&&(e.selection.isEmpty()?3===e.reason?(t.state&&t._setState(null),t.updateSoon.schedule()):t._setState(null):t._update())}))),t._register(e.onDidChangeModel((function(e){t._setState(null)}))),t._register(v.CommonFindController.get(e).getState().onFindReplaceStateChange((function(e){t._update()}))),t}function fe(e,t,n){for(var i=ge(e,t[0],!n),o=1,r=t.length;o<r;o++){var s=t[o];if(s.isEmpty())return!1;if(i!==ge(e,s,!n))return!1}return!0}function ge(e,t,n){var i=e.getValueInRange(t);return n?i.toLowerCase():i}Object(u.h)(V.ID,V),Object(u.h)(he.ID,he),Object(u.f)(w),Object(u.f)(L),Object(u.f)(N),Object(u.f)(q),Object(u.f)(Z),Object(u.f)(J),Object(u.f)(te),Object(u.f)(oe),Object(u.f)(ae),Object(u.f)(I),Object(u.f)(P)},function(e,t,n){"use strict";n.r(t),n.d(t,"EditorActionCommandEntry",(function(){return m})),n.d(t,"QuickCommandAction",(function(){return b}));var i,o,r=n(444),s=n(478),a=n(446),l=n(760),u=n(975),c=n(449),d=n(469),h=n(968),p=n(531),f=n(754),g=(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)}),m=(g(v,o=u.b),v.prototype.getLabel=function(){return this.action.label},v.prototype.getAriaLabel=function(){return this.keyAriaLabel?r.r(f.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):r.r(f.d.ariaLabelEntry,this.getLabel())},v.prototype.getGroupLabel=function(){return this.key},v.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout((function(){n.editor.focus();try{(n.action.run()||Promise.resolve()).then(void 0,a.e)}catch(e){Object(a.e)(e)}}),50),!0)},v);function v(e,t,n,i,r){var s=o.call(this)||this;return s.key=e,s.keyAriaLabel=t,s.setHighlights(n),s.action=i,s.editor=r,s}var _,b=(g(y,_=h.a),y.prototype.run=function(e,t){var n=this,i=e.get(p.a);this._show(this.getController(t),{getModel:function(e){return new u.c(n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},y.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),i=(t.getLabel()||"").toLowerCase();return n.localeCompare(i)},y.prototype._editorActionsToEntries=function(e,t,n){for(var i=[],o=0,r=t.getSupportedActions();o<r.length;o++){var s=r[o],a=e.lookupKeybinding(s.id);if(s.label){var u=Object(l.f)(n,s.label);u&&i.push(new m(a&&a.getLabel()||"",a&&a.getAriaLabel()||"",u,s,t))}}return i.sort(this._sort)},y);function y(){return _.call(this,f.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:f.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:s.i?571:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}Object(c.f)(b)},function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneReferencesController",(function(){return f}));var i,o,r=n(449),s=n(504),a=n(1117),l=n(573),u=n(456),c=n(448),d=n(532),h=n(775),p=function(e,t){return function(n,i){t(n,i,e)}},f=((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)})(g,o=a.a),g=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([p(1,u.c),p(2,s.a),p(3,d.a),p(4,c.a),p(5,h.a),p(6,l.a)],g));function g(e,t,n,i,r,s,a){return o.call(this,!0,e,t,n,i,r,s,a)||this}Object(r.h)(a.a.ID,f)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(449),s=n(827),a=n(754),l=((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)})(u,o=r.b),u.prototype.run=function(e,t){var n=e.get(s.a);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},u);function u(){var e=o.call(this,{id:"editor.action.toggleHighContrast",label:a.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return e._originalThemeName=null,e}Object(r.f)(l)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(445),s=n(449),a=n(794),l=n(440),u=n(469),c=n(953),d=((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)})(h,o=s.b),h.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 u=s.startLineNumber,d=s.startColumn,h=n.getLineMaxColumn(u);if(1!==u||1!==d&&(2!==d||2!==h)){var p=d===h?s.getPosition():c.a.rightPosition(n,s.getPosition().lineNumber,s.getPosition().column),f=c.a.leftPosition(n,p.lineNumber,p.column),g=c.a.leftPosition(n,f.lineNumber,f.column),m=n.getValueInRange(l.a.fromPositions(g,f)),v=n.getValueInRange(l.a.fromPositions(f,p)),_=l.a.fromPositions(g,p);i.push(new a.a(_,v+m))}}}0<i.length&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}},h);function h(){return o.call(this,{id:"editor.action.transposeLetters",label:r.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:u.a.writable,kbOpts:{kbExpr:u.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})||this}Object(s.f)(d)},function(e,t,n){"use strict";n.r(t),n.d(t,"getOccurrencesAtPosition",(function(){return x}));var i,o=n(445),r=n(459),s=n(453),a=n(484),l=n(446),u=n(439),c=n(449),d=n(440),h=n(469),p=n(599),f=n(495),g=n(454),m=n(456),v=n(461),_=n(451),b=(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)}),y=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},o.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},o.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),w=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},o.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),S=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},o.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),O=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},o.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),L=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},o.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),D=new m.d("hasWordHighlights",!1);function x(e,t,n){var i=g.i.ordered(e);return Object(s.h)(i.map((function(i){return function(){return Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,l.f)}})),r.q)}var N=(k.prototype._getCurrentWordRange=function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new d.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null},k.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)),l=0,u=n.length;!a&&l<u;l++){var c=e.getDecorationRange(n[l]);c&&c.startLineNumber===i&&c.startColumn<=o&&c.endColumn>=r&&(a=!0)}return a},k.prototype.cancel=function(){this.result.cancel()},k);function k(e,t,n){var i=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(s.f)((function(o){return i._compute(e,t,n,o)}))}var E,I=(b(M,E=N),M.prototype._compute=function(e,t,n,i){return x(e,t.getPosition(),i).then((function(e){return e||[]}))},M);function M(){return null!==E&&E.apply(this,arguments)||this}var T,P=(b(R,T=N),R.prototype._compute=function(e,t,n,i){return Object(s.l)(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:g.h.Text}})):[]}))},R.prototype.isValid=function(e,t,n){var i=t.isEmpty();return this._selectionIsEmpty===i&&T.prototype.isValid.call(this,e,t,n)},R);function R(e,t,n){var i=T.call(this,e,t,n)||this;return i._selectionIsEmpty=t.isEmpty(),i}Object(c.k)("_executeDocumentHighlights",(function(e,t){return x(e,t,a.a.None)}));var A=(F.prototype.hasDecorations=function(){return 0<this._decorationIds.length},F.prototype.restore=function(){this.occurrencesHighlight&&this._run()},F.prototype._getSortedHighlights=function(){var e=this;return r.d(this._decorationIds.map((function(t){return e.model.getDecorationRange(t)})).sort(d.a.compareRangesUsingStarts))},F.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(r.k(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}},F.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(r.k(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}},F.prototype._removeDecorations=function(){0<this._decorationIds.length&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},F.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)},F.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()},F.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,a,u,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,a=this.editor.getSelection(),u=this.editor.getOption(96),new(g.i.has(s)?I:P)(s,a,u)),this.workerRequest.result.then((function(t){d===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}),l.e)}}}else this._stopAll()},F.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;n<=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((function(){e.renderDecorations()}),n-t)},F.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var e=[],t=0,n=this.workerRequestValue.length;t<n;t++){var i=this.workerRequestValue[t];e.push({range:i.range,options:F._getDecorationOptions(i.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())},F._getDecorationOptions=function(e){return e===g.h.Write?this._WRITE_OPTIONS:e===g.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},F.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},F._WRITE_OPTIONS=f.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(_.f)(L),position:p.d.Center}}),F._TEXT_OPTIONS=f.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(_.f)(v.Mb),position:p.d.Center}}),F._REGULAR_OPTIONS=f.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(_.f)(O),position:p.d.Center}}),F);function F(e,t){var n=this;this.toUnhook=new u.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=D.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e)}))),this.toUnhook.add(e.onDidChangeModelContent((function(e){n._stopAll()}))),this.toUnhook.add(e.onDidChangeConfiguration((function(e){var t=n.editor.getOption(61);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}var j,W=(b(V,j=u.a),V.get=function(e){return e.getContribution(V.ID)},V.prototype.saveViewState=function(){return!(!this.wordHighligher||!this.wordHighligher.hasDecorations())},V.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},V.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},V.prototype.restoreViewState=function(e){this.wordHighligher&&e&&this.wordHighligher.restore()},V.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),j.prototype.dispose.call(this)},V.ID="editor.contrib.wordHighlighter",V=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,m.c)],V));function V(e,t){var n=j.call(this)||this;function i(){e.hasModel()&&(n.wordHighligher=new A(e,t))}return n.wordHighligher=null,n._register(e.onDidChangeModel((function(e){n.wordHighligher&&(n.wordHighligher.dispose(),n.wordHighligher=null),i()}))),i(),n}var B,H=(b(z,B=c.b),z.prototype.run=function(e,t){var n=W.get(t);n&&(this._isNext?n.moveNext():n.moveBack())},z);function z(e,t){var n=B.call(this,t)||this;return n._isNext=e,n}var U,K=(b(q,U=H),q);function q(){return U.call(this,!0,{id:"editor.action.wordHighlight.next",label:o.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:D,kbOpts:{kbExpr:h.a.editorTextFocus,primary:65,weight:100}})||this}var G,Y=(b(Z,G=H),Z);function Z(){return G.call(this,!1,{id:"editor.action.wordHighlight.prev",label:o.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:D,kbOpts:{kbExpr:h.a.editorTextFocus,primary:1089,weight:100}})||this}var X,$=(b(J,X=c.b),J.prototype.run=function(e,t,n){var i=W.get(t);i&&i.restoreViewState(!0)},J);function J(){return X.call(this,{id:"editor.action.wordHighlight.trigger",label:o.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:D.toNegated(),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100}})||this}Object(c.h)(W.ID,W),Object(c.f)(K),Object(c.f)(Y),Object(c.f)($),Object(_.e)((function(e,t){var n=e.getColor(v.M);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+n+"; }"),t.addRule(".monaco-editor .selectionHighlight { background-color: "+n.transparent(.5)+"; }"));var i=e.getColor(y);i&&t.addRule(".monaco-editor .wordHighlight { background-color: "+i+"; }");var o=e.getColor(C);o&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: "+o+"; }");var r=e.getColor(v.N);r&&t.addRule(".monaco-editor .selectionHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(w);s&&t.addRule(".monaco-editor .wordHighlight { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; box-sizing: border-box; }");var a=e.getColor(S);a&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; box-sizing: border-box; }")}))},function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",(function(){return h})),n.d(t,"DeleteWordPartRight",(function(){return g})),n.d(t,"WordPartLeftCommand",(function(){return _})),n.d(t,"CursorWordPartLeft",(function(){return C})),n.d(t,"CursorWordPartLeftSelect",(function(){return O})),n.d(t,"WordPartRightCommand",(function(){return x})),n.d(t,"CursorWordPartRight",(function(){return E})),n.d(t,"CursorWordPartRightSelect",(function(){return T}));var i,o,r=n(449),s=n(954),a=n(440),l=n(469),u=n(1006),c=n(489),d=(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)}),h=(d(p,o=u.DeleteWordCommand),p.prototype._delete=function(e,t,n,i,o){return s.b.deleteWordPartLeft(e,t,n,i)||new a.a(1,1,1,1)},p);function p(){return o.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:l.a.writable,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})||this}var f,g=(d(m,f=u.DeleteWordCommand),m.prototype._delete=function(e,t,n,i,o){var r=s.b.deleteWordPartRight(e,t,n,i);if(r)return r;var l=t.getLineCount(),u=t.getLineMaxColumn(l);return new a.a(l,u,l,u)},m);function m(){return f.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:l.a.writable,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})||this}var v,_=(d(b,v=u.MoveWordCommand),b.prototype._move=function(e,t,n,i){return s.b.moveWordPartLeft(e,t,n)},b);function b(){return null!==v&&v.apply(this,arguments)||this}var y,C=(d(w,y=_),w);function w(){return y.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})||this}c.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var S,O=(d(L,S=_),L);function L(){return S.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this}c.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var D,x=(d(N,D=u.MoveWordCommand),N.prototype._move=function(e,t,n,i){return s.b.moveWordPartRight(e,t,n)},N);function N(){return null!==D&&D.apply(this,arguments)||this}var k,E=(d(I,k=x),I);function I(){return k.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})||this}var M,T=(d(P,M=x),P);function P(){return M.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this}Object(r.g)(new h),Object(r.g)(new g),Object(r.g)(new C),Object(r.g)(new O),Object(r.g)(new E),Object(r.g)(new T)},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e(236).then(n.bind(null,1544))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e(237).then(n.bind(null,1545))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e(238).then(n.bind(null,1546))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e(239).then(n.bind(null,1547))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e(240).then(n.bind(null,1548))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e(241).then(n.bind(null,1549))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e(242).then(n.bind(null,1550))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e(33).then(n.bind(null,1269))}}),Object(i.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e(33).then(n.bind(null,1269))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e(243).then(n.bind(null,1551))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e(244).then(n.bind(null,1552))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e(245).then(n.bind(null,1553))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return o})),n(785);var i=monaco.Emitter,o=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),r.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}var s={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"}},a={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},l=new o("css",s,a),u=new o("scss",s,a),c=new o("less",s,a);function d(){return n.e(220).then(n.bind(null,1606))}monaco.languages.css={cssDefaults:l,lessDefaults:c,scssDefaults:u},monaco.languages.onLanguage("less",(function(){d().then((function(e){return e.setupMode(c)}))})),monaco.languages.onLanguage("scss",(function(){d().then((function(e){return e.setupMode(u)}))})),monaco.languages.onLanguage("css",(function(){d().then((function(e){return e.setupMode(l)}))}))},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e(246).then(n.bind(null,1554))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e(247).then(n.bind(null,1555))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e(248).then(n.bind(null,1556))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e(249).then(n.bind(null,1557))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e(250).then(n.bind(null,1558))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return n.e(251).then(n.bind(null,1559))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return o})),n(785);var i=monaco.Emitter,o=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),r.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new i,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}var s={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"},a={format:s,suggest:{html5:!0}},l={format:s,suggest:{html5:!0,razor:!0}};function u(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===c,documentFormattingEdits:e===c,documentRangeFormattingEdits:e===c}}var c="html",d="handlebars",h=new o(c,{format:s,suggest:{html5:!0,angular1:!0,ionic:!0}},u(c)),p=new o(d,a,u(d)),f=new o("razor",l,u("razor"));function g(){return n.e(221).then(n.bind(null,1607))}monaco.languages.html={htmlDefaults:h,razorDefaults:f,handlebarDefaults:p},monaco.languages.onLanguage(c,(function(){g().then((function(e){return e.setupMode(h)}))})),monaco.languages.onLanguage(d,(function(){g().then((function(e){return e.setupMode(p)}))})),monaco.languages.onLanguage("razor",(function(){g().then((function(e){return e.setupMode(f)}))}))},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e(252).then(n.bind(null,1560))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e(253).then(n.bind(null,1561))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(219).then(n.bind(null,1562))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return o})),n(785);var i=monaco.Emitter,o=(Object.defineProperty(r.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),r.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},r.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},r);function r(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}var s=new o("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});monaco.languages.json={jsonDefaults:s},monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",(function(){n.e(222).then(n.bind(null,1608)).then((function(e){return e.setupMode(s)}))}))},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e(254).then(n.bind(null,1563))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e(255).then(n.bind(null,1564))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e(256).then(n.bind(null,1565))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e(257).then(n.bind(null,1566))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e(258).then(n.bind(null,1567))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e(259).then(n.bind(null,1568))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e(260).then(n.bind(null,1569))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e(261).then(n.bind(null,1570))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e(262).then(n.bind(null,1571))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e(263).then(n.bind(null,1572))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e(264).then(n.bind(null,1573))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e(265).then(n.bind(null,1574))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e(266).then(n.bind(null,1575))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e(267).then(n.bind(null,1576))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e(268).then(n.bind(null,1577))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e(269).then(n.bind(null,1578))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e(270).then(n.bind(null,1579))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e(271).then(n.bind(null,1580))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e(272).then(n.bind(null,1581))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e(273).then(n.bind(null,1582))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e(274).then(n.bind(null,1583))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e(275).then(n.bind(null,1584))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e(276).then(n.bind(null,1585))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return n.e(277).then(n.bind(null,1586))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e(278).then(n.bind(null,1587))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e(279).then(n.bind(null,1588))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e(280).then(n.bind(null,1589))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e(281).then(n.bind(null,1590))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e(282).then(n.bind(null,1591))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e(283).then(n.bind(null,1592))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e(284).then(n.bind(null,1593))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e(285).then(n.bind(null,1594))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e(286).then(n.bind(null,1595))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e(287).then(n.bind(null,1596))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e(288).then(n.bind(null,1597))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e(289).then(n.bind(null,1598))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e(290).then(n.bind(null,1509))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e(291).then(n.bind(null,1599))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return n.e(292).then(n.bind(null,1600))}})},function(e,t,n){"use strict";n.r(t);var i=n(447);Object(i.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return n.e(293).then(n.bind(null,1601))}})},,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i,o=n(635),r=n(459),s=n(446),a=n(548),l=n(439),u=n(449),c=n(704),d=n(440),h=n(469),p=n(926),f=n(964),g=n(553),m=n(775),v=n(454),_=n(453),b=n(448),y=n(573),C=n(792),w=(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)}),S=function(e,t){return function(n,i){t(n,i,e)}},O=(L.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score[0],o=1;o<n.length;o++){var r=n[o],s=r.score,a=r.completion;if(s[0]!==i)break;if(a.preselect)return o}return 0},L);function L(){}var D,x=(w(N,D=O),N.prototype.memorize=function(e,t,n){},N.prototype.toJSON=function(){},N.prototype.fromJSON=function(){},N);function N(){return null!==D&&D.apply(this,arguments)||this}var k,E=(w(I,k=O),I.prototype.memorize=function(e,t,n){var i=n.completion.label,o=e.getLanguageIdentifier().language+"/"+i;this._cache.set(o,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})},I.prototype.select=function(e,t,n){if(0===n.length)return 0;var i=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(i))return k.prototype.select.call(this,e,t,n);for(var o=n[0].score[0],r=-1,s=-1,a=0;a<n.length&&n[a].score[0]===o;a++){var l=e.getLanguageIdentifier().language+"/"+n[a].completion.label,u=this._cache.peek(l);if(u&&u.touch>s&&u.type===n[a].completion.kind&&u.insertText===n[a].completion.insertText&&(s=u.touch,r=a),n[a].completion.preselect)return a}return-1!==r?r:0},I.prototype.toJSON=function(){var e=[];return this._cache.forEach((function(t,n){e.push([n,t])})),e},I.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:Object(v.E)(r.type),this._cache.set(o,r)}this._seq=this._cache.size},I);function I(){var e=null!==k&&k.apply(this,arguments)||this;return e._cache=new g.a(300,.66),e._seq=0,e}var M,T=(w(P,M=O),P.prototype.memorize=function(e,t,n){var i=e.getWordUntilPosition(t).word,o=e.getLanguageIdentifier().language+"/"+i;this._trie.set(o,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})},P.prototype.select=function(e,t,n){var i=e.getWordUntilPosition(t).word;if(!i)return M.prototype.select.call(this,e,t,n);var o=e.getLanguageIdentifier().language+"/"+i,r=this._trie.get(o);if(r=r||this._trie.findSubstr(o))for(var s=0;s<n.length;s++){var a=n[s].completion,l=a.kind,u=a.insertText;if(l===r.type&&u===r.insertText)return s}return M.prototype.select.call(this,e,t,n)},P.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)},P.prototype.fromJSON=function(e){if(this._trie.clear(),0<e.length){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:Object(v.E)(r.type),this._trie.set(o,r)}}},P);function P(){var e=null!==M&&M.apply(this,arguments)||this;return e._trie=g.c.forStrings(),e._seq=0,e}var R,A=(w(F,R=l.a),F.prototype._update=function(e,t,n){if(n||this._mode!==e||this._shareMem!==t){this._shareMem=t,this._mode=e,this._strategy=new("recentlyUsedByPrefix"===e?T:"recentlyUsed"===e?E:x);try{var i=t?0:1,o=this._storageService.get(this._storagePrefix+"/"+this._mode,i);o&&this._strategy.fromJSON(JSON.parse(o))}catch(e){}}},F.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n),this._persistSoon.schedule()},F.prototype.select=function(e,t,n){return this._strategy.select(e,t,n)},F.prototype._saveState=function(){var e=JSON.stringify(this._strategy),t=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,e,t)},F=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([S(0,m.a),S(1,y.a)],F));function F(e,t){var n=R.call(this)||this;function i(){var e=n._configService.getValue("editor.suggestSelection"),t=n._configService.getValue("editor.suggest.shareSuggestSelections");n._update(e,t,!1)}return n._storageService=e,n._configService=t,n._storagePrefix="suggest/memories",n._persistSoon=n._register(new _.d((function(){return n._saveState()}),500)),n._register(e.onWillSaveState((function(e){e.reason===m.c.SHUTDOWN&&n._saveState()}))),n._register(n._configService.onDidChangeConfiguration((function(e){(e.affectsConfiguration("editor.suggestSelection")||e.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&i()}))),n._register(n._storageService.onDidChangeStorage((function(e){0===e.scope&&0===e.key.indexOf(n._storagePrefix)&&(document.hasFocus()||n._update(n._mode,n._shareMem,!0))}))),i(),n}var j=Object(b.c)("ISuggestMemories");Object(C.b)(j,A,!0);var W=n(445),V=n(489),B=n(456),H=n(788),z=n(900),U=(K.prototype.dispose=function(){this.reset()},K.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(l.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},K.prototype.set=function(e,t){var n=this,i=e.model,o=e.index;0!==i.items.length&&K._moveIndex(!0,i,o)!==o?(this._acceptNext=t,this._model=i,this._index=o,this._listener=this._editor.onDidChangeCursorPosition((function(){n._ignore||n.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()},K._moveIndex=function(e,t,n){for(var i=n;(i=(i+t.items.length+(e?1:-1))%t.items.length)!==n&&t.items[i].completion.additionalTextEdits;);return i},K.prototype.next=function(){this._move(!0)},K.prototype.prev=function(){this._move(!1)},K.prototype._move=function(e){if(this._model)try{this._ignore=!0,this._index=K._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},K.OtherSuggestions=new B.d("hasOtherSuggestions",!1),K=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,B.c)],K));function K(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=K.OtherSuggestions.bindTo(t)}var q=n(442),G=n(466),Y=n(760),Z=n(444),X=(Object.defineProperty($.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($.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty($.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),$.prototype.adopt=function(e){for(var t=new Array,n=0;n<this._items.length;)e.has(this._items[n].provider)?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($.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),$.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState()},$.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||2e3<r.length?Y.d:Y.e,l=0;l<r.length;l++){var u=r[l];u.container.incomplete&&this._isIncomplete.add(u.provider);var c=u.position.column-u.editStart.column,d=c+n-(u.position.column-this._column);if(i.length!==d&&(o=(i=0==d?"":t.slice(-d)).toLowerCase()),u.word=i,0==d)u.score=Y.a.Default;else{for(var h=0;h<c;){var p=i.charCodeAt(h);if(32!==p&&9!==p)break;h+=1}var f="string"==typeof u.completion.label?u.completion.label:u.completion.label.name;if(d<=h)u.score=Y.a.Default;else if("string"==typeof u.completion.filterText){if(!(g=a(i,o,h,u.completion.filterText,u.filterTextLow,0,!1)))continue;0===Object(Z.f)(u.completion.filterText,f)?u.score=g:(u.score=Object(Y.b)(i,o,h,f,u.labelLow,0),u.score[0]=g[0])}else{var g;if(!(g=a(i,o,h,f,u.labelLow,0,!1)))continue;u.score=g}}switch(u.idx=l,u.distance=this._wordDistance.distance(u.position,u.completion),s.push(u),this._stats.suggestionCount++,u.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0},$._compareCompletionItems=function(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0},$._compareCompletionItemsSnippetsDown=function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return $._compareCompletionItems(e,t)},$._compareCompletionItemsSnippetsUp=function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return $._compareCompletionItems(e,t)},$);function $(e,t,n,i,o,r){this._snippetCompareFn=$._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=i,this._options=o,this._refilterKind=1,this._lineContext=n,"top"===r?this._snippetCompareFn=$._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=$._compareCompletionItemsSnippetsDown)}var J,Q,ee=n(484),te=n(1099),ne=(J=function(e,t){return(J=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}J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=(oe.create=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,o,s;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(a){switch(a.label){case 0:return t.getOption(89).localityBonus&&t.hasModel()?(n=t.getModel(),i=t.getPosition(),e.canComputeWordRanges(n.uri)?[4,(new te.a).provideSelectionRanges(n,[i])]:[2,oe.None]):[2,oe.None];case 1:return(o=a.sent())&&0!==o.length&&0!==o[0].length?[4,e.computeWordRanges(n.uri,o[0][0].range)]:[2,oe.None];case 2:return s=a.sent(),[2,(ne(l,u=oe),l.prototype.distance=function(e,n){if(!s||!i.equals(t.getPosition()))return 0;if(17===n.kind)return 2<<20;var a="string"==typeof n.label?n.label:n.label.name,l=s[a];if(Object(r.p)(l))return 2<<20;for(var u=Object(r.c)(l,d.a.fromPositions(e),d.a.compareRangesUsingStarts),c=0<=u?l[u]:l[Math.max(0,~u-1)],h=o.length,p=0,f=o[0];p<f.length;p++){var g=f[p];if(!d.a.containsRange(g.range,c))break;--h}return h},new l)]}function l(){return null!==u&&u.apply(this,arguments)||this}var u}))}))},oe.None=(ne(re,Q=oe),re.prototype.distance=function(){return 0},new re),oe);function oe(){}function re(){return null!==Q&&Q.apply(this,arguments)||this}var se=(ae.shouldAutoTrigger=function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&i.endColumn===n.column&&!!isNaN(Number(i.word))},ae);function ae(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}var le=(ue.prototype.dispose=function(){Object(l.f)(this._triggerCharacterListener),Object(l.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},ue.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},ue.prototype._updateTriggerCharacters=function(){var e=this;if(this._triggerCharacterListener.clear(),!this._editor.getOption(68)&&this._editor.hasModel()&&this._editor.getOption(92)){for(var t=new Map,n=0,i=v.d.all(this._editor.getModel());n<i.length;n++)for(var o=i[n],r=0,s=o.triggerCharacters||[];r<s.length;r++){var a=s[r],l=t.get(a);l||((l=new Set).add(Object(z.c)()),t.set(a,l)),l.add(o)}var u=function(n){if(!n){var i=e._editor.getPosition();n=e._editor.getModel().getLineContent(i.lineNumber).substr(0,i.column-1)}var o="";Object(Z.A)(n.charCodeAt(n.length-1))?Object(Z.z)(n.charCodeAt(n.length-2))&&(o=n.substr(n.length-2)):o=n.charAt(n.length-1);var r=t.get(o);if(r){var s=e._completionModel?e._completionModel.adopt(r):void 0;e.trigger({auto:!0,shy:!1,triggerCharacter:o},Boolean(e._completionModel),r,s)}};this._triggerCharacterListener.add(this._editor.onDidType(u)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(u))}},Object.defineProperty(ue.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),ue.prototype.cancel=function(e){void 0===e&&(e=!1),0!==this._state&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))},ue.prototype.clear=function(){this._completionDisposables.clear()},ue.prototype._updateActiveSuggestSession=function(){0!==this._state&&(this._editor.hasModel()&&v.d.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())},ue.prototype._onCursorChange=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getModel(),i=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)this.cancel();else if(v.d.has(n)&&0===this._state){if(!1===this._editor.getOption(66))return;if(!i.containsRange(this._currentSelection)&&!i.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&p.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet((function(){if(0===t._state&&se.shouldAutoTrigger(t._editor)&&t._editor.hasModel()){var e=t._editor.getModel(),n=t._editor.getPosition(),i=t._editor.getOption(66);if(!1!==i){if(!0!==i){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,shy:!1})}}}),this._quickSuggestDelay)}}},ue.prototype._refilterCompletionItems=function(){var e=this;Promise.resolve().then((function(){if(0!==e._state&&e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getPosition(),i=new se(t,n,2===e._state,!1);e._onNewContext(i)}}))},ue.prototype.trigger=function(e,t,n,i){var o=this;if(void 0===t&&(t=!1),this._editor.hasModel()){var a,u=this._editor.getModel(),c=e.auto,d=new se(u,this._editor.getPosition(),c,e.shy);this.cancel(t),this._state=c?2:1,this._onDidTrigger.fire({auto:c,shy:e.shy,position:this._editor.getPosition()}),this._context=d,a=e.triggerCharacter?{triggerKind:1,triggerCharacter:e.triggerCharacter}:n&&0<n.size?{triggerKind:2}:{triggerKind:0},this._requestToken=new ee.b;var h=this._editor.getOption(86),p=1;switch(h){case"top":p=0;break;case"bottom":p=2}var f=ue._createItemKindFilter(this._editor),g=ie.create(this._editorWorker,this._editor),m=Object(z.e)(u,this._editor.getPosition(),new z.a(p,f,n),a,this._requestToken.token);Promise.all([m,g]).then((function(t){var n=t[0],s=t[1];if(Object(l.f)(o._requestToken),0!==o._state&&o._editor.hasModel()){var a=o._editor.getModel();if(Object(r.q)(i)){var u=Object(z.d)(p);n=n.concat(i).sort(u)}var d=new se(a,o._editor.getPosition(),c,e.shy);o._completionModel=new X(n,o._context.column,{leadingLineContent:d.leadingLineContent,characterCountDelta:d.column-o._context.column},s,o._editor.getOption(89),o._editor.getOption(86));for(var h=0,f=n;h<f.length;h++){var g=f[h];Object(l.g)(g.container)&&o._completionDisposables.add(g.container)}o._onNewContext(d)}})).catch(s.e)}},ue._createItemKindFilter=function(e){var t=new Set;"none"===e.getOption(86)&&t.add(25);var n=e.getOption(89);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(25),t},ue.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,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.column>this._context.column&&0<this._completionModel.incomplete.size&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state,shy:!1},!0,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(se.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=i,(o=0<this._completionModel.items.length)&&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()},ue);function ue(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=new l.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new l.b,this._triggerQuickSuggest=new _.e,this._state=0,this._completionDisposables=new l.b,this._onDidCancel=new q.a,this._onDidTrigger=new q.a,this._onDidSuggest=new q.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new G.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((function(){n._updateTriggerCharacters(),n._updateQuickSuggest()}))),this._toDispose.add(v.d.onDidChange((function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((function(e){n._onCursorChange(e)})));var i=!1;this._toDispose.add(this._editor.onDidCompositionStart((function(){i=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((function(){i=!1,n._refilterCompletionItems()}))),this._toDispose.add(this._editor.onDidChangeModelContent((function(){i||n._refilterCompletionItems()}))),this._updateTriggerCharacters(),this._updateQuickSuggest()}n(1380),n(1381),n(1097),n(1098);var ce,de,he=n(443),pe=n(972),fe=n(688),ge=n(531),me=n(821),ve=n(826),_e=n(451),be=n(461),ye=n(915),Ce=n(778),we=n(636),Se=n(960),Oe=n(596),Le=n(554),De=n(901);function xe(e,t,n,i){var o,r=i===ce.ROOT_FOLDER?["rootfolder-icon"]:i===ce.FOLDER?["folder-icon"]:["file-icon"];if(n)if(o=n.scheme===Oe.b.data?Le.a.parseMetaData(n).get(Le.a.META_DATA_LABEL):Ne(Object(Le.c)(n).toLowerCase()),i===ce.FOLDER)r.push(o+"-name-folder-icon");else{if(o){r.push(o+"-name-file-icon");for(var s=o.split("."),a=1;a<s.length;a++)r.push(s.slice(a).join(".")+"-ext-file-icon");r.push("ext-file-icon")}var l=function(e,t,n){if(!n)return null;var i=null;if(n.scheme===Oe.b.data){var o=Le.a.parseMetaData(n).get(Le.a.META_DATA_MIME);o&&(i=t.getModeId(o))}else{var r=e.getModel(n);r&&(i=r.getModeId())}return i&&i!==De.c?i:t.getModeIdByFilepathOrFirstLine(n)}(e,t,n);l&&r.push(Ne(l)+"-lang-file-icon")}return r}function Ne(e){return e.replace(/\s/g,"\\$&")}(de=ce=ce||{})[de.FILE=0]="FILE",de[de.FOLDER=1]="FOLDER",de[de.ROOT_FOLDER=2]="ROOT_FOLDER";var ke=n(598),Ee=n(479),Ie=n(795),Me=n(450),Te=function(){return(Te=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)},Pe=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},Re=function(e,t){return function(n,i){t(n,i,e)}},Ae=Object(be.Tb)("editorSuggestWidget.background",{dark:be.Q,light:be.Q,hc:be.Q},W.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),Fe=Object(be.Tb)("editorSuggestWidget.border",{dark:be.R,light:be.R,hc:be.R},W.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),je=Object(be.Tb)("editorSuggestWidget.foreground",{dark:be.x,light:be.x,hc:be.x},W.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),We=Object(be.Tb)("editorSuggestWidget.selectedBackground",{dark:be.rb,light:be.rb,hc:be.rb},W.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),Ve=Object(be.Tb)("editorSuggestWidget.highlightForeground",{dark:be.tb,light:be.tb,hc:be.tb},W.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Be=/^(#([\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 He(e){if(e){var t=e.completion;return t.documentation||t.detail&&t.detail!==t.label}}function ze(e){return"suggest-aria-id:"+e}var Ue=(Object.defineProperty(Ke.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),Ke.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=new l.b,n.root=e,Object(he.f)(n.root,"show-file-icons"),n.icon=Object(he.q)(e,Object(he.a)(".icon")),n.colorspan=Object(he.q)(n.icon,Object(he.a)("span.colorspan"));var i=Object(he.q)(e,Object(he.a)(".contents")),o=Object(he.q)(i,Object(he.a)(".main"));function r(){var e=t.editor.getOptions(),i=e.get(34),r=i.fontFamily,s=i.fontFeatureSettings,a=e.get(90)||i.fontSize,l=e.get(91)||i.lineHeight,u=i.fontWeight,c=a+"px",d=l+"px";n.root.style.fontSize=c,n.root.style.fontWeight=u,o.style.fontFamily=r,o.style.fontFeatureSettings=s,o.style.lineHeight=d,n.icon.style.height=d,n.icon.style.width=d,n.readMore.style.height=d,n.readMore.style.width=d}return n.left=Object(he.q)(o,Object(he.a)("span.left")),n.right=Object(he.q)(o,Object(he.a)("span.right")),n.iconContainer=Object(he.q)(n.left,Object(he.a)(".icon-label.codicon")),n.iconLabel=new Se.a(n.left,{supportHighlights:!0,supportCodicons:!0}),n.disposables.add(n.iconLabel),n.signatureLabel=Object(he.q)(n.left,Object(he.a)("span.signature-label")),n.qualifierLabel=Object(he.q)(n.left,Object(he.a)("span.qualifier-label")),n.detailsLabel=Object(he.q)(n.right,Object(he.a)("span.details-label")),n.readMore=Object(he.q)(n.right,Object(he.a)("span.readMore.codicon.codicon-info")),n.readMore.title=W.a("readMore","Read More...{0}",this.triggerKeybindingLabel),r(),n.disposables.add(q.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)||e.hasChanged(90)||e.hasChanged(91)})).on(r,null)),n},Ke.prototype.renderElement=function(e,t,n){var i=this,o=n,s=e.completion,a="string"==typeof s.label?s.label:s.label.name;o.root.id=ze(t),o.icon.className="icon "+Object(v.F)(s.kind);var l,u,c,d={labelEscapeNewLines:!(o.colorspan.style.backgroundColor=""),matches:Object(Y.c)(e.score)},h=[];if(19===s.kind&&(u=h,(c="string"==typeof(l=e).completion.label?l.completion.label:l.completion.label.name).match(Be)?(u[0]=c,1):"string"==typeof l.completion.documentation&&l.completion.documentation.match(Be)&&(u[0]=l.completion.documentation,1)))o.icon.className="icon customcolor",o.iconContainer.className="icon hide",o.colorspan.style.backgroundColor=h[0];else if(20===s.kind&&this._themeService.getIconTheme().hasFileIcons){o.icon.className="icon hide",o.iconContainer.className="icon hide";var p=xe(this._modelService,this._modeService,Ee.a.from({scheme:"fake",path:a}),ce.FILE),f=xe(this._modelService,this._modeService,Ee.a.from({scheme:"fake",path:s.detail}),ce.FILE);d.extraClasses=p.length>f.length?p:f}else 23===s.kind&&this._themeService.getIconTheme().hasFolderIcons?(o.icon.className="icon hide",o.iconContainer.className="icon hide",d.extraClasses=Object(r.m)([xe(this._modelService,this._modeService,Ee.a.from({scheme:"fake",path:a}),ce.FOLDER),xe(this._modelService,this._modeService,Ee.a.from({scheme:"fake",path:s.detail}),ce.FOLDER)])):(o.icon.className="icon hide",o.iconContainer.className="",Object(he.g)(o.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(s.kind)));s.tags&&0<=s.tags.indexOf(1)&&(d.extraClasses=(d.extraClasses||[]).concat(["deprecated"]),d.matches=[]),o.iconLabel.setLabel(a,void 0,d),"string"==typeof s.label?(o.signatureLabel.textContent="",o.qualifierLabel.textContent="",o.detailsLabel.textContent=(s.detail||"").replace(/\n.*$/m,""),Object(he.P)(o.right,"always-show-details")):(o.signatureLabel.textContent=(s.label.signature||"").replace(/\n.*$/m,""),o.qualifierLabel.textContent=(s.label.qualifier||"").replace(/\n.*$/m,""),o.detailsLabel.textContent=(s.label.type||"").replace(/\n.*$/m,""),Object(he.f)(o.right,"always-show-details")),He(e)?(Object(he.f)(o.right,"can-expand-details"),Object(he.X)(o.readMore),o.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},o.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i.widget.toggleDetails()}):(Object(he.P)(o.right,"can-expand-details"),Object(he.J)(o.readMore),o.readMore.onmousedown=null,o.readMore.onclick=null)},Ke.prototype.disposeTemplate=function(e){e.disposables.dispose()},Ke=Pe([Re(3,ke.a),Re(4,Ce.a),Re(5,_e.c)],Ke));function Ke(e,t,n,i,o,r){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=o,this._themeService=r}var qe=(Object.defineProperty(Ge.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),Ge.prototype.renderLoading=function(){this.type.textContent=W.a("loading","Loading..."),this.docs.textContent=""},Ge.prototype.renderItem=function(e,t){var n=this;this.renderDisposeable=Object(l.f)(this.renderDisposeable);var i=e.completion,o=i.documentation,r=i.detail;if(t){var s="";s+="score: "+e.score[0]+(e.word?", compared '"+(e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label)+"' with '"+e.word+"'":" (no prefix)")+"\n",s+="distance: "+e.distance+", see localityBonus-setting\n",s+="index: "+e.idx+", based on "+(e.completion.sortText&&'sortText: "'+e.completion.sortText+'"'||"label")+"\n",o=(new Ie.a).appendCodeblock("empty",s),r="Provider: "+e.provider._debugDisplayName}if(!t&&!He(e))return this.type.textContent="",this.docs.textContent="",void Object(he.f)(this.el,"no-docs");if(Object(he.P)(this.el,"no-docs"),"string"==typeof o)Object(he.P)(this.docs,"markdown-docs"),this.docs.textContent=o;else{Object(he.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var a=this.markdownRenderer.render(o);this.renderDisposeable=a,this.docs.appendChild(a.element)}r?(this.type.innerText=r,Object(he.X)(this.type)):(this.type.innerText="",Object(he.J)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),n.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},Ge.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},Ge.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},Ge.prototype.scrollTop=function(){this.body.scrollTop=0},Ge.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},Ge.prototype.pageDown=function(){this.scrollDown(80)},Ge.prototype.pageUp=function(){this.scrollUp(80)},Ge.prototype.setBorderWidth=function(e){this.borderWidth=e},Ge.prototype.configureFont=function(){var e=this.editor.getOptions(),t=e.get(34),n=t.fontFamily,i=e.get(90)||t.fontSize,o=e.get(91)||t.lineHeight,r=t.fontWeight,s=i+"px",a=o+"px";this.el.style.fontSize=s,this.el.style.fontWeight=r,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=a,this.close.style.width=a},Ge.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(l.f)(this.renderDisposeable)},Ge);function Ge(e,t,n,i,o){var r=this;this.widget=t,this.editor=n,this.markdownRenderer=i,this.kbToggleDetails=o,this.borderWidth=1,this.disposables=new l.b,this.el=Object(he.q)(e,Object(he.a)(".details")),this.disposables.add(Object(l.h)((function(){return e.removeChild(r.el)}))),this.body=Object(he.a)(".body"),this.scrollbar=new fe.a(this.body,{}),Object(he.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(he.q)(this.body,Object(he.a)(".header")),this.close=Object(he.q)(this.header,Object(he.a)("span.codicon.codicon-close")),this.close.title=W.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(he.q)(this.header,Object(he.a)("p.type")),this.docs=Object(he.q)(this.body,Object(he.a)("p.docs")),this.configureFont(),q.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock((function(){return r.scrollbar.scanDomNode()}),this,this.disposables)}var Ye=(Ze.prototype.onEditorMouseDown=function(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()},Ze.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},Ze.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},Ze.prototype.onListMouseDownOrTap=function(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))},Ze.prototype.onListSelection=function(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])},Ze.prototype.select=function(e,t){var n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())},Ze.prototype.onThemeChange=function(e){var t=e.getColor(Ae);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(Fe);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.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(be.V);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},Ze.prototype.onListFocus=function(e){var t,n,i=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(this.completionModel){var o=e.elements[0],r=e.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,o!==this.focusedItem){var a="insert"===this.editor.getOption(89).insertMode,l=null===(t=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))||void 0===t?void 0:t.getLabel(),u=null===(n=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))||void 0===n?void 0:n.getLabel();Me.a.equals(o.editInsertEnd,o.editReplaceEnd)?this.setStatusBarLeftText(W.a("accept","{0} to accept",l)):a?this.setStatusBarLeftText(W.a("insert","{0} to insert, {1} to replace",l,u)):this.setStatusBarLeftText(W.a("replace","{0} to replace, {1} to insert",l,u)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=o,this.list.reveal(r),this.currentSuggestionDetails=Object(_.f)((function(e){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(i,void 0,void 0,(function(){var t,n,i=this;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(r){switch(r.label){case 0:return t=Object(_.g)((function(){return i.showDetails(!0)}),250),e.onCancellationRequested((function(){return t.dispose()})),[4,o.resolve(e)];case 1:return n=r.sent(),t.dispose(),[2,n]}}))}))})),this.currentSuggestionDetails.then((function(){r>=i.list.length||o!==i.list.element(r)||(i.ignoreFocusEvents=!0,i.list.splice(r,1,[o]),i.list.setFocus([r]),i.ignoreFocusEvents=!1,i.expandDocsSettingFromStorage()?i.showDetails(!1):Object(he.P)(i.element,"docs-side"),He(i.focusedItem)?i.expandDocsSettingFromStorage()?i.setStatusBarRightText(i.msgDetailsLess):i.setStatusBarRightText(i.msgDetailMore):i.statusBarRightSpan.innerText="",i.editor.setAriaOptions({activeDescendant:ze(r)}))})).catch(s.e)}this.onDidFocusEmitter.fire({item:o,index:r,model:this.completionModel})}}},Ze.prototype.setState=function(e){if(this.element){var t=this.state!==e;switch(this.state=e,Object(he.Y)(this.element,"frozen",4===e),e){case 0:Object(he.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,t&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Ze.LOADING_MESSAGE,Object(he.J)(this.listElement,this.details.element,this.statusBarElement),Object(he.X)(this.messageElement),Object(he.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Ze.NO_SUGGESTIONS_MESSAGE,Object(he.J)(this.listElement,this.details.element,this.statusBarElement),Object(he.X)(this.messageElement),Object(he.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(he.J)(this.messageElement),Object(he.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(he.J)(this.messageElement),Object(he.X)(this.listElement),this.show();break;case 5:Object(he.J)(this.messageElement),Object(he.X)(this.details.element,this.listElement,this.statusBarElement),this.show()}}},Ze.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(_.g)((function(){return n.setState(1)}),t)))},Ze.prototype.showSuggestions=function(e,t,n,i){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),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(1<o),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",Te({},s))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},Ze.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}},Ze.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},Ze.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}},Ze.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}},Ze.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},Ze.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}},Ze.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},Ze.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.publicLog2("suggestWidget:toggleDetailsFocus")},Ze.prototype.toggleDetails=function(){if(He(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(he.J)(this.details.element),Object(he.P)(this.element,"docs-side"),Object(he.P)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},Ze.prototype.showDetails=function(e){e||this.expandSideOrBelow(),Object(he.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},Ze.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},Ze.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(){Object(he.f)(e.element,"visible"),e.onDidShowEmitter.fire(e)}),100)},Ze.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(he.P)(this.element,"visible")},Ze.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},Ze.prototype.getPosition=function(){if(0===this.state)return null;var e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}},Ze.prototype.getDomNode=function(){return this.element},Ze.prototype.getId=function(){return Ze.ID},Ze.prototype.isFrozen=function(){return 4===this.state},Ze.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{var t=this.list.contentHeight/this.unfocusedHeight,n=this.editor.getOption(89).maxVisibleSuggestions;e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.statusBarElement.style.top=e+"px",this.list.layout(e),e},Ze.prototype.adjustDocsPosition=function(){if(this.editor.hasModel()){var e=this.editor.getOption(49),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(he.C)(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=Object(he.C)(this.element),s=r.left,a=r.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<a&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=a,(s<i-this.listWidth?Object(he.f):Object(he.P))(this.element,"list-right"),Object(he.I)(this.element,"docs-side")&&a<o-e&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},Ze.prototype.expandSideOrBelow=function(){if(!He(this.focusedItem)&&this.firstFocusInCurrentList)return Object(he.P)(this.element,"docs-side"),void Object(he.P)(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(Object(he.f)(this.element,"docs-below"),Object(he.P)(this.element,"docs-side")):He(this.focusedItem)&&(Object(he.f)(this.element,"docs-side"),Object(he.P)(this.element,"docs-below"))},Object.defineProperty(Ze.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getOptions();return e.get(91)||e.get(34).lineHeight},enumerable:!0,configurable:!0}),Ze.prototype.getHeight=function(e){return this.unfocusedHeight},Ze.prototype.getTemplateId=function(e){return"suggestion"},Ze.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,!1)},Ze.prototype.updateExpandDocsSetting=function(e){this.storageService.store("expandSuggestionDocs",e,0)},Ze.prototype.setStatusBarLeftText=function(e){this.statusBarLeftSpan.innerText=e},Ze.prototype.setStatusBarRightText=function(e){this.statusBarRightSpan.innerText=e},Ze.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},Ze.ID="editor.widget.suggestWidget",Ze.LOADING_MESSAGE=W.a("suggestWidget.loading","Loading..."),Ze.NO_SUGGESTIONS_MESSAGE=W.a("suggestWidget.noSuggestions","No suggestions."),Ze=Pe([Re(1,me.a),Re(2,ge.a),Re(3,B.c),Re(4,_e.c),Re(5,m.a),Re(6,Ce.a),Re(7,we.a),Re(8,b.a)],Ze));function Ze(e,t,n,i,o,r,s,a,u){var c,d,h=this;this.editor=e,this.telemetryService=t,this.keybindingService=n,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=l.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new _.e,this.toDispose=new l.b,this.onDidSelectEmitter=new q.a,this.onDidFocusEmitter=new q.a,this.onDidHideEmitter=new q.a,this.onDidShowEmitter=new q.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new q.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var p=this.toDispose.add(new ye.a(e,s,a)),f=null!==(d=null===(c=n.lookupKeybinding("toggleSuggestionDetails"))||void 0===c?void 0:c.getLabel())&&void 0!==d?d:"";function g(){return Object(he.Y)(h.element,"with-status-bar",!h.editor.getOption(89).hideStatusBar)}function m(){return Object(he.Y)(h.element,"no-icons",!h.editor.getOption(89).showIcons)}this.msgDetailsLess=W.a("detail.less","{0} for less...",f),this.msgDetailMore=W.a("detail.more","{0} for more...",f),this.isAuto=!1,this.focusedItem=null,this.storageService=r,this.element=Object(he.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(he.j)(this.element,"click",(function(e){e.target===h.element&&h.hideWidget()}))),this.messageElement=Object(he.q)(this.element,Object(he.a)(".message")),this.listElement=Object(he.q)(this.element,Object(he.a)(".tree")),g(),this.statusBarElement=Object(he.q)(this.element,Object(he.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(he.q)(this.statusBarElement,Object(he.a)("span")),this.statusBarRightSpan=Object(he.q)(this.statusBarElement,Object(he.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=u.createInstance(qe,this.element,this,this.editor,p,f),m();var v=u.createInstance(Ue,this,this.editor,f);this.list=new pe.c("SuggestWidget",this.listElement,this,[v],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(e){var t="string"==typeof e.completion.label?e.completion.label:e.completion.label.name;if(e.isResolved&&h.expandDocsSettingFromStorage()){var n=e.completion,i=n.documentation,o=n.detail,r=Z.r("{0}{1}",o||"",i?"string"==typeof i?i:i.value:"");return W.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",t,r)}return t}}}),this.toDispose.add(Object(ve.b)(this.list,o,{listInactiveFocusBackground:We,listInactiveFocusOutline:be.b})),this.toDispose.add(o.onThemeChange((function(e){return h.onThemeChange(e)}))),this.toDispose.add(e.onDidLayoutChange((function(){return h.onEditorLayoutChange()}))),this.toDispose.add(this.list.onMouseDown((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onTap((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onSelectionChange((function(e){return h.onListSelection(e)}))),this.toDispose.add(this.list.onFocusChange((function(e){return h.onListFocus(e)}))),this.toDispose.add(this.editor.onDidChangeCursorSelection((function(){return h.onCursorSelectionChanged()}))),this.toDispose.add(this.editor.onDidChangeConfiguration((function(e){e.hasChanged(89)&&(g(),m())}))),this.suggestWidgetVisible=z.b.Visible.bindTo(i),this.suggestWidgetMultipleSuggestions=z.b.MultipleSuggestions.bindTo(i),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(o.getTheme()),this.toDispose.add(Object(he.o)(this.details.element,"keydown",(function(e){h._onDetailsKeydown.fire(e)}))),this.toDispose.add(this.editor.onMouseDown((function(e){return h.onEditorMouseDown(e)})))}Object(_e.e)((function(e,t){var n=e.getColor(Ve);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var i=e.getColor(je);i&&t.addRule(".monaco-editor .suggest-widget { color: "+i+"; }");var o=e.getColor(be.ec);o&&t.addRule(".monaco-editor .suggest-widget a { color: "+o+"; }");var r=e.getColor(be.dc);r&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+r+"; }")}));var Xe,$e,Je=((Xe=function(e,t){return(Xe=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}Xe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Qe,$e=l.a),Qe.prototype.dispose=function(){$e.prototype.dispose.call(this),Object(l.f)(this._selectionListener),this._ckAtEnd.reset()},Qe.prototype._update=function(){var e=this,t="on"===this._editor.getOption(94);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)},Qe.AtEnd=new B.d("atEndOfWord",!1),Qe=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,B.c)],Qe));function Qe(e,t){var n=$e.call(this)||this;return n._editor=e,n._enabled=!1,n._ckAtEnd=Qe.AtEnd.bindTo(t),n._register(n._editor.onDidChangeConfiguration((function(e){return e.hasChanged(94)&&n._update()}))),n._update(),n}var et=n(758),tt=n(465),nt=n(790),it=(ot.prototype._onItem=function(e){if(e&&Object(r.q)(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){for(var t=new nt.b,n=0,i=e.item.completion.commitCharacters;n<i.length;n++){var o=i[n];0<o.length&&t.add(o.charCodeAt(0))}this._active={acceptCharacters:t,item:e}}}else this.reset()},ot.prototype.reset=function(){this._active=void 0},ot.prototype.dispose=function(){this._disposables.dispose()},ot);function ot(e,t,n){var i=this;this._disposables=new l.b,this._disposables.add(t.onDidShow((function(){return i._onItem(t.getFocusedItem())}))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((function(o){if(i._active&&!t.isFrozen()){var r=o.charCodeAt(o.length-1);i._active.acceptCharacters.has(r)&&e.getOption(0)&&n(i._active.item)}})))}var rt,st=n(452),at=n(686),lt=(rt=function(e,t){return(rt=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}rt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ut=(ct.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(l.f)(this._widgetListener),Object(l.f)(this._shiftKeyListener)},ct.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},ct.prototype._highlight=function(e){var t,n=this;this._currentItem=e;var i=this._controller.editor.getOption(89),o=[];if(i.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=ht.event((function(){return n._highlight(n._currentItem)})));var r=this._controller.getOverwriteInfo(e,ht.isPressed),s=this._controller.editor.getPosition();if("insert"===i.insertMode&&0<r.overwriteAfter)o=[{range:new d.a(s.lineNumber,s.column,s.lineNumber,s.column+r.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if("replace"===i.insertMode&&0===r.overwriteAfter){var a=null===(t=this._controller.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(s);a&&a.endColumn>s.column&&(o=[{range:new d.a(s.lineNumber,s.column,s.lineNumber,a.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,o)},ct);function ct(e){var t=this;this._controller=e,this._disposables=new l.b,this._decorations=[],this._disposables.add(e.model.onDidSuggest((function(e){if(!e.shy){var n=t._controller.widget.getValue(),i=n.getFocusedItem();i&&t._highlight(i.item),t._widgetListener||(t._widgetListener=n.onDidFocus((function(e){return t._highlight(e.item)})))}}))),this._disposables.add(e.model.onDidCancel((function(){t._reset()})))}var dt,ht=(lt(pt,dt=q.a),Object.defineProperty(pt.prototype,"isPressed",{get:function(){return this._isPressed},set:function(e){this._isPressed!==e&&(this._isPressed=e,this.fire(e))},enumerable:!0,configurable:!0}),pt.prototype.dispose=function(){this._subscriptions.dispose(),dt.prototype.dispose.call(this)},new pt);function pt(){var e=dt.call(this)||this;return e._subscriptions=new l.b,e._isPressed=!1,e._subscriptions.add(Object(at.a)(document.body,"keydown")((function(t){return e.isPressed=t.shiftKey}))),e._subscriptions.add(Object(at.a)(document.body,"keyup")((function(){return e.isPressed=!1}))),e._subscriptions.add(Object(at.a)(document.body,"mouseleave")((function(){return e.isPressed=!1}))),e._subscriptions.add(Object(at.a)(document.body,"blur")((function(){return e.isPressed=!1}))),e}n.d(t,"SuggestController",(function(){return yt})),n.d(t,"TriggerSuggestAction",(function(){return St}));var ft,gt=function(){return(gt=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)},mt=function(e,t){return function(n,i){t(n,i,e)}},vt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},_t=(ft=function(e,t){return(ft=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)},bt.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},bt.prototype.delta=function(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){var t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column},bt);function bt(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){var n=e.getOffsetAt(t),i=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:d.a.fromPositions(t,i),options:{stickiness:1}}])}}var yt=(Ct.get=function(e){return e.getContribution(Ct.ID)},Ct.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},Ct.prototype._insertSuggestion=function(e,t){var n,i=this;if(!e||!e.item)return this._alternatives.getValue().reset(),this.model.cancel(),void this.model.clear();if(this.editor.hasModel()){var o=this.editor.getModel(),r=o.getAlternativeVersionId(),a=e.item,l=a.completion;1&t||this.editor.pushUndoStop();var u=this.getOverwriteInfo(a,Boolean(8&t));this._memoryService.memorize(o,this.editor.getPosition(),a),Array.isArray(l.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",l.additionalTextEdits.map((function(e){return c.a.replace(d.a.lift(e.range),e.text)})));var h=l.insertText;4&l.insertTextRules||(h=f.c.escape(h)),p.SnippetController2.get(this.editor).insert(h,{overwriteBefore:u.overwriteBefore,overwriteAfter:u.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&l.insertTextRules)}),2&t||this.editor.pushUndoStop(),l.command?l.command.id===St.id?this.model.trigger({auto:!0,shy:!1},!0):((n=this._commandService).executeCommand.apply(n,vt([l.command.id],l.command.arguments?vt(l.command.arguments):[])).catch(s.e).finally((function(){return i.model.clear()})),this.model.cancel()):(this.model.cancel(),this.model.clear()),4&t&&this._alternatives.getValue().set(e,(function(e){for(;o.canUndo();){r!==o.getAlternativeVersionId()&&o.undo(),i._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(e.item)}},Ct.prototype.getOverwriteInfo=function(e,t){Object(tt.a)(this.editor.hasModel());var n="replace"===this.editor.getOption(89).insertMode;t&&(n=!n);var i=e.position.column-e.editStart.column,o=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:i+(this.editor.getPosition().column-e.position.column),overwriteAfter:o+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}},Ct.prototype._alertCompletionItem=function(e){var t=e.completion,n="string"==typeof t.label?t.label:t.label.name;if(Object(r.q)(t.additionalTextEdits)){var i=W.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",n,t.additionalTextEdits.length);Object(o.a)(i)}},Ct.prototype.triggerSuggest=function(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},Ct.prototype.triggerSuggestAndAcceptBest=function(e){var t=this;if(this.editor.hasModel()){var n=this.editor.getPosition(),i=function(){n.equals(t.editor.getPosition())&&t._commandService.executeCommand(e.fallback)};q.b.once(this.model.onDidTrigger)((function(e){var n=[];q.b.any(t.model.onDidTrigger,t.model.onDidCancel)((function(){Object(l.f)(n),i()}),void 0,n),t.model.onDidSuggest((function(e){var o=e.completionModel;if(Object(l.f)(n),0!==o.items.length){var r=t._memoryService.select(t.editor.getModel(),t.editor.getPosition(),o.items),s=o.items[r];!function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return 1;var n=t.editor.getPosition(),i=e.editStart.column,o=n.column;return o-i!==e.completion.insertText.length||t.editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:o})!==e.completion.insertText}(s)?i():(t.editor.pushUndoStop(),t._insertSuggestion({index:r,item:s,model:o},7))}else i()}),void 0,n)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(n.lineNumber,0),this.editor.focus()}},Ct.prototype.acceptSelectedSuggestion=function(e,t){var n=this.widget.getValue().getFocusedItem(),i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)},Ct.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},Ct.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},Ct.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},Ct.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},Ct.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},Ct.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},Ct.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},Ct.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},Ct.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},Ct.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},Ct.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},Ct.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},Ct.ID="editor.contrib.suggestController",Ct=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([mt(1,et.a),mt(2,j),mt(3,V.b),mt(4,B.c),mt(5,b.a)],Ct));function Ct(e,t,n,i,o,r){var s=this;function u(){var e=s.editor.getOption(1);c.set("on"===e||"smart"===e)}this._memoryService=n,this._commandService=i,this._contextKeyService=o,this._instantiationService=r,this._lineSuffix=new l.d,this._toDispose=new l.b,this.editor=e,this.model=new le(this.editor,t),this.widget=this._toDispose.add(new _.b((function(){var e=s._instantiationService.createInstance(Ye,s.editor);s._toDispose.add(e),s._toDispose.add(e.onDidSelect((function(e){return s._insertSuggestion(e,0)}),s));var t=new it(s.editor,e,(function(e){return s._insertSuggestion(e,2)}));s._toDispose.add(t),s._toDispose.add(s.model.onDidSuggest((function(e){0===e.completionModel.items.length&&t.reset()})));var n=z.b.MakesTextEdit.bindTo(s._contextKeyService);return s._toDispose.add(e.onDidFocus((function(e){var t=e.item,i=s.editor.getPosition(),o=t.editStart.column,r=i.column,a=!0;"smart"!==s.editor.getOption(1)||2!==s.model.state||t.completion.command||t.completion.additionalTextEdits||4&t.completion.insertTextRules||r-o!==t.completion.insertText.length||(a=s.editor.getModel().getValueInRange({startLineNumber:i.lineNumber,startColumn:o,endLineNumber:i.lineNumber,endColumn:r})!==t.completion.insertText),n.set(a)}))),s._toDispose.add(Object(l.h)((function(){return n.reset()}))),s._toDispose.add(e.onDetailsKeyDown((function(e){e.toKeybinding().equals(new a.e(!0,!1,!1,!1,33))||st.e&&e.toKeybinding().equals(new a.e(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||s.editor.focus()}))),e}))),this._alternatives=this._toDispose.add(new _.b((function(){return s._toDispose.add(new U(s.editor,s._contextKeyService))}))),this._toDispose.add(r.createInstance(Je,e)),this._toDispose.add(this.model.onDidTrigger((function(e){s.widget.getValue().showTriggered(e.auto,e.shy?250:50),s._lineSuffix.value=new _t(s.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((function(e){if(!e.shy){var t=s._memoryService.select(s.editor.getModel(),s.editor.getPosition(),e.completionModel.items);s.widget.getValue().showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}}))),this._toDispose.add(this.model.onDidCancel((function(e){e.retrigger||s.widget.getValue().hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((function(){s.model.cancel(),s.model.clear()})));var c=z.b.AcceptSuggestionsOnEnter.bindTo(o);this._toDispose.add(this.editor.onDidChangeConfiguration((function(){return u()}))),u(),this._toDispose.add(new ut(this))}var wt,St=(function(e,t){function n(){this.constructor=e}ft(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(Ot,wt=u.b),Ot.prototype.run=function(e,t){var n=yt.get(t);n&&n.triggerSuggest()},Ot.id="editor.action.triggerSuggest",Ot);function Ot(){return wt.call(this,{id:Ot.id,label:W.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:B.a.and(h.a.writable,h.a.hasCompletionItemProvider),kbOpts:{kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})||this}Object(u.h)(yt.ID,yt),Object(u.f)(St);var Lt=u.c.bindToContribution(yt.get);Object(u.g)(new Lt({id:"acceptSelectedSuggestion",precondition:z.b.Visible,handler:function(e){e.acceptSelectedSuggestion(!0,!1)}})),H.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(z.b.Visible,h.a.textInputFocus),primary:2,weight:190}),H.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:B.a.and(z.b.Visible,h.a.textInputFocus,z.b.AcceptSuggestionsOnEnter,z.b.MakesTextEdit),primary:3,weight:190}),Object(u.g)(new Lt({id:"acceptAlternativeSelectedSuggestion",precondition:B.a.and(z.b.Visible,h.a.textInputFocus),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1027,secondary:[1026]},handler:function(e){e.acceptSelectedSuggestion(!1,!0)}})),V.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(u.g)(new Lt({id:"hideSuggestWidget",precondition:z.b.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:9,secondary:[1033]}})),Object(u.g)(new Lt({id:"selectNextSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(u.g)(new Lt({id:"selectNextPageSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:12,secondary:[2060]}})),Object(u.g)(new Lt({id:"selectLastSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),Object(u.g)(new Lt({id:"selectPrevSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(u.g)(new Lt({id:"selectPrevPageSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:11,secondary:[2059]}})),Object(u.g)(new Lt({id:"selectFirstSuggestion",precondition:B.a.and(z.b.Visible,z.b.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),Object(u.g)(new Lt({id:"toggleSuggestionDetails",precondition:z.b.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266}}})),Object(u.g)(new Lt({id:"toggleExplainMode",precondition:z.b.Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),Object(u.g)(new Lt({id:"toggleSuggestionFocus",precondition:z.b.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object(u.g)(new Lt({id:"insertBestCompletion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),Je.AtEnd,z.b.Visible.toNegated(),U.OtherSuggestions.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest(Object(tt.i)(t)?gt({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object(u.g)(new Lt({id:"insertNextSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),U.OtherSuggestions,z.b.Visible.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2}})),Object(u.g)(new Lt({id:"insertPrevSuggestion",precondition:B.a.and(B.a.equals("config.editor.tabCompletion","on"),U.OtherSuggestions,z.b.Visible.toNegated(),p.SnippetController2.InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1026}}))},function(e,t,n){"use strict";n.r(t),n(1334);var i=n(445),o=n(465),r=n(444),s=n(453),a=n(548),l=n(439),u=n(449),c=n(442),d=16777215,h=(p.prototype.ensureParentIndices=function(){var e,t,n;if(!this._parentsComputed){this._parentsComputed=!0;for(var i=[],o=0,r=this._startIndexes.length;o<r;o++){var s=this._startIndexes[o],a=this._endIndexes[o];if(d<s||d<a)throw new Error("startLineNumber or endLineNumber must not exceed "+d);for(;0<i.length&&(e=s,t=a,n=i[i.length-1],!(this.getStartLineNumber(n)<=e&&this.getEndLineNumber(n)>=t));)i.pop();var l=0<i.length?i[i.length-1]:-1;i.push(o),this._startIndexes[o]=s+((255&l)<<24),this._endIndexes[o]=a+((65280&l)<<16)}}},Object.defineProperty(p.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),p.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&d},p.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&d},p.prototype.getType=function(e){return this._types?this._types[e]:void 0},p.prototype.hasTypes=function(){return!!this._types},p.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!=(this._collapseStates[t]&1<<n)},p.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)},p.prototype.toRegion=function(e){return new f(this,e)},p.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return 65535==t?-1:t},p.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},p.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},p.prototype.findRange=function(e){var t=this.findIndex(e);if(0<=t){if(e<=this.getEndLineNumber(t))return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},p.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(", ")},p);function p(e,t,n){if(e.length!==t.length||65535<e.length)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,this._parentsComputed=!1}var f=(Object.defineProperty(g.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),g.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber},g.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},g);function g(e,t){this.ranges=e,this.index=t}var m=(Object.defineProperty(v.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),v.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 l=!t._regions.isCollapsed(s);t._regions.setCollapsed(s,l),i.changeDecorationOptions(a,t._decorationProvider.getDecorationOption(l))}}})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}},v.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 1}}(s,e.getEndLineNumber(o))&&(r=!1),e.setCollapsed(o,r);var a=n._textModel.getLineMaxColumn(s),l={startLineNumber:s,startColumn:a,endLineNumber:s,endColumn:a};i.push({range:l,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,l=s();-1!==l&&a<e.length;){var u=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(u){var c=u.startLineNumber;if(this._textModel.getLineMaxColumn(c)===u.startColumn)for(;a<e.length;){var d=e.getStartLineNumber(a);if(!(d<=c))break;o(a,c===d),a++}}l=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})},v.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(0<e.length)return e},v.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)}},v.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},v.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions)for(var i=this._regions.findRange(e),o=1;0<=i;){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}return n},v.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(0<=t)return this._regions.toRegion(t)}return null},v.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 l=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;for(;0<r.length&&!l.containedBy(r[r.length-1]);)r.pop();r.push(l),t(l,r.length)&&n.push(l)}else for(s=i,a=this._regions.length;s<a&&(l=this._regions.toRegion(s),this._regions.getStartLineNumber(s)<o);s++)t&&!t(l)||n.push(l);return n},v);function v(e,t){this._updateEventEmitter=new c.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new h(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}function _(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&0<i.length)for(var r=0,s=i;r<s.length;r++){var a=s[r],l=e.getRegionAtLine(a);if(l&&(l.isCollapsed!==t&&o.push(l),1<n)){var u=e.getRegionsInside(l,(function(e,i){return e.isCollapsed!==t&&i<n}));o.push.apply(o,u)}}else u=e.getRegionsInside(null,(function(e,i){return e.isCollapsed!==t&&i<n})),o.push.apply(o,u);e.toggleCollapseState(o)}function b(e,t,n,i){for(var o=[],r=0,s=i;r<s.length;r++){var a=s[r],l=e.getAllRegionsAtLine(a,(function(e,i){return e.isCollapsed!==t&&i<=n}));o.push.apply(o,l)}e.toggleCollapseState(o)}function y(e,t,n){for(var i=e.textModel,o=e.regions,r=[],s=o.length-1;0<=s;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 C(e,t,n){for(var i=e.regions,o=[],r=i.length-1;0<=r;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}var w=n(495),S=(O.prototype.getDecorationOption=function(e){return e?this.showFoldingHighlights?O.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:O.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?O.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:O.EXPANDED_VISUAL_DECORATION},O.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},O.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},O.COLLAPSED_VISUAL_DECORATION=w.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),O.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=w.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),O.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=w.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),O.EXPANDED_VISUAL_DECORATION=w.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),O);function O(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}var L=n(469),D=n(440),x=n(459),N=(Object.defineProperty(k.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),k.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,l=s.getEndLineNumber(n);o<=a&&l<=r||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===l?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new D.a(a,1,l,1))),o=a,r=l)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)},k.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 D.a(o.startLineNumber+1,1,o.endLineNumber,1))}return this.applyHiddenRanges(t),!0},k.prototype.getMemento=function(){return this._hiddenRanges.map((function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}}))},k.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)},k.prototype.hasRanges=function(){return 0<this._hiddenRanges.length},k.prototype.isHidden=function(e){return null!==E(this._hiddenRanges,e)},k.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){var n,i;return o&&(n=e)>=(i=o).startLineNumber&&n<=i.endLineNumber||(o=E(t._hiddenRanges,e)),o?o.startLineNumber-1:null},s=0,a=e.length;s<a;s++){var l=e[s],u=r(l.startLineNumber);u&&(l=l.setStartPosition(u,i.getLineMaxColumn(u)),n=!0);var c=r(l.endLineNumber);c&&(l=l.setEndPosition(c,i.getLineMaxColumn(c)),n=!0),e[s]=l}return n},k.prototype.dispose=function(){0<this.hiddenRanges.length&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},k);function k(e){var t=this;this._updateEventEmitter=new c.a,this._foldingModel=e,this._foldingModelListener=e.onDidChange((function(e){return t.updateHiddenRanges()})),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}function E(e,t){var n=Object(x.i)(e,(function(e){return t<e.startLineNumber}))-1;return 0<=n&&e[n].endLineNumber>=t?e[n]:null}var I=n(575),M=(T.prototype.dispose=function(){},T.prototype.compute=function(e){var t=I.a.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=5e3);var o=e.getOptions().tabSize,r=new P(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[],l=e.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(var u=e.getLineCount();0<u;u--){var c=e.getLineContent(u),d=w.b.computeIndentLevel(c,o),h=a[a.length-1];if(-1!==d){var p=void 0;if(s&&(p=c.match(s))){if(!p[1]){a.push({indent:-2,endAbove:u,line:u});continue}for(var f=a.length-1;0<f&&-2!==a[f].indent;)f--;if(0<f){a.length=f+1,h=a[f],r.insertFirst(u,h.line,d),h.line=u,h.indent=d,h.endAbove=u;continue}}if(h.indent>d){for(;a.pop(),(h=a[a.length-1]).indent>d;);var g=h.endAbove-1;1<=g-u&&r.insertFirst(u,g,d)}h.indent===d?h.endAbove=u:a.push({indent:d,endAbove:u,line:u})}else t&&(h.endAbove=u)}return r.toIndentRanges(e)}(this.editorModel,n,i))},T);function T(e){this.editorModel=e,this.id="indent"}var P=(R.prototype.insertFirst=function(e,t,n){if(!(d<e||d<t)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},R.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;0<=i;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new h(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 l=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),i=this._length-1,o=0;0<=i;i--){var u=this._startIndexes[i],c=e.getLineContent(u),d=w.b.computeIndentLevel(c,l);(d<s||d===s&&r++<this._foldingRangesLimit)&&(t[o]=u,n[o]=this._endIndexes[i],o++)}return new h(t,n)},R);function R(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}var A=n(454),F=n(446),j={},W=(V.prototype.compute=function(e){var t,n,i,o,r,s=this;return t=this.providers,n=this.editorModel,i=e,o=null,r=t.map((function(e,t){return Promise.resolve(e.provideFoldingRanges(n,j,i)).then((function(e){if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(o)||(o=[]);for(var r=n.getLineCount(),s=0,a=e;s<a.length;s++){var l=a[s];0<l.start&&l.end>l.start&&l.end<=r&&o.push({start:l.start,end:l.end,rank:t,kind:l.kind})}}}),F.f)})),Promise.all(r).then((function(e){return o})).then((function(e){return e?z(e,s.limit):null}))},V.prototype.dispose=function(){},V);function V(e,t,n){void 0===n&&(n=5e3),this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax"}var B=(H.prototype.add=function(e,t,n,i){if(!(d<e||d<t)){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)}},H.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 h(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;n<this._length;n++){var l=this._nestingLevels[n];(l<o||l===o&&i++<this._foldingRangesLimit)&&(e[a]=this._startIndexes[n],t[a]=this._endIndexes[n],s[a]=this._types[n],a++)}return new h(e,t,s)},H);function H(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}function z(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 B(t),o=void 0,r=[],s=0,a=n;s<a.length;s++){var l=a[s];if(o){if(l.start>o.start)if(l.end<=o.end)r.push(o),o=l,i.add(l.start,l.end,l.kind&&l.kind.value,r.length);else{if(l.start>o.end){for(;(o=r.pop())&&l.start>o.end;);o&&r.push(o),o=l}i.add(l.start,l.end,l.kind&&l.kind.value,r.length)}}else o=l,i.add(l.start,l.end,l.kind&&l.kind.value,r.length)}return i.toIndentRanges()}var U=(K.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)},K.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(z(t,Number.MAX_VALUE))},K);function K(e,t,n,i){this.editorModel=e,this.id="init",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))}var q=n(456),G=n(451),Y=n(461);n.d(t,"FoldingController",(function(){return Q})),n.d(t,"foldBackgroundBackground",(function(){return We}));var Z,X,$=(Z=function(e,t){return(Z=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}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),J=new q.d("foldingEnabled",!1),Q=($(ee,X=l.a),ee.get=function(e){return e.getContribution(ee.ID)},ee.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}}},ee.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){"syntax"!==e.provider&&"init"!==e.provider||(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,F.e)}}},ee.prototype.onModelChanged=function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new m(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new N(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((function(t){return e.onHiddenRangesChanges(t)}))),this.updateScheduler=new s.a(200),this.cursorChangedScheduler=new s.d((function(){return e.revealCursor()}),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(A.o.onDidChange((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelContent((function(){return e.onModelContentChanged()}))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((function(){return e.onCursorPositionChanged()}))),this.localToDispose.add(this.editor.onMouseDown((function(t){return e.onEditorMouseDown(t)}))),this.localToDispose.add(this.editor.onMouseUp((function(t){return e.onEditorMouseUp(t)}))),this.localToDispose.add({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())},ee.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},ee.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new M(e),this._useFoldingProviders&&this.foldingModel){var n=A.o.ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new U(e,this.foldingStateMemento.collapsedRegions,(function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()}),3e4);0<n.length&&(this.rangeProvider=new W(e,n))}return this.foldingStateMemento=null,this.rangeProvider},ee.prototype.getFoldingModel=function(){return this.foldingModelPromise},ee.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=Object(s.f)((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}))})).then(void 0,(function(e){return Object(F.e)(e),null})))},ee.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)},ee.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ee.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then((function(t){if(t){var n=e.editor.getSelections();if(n&&0<n.length){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,F.e)},ee.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 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}}},ee.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=[],l=e.event.middleButton||e.event.shiftKey;if(l)for(var u=0,c=n.getRegionsInside(r);u<c.length;u++){var d=c[u];d.isCollapsed===s&&a.push(d)}!s&&l&&0!==a.length||a.push(r),n.toggleCollapseState(a),t.reveal({lineNumber:i,column:1})}}}})).then(void 0,F.e)}}},ee.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)},ee.ID="editor.contrib.folding",ee=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,q.c)],ee));function ee(e,t){var n=X.call(this)||this;n.contextKeyService=t,n.localToDispose=n._register(new l.b),n.editor=e;var i=n.editor.getOptions();return n._isEnabled=i.get(30),n._useFoldingProviders="indentation"!==i.get(31),n.foldingModel=null,n.hiddenRangeModel=null,n.rangeProvider=null,n.foldingRegionPromise=null,n.foldingStateMemento=null,n.foldingModelPromise=null,n.updateScheduler=null,n.cursorChangedScheduler=null,n.mouseDownInfo=null,n.foldingDecorationProvider=new S(e),n.foldingDecorationProvider.autoHideFoldingControls="mouseover"===i.get(84),n.foldingDecorationProvider.showFoldingHighlights=i.get(32),n.foldingEnabled=J.bindTo(n.contextKeyService),n.foldingEnabled.set(n._isEnabled),n._register(n.editor.onDidChangeModel((function(){return n.onModelChanged()}))),n._register(n.editor.onDidChangeConfiguration((function(e){if(e.hasChanged(30)){var t=n.editor.getOptions();n._isEnabled=t.get(30),n.foldingEnabled.set(n._isEnabled),n.onModelChanged()}if(e.hasChanged(84)||e.hasChanged(32)){var i=n.editor.getOptions();n.foldingDecorationProvider.autoHideFoldingControls="mouseover"===i.get(84),n.foldingDecorationProvider.showFoldingHighlights=i.get(32),n.onModelContentChanged()}if(e.hasChanged(31)){var o=n.editor.getOptions();n._useFoldingProviders="indentation"!==o.get(31),n.onFoldingStrategyChanged()}}))),n.onModelChanged(),n}var te,ne=($(ie,te=u.b),ie.prototype.runEditorCommand=function(e,t,n){var i=this,o=Q.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}},ie.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map((function(e){return e.startLineNumber})):[]},ie.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map((function(e){return e+1})):this.getSelectedLines(t)},ie.prototype.run=function(e,t){},ie);function ie(){return null!==te&&te.apply(this,arguments)||this}function oe(e){if(!o.k(e)){if(!o.i(e))return!1;var t=e;if(!o.k(t.levels)&&!o.h(t.levels))return!1;if(!o.k(t.direction)&&!o.j(t.direction))return!1;if(!(o.k(t.selectionLines)||o.d(t.selectionLines)&&t.selectionLines.every(o.h)))return!1}return!0}var re,se=($(ae,re=ne),ae.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);(i&&"up"===i.direction?b:_)(t,!1,o,r)},ae);function ae(){return re.call(this,{id:"editor.unfold",label:i.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:J,kbOpts:{kbExpr:L.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:oe,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}var le,ue=($(ce,le=ne),ce.prototype.invoke=function(e,t,n,i){_(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))},ce);function ce(){return le.call(this,{id:"editor.unfoldRecursively",label:i.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2137),weight:100}})||this}var de,he=($(pe,de=ne),pe.prototype.invoke=function(e,t,n,i){var o=this.getLineNumbers(i,n),r=i&&i.levels,s=i&&i.direction;"number"!=typeof r&&"string"!=typeof s?function(e,t,n){for(var i=[],o=0,r=n;o<r.length;o++){var s=r[o],a=e.getAllRegionsAtLine(s,(function(e){return!0!==e.isCollapsed}));0<a.length&&i.push(a[0])}e.toggleCollapseState(i)}(t,0,o):("up"===s?b:_)(t,!0,r||1,o)},pe);function pe(){return de.call(this,{id:"editor.fold",label:i.a("foldAction.label","Fold"),alias:"Fold",precondition:J,kbOpts:{kbExpr:L.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.\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\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:oe,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}var fe,ge=($(me,fe=ne),me.prototype.invoke=function(e,t,n){!function(e,t,n){for(var i=[],o=function(t){var n=e.getRegionAtLine(t);if(n){n.isCollapsed;i.push(n)}},r=0,s=n;r<s.length;r++)o(s[r]);e.toggleCollapseState(i)}(t,0,this.getSelectedLines(n))},me);function me(){return fe.call(this,{id:"editor.toggleFold",label:i.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2090),weight:100}})||this}var ve,_e=($(be,ve=ne),be.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);_(t,!0,Number.MAX_VALUE,i)},be);function be(){return ve.call(this,{id:"editor.foldRecursively",label:i.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2135),weight:100}})||this}var ye,Ce=($(we,ye=ne),we.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())C(t,A.n.Comment.value,!0);else{var i=n.getModel();if(!i)return;var o=I.a.getComments(i.getLanguageIdentifier().id);o&&o.blockCommentStartToken&&y(t,new RegExp("^\\s*"+Object(r.p)(o.blockCommentStartToken)),!0)}},we);function we(){return ye.call(this,{id:"editor.foldAllBlockComments",label:i.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2133),weight:100}})||this}var Se,Oe=($(Le,Se=ne),Le.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())C(t,A.n.Region.value,!0);else{var i=n.getModel();if(!i)return;var o=I.a.getFoldingRules(i.getLanguageIdentifier().id);o&&o.markers&&o.markers.start&&y(t,new RegExp(o.markers.start),!0)}},Le);function Le(){return Se.call(this,{id:"editor.foldAllMarkerRegions",label:i.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2077),weight:100}})||this}var De,xe=($(Ne,De=ne),Ne.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())C(t,A.n.Region.value,!1);else{var i=n.getModel();if(!i)return;var o=I.a.getFoldingRules(i.getLanguageIdentifier().id);o&&o.markers&&o.markers.start&&y(t,new RegExp(o.markers.start),!1)}},Ne);function Ne(){return De.call(this,{id:"editor.unfoldAllMarkerRegions",label:i.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2078),weight:100}})||this}var ke,Ee=($(Ie,ke=ne),Ie.prototype.invoke=function(e,t,n){_(t,!0)},Ie);function Ie(){return ke.call(this,{id:"editor.foldAll",label:i.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2069),weight:100}})||this}var Me,Te=($(Pe,Me=ne),Pe.prototype.invoke=function(e,t,n){_(t,!1)},Pe);function Pe(){return Me.call(this,{id:"editor.unfoldAll",label:i.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2088),weight:100}})||this}var Re,Ae=($(Fe,Re=ne),Fe.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(Fe.ID_PREFIX.length))},Fe.prototype.invoke=function(e,t,n){var i,o,r,s;i=t,o=this.getFoldingLevel(),r=this.getSelectedLines(n),s=i.getRegionsInside(null,(function(e,t){return t===o&&!0!==e.isCollapsed&&!r.some((function(t){return e.containsLine(t)}))})),i.toggleCollapseState(s)},Fe.ID_PREFIX="editor.foldLevel",Fe.ID=function(e){return Fe.ID_PREFIX+e},Fe);function Fe(){return null!==Re&&Re.apply(this,arguments)||this}Object(u.h)(Q.ID,Q),Object(u.f)(se),Object(u.f)(ue),Object(u.f)(he),Object(u.f)(_e),Object(u.f)(Ee),Object(u.f)(Te),Object(u.f)(Ce),Object(u.f)(Oe),Object(u.f)(xe),Object(u.f)(ge);for(var je=1;je<=7;je++)Object(u.i)(new Ae({id:Ae.ID(je),label:i.a("foldLevelAction.label","Fold Level {0}",je),alias:"Fold Level "+je,precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2048|21+je),weight:100}}));var We=Object(Y.Tb)("editor.foldBackground",{light:Object(Y.fc)(Y.K,.3),dark:Object(Y.fc)(Y.K,.3),hc:null},i.a("editorSelectionBackground","Color of the editor selection."));Object(G.e)((function(e,t){var n=e.getColor(We);n&&t.addRule(".monaco-editor .folded-background { background-color: "+n+"; }")}))},function(e,t,n){"use strict";n.r(t),n(1367);var i=n(445),o=n(548),r=n(439),s=n(449),a=n(440),l=n(469),u=n(778),c=n(443),d=n(484),h=n(490),p=n(795),f=n(450),g=n(495),m=n(454),v=n(1080),_=n(1004),b=n(442),y=(Object.defineProperty(C.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(C.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(C.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}),C.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},C.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}},C.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},C);function C(e,t,n){this.presentationIndex=n,this._onColorFlushed=new b.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new b.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new b.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}n(1368);var w,S,O=n(478),L=n(793),D=n(597),x=n(461),N=n(451),k=(w=function(e,t){return(w=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}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=c.a,I=(k(M,S=r.a),M.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(e)||"",c.Y(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()},M.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},M);function M(e,t,n){var i=S.call(this)||this;i.model=t,i.domNode=E(".colorpicker-header"),c.q(e,i.domNode),i.pickedColorNode=c.q(i.domNode,E(".picked-color"));var o=c.q(i.domNode,E(".original-color"));return o.style.backgroundColor=h.a.Format.CSS.format(i.model.originalColor)||"",i.backgroundColor=n.getTheme().getColor(x.A)||h.a.white,i._register(Object(N.e)((function(e,t){i.backgroundColor=e.getColor(x.A)||h.a.white}))),i._register(c.j(i.pickedColorNode,c.d.CLICK,(function(){return i.model.selectNextColorPresentation()}))),i._register(c.j(o,c.d.CLICK,(function(){i.model.color=i.model.originalColor,i.model.flushColor()}))),i._register(t.onDidChangeColor(i.onDidChangeColor,i)),i._register(t.onDidChangePresentation(i.onDidChangePresentation,i)),i.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(t.color)||"",c.Y(i.pickedColorNode,"light",t.color.rgba.a<.5?i.backgroundColor.isLighter():t.color.isLighter()),i}var T,P=(k(R,T=r.a),R.prototype.flushColor=function(){this.model.flushColor()},R.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new h.a(new h.b(i.h,t,n,i.a))},R.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new h.a(new h.b(t.h,t.s,t.v,e))},R.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new h.a(new h.b(360==n?0:n,t.s,t.v,t.a))},R.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},R);function R(e,t,n){var i=T.call(this)||this;return i.model=t,i.pixelRatio=n,i.domNode=E(".colorpicker-body"),c.q(e,i.domNode),i.saturationBox=new F(i.domNode,i.model,i.pixelRatio),i._register(i.saturationBox),i._register(i.saturationBox.onDidChange(i.onDidSaturationValueChange,i)),i._register(i.saturationBox.onColorFlushed(i.flushColor,i)),i.opacityStrip=new z(i.domNode,i.model),i._register(i.opacityStrip),i._register(i.opacityStrip.onDidChange(i.onDidOpacityChange,i)),i._register(i.opacityStrip.onColorFlushed(i.flushColor,i)),i.hueStrip=new q(i.domNode,i.model),i._register(i.hueStrip),i._register(i.hueStrip.onDidChange(i.onDidHueChange,i)),i._register(i.hueStrip.onColorFlushed(i.flushColor,i)),i}var A,F=(k(j,A=r.a),j.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new L.a);var n=c.C(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,L.b,(function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top)}),(function(){return null}));var i=c.i(document,(function(){t._onColorFlushed.fire(),i.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)}),!0)},j.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})},j.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)},j.prototype.paint=function(){var e=this.model.color.hsva,t=new h.a(new h.b(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=h.a.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=o,n.fill()},j.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"},j.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},j);function j(e,t,n){var i=A.call(this)||this;return i.model=t,i.pixelRatio=n,i._onDidChange=new b.a,i.onDidChange=i._onDidChange.event,i._onColorFlushed=new b.a,i.onColorFlushed=i._onColorFlushed.event,i.domNode=E(".saturation-wrap"),c.q(e,i.domNode),i.canvas=document.createElement("canvas"),i.canvas.className="saturation-box",c.q(i.domNode,i.canvas),i.selection=E(".saturation-selection"),c.q(i.domNode,i.selection),i.layout(),i._register(c.h(i.domNode,(function(e){return i.onMouseDown(e)}))),i._register(i.model.onDidChangeColor(i.onDidChangeColor,i)),i.monitor=null,i}var W,V=(k(B,W=r.a),B.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)},B.prototype.onMouseDown=function(e){var t=this,n=this._register(new L.a),i=c.C(this.domNode);c.f(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(e.target,e.buttons,L.b,(function(e){return t.onDidChangeTop(e.posy-i.top)}),(function(){return null}));var o=c.i(document,(function(){t._onColorFlushed.fire(),o.dispose(),n.stopMonitoring(!0),c.P(t.domNode,"grabbing")}),!0)},B.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)},B.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px"},B);function B(e,t){var n=W.call(this)||this;return n.model=t,n._onDidChange=new b.a,n.onDidChange=n._onDidChange.event,n._onColorFlushed=new b.a,n.onColorFlushed=n._onColorFlushed.event,n.domNode=c.q(e,E(".strip")),n.overlay=c.q(n.domNode,E(".overlay")),n.slider=c.q(n.domNode,E(".slider")),n.slider.style.top="0px",n._register(c.h(n.domNode,(function(e){return n.onMouseDown(e)}))),n.layout(),n}var H,z=(k(U,H=V),U.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,i=t.g,o=t.b,r=new h.a(new h.c(n,i,o,1)),s=new h.a(new h.c(n,i,o,0));this.overlay.style.background="linear-gradient(to bottom, "+r+" 0%, "+s+" 100%)"},U.prototype.getValue=function(e){return e.hsva.a},U);function U(e,t){var n=H.call(this,e,t)||this;return c.f(n.domNode,"opacity-strip"),n._register(t.onDidChangeColor(n.onDidChangeColor,n)),n.onDidChangeColor(n.model.color),n}var K,q=(k(G,K=V),G.prototype.getValue=function(e){return 1-e.hsva.h/360},G);function G(e,t){var n=K.call(this,e,t)||this;return c.f(n.domNode,"hue-strip"),n}var Y,Z=(k(X,Y=D.a),X.prototype.layout=function(){this.body.layout()},X);function X(e,t,n,i){var o=Y.call(this)||this;o.model=t,o.pixelRatio=n,o._register(Object(O.o)((function(){return o.layout()})));var r=E(".colorpicker-widget");e.appendChild(r);var s=new I(r,o.model,i);return o.body=new P(r,o.model,o.pixelRatio),o._register(s),o._register(o.body),o}var $=n(459),J=n(446);function Q(e,t,n){var i=m.p.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&&0<t.contents.length,n&&i)?e:void 0;var t,n,i}),(function(e){Object(J.f)(e)}))}));return Promise.all(i).then($.d)}Object(s.k)("_executeHoverProvider",(function(e,t){return Q(e,t,d.a.None)}));var ee=n(453),te=(ne.prototype.setHoverTime=function(e){this._hoverTime=e},ne.prototype._firstWaitTime=function(){return this._hoverTime/2},ne.prototype._secondWaitTime=function(){return this._hoverTime/2},ne.prototype._loadingMessageTime=function(){return 3*this._hoverTime},ne.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)((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},ne.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()))},ne.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},ne.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},ne.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},ne.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):Object(J.e)(e)},ne.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},ne.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()}},ne.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},ne);function ne(e,t,n,i,o){var r=this;this._computer=e,this._state=0,this._hoverTime=o,this._firstWaitScheduler=new ee.d((function(){return r._triggerAsyncComputation()}),0),this._secondWaitScheduler=new ee.d((function(){return r._triggerSyncComputation()}),0),this._loadingMessageScheduler=new ee.d((function(){return r._showLoadingMessage()}),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}var ie,oe,re=n(688),se=(ie=function(e,t){return(ie=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}ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ae=(se(le,oe=D.a),Object.defineProperty(le.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c.Y)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),le.prototype.getId=function(){return this._id},le.prototype.getDomNode=function(){return this._containerDomNode},le.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)&&this._containerDomNode.focus()},le.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},le.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},le.prototype.dispose=function(){this._editor.removeContentWidget(this),oe.prototype.dispose.call(this)},le.prototype.updateFont=function(){var e=this;Array.prototype.slice.call(this._domNode.getElementsByClassName("code")).forEach((function(t){return e._editor.applyFontInfo(t)}))},le.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},le.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},le.prototype.layout=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getOption(34),n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px",this._domNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"},le);function le(e,t){var n=oe.call(this)||this;return n.allowEditorOverflow=!0,n._id=e,n._editor=t,n._isVisible=!1,n._stoleFocus=!1,n._containerDomNode=document.createElement("div"),n._containerDomNode.className="monaco-editor-hover hidden",n._containerDomNode.tabIndex=0,n._domNode=document.createElement("div"),n._domNode.className="monaco-editor-hover-content",n.scrollbar=new re.a(n._domNode,{}),n._register(n.scrollbar),n._containerDomNode.appendChild(n.scrollbar.getDomNode()),n.onkeydown(n._containerDomNode,(function(e){e.equals(9)&&n.hide()})),n._register(n._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&n.updateFont()}))),n._editor.onDidLayoutChange((function(e){return n.layout()})),n.layout(),n._editor.addContentWidget(n),n._showAtPosition=null,n._showAtRange=null,n._stoleFocus=!1,n}var ue,ce=(se(de,ue=D.a),Object.defineProperty(de.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c.Y)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),de.prototype.getId=function(){return this._id},de.prototype.getDomNode=function(){return this._domNode},de.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.getOption(49),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"},de.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},de.prototype.getPosition=function(){return null},de.prototype.dispose=function(){this._editor.removeOverlayWidget(this),ue.prototype.dispose.call(this)},de.prototype.updateFont=function(){var e=this;(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i})(Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))).forEach((function(t){return e._editor.applyFontInfo(t)}))},de.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},de);function de(e,t){var n=ue.call(this)||this;return n._id=e,n._editor=t,n._isVisible=!1,n._domNode=document.createElement("div"),n._domNode.className="monaco-editor-hover hidden",n._domNode.setAttribute("aria-hidden","true"),n._domNode.setAttribute("role","presentation"),n._showAtLineNumber=-1,n._register(n._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&n.updateFont()}))),n._editor.addOverlayWidget(n),n}var he,pe=n(915),fe=n(773),ge=n(554),me=n(636),ve=n(1052),_e=n(885),be=n(1116),ye=n(886),Ce=(he=function(e,t){return(he=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}he(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),we=c.a,Se=function(e,t,n){this.range=e,this.color=t,this.provider=n},Oe=function(e,t){this.range=e,this.marker=t},Le=(De.prototype.setRange=function(e){this._range=e,this._result=[]},De.prototype.clearResult=function(){this._result=[]},De.prototype.computeAsync=function(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var t=this._editor.getModel();return m.p.has(t)?Q(t,new f.a(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])},De.prototype.computeSync=function(){var e=this;if(!this._editor.hasModel()||!this._range)return[];var t=this._editor.getModel(),n=this._range.startLineNumber;if(n>this._editor.getModel().getLineCount())return[];var i=_.ColorDetector.get(this._editor),o=t.getLineMaxColumn(n),r=this._editor.getLineDecorations(n),s=!1,l=this._range,u=r.map((function(r){var u=r.range.startLineNumber===n?r.range.startColumn:1,c=r.range.endLineNumber===n?r.range.endColumn:o;if(u>l.startColumn||l.endColumn>c)return null;var d=new a.a(l.startLineNumber,u,l.startLineNumber,c),h=e._markerDecorationsService.getMarker(t,r);if(h)return new Oe(d,h);var f=i.getColorData(r.range.getStartPosition());if(s||!f)return Object(p.b)(r.options.hoverMessage)?null:{contents:r.options.hoverMessage?Object($.b)(r.options.hoverMessage):[],range:d};s=!0;var g=f.colorInfo,m=g.color,v=g.range;return new Se(v,m,f.provider)}));return Object($.d)(u)},De.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort((function(e,t){return e instanceof Se?-1:t instanceof Se?1:0}))):this._result.concat(e)},De.prototype.getResult=function(){return this._result.slice(0)},De.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},De.prototype._getLoadingMessage=function(){return{range:this._range,contents:[(new p.a).appendText(i.a("modesContentHover.loading","Loading..."))]}},De);function De(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}var xe,Ne={type:2,filter:{include:ye.b.QuickFix}},ke=(Ce(Ee,xe=ae),Ee.prototype.dispose=function(){this._hoverOperation.cancel(),xe.prototype.dispose.call(this)},Ee.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},Ee.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){for(var i=[],o=0,r=this._messages.length;o<r;o++){var s=this._messages[o],a=s.range;a&&a.startColumn<=e.startColumn&&a.endColumn>=e.endColumn&&i.push(s)}if(0<i.length){if(function(e,t){if(!(!e&&t||e&&!t||e.length!==t.length)){for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(i instanceof Oe&&o instanceof Oe)return fe.a.makeKey(i.marker)===fe.a.makeKey(o.marker);if(i instanceof Se||o instanceof Se)return;if(i instanceof Oe||o instanceof Oe)return;if(!Object(p.c)(i.contents,o.contents))return}return 1}}(i,this._messages))return;this._renderMessages(e,i)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}},Ee.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),xe.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},Ee.prototype.isColorPickerVisible=function(){return!!this._colorPicker},Ee.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&0<this._messages.length?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},Ee.prototype._renderMessages=function(e,t){var n=this;this.renderDisposable.dispose(),this._colorPicker=null;var i=1073741824,o=t[0].range?a.a.lift(t[0].range):null,s=document.createDocumentFragment(),l=!0,u=!1,g=new r.b,m=[];if(t.forEach((function(e){if(e.range)if(i=Math.min(i,e.range.startColumn),o=o?a.a.plusRange(o,e.range):a.a.lift(e.range),e instanceof Se){u=!0;var t=e.color,f=t.red,_=t.green,b=t.blue,C=t.alpha,w=new h.c(Math.round(255*f),Math.round(255*_),Math.round(255*b),C),S=new h.a(w);if(!n._editor.hasModel())return;var O=n._editor.getModel(),L=new a.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),D={range:e.range,color:e.color},x=new y(S,[],0),N=new Z(s,x,n._editor.getOption(105),n._themeService);Object(v.a)(O,D,e.provider,d.a.None).then((function(t){if(x.colorPresentations=t||[],n._editor.hasModel()){var i=n._editor.getModel().getValueInRange(e.range);x.guessColorPresentation(S,i);var o=function(){var e,t;t=x.presentation.textEdit?(e=[x.presentation.textEdit],(t=new a.a(x.presentation.textEdit.range.startLineNumber,x.presentation.textEdit.range.startColumn,x.presentation.textEdit.range.endLineNumber,x.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+x.presentation.textEdit.text.length)):(e=[{identifier:null,range:L,text:x.presentation.label,forceMoveMarkers:!1}],L.setEndPosition(L.endLineNumber,L.startColumn+x.presentation.label.length)),n._editor.pushUndoStop(),n._editor.executeEdits("colorpicker",e),x.presentation.additionalTextEdits&&(e=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i}(x.presentation.additionalTextEdits),n._editor.executeEdits("colorpicker",e),n.hide()),n._editor.pushUndoStop(),L=t},l=function(t){return Object(v.a)(O,{range:L,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,d.a.None).then((function(e){x.colorPresentations=e||[]}))},u=x.onColorFlushed((function(e){l(e).then(o)})),c=x.onDidChangeColor(l);n._colorPicker=N,n.showAt(L.getStartPosition(),L,n._shouldFocus),n.updateContents(s),n._colorPicker.layout(),n.renderDisposable.value=Object(r.e)(u,c,N,g)}}))}else e instanceof Oe?(m.push(e),l=!1):e.contents.filter((function(e){return!Object(p.b)(e)})).forEach((function(e){var t=we("div.hover-row.markdown-hover"),i=c.q(t,we("div.hover-contents")),o=g.add(new pe.a(n._editor,n._modeService,n._openerService));g.add(o.onDidRenderCodeBlock((function(){i.className="hover-contents code-hover-contents",n.onContentsChange()})));var r=g.add(o.render(e));i.appendChild(r.element),s.appendChild(t),l=!1}))})),m.length){m.forEach((function(e){return s.appendChild(n.renderMarkerHover(e))}));var _=1===m.length?m[0]:m.sort((function(e,t){return fe.c.compare(e.marker.severity,t.marker.severity)}))[0];s.appendChild(this.renderMarkerStatusbar(_))}u||l||(this.showAt(new f.a(e.startLineNumber,i),o,this._shouldFocus),this.updateContents(s)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,o?[{range:o,options:Ee._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},Ee.prototype.renderMarkerHover=function(e){var t=this,n=we("div.hover-row"),i=c.q(n,we("div.marker.hover-contents")),o=e.marker,r=o.source,s=o.message,a=o.code,l=o.relatedInformation;this._editor.applyFontInfo(i);var u=c.q(i,we("span"));if(u.style.whiteSpace="pre-wrap",u.innerText=s,r||a)if("string"==typeof a)(d=c.q(i,we("span"))).style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=r&&a?r+"("+a+")":r||"("+a+")";else if(a){var d,h=we("span");r&&(c.q(h,we("span")).innerText=r),this._codeLink=c.q(h,we("a.code-link")),this._codeLink.setAttribute("href",a.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(a.link),e.preventDefault(),e.stopPropagation()},c.q(this._codeLink,we("span")).innerText=a.value,(d=c.q(i,h)).style.opacity="0.6",d.style.paddingLeft="6px"}if(Object($.q)(l))for(var p=function(e,n,o,r){var s=c.q(i,we("div"));s.style.marginTop="8px";var a=c.q(s,we("a"));a.innerText=Object(ge.b)(n)+"("+o+", "+r+"): ",a.style.cursor="pointer",a.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._openerService&&t._openerService.open(n.with({fragment:o+","+r}),{fromUserGesture:!0}).catch(J.e)};var l=c.q(s,we("span"));l.innerText=e,f._editor.applyFontInfo(l)},f=this,g=0,m=l;g<m.length;g++){var v=m[g];p(v.message,v.resource,v.startLineNumber,v.startColumn)}return n},Ee.prototype.renderMarkerStatusbar=function(e){var t=this,n=we("div.hover-row.status-bar"),o=new r.b,s=c.q(n,we("div.actions"));e.marker.severity!==fe.c.Error&&e.marker.severity!==fe.c.Warning&&e.marker.severity!==fe.c.Info||o.add(this.renderAction(s,{label:i.a("peek problem","Peek Problem"),commandId:ve.NextMarkerAction.ID,run:function(){t.hide(),ve.MarkerController.get(t._editor).show(e.marker),t._editor.focus()}}));var a=c.q(s,we("div"));a.style.opacity="0",a.style.transition="opacity 0.2s",setTimeout((function(){return a.style.opacity="1"}),200),a.textContent=i.a("checkingForQuickFixes","Checking for quick fixes..."),o.add(Object(r.h)((function(){return a.remove()})));var l=this.getCodeActions(e.marker);return o.add(Object(r.h)((function(){return l.cancel()}))),l.then((function(e){if(a.style.transition="",a.style.opacity="1",!e.validActions.length)return e.dispose(),void(a.textContent=i.a("noQuickFixes","No quick fixes available"));a.remove();var n=!1;o.add(Object(r.h)((function(){n||e.dispose()}))),o.add(t.renderAction(s,{label:i.a("quick fixes","Quick Fix..."),commandId:be.e.Id,run:function(i){n=!0;var o=be.f.get(t._editor),r=c.C(i);o.showCodeActions(Ne,e,{x:r.left+6,y:r.top+r.height+6})}}))})),this.renderDisposable.value=o,n},Ee.prototype.getCodeActions=function(e){var t=this;return Object(ee.f)((function(n){return Object(_e.c)(t._editor.getModel(),new a.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),Ne,n)}))},Ee.prototype.renderAction=function(e,t){var n=c.q(e,we("div.action-container")),i=c.q(n,we("a.action"));t.iconClass&&c.q(i,we("span.icon."+t.iconClass));var o=c.q(i,we("span"));o.textContent=t.label;var r=this._keybindingService.lookupKeybinding(t.commandId);return r&&(o.title=t.label+" ("+r.getLabel()+")"),c.j(n,c.d.CLICK,(function(e){e.stopPropagation(),e.preventDefault(),t.run(n)}))},Ee.ID="editor.contrib.modesContentHoverWidget",Ee._DECORATION_OPTIONS=g.a.register({className:"hoverHighlight"}),Ee);function Ee(e,t,n,i,o,s){void 0===s&&(s=me.b);var a=xe.call(this,Ee.ID,e)||this;return a._themeService=n,a._keybindingService=i,a._modeService=o,a._openerService=s,a.renderDisposable=a._register(new r.d),a._messages=[],a._lastRange=null,a._computer=new Le(a._editor,t),a._highlightDecorations=[],a._isChangingDecorations=!1,a._shouldFocus=!1,a._colorPicker=null,a._hoverOperation=new te(a._computer,(function(e){return a._withResult(e,!0)}),null,(function(e){return a._withResult(e,!1)}),a._editor.getOption(44).delay),a._register(c.o(a.getDomNode(),c.d.FOCUS,(function(){a._colorPicker&&c.f(a.getDomNode(),"colorpicker-hover")}))),a._register(c.o(a.getDomNode(),c.d.BLUR,(function(){c.P(a.getDomNode(),"colorpicker-hover")}))),a._register(e.onDidChangeConfiguration((function(e){a._hoverOperation.setHoverTime(a._editor.getOption(44).delay)}))),a._register(m.B.onDidChange((function(e){a.isVisible&&a._lastRange&&0<a._messages.length&&(a._domNode.textContent="",a._renderMessages(a._lastRange,a._messages))}))),a}Object(N.e)((function(e,t){var n=e.getColor(x.ec);n&&t.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+n+"; }")}));var Ie,Me=(Ie=function(e,t){return(Ie=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}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Te=(Pe.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},Pe.prototype.clearResult=function(){this._result=[]},Pe.prototype.computeSync=function(){function e(e){return{value:e}}var t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.options.glyphMarginClassName){var s=r.options.glyphMarginHoverMessage;s&&!Object(p.b)(s)&&n.push.apply(n,Object($.b)(s).map(e))}}return n},Pe.prototype.onResult=function(e,t){this._result=this._result.concat(e)},Pe.prototype.getResult=function(){return this._result},Pe.prototype.getResultWithLoadingMessage=function(){return this.getResult()},Pe);function Pe(e){this._editor=e,this._lineNumber=-1,this._result=[]}var Re,Ae=(Me(Fe,Re=ce),Fe.prototype.dispose=function(){this._hoverOperation.cancel(),Re.prototype.dispose.call(this)},Fe.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},Fe.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))},Fe.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),Re.prototype.hide.call(this)},Fe.prototype._withResult=function(e){this._messages=e,0<this._messages.length?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},Fe.prototype._renderMessages=function(e,t){this._renderDisposeables.clear();for(var n=document.createDocumentFragment(),i=0,o=t;i<o.length;i++){var r=o[i],s=this._markdownRenderer.render(r.value);this._renderDisposeables.add(s),n.appendChild(Object(c.a)("div.hover-row",void 0,s.element))}this.updateContents(n),this.showAt(e)},Fe.ID="editor.contrib.modesGlyphHoverWidget",Fe);function Fe(e,t,n){void 0===n&&(n=me.b);var i=Re.call(this,Fe.ID,e)||this;return i._renderDisposeables=i._register(new r.b),i._messages=[],i._lastLineNumber=-1,i._markdownRenderer=i._register(new pe.a(i._editor,t,n)),i._computer=new Te(i._editor),i._hoverOperation=new te(i._computer,(function(e){return i._withResult(e)}),void 0,(function(e){return i._withResult(e)}),300),i}var je=n(1096),We=n(531),Ve=n(1005);n.d(t,"ModesHoverController",(function(){return Ue}));var Be,He=(Be=function(e,t){return(Be=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}Be(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ze=function(e,t){return function(n,i){t(n,i,e)}},Ue=(Object.defineProperty(Ke.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),Ke.get=function(e){return e.getContribution(Ke.ID)},Ke.prototype._hookEvents=function(){function e(){return t._hideWidgets()}var t=this,n=this._editor.getOption(44);this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((function(e){return t._onEditorMouseDown(e)}))),this._toUnhook.add(this._editor.onMouseUp((function(e){return t._onEditorMouseUp(e)}))),this._toUnhook.add(this._editor.onMouseMove((function(e){return t._onEditorMouseMove(e)}))),this._toUnhook.add(this._editor.onKeyDown((function(e){return t._onKeyDown(e)}))),this._toUnhook.add(this._editor.onDidChangeModelDecorations((function(){return t._onModelDecorationsChanged()})))):this._toUnhook.add(this._editor.onMouseMove(e)),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange((function(e){return t._onEditorScrollChanged(e)})))},Ke.prototype._unhookEvents=function(){this._toUnhook.clear()},Ke.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},Ke.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},Ke.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==ke.ID?12===t&&e.target.detail===Ae.ID||(12!==t&&e.target.detail!==Ae.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},Ke.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},Ke.prototype._onEditorMouseMove=function(e){var t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||this._isHoverSticky&&9===t&&e.target.detail===ke.ID||this._isHoverSticky&&12===t&&e.target.detail===Ae.ID)){if(7===t){var n=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,i=e.target.detail;i&&!i.isAfterLines&&"number"==typeof i.horizontalDistanceToText&&i.horizontalDistanceToText<n&&(t=6)}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}},Ke.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()},Ke.prototype._hideWidgets=function(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())},Ke.prototype._createHoverWidgets=function(){this._contentWidget.value=new ke(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Ae(this._editor,this._modeService,this._openerService)},Ke.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n)},Ke.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},Ke.ID="editor.contrib.hover",Ke=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([ze(1,me.a),ze(2,u.a),ze(3,je.a),ze(4,We.a),ze(5,N.c)],Ke));function Ke(e,t,n,i,o,s){var a=this;this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=i,this._keybindingService=o,this._themeService=s,this._toUnhook=new r.b,this._contentWidget=new r.d,this._glyphWidget=new r.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((function(e){e.hasChanged(44)&&(a._hideWidgets(),a._unhookEvents(),a._hookEvents())}))}var qe,Ge=(He(Ye,qe=s.b),Ye.prototype.run=function(e,t){if(t.hasModel()){var n=Ue.get(t);if(n){var i=t.getPosition(),o=new a.a(i.lineNumber,i.column,i.lineNumber,i.column),r=2===t.getOption(2);n.showContentHover(o,1,r)}}},Ye);function Ye(){return qe.call(this,{id:"editor.action.showHover",label:i.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:l.a.editorTextFocus,primary:Object(o.a)(2089,2087),weight:100}})||this}var Ze,Xe=(He($e,Ze=s.b),$e.prototype.run=function(e,t){var n=Ue.get(t);if(n){var i=t.getPosition();if(i){var o=new a.a(i.lineNumber,i.column,i.lineNumber,i.column),r=Ve.GotoDefinitionAtPositionEditorContribution.get(t).startFindDefinitionFromCursor(i);r?r.then((function(){n.showContentHover(o,1,!0)})):n.showContentHover(o,1,!0)}}},$e);function $e(){return Ze.call(this,{id:"editor.action.showDefinitionPreviewHover",label:i.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}Object(s.h)(Ue.ID,Ue),Object(s.f)(Ge),Object(s.f)(Xe),Object(N.e)((function(e,t){var n=e.getColor(x.D);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(x.A);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(x.B);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)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+o.transparent(.5)+"; }"));var r=e.getColor(x.ec);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(x.C);s&&t.addRule(".monaco-editor .monaco-editor-hover { color: "+s+"; }");var a=e.getColor(x.E);a&&t.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+a+"; }");var l=e.getColor(x.dc);l&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+l+"; }")}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(548),r=n(927),s=n(449),a=n(794),l=n(444),u=n(704),c=n(440),d=(h.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;0<=n;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,d=e.getLineCount();a<=d;a++){var h=e.getLineContent(a),p=h.length+1,f=0;if(!(r<s&&t[r].lineNumber===a&&(f=t[r].column,r++,f===p))&&0!==h.length){var g=l.D(h),m=0;if(-1===g)m=1;else{if(g===h.length-1)continue;m=g+2}m=Math.max(f,m),i[o++]=u.a.delete(new c.a(a,m,a,p))}}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)},h.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},h);function h(e,t){this._selection=e,this._cursors=t,this._selectionId=null}var p=n(974),f=n(450),g=n(466),m=n(469),v=(_.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 c.a(n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new c.a(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()},_.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=g.a.createWithDirection(i,o,r,s,this._selectionDirection)}return n},_);function _(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}var b=n(1085),y=n(825),C=n(575);function w(e,t){for(var n=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function S(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 O=(L.prototype.getEditOperations=function(e,t){var n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)this._selectionId=t.trackSelection(this._selection);else if(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(),r=o.tabSize,s=o.indentSize,a=o.insertSpaces,u=this.buildIndentConverter(r,s,a),d={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 h=i.startLineNumber,p=this._isMovingDown?h+1:h-1;1===e.getLineMaxColumn(p)?t.addEditOperation(new c.a(1,1,1,1),null):(t.addEditOperation(new c.a(h,1,h,1),e.getLineContent(p)),t.addEditOperation(new c.a(p,1,p,e.getLineMaxColumn(p)),null)),i=new g.a(p,1,p,1)}else{var f,m=void 0;if(this._isMovingDown){f=i.endLineNumber+1,m=e.getLineContent(f),t.addEditOperation(new c.a(f-1,e.getLineMaxColumn(f-1),f,e.getLineMaxColumn(f)),null);var v=m;if(this.shouldAutoIndent(e,i)){var _=this.matchEnterRule(e,u,r,f,i.startLineNumber-1);if(null!==_){var b=S(k=_+w(O=l.t(e.getLineContent(f)),r),r,a);v=b+this.trimLeft(m)}else{d.getLineContent=function(t){return t===i.startLineNumber?e.getLineContent(f):e.getLineContent(t)};var y=C.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(f,1),i.startLineNumber,u);if(null!==y){var O=l.t(e.getLineContent(f));(k=w(y,r))!==(E=w(O,r))&&(b=S(k,r,a),v=b+this.trimLeft(m))}}if(t.addEditOperation(new c.a(i.startLineNumber,1,i.startLineNumber,1),v+"\n"),null!==(x=this.matchEnterRule(e,u,r,i.startLineNumber,i.startLineNumber,v)))0!==x&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,x);else{d.getLineContent=function(t){return t===i.startLineNumber?v:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var L=C.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(f,1),i.startLineNumber+1,u);if(null!==L&&(O=l.t(e.getLineContent(i.startLineNumber)),(k=w(L,r))!==(E=w(O,r)))){var D=k-E;this.getIndentEditsOfMovingBlock(e,t,i,r,a,D)}}}else t.addEditOperation(new c.a(i.startLineNumber,1,i.startLineNumber,1),v+"\n")}else{var x;if(f=i.startLineNumber-1,m=e.getLineContent(f),t.addEditOperation(new c.a(f,1,f+1,1),null),t.addEditOperation(new c.a(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+m),this.shouldAutoIndent(e,i))if(d.getLineContent=function(t){return t===f?e.getLineContent(i.startLineNumber):e.getLineContent(t)},null!==(x=this.matchEnterRule(e,u,r,i.startLineNumber,i.startLineNumber-2)))0!==x&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,x);else{var N=C.a.getGoodIndentForLine(this._autoIndent,d,e.getLanguageIdAtPosition(i.startLineNumber,1),f,u);if(null!==N){var k,E,I=l.t(e.getLineContent(i.startLineNumber));(k=w(N,r))!==(E=w(I,r))&&(D=k-E,this.getIndentEditsOfMovingBlock(e,t,i,r,a,D))}}}}this._selectionId=t.trackSelection(i)}else this._selectionId=t.trackSelection(this._selection)},L.prototype.buildIndentConverter=function(e,t,n){return{shiftIndent:function(i){return b.a.shiftIndent(i,i.length+1,e,t,n)},unshiftIndent:function(i){return b.a.unshiftIndent(i,i.length+1,e,t,n)}}},L.prototype.matchEnterRule=function(e,t,n,i,o,r){for(var s=o;1<=s;){var a;if(a=s===o&&void 0!==r?r:e.getLineContent(s),0<=l.D(a))break;s--}if(s<1||i>e.getLineCount())return null;var u=e.getLineMaxColumn(s),d=C.a.getEnterAction(this._autoIndent,e,new c.a(s,u,s,u));if(d){var h=d.indentation;d.indentAction===y.a.None||d.indentAction===y.a.Indent?h=d.indentation+d.appendText:d.indentAction===y.a.IndentOutdent?h=d.indentation:d.indentAction===y.a.Outdent&&(h=t.unshiftIndent(d.indentation)+d.appendText);var p=e.getLineContent(i);if(0<=this.trimLeft(p).indexOf(this.trimLeft(h))){var f=l.t(e.getLineContent(i)),g=l.t(h),m=C.a.getIndentMetadata(e,i);return null!==m&&2&m&&(g=t.unshiftIndent(g)),w(g,n)-w(f,n)}}return null},L.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},L.prototype.shouldAutoIndent=function(e,t){if(this._autoIndent<4)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==C.a.getIndentRulesSupport(n)},L.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=e.getLineContent(s),u=l.t(a),d=S(w(u,i)+r,i,o);d!==u&&(t.addEditOperation(new c.a(s,1,s,u.length+1),d),s===n.endLineNumber&&n.endColumn<=u.length+1&&""===d&&(this._moveEndLineSelectionShrink=!0))}},L.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},L);function L(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}var D=(x.getCollator=function(){return x._COLLATOR||(x._COLLATOR=new Intl.Collator),x._COLLATOR},x.prototype.getEditOperations=function(e,t){var n,i,o=(i=N(n=e,this.selection,this.descending))?u.a.replace(new c.a(i.startLineNumber,1,i.endLineNumber,n.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null;o&&t.addEditOperation(o.range,o.text),this.selectionId=t.trackSelection(this.selection)},x.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},x.canRun=function(e,t,n){if(null===e)return!1;var i=N(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},x._COLLATOR=null,x);function x(e,t){this.selection=e,this.descending=t,this.selectionId=null}function N(e,t,n){var i=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,o<=i)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(D.getCollator().compare),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}n.d(t,"DuplicateSelectionAction",(function(){return B})),n.d(t,"AbstractSortLinesAction",(function(){return Q})),n.d(t,"SortLinesAscendingAction",(function(){return ne})),n.d(t,"SortLinesDescendingAction",(function(){return re})),n.d(t,"TrimTrailingWhitespaceAction",(function(){return le})),n.d(t,"DeleteLinesAction",(function(){return de})),n.d(t,"IndentLinesAction",(function(){return fe})),n.d(t,"InsertLineBeforeAction",(function(){return ye})),n.d(t,"InsertLineAfterAction",(function(){return Se})),n.d(t,"AbstractDeleteAllToBoundaryAction",(function(){return De})),n.d(t,"DeleteAllLeftAction",(function(){return ke})),n.d(t,"DeleteAllRightAction",(function(){return Me})),n.d(t,"JoinLinesAction",(function(){return Re})),n.d(t,"TransposeAction",(function(){return je})),n.d(t,"AbstractCaseAction",(function(){return Be})),n.d(t,"UpperCaseAction",(function(){return Ue})),n.d(t,"LowerCaseAction",(function(){return Ge})),n.d(t,"TitleCaseAction",(function(){return Xe}));var k,E,I=(k=function(e,t){return(k=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}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),M=(I(T,E=s.b),T.prototype.run=function(e,t){for(var n=[],i=0,o=t.getSelections()||[];i<o.length;i++){var r=o[i];n.push(new v(r,this.down))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},T);function T(e,t){var n=E.call(this,t)||this;return n.down=e,n}var P,R=(I(A,P=M),A);function A(){return P.call(this,!1,{id:"editor.action.copyLinesUpAction",label:i.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}var F,j=(I(W,F=M),W);function W(){return F.call(this,!0,{id:"editor.action.copyLinesDownAction",label:i.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}var V,B=(I(H,V=s.b),H.prototype.run=function(e,t,n){if(t.hasModel()){for(var i=[],o=t.getSelections(),r=t.getModel(),s=0,l=o;s<l.length;s++){var u=l[s];if(u.isEmpty())i.push(new v(u,!0));else{var c=new g.a(u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn);i.push(new a.c(c,r.getValueInRange(u)))}}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},H);function H(){return V.call(this,{id:"editor.action.duplicateSelection",label:i.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m.a.writable,menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}var z,U=(I(K,z=s.b),K.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=t.getOption(8),r=0,s=i;r<s.length;r++){var a=s[r];n.push(new O(a,this.down,o))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},K);function K(e,t){var n=z.call(this,t)||this;return n.down=e,n}var q,G=(I(Y,q=U),Y);function Y(){return q.call(this,!1,{id:"editor.action.moveLinesUpAction",label:i.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}var Z,X=(I($,Z=U),$);function $(){return Z.call(this,!0,{id:"editor.action.moveLinesDownAction",label:i.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:25,group:"2_line",title:i.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}var J,Q=(I(ee,J=s.b),ee.prototype.run=function(e,t){for(var n=t.getSelections()||[],i=0,o=n;i<o.length;i++){var r=o[i];if(!D.canRun(t.getModel(),r,this.descending))return}for(var s=[],a=0,l=n.length;a<l;a++)s[a]=new D(n[a],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()},ee);function ee(e,t){var n=J.call(this,t)||this;return n.descending=e,n}var te,ne=(I(ie,te=Q),ie);function ie(){return te.call(this,!1,{id:"editor.action.sortLinesAscending",label:i.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m.a.writable})||this}var oe,re=(I(se,oe=Q),se);function se(){return oe.call(this,!0,{id:"editor.action.sortLinesDescending",label:i.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m.a.writable})||this}var ae,le=(I(ue,ae=s.b),ue.prototype.run=function(e,t,n){var i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map((function(e){return new f.a(e.positionLineNumber,e.positionColumn)})));var o=t.getSelection();if(null!==o){var r=new d(o,i);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop()}},ue.ID="editor.action.trimTrailingWhitespace",ue);function ue(){return ae.call(this,{id:ue.ID,label:i.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:Object(o.a)(2089,2102),weight:100}})||this}var ce,de=(I(he,ce=s.b),he.prototype.run=function(e,t){if(t.hasModel()){var n=this._getLinesToRemove(t),i=t.getModel();if(1!==i.getLineCount()||1!==i.getLineMaxColumn(1)){for(var o=0,r=[],s=[],a=0,l=n.length;a<l;a++){var c=n[a],d=c.startLineNumber,h=c.endLineNumber,p=1,f=i.getLineMaxColumn(h);h<i.getLineCount()?(h+=1,f=1):1<d&&(--d,p=i.getLineMaxColumn(d)),r.push(u.a.replace(new g.a(d,p,h,f),"")),s.push(new g.a(d-o,c.positionColumn,d-o,c.positionColumn)),o+=c.endLineNumber-c.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}},he.prototype._getLinesToRemove=function(e){var t=e.getSelections().map((function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&--t,{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort((function(e,t){return e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber: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},he);function he(){return ce.call(this,{id:"editor.action.deleteLines",label:i.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:3113,weight:100}})||this}var pe,fe=(I(ge,pe=s.b),ge.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.indent(n.context.config,t.getModel(),t.getSelections())),t.pushUndoStop())},ge);function ge(){return pe.call(this,{id:"editor.action.indentLines",label:i.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2137,weight:100}})||this}var me,ve=(I(_e,me=s.b),_e.prototype.run=function(e,t){r.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)},_e);function _e(){return me.call(this,{id:"editor.action.outdentLines",label:i.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2135,weight:100}})||this}var be,ye=(I(Ce,be=s.b),Ce.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.lineInsertBefore(n.context.config,t.getModel(),t.getSelections())))},Ce);function Ce(){return be.call(this,{id:"editor.action.insertLineBefore",label:i.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:3075,weight:100}})||this}var we,Se=(I(Oe,we=s.b),Oe.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p.a.lineInsertAfter(n.context.config,t.getModel(),t.getSelections())))},Oe);function Oe(){return we.call(this,{id:"editor.action.insertLineAfter",label:i.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:2051,weight:100}})||this}var Le,De=(I(xe,Le=s.b),xe.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelection(),i=this._getRangesToDelete(t),o=[],r=0,s=i.length-1;r<s;r++){var a=i[r],l=i[r+1];null===c.a.intersectRanges(a,l)?o.push(a):i[r+1]=c.a.plusRange(a,l)}o.push(i[i.length-1]);var d=this._getEndCursorState(n,o),h=o.map((function(e){return u.a.replace(e,"")}));t.pushUndoStop(),t.executeEdits(this.id,h,d),t.pushUndoStop()}},xe);function xe(){return null!==Le&&Le.apply(this,arguments)||this}var Ne,ke=(I(Ee,Ne=De),Ee.prototype._getEndCursorState=function(e,t){var n=null,i=[],o=0;return t.forEach((function(t){var r;if(1===t.endColumn&&0<o){var s=t.startLineNumber-o;r=new g.a(s,t.startColumn,s,t.startColumn)}else r=new g.a(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},Ee.prototype._getRangesToDelete=function(e){var t=e.getSelections();if(null===t)return[];var n=t,i=e.getModel();return null===i?[]:(n.sort(c.a.compareRangesUsingStarts),n=n.map((function(e){if(e.isEmpty()){if(1!==e.startColumn)return new c.a(e.startLineNumber,1,e.startLineNumber,e.startColumn);var t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new c.a(t,n,e.startLineNumber,1)}return new c.a(e.startLineNumber,1,e.endLineNumber,e.endColumn)})))},Ee);function Ee(){return Ne.call(this,{id:"deleteAllLeft",label:i.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})||this}var Ie,Me=(I(Te,Ie=De),Te.prototype._getEndCursorState=function(e,t){for(var n=null,i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=new g.a(+s.startLineNumber,s.startColumn,+s.startLineNumber,s.startColumn);s.intersectRanges(e)?n=a:i.push(a)}return n&&i.unshift(n),i},Te.prototype._getRangesToDelete=function(e){var t=e.getModel();if(null===t)return[];var n=e.getSelections();if(null===n)return[];var i=n.map((function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new c.a(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new c.a(e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e}));return i.sort(c.a.compareRangesUsingStarts),i},Te);function Te(){return Ie.call(this,{id:"deleteAllRight",label:i.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.a.writable,kbOpts:{kbExpr:m.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})||this}var Pe,Re=(I(Ae,Pe=s.b),Ae.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getSelection();if(null!==i){n.sort(c.a.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 g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)}));o.push(r);var s=t.getModel();if(null!==s){for(var a=[],l=[],d=i,h=0,p=0,f=o.length;p<f;p++){var m=o[p],v=m.startLineNumber,_=0,b=void 0,y=void 0,C=s.getLineContent(m.endLineNumber).length-m.endColumn;if(m.isEmpty()||m.startLineNumber===m.endLineNumber){var w=m.getStartPosition();y=w.lineNumber<s.getLineCount()?(b=v+1,s.getLineMaxColumn(b)):(b=w.lineNumber,s.getLineMaxColumn(w.lineNumber))}else b=m.endLineNumber,y=s.getLineMaxColumn(b);for(var S=s.getLineContent(v),O=v+1;O<=b;O++){var L=s.getLineContent(O),D=s.getLineFirstNonWhitespaceColumn(O);if(1<=D){var x=!0;""===S&&(x=!1),!x||" "!==S.charAt(S.length-1)&&"\t"!==S.charAt(S.length-1)||(x=!1,S=S.replace(/[\s\uFEFF\xA0]+$/g," "));var N=L.substr(D-1);S+=(x?" ":"")+N,_=x?N.length+1:N.length}else _=0}var k=new c.a(v,1,b,y);if(!k.isEmpty()){var E;E=m.isEmpty()?(a.push(u.a.replace(k,S)),new g.a(k.startLineNumber-h,S.length-_+1,v-h,S.length-_+1)):m.startLineNumber===m.endLineNumber?(a.push(u.a.replace(k,S)),new g.a(m.startLineNumber-h,m.startColumn,m.endLineNumber-h,m.endColumn)):(a.push(u.a.replace(k,S)),new g.a(m.startLineNumber-h,m.startColumn,m.startLineNumber-h,S.length-C)),null!==c.a.intersectRanges(k,i)?d=E:l.push(E)}h+=k.endLineNumber-k.startLineNumber}l.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,l),t.pushUndoStop()}}}},Ae);function Ae(){return Pe.call(this,{id:"editor.action.joinLines",label:i.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.a.writable,kbOpts:{kbExpr:m.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})||this}var Fe,je=(I(We,Fe=s.b),We.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=[],r=0,s=n.length;r<s;r++){var l=n[r];if(l.isEmpty()){var u=l.getStartPosition(),d=i.getLineMaxColumn(u.lineNumber);if(u.column>=d){if(u.lineNumber===i.getLineCount())continue;var h=new c.a(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),p=i.getValueInRange(h).split("").reverse().join("");o.push(new a.a(new g.a(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),p))}else h=new c.a(u.lineNumber,Math.max(1,u.column-1),u.lineNumber,u.column+1),p=i.getValueInRange(h).split("").reverse().join(""),o.push(new a.b(h,p,new g.a(u.lineNumber,u.column+1,u.lineNumber,u.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}},We);function We(){return Fe.call(this,{id:"editor.action.transpose",label:i.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:m.a.writable})||this}var Ve,Be=(I(He,Ve=s.b),He.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=t.getOption(96),r=[],s=0,l=n.length;s<l;s++){var u=n[s];if(u.isEmpty()){var d=u.getStartPosition(),h=i.getWordAtPosition(d);if(!h)continue;var p=new c.a(d.lineNumber,h.startColumn,d.lineNumber,h.endColumn),f=i.getValueInRange(p);r.push(new a.b(p,this._modifyText(f,o),new g.a(d.lineNumber,d.column,d.lineNumber,d.column)))}else f=i.getValueInRange(u),r.push(new a.b(u,this._modifyText(f,o),u))}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}},He);function He(){return null!==Ve&&Ve.apply(this,arguments)||this}var ze,Ue=(I(Ke,ze=Be),Ke.prototype._modifyText=function(e,t){return e.toLocaleUpperCase()},Ke);function Ke(){return ze.call(this,{id:"editor.action.transformToUppercase",label:i.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.a.writable})||this}var qe,Ge=(I(Ye,qe=Be),Ye.prototype._modifyText=function(e,t){return e.toLocaleLowerCase()},Ye);function Ye(){return qe.call(this,{id:"editor.action.transformToLowercase",label:i.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.a.writable})||this}var Ze,Xe=(I($e,Ze=Be),$e.prototype._modifyText=function(e,t){for(var n=("\r\n\t "+t).split(""),i="",o=!0,r=0;r<e.length;r++){var s=e[r];0<=n.indexOf(s)?(o=!0,i+=s):o?(o=!1,i+=s.toLocaleUpperCase()):i+=s.toLocaleLowerCase()}return i},$e);function $e(){return Ze.call(this,{id:"editor.action.transformToTitlecase",label:i.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.a.writable})||this}Object(s.f)(R),Object(s.f)(j),Object(s.f)(B),Object(s.f)(G),Object(s.f)(X),Object(s.f)(ne),Object(s.f)(re),Object(s.f)(le),Object(s.f)(de),Object(s.f)(fe),Object(s.f)(ve),Object(s.f)(ye),Object(s.f)(Se),Object(s.f)(ke),Object(s.f)(Me),Object(s.f)(Re),Object(s.f)(je),Object(s.f)(Ue),Object(s.f)(Ge),Object(s.f)(Xe)},function(e,t,n){"use strict";n.r(t);var i=n(453),o=n(446),r=n(439),s=n(761),a=n(449),l=n(454),u=n(459),c=n(484),d=n(479),h=n(598),p=(f.prototype.dispose=function(){this._disposables.dispose()},f.prototype.add=function(e,t){this._disposables.add(e);for(var n=0,i=e.lenses;n<i.length;n++){var o=i[n];this.lenses.push({symbol:o,provider:t})}},f);function f(){this.lenses=[],this._disposables=new r.b}function g(e,t){var n=l.b.ordered(e),i=new Map,r=new p,s=n.map((function(n,s){return i.set(n,s),Promise.resolve(n.provideCodeLenses(e,t)).then((function(e){return e&&r.add(e,n)})).catch(o.f)}));return Promise.all(s).then((function(){return r.lenses=Object(u.r)(r.lenses,(function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0})),r}))}Object(a.j)("_executeCodeLensProvider",(function(e,t){var n=t.resource,i=t.itemResolveCount;if(!(n instanceof d.a))throw Object(o.b)();var s=e.get(h.a).getModel(n);if(!s)throw Object(o.b)();var a=[],l=new r.b;return g(s,c.a.None).then((function(e){l.add(e);for(var t=[],n=function(e){void 0===i||Boolean(e.symbol.command)?a.push(e.symbol):0<i--&&e.provider.resolveCodeLens&&t.push(Promise.resolve(e.provider.resolveCodeLens(s,e.symbol,c.a.None)).then((function(t){return a.push(t||e.symbol)})))},o=0,r=e.lenses;o<r.length;o++)n(r[o]);return Promise.all(t)})).then((function(){return a})).finally((function(){setTimeout((function(){return l.dispose()}),100)}))})),n(1326);var m=n(443),v=n(890),_=n(444),b=n(440),y=n(495),C=n(572),w=n(461),S=n(451),O=(L.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},L);function L(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}var D=(x.prototype.withCommands=function(e,t){this._commands.clear();for(var n="",i=!1,o=0;o<e.length;o++){var r=e[o];if(r&&(i=!0,r.command)){var s=Object(v.c)(Object(_.o)(r.command.title));r.command.id?(n+="<a id="+o+">"+s+"</a>",this._commands.set(String(o),r.command)):n+="<span>"+s+"</span>",o+1<e.length&&(n+="<span> | </span>")}}i?(n=n||" ",this._domNode.innerHTML=n,this._isEmpty&&t&&m.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},x.prototype.getCommand=function(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0},x.prototype.getId=function(){return this._id},x.prototype.getDomNode=function(){return this._domNode},x.prototype.updatePosition=function(e){var t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}},x.prototype.getPosition=function(){return this._widgetPosition||null},x._idPool=0,x);function x(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+x._idPool++,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}var N=(k.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},k.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},k.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])},k);function k(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}var E=(I.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new D(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},I.prototype.dispose=function(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},I.prototype.isDisposed=function(){return this._isDisposed},I.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||b.a.isEmpty(o.range)!==i.isEmpty())}))},I.prototype.updateCodeLensSymbols=function(e,t){var n=this;this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((function(e,i){t.addDecoration({range:e.symbol.range,options:y.a.EMPTY},(function(e){return n._decorationIds[i]=e}))}))},I.prototype.computeIfNecessary=function(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var t=0;t<this._decorationIds.length;t++){var n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data},I.prototype.updateCommands=function(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(var t=0;t<this._data.length;t++){var n=e[t];if(n){var i=this._data[t].symbol;i.command=n.command||i.command}}},I.prototype.getCommand=function(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)},I.prototype.getLineNumber=function(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1},I.prototype.update=function(e){if(this.isValid()){var t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},I);function I(e,t,n,i,o,r){var s,a=this;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];var l=[];this._data.forEach((function(e,t){e.symbol.command&&l.push(e.symbol),i.addDecoration({range:e.symbol.range,options:y.a.EMPTY},(function(e){return a._decorationIds[t]=e})),s=s?b.a.plusRange(s,e.symbol.range):b.a.lift(e.symbol.range)})),this._viewZone=new O(s.startLineNumber-1,r),this._viewZoneId=o.addZone(this._viewZone),0<l.length&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}Object(S.e)((function(e,t){var n=e.getColor(C.e);n&&(t.addRule(".monaco-editor .codelens-decoration { color: "+n+"; }"),t.addRule(".monaco-editor .codelens-decoration .codicon { color: "+n+"; }"));var i=e.getColor(w.n);i&&(t.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+i+" !important; }"),t.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+i+" !important; }"))}));var M=n(489),T=n(532),P=n(448),R=n(792),A=n(553),F=n(775),j=n(880),W=Object(P.c)("ICodeLensCache"),V=function(e,t){this.lineCount=e,this.data=t},B=(H.prototype.put=function(e,t){var n=t.lenses.map((function(e){var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),i=new p;i.add({lenses:n,dispose:function(){}},this._fakeProvider);var o=new V(e.getLineCount(),i);this._cache.set(e.uri.toString(),o)},H.prototype.get=function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0},H.prototype.delete=function(e){this._cache.delete(e.uri.toString())},H.prototype._serialize=function(){var e=Object.create(null);return this._cache.forEach((function(t,n){for(var i=new Set,o=0,r=t.data.lenses;o<r.length;o++){var s=r[o];i.add(s.symbol.range.startLineNumber)}e[n]={lineCount:t.lineCount,lines:Object(A.e)(i)}})),JSON.stringify(e)},H.prototype._deserialize=function(e){try{var t=JSON.parse(e);for(var n in t){for(var i=t[n],o=[],r=0,s=i.lines;r<s.length;r++){var a=s[r];o.push({range:new b.a(a,1,a,11)})}var l=new p;l.add({lenses:o,dispose:function(){}},this._fakeProvider),this._cache.set(n,new V(i.lineCount,l))}}catch(e){}},H=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,F.a)],H));function H(e){var t=this;function n(){}this._fakeProvider=(n.prototype.provideCodeLenses=function(){throw new Error("not supported")},new n),this._cache=new A.a(20,.75),Object(i.k)((function(){return e.remove("codelens/cache",1)}));var o="codelens/cache2",r=e.get(o,1,"{}");this._deserialize(r),Object(j.a)(e.onWillSaveState)((function(n){n.reason===F.c.SHUTDOWN&&e.store(o,t._serialize(),1)}))}Object(R.b)(W,B);var z=n(952);n.d(t,"CodeLensContribution",(function(){return q}));var U=function(e,t){return function(n,i){t(n,i,e)}},K=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},q=(G.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(r.f)(this._currentCodeLensModel)},G.prototype._updateLensStyle=function(){var e=this._editor.getOptions(),t=e.get(34),n=e.get(49),i=Math.round(1.1*n),o=Math.round(.9*t.fontSize),r="\n\t\t.monaco-editor .codelens-decoration."+this._styleClassName+" { height: "+i+"px; line-height: "+n+"px; font-size: "+o+"px; padding-right: "+Math.round(.45*t.fontSize)+"px;}\n\t\t.monaco-editor .codelens-decoration."+this._styleClassName+" > a > .codicon { line-height: "+n+"px; font-size: "+o+"px; }\n\t\t";this._styleElement.innerHTML=r},G.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(r.f)(this._currentCodeLensModel)},G.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled){var n=this._codeLensCache.get(t);if(n&&this._renderCodeLensSymbols(n),l.b.has(t)){for(var a=0,u=l.b.all(t);a<u.length;a++){var c=u[a];if("function"==typeof c.onDidChange){var d=c.onDidChange((function(){return p.schedule()}));this._localToDispose.add(d)}}var h=this._detectVisibleLenses=new i.d((function(){return e._onViewportChanged()}),250),p=new i.d((function(){var n=++e._modelChangeCounter;e._currentFindCodeLensSymbolsPromise&&e._currentFindCodeLensSymbolsPromise.cancel(),e._currentFindCodeLensSymbolsPromise=Object(i.f)((function(e){return g(t,e)})),e._currentFindCodeLensSymbolsPromise.then((function(i){n===e._modelChangeCounter&&(e._currentCodeLensModel&&e._oldCodeLensModels.add(e._currentCodeLensModel),e._currentCodeLensModel=i,e._codeLensCache.put(t,i),e._renderCodeLensSymbols(i),h.schedule())}),o.e)}),250);this._localToDispose.add(p),this._localToDispose.add(h),this._localToDispose.add(this._editor.onDidChangeModelContent((function(){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 N;i.forEach((function(t){t.dispose(r,n),e._lenses.splice(e._lenses.indexOf(t),1)})),r.commit(t)}))})),h.schedule(),p.schedule()}))),this._localToDispose.add(this._editor.onDidScrollChange((function(t){t.scrollTopChanged&&0<e._lenses.length&&h.schedule()}))),this._localToDispose.add(this._editor.onDidLayoutChange((function(){h.schedule()}))),this._localToDispose.add(Object(r.h)((function(){if(e._editor.getModel()){var t=s.c.capture(e._editor);e._editor.changeDecorations((function(t){e._editor.changeViewZones((function(n){e._disposeAllLenses(t,n)}))})),t.restore(e._editor)}else e._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseUp((function(t){var n;if(9===t.target.type){var i=t.target.element;if("SPAN"===(null==i?void 0:i.tagName)&&(i=i.parentElement),"A"===(null==i?void 0:i.tagName))for(var o=0,r=e._lenses;o<r.length;o++){var s=r[o].getCommand(i);if(s){(n=e._commandService).executeCommand.apply(n,K([s.id],s.arguments||[])).catch((function(t){return e._notificationService.error(t)}));break}}}}))),p.schedule()}else n&&this._localToDispose.add(Object(i.g)((function(){var i=e._codeLensCache.get(t);n===i&&(e._codeLensCache.delete(t),e._onModelChange())}),3e4))}},G.prototype._disposeAllLenses=function(e,t){for(var n=new N,i=0,o=this._lenses;i<o.length;i++)o[i].dispose(n,t);e&&n.commit(e),this._lenses=[]},G.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.hasModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,a=e.lenses;r<a.length;r++){var l=a[r],u=l.symbol.range.startLineNumber;u<1||i<u||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(l):(n=[l],o.push(n)))}var c=s.c.capture(this._editor);this._editor.changeDecorations((function(e){t._editor.changeViewZones((function(n){for(var i=new N,r=0,s=0;s<o.length&&r<t._lenses.length;){var a=o[s][0].symbol.range.startLineNumber,l=t._lenses[r].getLineNumber();l<a?(t._lenses[r].dispose(i,n),t._lenses.splice(r,1)):l===a?(t._lenses[r].updateCodeLensSymbols(o[s],i),s++,r++):(t._lenses.splice(r,0,new E(o[s],t._editor,t._styleClassName,i,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),r++,s++)}for(;r<t._lenses.length;)t._lenses[r].dispose(i,n),t._lenses.splice(r,1);for(;s<o.length;)t._lenses.push(new E(o[s],t._editor,t._styleClassName,i,n,(function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()}))),s++;i.commit(e)}))})),c.restore(this._editor)}},G.prototype._onViewportChanged=function(){var e=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var t=this._editor.getModel();if(t){var n=[],r=[];if(this._lenses.forEach((function(e){var i=e.computeIfNecessary(t);i&&(n.push(i),r.push(e))})),0!==n.length){var s=Object(i.f)((function(e){var i=n.map((function(n,i){var s=new Array(n.length),a=n.map((function(n,i){return n.symbol.command||"function"!=typeof n.provider.resolveCodeLens?(s[i]=n.symbol,Promise.resolve(void 0)):Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then((function(e){s[i]=e}),o.f)}));return Promise.all(a).then((function(){e.isCancellationRequested||r[i].isDisposed()||r[i].updateCommands(s)}))}));return Promise.all(i)}));this._currentResolveCodeLensSymbolsPromise=s,this._currentResolveCodeLensSymbolsPromise.then((function(){e._currentCodeLensModel&&e._codeLensCache.put(t,e._currentCodeLensModel),e._oldCodeLensModels.clear(),s===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}),(function(t){Object(o.e)(t),s===e._currentResolveCodeLensSymbolsPromise&&(e._currentResolveCodeLensSymbolsPromise=void 0)}))}}},G.ID="css.editor.codeLens",G=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([U(1,M.b),U(2,T.a),U(3,W)],G));function G(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=i,this._globalToDispose=new r.b,this._localToDispose=new r.b,this._lenses=[],this._oldCodeLensModels=new r.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel((function(){return o._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeModelLanguage((function(){return o._onModelChange()}))),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(){var e=o._isEnabled;o._isEnabled=o._editor.getOption(11),e!==o._isEnabled&&o._onModelChange()}))),this._globalToDispose.add(l.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&o._updateLensStyle()}))),this._onModelChange(),this._styleClassName=Object(z.a)(this._editor.getId()).toString(16),this._styleElement=m.w(m.N(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}Object(a.h)(q.ID,q)},function(e,t,n){"use strict";n.r(t);var i=n(459),o=n(484),r=n(548),s=n(439),a=n(449),l=n(504),u=n(790),c=n(440),d=n(469),h=n(454),p=n(758),f=n(635),g=n(446),m=n(479),v=n(761),_=n(892),b=n(450),y=n(466),C=n(598),w=n(704),S=(O._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.hasModel()&&e.getModel().pushEOL(n),i},O._isFullModelReplaceEdit=function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),i=n.validateRange(t.range);return n.getFullModelRange().equalsRange(i)},O.execute=function(e,t){e.pushUndoStop();var n=O._handleEolEdits(e,t);1===n.length&&O._isFullModelReplaceEdit(e,n[0])?e.executeEdits("formatEditsCommand",n.map((function(e){return w.a.replace(c.a.lift(e.range),e.text)}))):e.executeEdits("formatEditsCommand",n.map((function(e){return w.a.replaceMove(c.a.lift(e.range),e.text)}))),e.pushUndoStop()},O);function O(){}var L=n(445),D=(x.toKey=function(e){return"string"==typeof e?e.toLowerCase():e._lower},x);function x(e){this.value=e,this._lower=e.toLowerCase()}var N=n(448),k=n(786),E=n(489),I=n(465),M=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},T=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=0<(o=s.trys).length&&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(a){r=[6,a],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 P(e){if((e=e.filter((function(e){return e.range}))).length){for(var t=e[0].range,n=1;n<e.length;n++)t=c.a.plusRange(t,e[n].range);var i=t.startLineNumber,o=t.endLineNumber;i===o?1===e.length?Object(f.a)(L.a("hint11","Made 1 formatting edit on line {0}",i)):Object(f.a)(L.a("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?Object(f.a)(L.a("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):Object(f.a)(L.a("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o))}}function R(e){for(var t=[],n=new Set,i=0,o=h.g.ordered(e);i<o.length;i++){var r=o[i];t.push(r),r.extensionId&&n.add(D.toKey(r.extensionId))}for(var s=function(e){if(e.extensionId){if(n.has(D.toKey(e.extensionId)))return"continue";n.add(D.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,i){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)}})},a=0,l=h.j.ordered(e);a<l.length;a++)s(r=l[a]);return t}var A=(F.select=function(e,t,n){return M(this,void 0,void 0,(function(){var i;return T(this,(function(o){switch(o.label){case 0:return 0===e.length?[2,void 0]:(i=F._selectors.iterator().next().value)?[4,i(e,t,n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,e[0]]}}))}))},F._selectors=new k.a,F);function F(){}function j(e,t,n,i,o){return M(this,void 0,void 0,(function(){var r,s,a,l;return T(this,(function(u){switch(u.label){case 0:return r=e.get(N.a),s=Object(_.a)(t)?t.getModel():t,a=h.j.ordered(s),[4,A.select(a,s,i)];case 1:return(l=u.sent())?[4,r.invokeFunction(W,l,t,n,o)]:[3,3];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))}function W(e,t,n,i,o){return M(this,void 0,void 0,(function(){var r,s,a,l,u,d,h;return T(this,(function(f){switch(f.label){case 0:r=e.get(p.a),a=Object(_.a)(n)?(s=n.getModel(),new v.b(n,5,o)):(s=n,new v.d(n,o)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentRangeFormattingEdits(s,i,s.getFormattingOptions(),a.token)];case 2:return u=f.sent(),[4,r.computeMoreMinimalEdits(s.uri,u)];case 3:return l=f.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return l&&0!==l.length?(Object(_.a)(n)?(S.execute(n,l),P(l),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(d=l[0].range,h=new y.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],l.map((function(e){return{text:e.text,range:c.a.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c.a.areIntersectingOrTouching(i,h))return[new y.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function V(e,t,n,i){return M(this,void 0,void 0,(function(){var o,r,s,a;return T(this,(function(l){switch(l.label){case 0:return o=e.get(N.a),r=Object(_.a)(t)?t.getModel():t,s=R(r),[4,A.select(s,r,n)];case 1:return(a=l.sent())?[4,o.invokeFunction(B,a,t,n,i)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}}))}))}function B(e,t,n,i,o){return M(this,void 0,void 0,(function(){var r,s,a,l,u,d,h;return T(this,(function(f){switch(f.label){case 0:r=e.get(p.a),a=Object(_.a)(n)?(s=n.getModel(),new v.b(n,5,o)):(s=n,new v.d(n,o)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token)];case 2:return u=f.sent(),[4,r.computeMoreMinimalEdits(s.uri,u)];case 3:return l=f.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return l&&0!==l.length?(Object(_.a)(n)?(S.execute(n,l),2!==i&&(P(l),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(d=l[0].range,h=new y.a(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],l.map((function(e){return{text:e.text,range:c.a.lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c.a.areIntersectingOrTouching(i,h))return[new y.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function H(e,t,n,i,r){var s=h.t.ordered(t);return 0===s.length||s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(t,n,i,r,o.a.None)).catch(g.f).then((function(n){return e.computeMoreMinimalEdits(t.uri,n)}))}E.a.registerCommand("_executeFormatRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0],s=t[1],a=t[2];Object(I.a)(m.a.isUri(r)),Object(I.a)(c.a.isIRange(s));var l=e.get(C.a).getModel(r);if(!l)throw Object(g.b)("resource");return function(e,t,n,o,r){return M(this,void 0,void 0,(function(){var s,a,l,u,c;return T(this,(function(d){switch(d.label){case 0:s=h.j.ordered(t),a=0,l=s,d.label=1;case 1:return a<l.length?(u=l[a],[4,Promise.resolve(u.provideDocumentRangeFormattingEdits(t,n,o,r)).catch(g.f)]):[3,5];case 2:return c=d.sent(),Object(i.q)(c)?[4,e.computeMoreMinimalEdits(t.uri,c)]:[3,4];case 3:return[2,d.sent()];case 4:return a++,[3,1];case 5:return[2,void 0]}}))}))}(e.get(p.a),l,c.a.lift(s),a,o.a.None)})),E.a.registerCommand("_executeFormatDocumentProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0],s=t[1];Object(I.a)(m.a.isUri(r));var a=e.get(C.a).getModel(r);if(!a)throw Object(g.b)("resource");return function(e,t,n,o){return M(this,void 0,void 0,(function(){var r,s,a,l,u;return T(this,(function(c){switch(c.label){case 0:r=R(t),s=0,a=r,c.label=1;case 1:return s<a.length?(l=a[s],[4,Promise.resolve(l.provideDocumentFormattingEdits(t,n,o)).catch(g.f)]):[3,5];case 2:return u=c.sent(),Object(i.q)(u)?[4,e.computeMoreMinimalEdits(t.uri,u)]:[3,4];case 3:return[2,c.sent()];case 4:return s++,[3,1];case 5:return[2,void 0]}}))}))}(e.get(p.a),a,s,o.a.None)})),E.a.registerCommand("_executeFormatOnTypeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0],o=t[1],r=t[2],s=t[3];Object(I.a)(m.a.isUri(i)),Object(I.a)(b.a.isIPosition(o)),Object(I.a)("string"==typeof r);var a=e.get(C.a).getModel(i);if(!a)throw Object(g.b)("resource");return H(e.get(p.a),a,b.a.lift(o),r,s)}));var z,U=n(456),K=(z=function(e,t){return(z=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}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),q=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},G=function(e,t){return function(n,i){t(n,i,e)}},Y=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Z=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},X=($.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},$.prototype._update=function(){var e=this;if(this._callOnModel.clear(),this._editor.getOption(39)&&this._editor.hasModel()){var t=this._editor.getModel(),n=h.t.ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var i=new u.b,o=0,r=n.autoFormatTriggerCharacters;o<r.length;o++){var s=r[o];i.add(s.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType((function(t){var n=t.charCodeAt(t.length-1);i.has(n)&&e._trigger(String.fromCharCode(n))})))}}},$.prototype._trigger=function(e){var t=this;if(this._editor.hasModel()&&!(1<this._editor.getSelections().length)){var n=this._editor.getModel(),o=this._editor.getPosition(),r=!1,s=this._editor.onDidChangeModelContent((function(e){if(e.isFlush)return r=!0,void s.dispose();for(var t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=o.lineNumber)return r=!0,void s.dispose()}));H(this._workerService,n,o,e,n.getFormattingOptions()).then((function(e){s.dispose(),r||Object(i.q)(e)&&(S.execute(t._editor,e),P(e))}),(function(e){throw s.dispose(),e}))}},$.ID="editor.contrib.autoFormat",$=q([G(1,p.a)],$));function $(e,t){var n=this;this._workerService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(h.t.onDidChange(this._update,this))}var J=(Q.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Q.prototype._update=function(){var e=this;this._callOnModel.clear(),this.editor.getOption(38)&&this.editor.hasModel()&&h.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((function(t){var n=t.range;return e._trigger(n)})))},Q.prototype._trigger=function(e){this.editor.hasModel()&&(1<this.editor.getSelections().length||this._instantiationService.invokeFunction(j,this.editor,e,2,o.a.None).catch(g.e))},Q.ID="editor.contrib.formatOnPaste",Q=q([G(1,N.a)],Q));function Q(e,t){var n=this;this.editor=e,this._instantiationService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(h.j.onDidChange(this._update,this))}var ee,te=(K(ne,ee=a.b),ne.prototype.run=function(e,t){return Y(this,void 0,void 0,(function(){return Z(this,(function(n){switch(n.label){case 0:return t.hasModel()?[4,e.get(N.a).invokeFunction(V,t,1,o.a.None)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},ne);function ne(){return ee.call(this,{id:"editor.action.formatDocument",label:L.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:U.a.and(d.a.writable,d.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:U.a.and(d.a.editorTextFocus,d.a.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:d.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}var ie,oe=(K(re,ie=a.b),re.prototype.run=function(e,t){return Y(this,void 0,void 0,(function(){var n,i,r;return Z(this,(function(s){switch(s.label){case 0:return t.hasModel()?(n=e.get(N.a),i=t.getModel(),(r=t.getSelection()).isEmpty()&&(r=new c.a(r.startLineNumber,1,r.startLineNumber,i.getLineMaxColumn(r.startLineNumber))),[4,n.invokeFunction(j,t,r,1,o.a.None)]):[2];case 1:return s.sent(),[2]}}))}))},re);function re(){return ie.call(this,{id:"editor.action.formatSelection",label:L.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:U.a.and(d.a.writable,d.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:U.a.and(d.a.editorTextFocus,d.a.hasDocumentSelectionFormattingProvider),primary:Object(r.a)(2089,2084),weight:100},contextMenuOpts:{when:U.a.and(d.a.hasDocumentSelectionFormattingProvider,d.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}Object(a.h)(X.ID,X),Object(a.h)(J.ID,J),Object(a.f)(te),Object(a.f)(oe),E.a.registerCommand("editor.action.format",(function(e){return Y(void 0,void 0,void 0,(function(){var t,n;return Z(this,(function(i){switch(i.label){case 0:return(t=e.get(l.a).getFocusedCodeEditor())&&t.hasModel()?(n=e.get(E.b),t.getSelection().isEmpty()?[4,n.executeCommand("editor.action.formatDocument")]:[3,2]):[2];case 1:return i.sent(),[3,4];case 2:return[4,n.executeCommand("editor.action.formatSelection")];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(439),r=n(448),s=n(469),a=n(456),l=n(449),u=n(443),c=n(686),d=n(635),h=n(688),p=n(442),f=(n(1372),n(778)),g=n(915),m=n(453),v=n(446),_=n(454),b=n(484),y={Visible:new a.d("parameterHintsVisible",!1),MultipleSignatures:new a.d("parameterHintsMultipleSignatures",!1)};function C(e,t,n,i){var o=_.x.ordered(e);return Object(m.h)(o.map((function(o){return function(){return Promise.resolve(o.provideSignatureHelp(e,t,i,n)).catch((function(e){return Object(v.f)(e)}))}})))}Object(l.e)("_executeSignatureHelpProvider",(function(e,t,n){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var i;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(o){switch(o.label){case 0:return[4,C(e,t,{triggerKind:_.y.Invoke,isRetrigger:!1,triggerCharacter:n.triggerCharacter},b.a.None)];case 1:return(i=o.sent())?(setTimeout((function(){return i.dispose()}),0),[2,i.value]):[2,void 0]}}))}))}));var w,S,O=n(636),L=n(461),D=n(451),x=n(790),N=(w=function(e,t){return(w=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}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(){return(k=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.Default={type:0},e.Pending=function(e){this.request=e,this.type=2},e.Active=function(e){this.hints=e,this.type=1}}(S=S||{});var E,I=(N(M,E=o.a),Object.defineProperty(M.prototype,"state",{get:function(){return this._state},set:function(e){2===this._state.type&&this._state.request.cancel(),this._state=e},enumerable:!0,configurable:!0}),M.prototype.cancel=function(e){void 0===e&&(e=!1),this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)},M.prototype.trigger=function(e,t){var n=this,i=this.editor.getModel();if(i&&_.x.has(i)){var o=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((function(){return n.doTrigger(o)}),t).catch(v.e)}},M.prototype.next=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e==e-1,i=this.editor.getOption(64).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}},M.prototype.previous=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getOption(64).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}},M.prototype.updateActiveSignature=function(e){1===this.state.type&&(this.state=new S.Active(k(k({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))},M.prototype.doTrigger=function(e){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var t,n,i,o,r,s,a,l;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(u){switch(u.label){case 0:if(t=1===this.state.type||2===this.state.type,n=1===this.state.type?this.state.hints:void 0,this.cancel(!0),0===this._pendingTriggers.length)return[2,!1];if(i=this._pendingTriggers.reduce(T),this._pendingTriggers=[],o={triggerKind:i.triggerKind,triggerCharacter:i.triggerCharacter,isRetrigger:t,activeSignatureHelp:n},!this.editor.hasModel())return[2,!1];r=this.editor.getModel(),s=this.editor.getPosition(),this.state=new S.Pending(Object(m.f)((function(e){return C(r,s,o,e)}))),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.state.request];case 2:return a=u.sent(),e!==this.triggerId?(null!=a&&a.dispose(),[2,!1]):a&&a.value.signatures&&0!==a.value.signatures.length?(this.state=new S.Active(a.value),this._lastSignatureHelpResult.value=a,this._onChangedHints.fire(this.state.hints),[2,!0]):(null!=a&&a.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1]);case 3:return l=u.sent(),e===this.triggerId&&(this.state=S.Default),Object(v.e)(l),[2,!1];case 4:return[2]}}))}))},Object.defineProperty(M.prototype,"isTriggered",{get:function(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),M.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new x.b,this.retriggerChars=new x.b;var e=this.editor.getModel();if(e)for(var t=0,n=_.x.ordered(e);t<n.length;t++){for(var i=n[t],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))}for(var a=0,l=i.signatureHelpRetriggerCharacters||[];a<l.length;a++)s=l[a],this.retriggerChars.add(s.charCodeAt(0))}},M.prototype.onDidType=function(e){if(this.triggerOnType){var t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:_.y.TriggerCharacter,triggerCharacter:e.charAt(t)})}},M.prototype.onCursorChange=function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:_.y.ContentChange})},M.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:_.y.ContentChange})},M.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},M.prototype.dispose=function(){this.cancel(!0),E.prototype.dispose.call(this)},M.DEFAULT_DELAY=120,M);function M(e,t){void 0===t&&(t=M.DEFAULT_DELAY);var n=E.call(this)||this;return n._onChangedHints=n._register(new p.a),n.onChangedHints=n._onChangedHints.event,n.triggerOnType=!1,n._state=S.Default,n._pendingTriggers=[],n._lastSignatureHelpResult=n._register(new o.d),n.triggerChars=new x.b,n.retriggerChars=new x.b,n.triggerId=0,n.editor=e,n.throttledDelayer=new m.a(t),n._register(n.editor.onDidChangeConfiguration((function(){return n.onEditorConfigurationChange()}))),n._register(n.editor.onDidChangeModel((function(e){return n.onModelChanged()}))),n._register(n.editor.onDidChangeModelLanguage((function(e){return n.onModelChanged()}))),n._register(n.editor.onDidChangeCursorSelection((function(e){return n.onCursorChange(e)}))),n._register(n.editor.onDidChangeModelContent((function(e){return n.onModelContentChange()}))),n._register(_.x.onDidChange(n.onModelChanged,n)),n._register(n.editor.onDidType((function(e){return n.onDidType(e)}))),n.onEditorConfigurationChange(),n.onModelChanged(),n}function T(e,t){switch(t.triggerKind){case _.y.Invoke:return t;case _.y.ContentChange:return e;case _.y.TriggerCharacter:default:return t}}var P,R,A=n(444),F=(P=function(e,t){return(P=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}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=function(e,t){return function(n,i){t(n,i,e)}},W=u.a,V=(F(B,R=o.a),B.prototype.createParamaterHintDOMNodes=function(){var e=this,t=W(".editor-widget.parameter-hints-widget"),n=u.q(t,W(".wrapper"));n.tabIndex=-1;var i=u.q(n,W(".controls")),o=u.q(i,W(".button.codicon.codicon-chevron-up")),r=u.q(i,W(".overloads")),s=u.q(i,W(".button.codicon.codicon-chevron-down")),a=Object(c.b)(Object(c.a)(o,"click"));this._register(a(this.previous,this));var l=Object(c.b)(Object(c.a)(s,"click"));this._register(l(this.next,this));var d=W(".body"),f=new h.a(d,{});this._register(f),n.appendChild(f.getDomNode());var g=u.q(d,W(".signature")),m=u.q(d,W(".docs"));function v(){if(e.domNodes){var t=e.editor.getOption(34);e.domNodes.element.style.fontSize=t.fontSize+"px"}}t.style.userSelect="text",this.domNodes={element:t,signature:g,overloads:r,docs:m,scrollbar:f},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((function(t){e.visible&&e.editor.layoutContentWidget(e)}))),v(),this._register(p.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(v,null)),this._register(this.editor.onDidLayoutChange((function(t){return e.updateMaxHeight()}))),this.updateMaxHeight()},B.prototype.show=function(){var e=this;this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((function(){e.domNodes&&u.f(e.domNodes.element,"visible")}),100),this.editor.layoutContentWidget(this))},B.prototype.hide=function(){this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&u.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))},B.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},B.prototype.render=function(e){if(this.domNodes){var t=1<e.signatures.length;u.Y(this.domNodes.element,"multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var n=e.signatures[e.activeSignature];if(n){var o=u.q(this.domNodes.signature,W(".code")),r=0<n.parameters.length,s=this.editor.getOption(34);o.style.fontSize=s.fontSize+"px",o.style.fontFamily=s.fontFamily,r?this.renderParameters(o,n,e.activeParameter):u.q(o,W("span")).textContent=n.label,this.renderDisposeables.clear();var a=n.parameters[e.activeParameter];if(a&&a.documentation){var l=W("span.documentation");if("string"==typeof a.documentation)l.textContent=a.documentation;else{var c=this.markdownRenderer.render(a.documentation);u.f(c.element,"markdown-docs"),this.renderDisposeables.add(c),l.appendChild(c.element)}u.q(this.domNodes.docs,W("p",{},l))}void 0!==n.documentation&&("string"==typeof n.documentation?u.q(this.domNodes.docs,W("p",{},n.documentation)):(c=this.markdownRenderer.render(n.documentation),u.f(c.element,"markdown-docs"),this.renderDisposeables.add(c),u.q(this.domNodes.docs,c.element)));var h=this.hasDocs(n,a);if(u.Y(this.domNodes.signature,"has-docs",h),u.Y(this.domNodes.docs,"empty",!h),this.domNodes.overloads.textContent=Object(A.F)(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,a){var p=this.getParameterLabel(n,e.activeParameter);this.announcedLabel!==p&&(d.a(i.a("hint","{0}, hint",p)),this.announcedLabel=p)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}}},B.prototype.hasDocs=function(e,t){return!!(t&&"string"==typeof t.documentation&&0<t.documentation.length)||!!(t&&"object"==typeof t.documentation&&0<t.documentation.value.length)||"string"==typeof e.documentation&&0<e.documentation.length||"object"==typeof e.documentation&&0<e.documentation.value.length},B.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 l=document.createElement("span");l.textContent=t.label.substring(r),u.q(e,s,a,l)},B.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])},B.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 0<=i?[i,i+n.label.length]:[0,0]}return[0,0]},B.prototype.next=function(){this.editor.focus(),this.model.next()},B.prototype.previous=function(){this.editor.focus(),this.model.previous()},B.prototype.cancel=function(){this.model.cancel()},B.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},B.prototype.getId=function(){return B.ID},B.prototype.trigger=function(e){this.model.trigger(e,0)},B.prototype.updateMaxHeight=function(){if(this.domNodes){var e=Math.max(this.editor.getLayoutInfo().height/4,250)+"px";this.domNodes.element.style.maxHeight=e;var t=this.domNodes.element.getElementsByClassName("wrapper");t.length&&(t[0].style.maxHeight=e)}},B.ID="editor.widget.parameterHintsWidget",B=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([j(1,a.c),j(2,O.a),j(3,f.a)],B));function B(e,t,n,i){var r=R.call(this)||this;return r.editor=e,r.renderDisposeables=r._register(new o.b),r.visible=!1,r.announcedLabel=null,r.allowEditorOverflow=!0,r.markdownRenderer=r._register(new g.a(e,i,n)),r.model=r._register(new I(e)),r.keyVisible=y.Visible.bindTo(t),r.keyMultipleSignatures=y.MultipleSignatures.bindTo(t),r._register(r.model.onChangedHints((function(e){e?(r.show(),r.render(e)):r.hide()}))),r}Object(D.e)((function(e,t){var n=e.getColor(L.B);if(n){var i=e.type===D.b?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(L.A);o&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+o+"; }");var r=e.getColor(L.ec);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var s=e.getColor(L.C);s&&t.addRule(".monaco-editor .parameter-hints-widget { color: "+s+"; }");var a=e.getColor(L.dc);a&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+a+"; }")})),n.d(t,"TriggerParameterHintsAction",(function(){return Y}));var H,z,U=(H=function(e,t){return(H=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}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),K=(U(q,z=o.a),q.get=function(e){return e.getContribution(q.ID)},q.prototype.cancel=function(){this.widget.cancel()},q.prototype.previous=function(){this.widget.previous()},q.prototype.next=function(){this.widget.next()},q.prototype.trigger=function(e){this.widget.trigger(e)},q.ID="editor.controller.parameterHints",q=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,r.a)],q));function q(e,t){var n=z.call(this)||this;return n.editor=e,n.widget=n._register(t.createInstance(V,n.editor)),n}var G,Y=(U(Z,G=l.b),Z.prototype.run=function(e,t){var n=K.get(t);n&&n.trigger({triggerKind:_.y.Invoke})},Z);function Z(){return G.call(this,{id:"editor.action.triggerParameterHints",label:i.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:s.a.hasSignatureHelpProvider,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3082,weight:100}})||this}Object(l.h)(K.ID,K),Object(l.f)(Y);var X=l.c.bindToContribution(K.get);Object(l.g)(new X({id:"closeParameterHints",precondition:y.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:175,kbExpr:s.a.focus,primary:9,secondary:[1033]}})),Object(l.g)(new X({id:"showPrevParameterHint",precondition:a.a.and(y.Visible,y.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:175,kbExpr:s.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(l.g)(new X({id:"showNextParameterHint",precondition:a.a.and(y.Visible,y.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:175,kbExpr:s.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(548),r=n(449),s=n(469),a=n(704),l=n(450),u=n(440),c=n(466),d=n(575),h=(p._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var i=t.length;if(e.length<n+i)return!1;for(var o=0;o<i;o++){var r=e.charCodeAt(n+o),s=t.charCodeAt(o);if(r!==s&&!(65<=r&&r<=90&&r+32===s||65<=s&&s<=90&&s+32===r))return!1}return!0},p.prototype._createOperationsForBlockComment=function(e,t,n,i,o,r){var s,a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,h=o.getLineContent(a),f=o.getLineContent(c),g=h.lastIndexOf(t,l-1+t.length),m=f.indexOf(n,d-1-n.length);if(-1!==g&&-1!==m)if(a===c)0<=h.substring(g+t.length,m).indexOf(n)&&(m=g=-1);else{var v=h.substring(g+t.length),_=f.substring(0,m);(0<=v.indexOf(n)||0<=_.indexOf(n))&&(m=g=-1)}-1!==g&&-1!==m?(i&&g+t.length<h.length&&32===h.charCodeAt(g+t.length)&&(t+=" "),i&&0<m&&32===f.charCodeAt(m-1)&&(n=" "+n,--m),s=p._createRemoveBlockCommentOperations(new u.a(a,g+t.length+1,c,m+1),t,n)):(s=p._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=1===s.length?n:null);for(var b=0,y=s;b<y.length;b++){var C=y[b];r.addTrackedEditOperation(C.range,C.text)}},p._createRemoveBlockCommentOperations=function(e,t,n){var i=[];return u.a.isEmpty(e)?i.push(a.a.delete(new u.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(a.a.delete(new u.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(a.a.delete(new u.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i},p._createAddBlockCommentOperations=function(e,t,n,i){var o=[];return u.a.isEmpty(e)?o.push(a.a.replace(new u.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(o.push(a.a.insert(new l.a(e.startLineNumber,e.startColumn),t+(i?" ":""))),o.push(a.a.insert(new l.a(e.endLineNumber,e.endColumn),(i?" ":"")+n))),o},p.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var o=e.getLanguageIdAtPosition(n,i),r=d.a.getComments(o);r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,this._insertSpace,e,t)},p.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],o=n[1];return new c.a(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 c.a(r.endLineNumber,r.endColumn+s,r.endLineNumber,r.endColumn+s)},p);function p(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}var f=n(444),g=(m._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),o=d.a.getComments(i),r=o?o.lineCommentToken:null;if(!r)return null;for(var s=[],a=0,l=n-t+1;a<l;a++)s[a]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return s},m._analyzeLines=function(e,t,n,i,o){var r,s=!0;r=0===e||1!==e;for(var a=0,l=i.length;a<l;a++){var u=i[a],c=o+a,d=n.getLineContent(c),p=f.q(d);if(-1!==p){if(s=!1,u.ignore=!1,u.commentStrOffset=p,r&&!h._haystackHasNeedleAtOffset(d,u.commentStr,p)&&(0===e?r=!1:1===e||(u.ignore=!0)),r&&t){var g=p+u.commentStrLength;g<d.length&&32===d.charCodeAt(g)&&(u.commentStrLength+=1)}}else u.ignore=!0,u.commentStrOffset=d.length}if(0===e&&s)for(r=!1,a=0,l=i.length;a<l;a++)i[a].ignore=!1;return{supported:!0,shouldRemoveComments:r,lines:i}},m._gatherPreflightData=function(e,t,n,i,o){var r=m._gatherPreflightCommentStrings(n,i,o);return null===r?{supported:!1}:m._analyzeLines(e,t,n,r,i)},m.prototype._executeLineComments=function(e,t,n,i){var o;o=n.shouldRemoveComments?m._createRemoveLineCommentsOperations(n.lines,i.startLineNumber):(m._normalizeInsertionPoint(e,n.lines,i.startLineNumber,this._tabSize),this._createAddLineCommentsOperations(n.lines,i.startLineNumber));for(var r=new l.a(i.positionLineNumber,i.positionColumn),s=0,a=o.length;s<a;s++)t.addEditOperation(o[s].range,o[s].text),o[s].range.isEmpty()&&o[s].range.getStartPosition().equals(r)&&e.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(o[s].text||"").length);this._selectionId=t.trackSelection(i)},m.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),l=e.getLineContent(r).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===l&&(l=e.getLineContent(o).indexOf(i,a+n.length),r=o),-1===a&&-1!==l&&(a=e.getLineContent(r).lastIndexOf(n,l),o=r),!t.isEmpty()||-1!==a&&-1!==l||-1!==(a=e.getLineContent(o).indexOf(n))&&(l=e.getLineContent(o).indexOf(i,a+n.length)),-1!==a&&32===e.getLineContent(o).charCodeAt(a+n.length)&&(n+=" "),-1!==l&&32===e.getLineContent(r).charCodeAt(l-1)&&(i=" "+i,--l),-1!==a&&-1!==l?h._createRemoveBlockCommentOperations(new u.a(o,a+n.length+1,r,l+1),n,i):null},m.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var i=e.getLanguageIdAtPosition(n.startLineNumber,1),o=d.a.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 l=e.getLineContent(n.startLineNumber),c=f.q(l);-1===c&&(c=l.length),a=h._createAddBlockCommentOperations(new u.a(n.startLineNumber,c+1,n.startLineNumber,l.length+1),r,s,this._insertSpace)}else a=h._createAddBlockCommentOperations(new u.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),r,s,this._insertSpace);1===a.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(n);for(var p=0,g=a;p<g.length;p++){var m=g[p];t.addEditOperation(m.range,m.text)}}},m.prototype.getEditOperations=function(e,t){var n=this._selection;this._moveEndPositionDown=!1,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));var i=m._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber);return i.supported?this._executeLineComments(e,t,i,n):this._executeBlockComment(e,t,n)},m.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new c.a(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)},m._createRemoveLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(a.a.delete(new u.a(t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)))}return n},m.prototype._createAddLineCommentsOperations=function(e,t){for(var n=[],i=this._insertSpace?" ":"",o=0,r=e.length;o<r;o++){var s=e[o];s.ignore||n.push(a.a.insert(new l.a(t+o,s.commentStrOffset+1),s.commentStr+i))}return n},m.nextVisibleColumn=function(e,t,n,i){return n?e+(t-e%t):e+i},m._normalizeInsertionPoint=function(e,t,n,i){for(var o,r,s=1073741824,a=0,l=t.length;a<l;a++)if(!t[a].ignore){for(var u=e.getLineContent(n+a),c=0,d=0,h=t[a].commentStrOffset;c<s&&d<h;d++)c=m.nextVisibleColumn(c,i,9===u.charCodeAt(d),1);c<s&&(s=c)}for(s=Math.floor(s/i)*i,a=0,l=t.length;a<l;a++)if(!t[a].ignore){for(u=e.getLineContent(n+a),o=c=0,r=t[a].commentStrOffset;c<s&&o<r;o++)c=m.nextVisibleColumn(c,i,9===u.charCodeAt(o),1);t[a].commentStrOffset=s<c?o-1:o}},m);function m(e,t,n,i){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=i,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}var v,_,b=(v=function(e,t){return(v=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}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=(b(C,_=r.b),C.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=n.getOptions(),s=t.getOption(13),a=0,l=o;a<l.length;a++){var u=l[a];i.push(new g(u,r.tabSize,this._type,s.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},C);function C(e,t){var n=_.call(this,t)||this;return n._type=e,n}var w,S=(b(O,w=y),O);function O(){return w.call(this,0,{id:"editor.action.commentLine",label:i.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:17,group:"5_insert",title:i.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}var L,D=(b(x,L=y),x);function x(){return L.call(this,1,{id:"editor.action.addCommentLine",label:i.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(o.a)(2089,2081),weight:100}})||this}var N,k=(b(E,N=y),E);function E(){return N.call(this,2,{id:"editor.action.removeCommentLine",label:i.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(o.a)(2089,2099),weight:100}})||this}var I,M=(b(T,I=r.b),T.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getOption(13),i=[],o=0,r=t.getSelections();o<r.length;o++){var s=r[o];i.push(new h(s,n.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},T);function T(){return I.call(this,{id:"editor.action.blockComment",label:i.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:17,group:"5_insert",title:i.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}Object(r.f)(S),Object(r.f)(D),Object(r.f)(k),Object(r.f)(M)},function(e,t,n){"use strict";n.r(t),n(1373),n(1097),n(1098);var i,o=n(484),r=n(760),s=n(444),a=n(975),l=n(449),u=n(440),c=n(469),d=n(454),h=n(479),p=n(598),f=n(787),g=n(459),m=n(822),v=n(446),_=n(553),b=(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)}),y=(C.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},C.findId=function(e,t){var n;"string"==typeof e?n=t.id+"/"+e:(n=t.id+"/"+e.name,void 0!==t.children[n]&&(n=t.id+"/"+e.name+"_"+e.range.startLineNumber+"_"+e.range.startColumn));for(var i=n,o=0;void 0!==t.children[i];o++)i=n+"_"+o;return i},C.empty=function(e){for(var t in e.children)return!1;return!0},C);function C(){}var w,S=(b(O,w=y),O);function O(e,t,n){var i=w.call(this)||this;return i.id=e,i.parent=t,i.symbol=n,i.children=Object.create(null),i}var L,D=(b(x,L=y),x);function x(e,t,n,i){var o=L.call(this)||this;return o.id=e,o.parent=t,o.provider=n,o.providerIndex=i,o.children=Object.create(null),o}var N=(k.prototype.update=function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this},k);function k(){this._n=1,this._val=0}var E,I=(b(M,E=y),M.create=function(e,t){var n=this,i=this._keys.for(e,!0),r=M._requests.get(i);if(!r){var s=new o.b;r={promiseCnt:0,source:s,promise:M._create(e,s.token),model:void 0},M._requests.set(i,r);var a=Date.now();r.promise.then((function(){var t=n._keys.for(e,!1),i=n._requestDurations.get(t);i||(i=new N,n._requestDurations.set(t,i)),i.update(Date.now()-a)}))}return r.model?Promise.resolve(r.model):(r.promiseCnt+=1,t.onCancellationRequested((function(){0==--r.promiseCnt&&(r.source.cancel(),M._requests.delete(i))})),new Promise((function(e,t){r.promise.then((function(t){r.model=t,e(t)}),(function(e){M._requests.delete(i),t(e)}))})))},M._create=function(e,t){var n=new o.b(t),i=new M(e),r=d.m.ordered(e),s=r.map((function(e,t){var o=y.findId("provider_"+t,i),r=new D(o,i,e,t);return Promise.resolve(e.provideDocumentSymbols(i.textModel,n.token)).then((function(e){for(var t=0,n=e||[];t<n.length;t++)M._makeOutlineElement(n[t],r);return r}),(function(e){return Object(v.f)(e),r})).then((function(e){y.empty(e)?e.remove():i._groups[o]=e}))})),a=d.m.onDidChange((function(){var t=d.m.ordered(e);Object(g.g)(t,r)||n.cancel()}));return Promise.all(s).then((function(){return n.token.isCancellationRequested&&!t.isCancellationRequested?M._create(e,t):i._compact()})).finally((function(){a.dispose()}))},M._makeOutlineElement=function(e,t){var n=y.findId(e,t),i=new S(n,t,e);if(e.children)for(var o=0,r=e.children;o<r.length;o++){var s=r[o];M._makeOutlineElement(s,i)}t.children[i.id]=i},M.prototype._compact=function(){var e=0;for(var t in this._groups){var n=this._groups[t];void 0===Object(m.b)(n.children)?delete this._groups[t]:e+=1}if(1!==e)this.children=this._groups;else for(var t in(n=Object(m.b)(this._groups)).children){var i=n.children[t];(i.parent=this).children[i.id]=i}return this},M._requestDurations=new _.a(50,.7),M._requests=new _.a(9,.75),M._keys=(T.prototype.for=function(e,t){return e.id+"/"+(t?e.getVersionId():"")+"/"+this._hash(d.m.all(e))},T.prototype._hash=function(e){for(var t="",n=0,i=e;n<i.length;n++){var o=i[n],r=this._data.get(o);void 0===r&&(r=this._counter++,this._data.set(o,r)),t+=r}return t},new T),M);function M(e){var t=E.call(this)||this;return t.textModel=e,t.id="root",t.parent=void 0,t._groups=Object.create(null),t.children=Object.create(null),t.id="root",t.parent=void 0,t}function T(){this._counter=1,this._data=new WeakMap}var P=n(489),R=n(465),A=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},F=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=0<(o=s.trys).length&&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(a){r=[6,a],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 j(e,t,n){return A(this,void 0,void 0,(function(){var i,o,r,s,a,l;return F(this,(function(u){switch(u.label){case 0:return[4,I.create(e,n)];case 1:for(i=u.sent(),o=[],r=0,s=Object(m.d)(i.children);r<s.length;r++)(a=s[r])instanceof S?o.push(a.symbol):o.push.apply(o,Object(m.d)(a.children).map((function(e){return e.symbol})));return l=[],n.isCancellationRequested?[2,l]:(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,tags:s.tags,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)}}(l,o,""):l=o,[2,l.sort(W)])}}))}))}function W(e,t){return u.a.compareRangesUsingStarts(e.range,t.range)}P.a.registerCommand("_executeDocumentSymbolProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return A(this,void 0,void 0,(function(){var n,i,r;return F(this,(function(s){switch(s.label){case 0:return n=t[0],Object(R.a)(h.a.isUri(n)),(i=e.get(p.a).getModel(n))?[2,j(i,!1,o.a.None)]:[4,e.get(f.a).createModelReference(n)];case 1:r=s.sent(),s.label=2;case 2:return s.trys.push([2,,4,5]),[4,j(r.object.textEditorModel,!1,o.a.None)];case 3:return[2,s.sent()];case 4:return r.dispose(),[7];case 5:return[2]}}))}))}));var V=n(968),B=n(754);n.d(t,"SymbolEntry",(function(){return K})),n.d(t,"QuickOutlineAction",(function(){return Y}));var H,z,U=(H=function(e,t){return(H=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}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),K=(U(q,z=a.b),q.prototype.getLabel=function(){return this.name},q.prototype.getAriaLabel=function(){return s.r(B.e.entryAriaLabel,this.name)},q.prototype.getIcon=function(){return this.type},q.prototype.getDescription=function(){return this.description},q.prototype.getType=function(){return this.type},q.prototype.getRange=function(){return this.range},q.prototype.run=function(e,t){return 1===e?this.runOpen(t):this.runPreview()},q.prototype.runOpen=function(e){var t=this.toSelection();return this.editor.setSelection(t),this.editor.revealRangeInCenter(t,0),this.editor.focus(),!0},q.prototype.runPreview=function(){var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(this.range,this.editor),!1},q.prototype.toSelection=function(){return new u.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},q);function q(e,t,n,i,o,r,s){var a=z.call(this)||this;return a.name=e,a.type=t,a.description=n,a.range=i,a.setHighlights(o),a.editor=r,a.decorator=s,a}var G,Y=(U(Z,G=V.a),Z.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel();if(d.m.has(i))return j(i,!0,o.a.None).then((function(e){0!==e.length&&n._run(t,e)}))}},Z.prototype._run=function(e,t){var n=this;this._show(this.getController(e),{getModel:function(i){return new a.c(n.toQuickOpenEntries(e,t,i))},getAutoFocus:function(e){return 0===e.indexOf(":")&&(e=e.substr(":".length)),{autoFocusPrefixMatch:e,autoFocusFirstEntry:!!e}}})},Z.prototype.symbolEntry=function(e,t,n,i,o,r,s){return new K(e,t,n,u.a.lift(i),o,r,s)},Z.prototype.toQuickOpenEntries=function(e,t,n){var i=this.getController(e),o=[],a=n;0===n.indexOf(":")&&(a=a.substr(":".length));for(var l=0,u=t;l<u.length;l++){var c=u[l],h=s.Q(c.name),p=Object(r.f)(a,h);if(p){var f=void 0;c.containerName&&(f=c.containerName),o.push(this.symbolEntry(h,d.z.toCssClassName(c.kind),f,c.range,p,e,i))}}if(n&&(o=0===n.indexOf(":")?o.sort(this.sortScoped.bind(this,n.toLowerCase())):o.sort(this.sortNormal.bind(this,n.toLowerCase()))),0<o.length&&0===n.indexOf(":")){for(var g=null,m=null,v=0,_=0;_<o.length;_++){var b=o[_];g!==b.getType()?(m&&m.setGroupLabel(this.typeToLabel(g||"",v)),g=b.getType(),v=1,(m=b).setShowBorder(0<_)):v++}m&&m.setGroupLabel(this.typeToLabel(g||"",v))}else 0<o.length&&o[0].setGroupLabel(s.r(B.e._symbols_,o.length));return o},Z.prototype.typeToLabel=function(e,t){switch(e){case"module":return s.r(B.e._modules_,t);case"class":return s.r(B.e._class_,t);case"interface":return s.r(B.e._interface_,t);case"method":return s.r(B.e._method_,t);case"function":return s.r(B.e._function_,t);case"property":return s.r(B.e._property_,t);case"variable":return s.r(B.e._variable_,t);case"var":return s.r(B.e._variable2_,t);case"constructor":return s.r(B.e._constructor_,t);case"call":return s.r(B.e._call_,t)}return e},Z.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},Z.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(),l=s.localeCompare(a);if(0!==l)return l}var u=t.getRange(),c=n.getRange();return u.startLineNumber-c.startLineNumber},Z);function Z(){return G.call(this,B.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:B.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:c.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:c.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}Object(l.f)(Y)},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(449),r=n(469),s=n(440),a=(l.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,a=n.selectionStartLineNumber,l=e.getLineContent(a);r=this._isMovingLeft?(i=l.substring(0,n.startColumn-2),o=l.substring(n.startColumn-1,n.endColumn-1),l.substring(n.startColumn-2,n.startColumn-1)+l.substring(n.endColumn-1)):(i=l.substring(0,n.startColumn-1)+l.substring(n.endColumn-1,n.endColumn),o=l.substring(n.startColumn-1,n.endColumn-1),l.substring(n.endColumn));var u=i+o+r;t.addEditOperation(new s.a(a,1,a,e.getLineMaxColumn(a)),null),t.addEditOperation(new s.a(a,1,a,1),u),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0}},l.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},l);function l(e,t){this._selection=e,this._isMovingLeft=t,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}var u,c,d=(u=function(e,t){return(u=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}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=(d(p,c=o.b),p.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=0,o=t.getSelections();i<o.length;i++){var r=o[i];n.push(new a(r,this.left))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},p);function p(e,t){var n=c.call(this,t)||this;return n.left=e,n}var f,g=(d(m,f=h),m);function m(){return f.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:i.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:r.a.writable})||this}var v,_=(d(b,v=h),b);function b(){return v.call(this,!1,{id:"editor.action.moveCarretRightAction",label:i.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:r.a.writable})||this}Object(o.f)(g),Object(o.f)(_)},function(e,t,n){"use strict";n.r(t);var i,o,r=n(445),s=n(443),a=n(772),l=n(439),u=n(449),c=n(469),d=n(755),h=n(456),p=n(757),f=n(531),g=n(1081),m=((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)})(v,o=g.b),v);function v(e,t){var n=o.call(this,e,t,"contextsubmenu")||this;return n.entries=t,n}n.d(t,"ContextMenuController",(function(){return C}));var _,b=(_=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)}),y=function(e,t){return function(n,i){t(n,i,e)}},C=(w.get=function(e){return e.getContribution(w.ID)},w.prototype._onContextMenu=function(e){if(this._editor.hasModel()){if(!this._editor.getOption(14))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12!==e.target.type&&(e.event.preventDefault(),6===e.target.type||7===e.target.type||1===e.target.type)){if(this._editor.focus(),e.target.position){for(var t=!1,n=0,i=this._editor.getSelections();n<i.length;n++)if(i[n].containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}var o=null;1!==e.target.type&&(o={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(o)}}},w.prototype.showContextMenu=function(e){if(this._editor.getOption(14)&&this._editor.hasModel())if(this._contextMenuService){var t=this._getMenuActions(this._editor.getModel(),7);0<t.length&&this._doShowContextMenu(t,e)}else this._editor.focus()},w.prototype._getMenuActions=function(e,t){var n=[],i=this._menuService.createMenu(t,this._contextKeyService),o=i.getActions({arg:e.uri});i.dispose();for(var r=0,s=o;r<s.length;r++){for(var l=0,u=0,c=s[r][1];u<c.length;u++){var h=c[u];if(h instanceof d.d){var p=this._getMenuActions(e,h.item.submenu);0<p.length&&(n.push(new m(h.label,p)),l++)}else n.push(h),l++}l&&n.push(new a.d)}return n.length&&n.pop(),n},w.prototype._doShowContextMenu=function(e,t){var n=this;if(void 0===t&&(t=null),this._editor.hasModel()){var i=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var o=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),r=s.C(this._editor.getDomNode()),l=r.left+o.left,u=r.top+o.top+o.height;t={x:l,y:u}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return t},getActions:function(){return e},getActionViewItem:function(e){var t=n._keybindingFor(e);return t?new a.b(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0}):"function"==typeof e.getActionViewItem?e.getActionViewItem():new a.b(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return n._keybindingFor(e)},onHide:function(){n._contextMenuIsBeingShownCount--,n._editor.focus(),n._editor.updateOptions({hover:i})}})}},w.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id)},w.prototype.dispose=function(){0<this._contextMenuIsBeingShownCount&&this._contextViewService.hideContextView(),this._toDispose.dispose()},w.ID="editor.contrib.contextmenu",w=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([y(1,p.a),y(2,p.b),y(3,h.c),y(4,f.a),y(5,d.a)],w));function w(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=new l.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((function(e){return s._onContextMenu(e)}))),this._toDispose.add(this._editor.onMouseWheel((function(e){0<s._contextMenuIsBeingShownCount&&s._contextViewService.hideContextView()}))),this._toDispose.add(this._editor.onKeyDown((function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())})))}var S,O=(b(L,S=u.b),L.prototype.run=function(e,t){C.get(t).showContextMenu()},L);function L(){return S.call(this,{id:"editor.action.showContextMenu",label:r.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:c.a.textInputFocus,primary:1092,weight:100}})||this}Object(u.h)(C.ID,C),Object(u.f)(O)},function(e,t,n){"use strict";n.r(t),n(1329);var i=n(439),o=n(452),r=n(449),s=n(450),a=n(440),l=n(466),u=(c.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),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 l.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection},c.prototype.computeCursorState=function(e,t){return this.targetSelection},c);function c(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}var d,h=n(495);function p(e){return o.e?e.altKey:e.ctrlKey}n.d(t,"DragAndDropController",(function(){return g}));var f,g=((d=function(e,t){return(d=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}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(m,f=i.a),m.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},m.prototype.onEditorKeyDown=function(e){this._editor.getOption(24)&&(p(e)&&(this._modifierPressed=!0),this._mouseDown&&p(e)&&this._editor.updateOptions({mouseStyle:"copy"}))},m.prototype.onEditorKeyUp=function(e){this._editor.getOption(24)&&(p(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===m.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))},m.prototype._onEditorMouseDown=function(e){this._mouseDown=!0},m.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},m.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]}p(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))},m.prototype._onEditorMouseDrop=function(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){var t=new s.a(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){var n=null;if(e.event.shiftKey){var i=this._editor.getSelection();if(i){var o=i.selectionStartLineNumber,r=i.selectionStartColumn;n=[new l.a(o,r,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map((function(e){return e.containsPosition(t)?new l.a(t.lineNumber,t.column,t.lineNumber,t.column):e}));this._editor.setSelections(n||[],"mouse")}else this._dragSelection.containsPosition(t)&&(!p(e.event)&&!this._modifierPressed||!this._dragSelection.getEndPosition().equals(t)&&!this._dragSelection.getStartPosition().equals(t))||(this._editor.pushUndoStop(),this._editor.executeCommand(m.ID,new u(this._dragSelection,t,p(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},m.prototype.showAt=function(e){var t=[{range:new a.a(e.lineNumber,e.column,e.lineNumber,e.column),options:m._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)},m.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},m.prototype._hitContent=function(e){return 6===e.type||7===e.type},m.prototype._hitMargin=function(e){return 2===e.type||3===e.type||4===e.type},m.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,f.prototype.dispose.call(this)},m.ID="editor.contrib.dragAndDrop",m.TRIGGER_KEY_VALUE=o.e?6:5,m._DECORATION_OPTIONS=h.a.register({className:"dnd-target"}),m);function m(e){var t=f.call(this)||this;return t._editor=e,t._register(t._editor.onMouseDown((function(e){return t._onEditorMouseDown(e)}))),t._register(t._editor.onMouseUp((function(e){return t._onEditorMouseUp(e)}))),t._register(t._editor.onMouseDrag((function(e){return t._onEditorMouseDrag(e)}))),t._register(t._editor.onMouseDrop((function(e){return t._onEditorMouseDrop(e)}))),t._register(t._editor.onKeyDown((function(e){return t.onEditorKeyDown(e)}))),t._register(t._editor.onKeyUp((function(e){return t.onEditorKeyUp(e)}))),t._register(t._editor.onDidBlurEditorWidget((function(){return t.onEditorBlur()}))),t._dndDecorationIds=[],t._mouseDown=!1,t._modifierPressed=!1,t._dragSelection=null,t}Object(r.h)(g.ID,g)},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(440),r=n(466),s=n(469),a=n(449),l=n(758),u=(c.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},c.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new r.a(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new r.a(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)},c);function c(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}var d,h=n(761),p=n(451),f=n(572),g=n(495),m=n(453),v=n(446),_=(d=function(e,t){return(d=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}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=(y.get=function(e){return e.getContribution(y.ID)},y.prototype.dispose=function(){},y.prototype.run=function(e,t){var n=this;this.currentRequest&&this.currentRequest.cancel();var i=this.editor.getSelection(),s=this.editor.getModel();if(s&&i){var a=i;if(a.startLineNumber===a.endLineNumber){var l=new h.a(this.editor,5),c=s.uri;return this.editorWorkerService.canNavigateValueSet(c)?(this.currentRequest=Object(m.f)((function(e){return n.editorWorkerService.navigateValueSet(c,a,t)})),this.currentRequest.then((function(t){if(t&&t.range&&t.value&&l.validate(n.editor)){var i=o.a.lift(t.range),s=t.range,c=t.value.length-(a.endColumn-a.startColumn);s={startLineNumber:s.startLineNumber,startColumn:s.startColumn,endLineNumber:s.endLineNumber,endColumn:s.startColumn+t.value.length},1<c&&(a=new r.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+c-1));var d=new u(i,a,t.value);n.editor.pushUndoStop(),n.editor.executeCommand(e,d),n.editor.pushUndoStop(),n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[{range:s,options:y.DECORATION}]),n.decorationRemover&&n.decorationRemover.cancel(),n.decorationRemover=Object(m.l)(350),n.decorationRemover.then((function(){return n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[])})).catch(v.e)}})).catch(v.e)):Promise.resolve(void 0)}}},y.ID="editor.contrib.inPlaceReplaceController",y.DECORATION=g.a.register({className:"valueSetReplacement"}),y=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(1,l.a)],y));function y(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}var C,w=(_(S,C=a.b),S.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},S);function S(){return C.call(this,{id:"editor.action.inPlaceReplace.up",label:i.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3154,weight:100}})||this}var O,L=(_(D,O=a.b),D.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},D);function D(){return O.call(this,{id:"editor.action.inPlaceReplace.down",label:i.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3156,weight:100}})||this}Object(a.h)(b.ID,b),Object(a.f)(w),Object(a.f)(L),Object(p.e)((function(e,t){var n=e.getColor(f.d);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")}))},function(e,t,n){"use strict";n.r(t),n(1371);var i,o=n(445),r=n(453),s=n(484),a=n(446),l=n(795),u=n(439),c=n(452),d=n(449),h=n(495),p=n(454),f=n(1094),g=n(479),m=n(440),v=n(598),_=n(489),b=n(459),y=(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)}),C=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},w=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},S=(O.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(O.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),O.prototype.resolve=function(e){return C(this,void 0,void 0,(function(){var t=this;return w(this,(function(n){return this._link.url?[2,this._link.url]:"function"==typeof this._provider.resolveLink?[2,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"))}))]:[2,Promise.reject(new Error("missing"))]}))}))},O);function O(e,t){this._link=e,this._provider=t}var L,D=(y(x,L=u.a),x._union=function(e,t){var n,i,o,r,s=[];for(o=n=0,i=e.length,r=t.length;n<i&&o<r;){var a=e[n],l=t[o];m.a.areIntersectingOrTouching(a.range,l.range)?n++:m.a.compareRangesUsingStarts(a.range,l.range)<0?(s.push(a),n++):(s.push(l),o++)}for(;n<i;n++)s.push(e[n]);for(;o<r;o++)s.push(t[o]);return s},x);function x(e){for(var t=L.call(this)||this,n=[],i=function(e,t){var i=e.links.map((function(e){return new S(e,t)}));n=x._union(n,i),Object(u.g)(t)&&o._register(t)},o=this,r=0,s=e;r<s.length;r++){var a=s[r];i(a[0],a[1])}return t.links=n,t}function N(e,t){var n=[],i=p.s.ordered(e).reverse().map((function(i,o){return Promise.resolve(i.provideLinks(e,t)).then((function(e){e&&(n[o]=[e,i])}),a.f)}));return Promise.all(i).then((function(){var e=new D(Object(b.d)(n));return t.isCancellationRequested?(e.dispose(),new D([])):e}))}_.a.registerCommand("_executeLinkProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return C(void 0,void 0,void 0,(function(){var n,i,o,r;return w(this,(function(a){switch(a.label){case 0:return(n=t[0])instanceof g.a&&(i=e.get(v.a).getModel(n))?[4,N(i,s.a.None)]:[2,[]];case 1:return(o=a.sent())?(r=o.links.slice(0),o.dispose(),[2,r]):[2,[]]}}))}))}));var k,E=n(532),I=n(636),M=n(461),T=n(451),P=(k=function(e,t){return(k=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}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),R=function(){return(R=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)},A=function(e,t){return function(n,i){t(n,i,e)}},F={general:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},j=(W.decoration=function(e,t){return{range:e.range,options:W._getOptions(e,t,!1)}},W._getOptions=function(e,t,n){var i,r,s,a,u,d=R({},n?F.active:F.general);return d.hoverMessage=(r=t,s=(i=e).url&&/^command:/i.test(i.url.toString()),a=i.tooltip?i.tooltip:s?o.a("links.navigate.executeCmd","Execute command"):o.a("links.navigate.follow","Follow link"),u=r?c.e?o.a("links.navigate.kb.meta.mac","cmd + click"):o.a("links.navigate.kb.meta","ctrl + click"):c.e?o.a("links.navigate.kb.alt.mac","option + click"):o.a("links.navigate.kb.alt","alt + click"),i.url?new l.a("",!0).appendMarkdown("["+a+"]("+i.url.toString()+") ("+u+")"):(new l.a).appendText(a+" ("+u+")")),d},W.prototype.activate=function(e,t){e.changeDecorationOptions(this.decorationId,W._getOptions(this.link,t,!0))},W.prototype.deactivate=function(e,t){e.changeDecorationOptions(this.decorationId,W._getOptions(this.link,t,!1))},W);function W(e,t){this.link=e,this.decorationId=t}var V=(B.get=function(e){return e.getContribution(B.ID)},B.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},B.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},B.prototype.onChange=function(){var e=this;this.timeout.setIfNotSet((function(){return e.beginCompute()}),B.RECOMPUTE_TIME)},B.prototype.beginCompute=function(){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e,t,n;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(i){switch(i.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(e=this.editor.getModel(),!p.s.has(e))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=r.f((function(t){return N(e,t)})),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,(t=this).computePromise];case 2:return t.activeLinksList=i.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return n=i.sent(),Object(a.e)(n),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}}))}))},B.prototype.updateDecorations=function(e){for(var t="altKey"===this.editor.getOption(59),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 l=[];if(e)for(var u=0,c=e;u<c.length;u++){var d=c[u];l.push(j.decoration(d,t))}var h=this.editor.deltaDecorations(n,l);for(this.currentOccurrences={},this.activeLinkDecorationId=null,o=0,r=h.length;o<r;o++)a=new j(e[o],h[o]),this.currentOccurrences[a.decorationId]=a},B.prototype._onEditorMouseMove=function(e,t){var n=this,i="altKey"===this.editor.getOption(59);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()},B.prototype.cleanUpActiveLinkDecoration=function(){var e="altKey"===this.editor.getOption(59);if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((function(n){t.deactivate(n,e)})),this.activeLinkDecorationId=null}},B.prototype.onEditorMouseUp=function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}},B.prototype.openLinkOccurrence=function(e,t,n){var i=this;if(void 0===n&&(n=!1),this.openerService){var r=e.link;r.resolve(s.a.None).then((function(e){return i.openerService.open(e,{openToSide:t,fromUserGesture:n})}),(function(e){var t=e instanceof Error?e.message:e;"invalid"===t?i.notificationService.warn(o.a("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):"missing"===t?i.notificationService.warn(o.a("missing.url","Failed to open this link because its target is missing.")):Object(a.e)(e)}))}},B.prototype.getLinkOccurrence=function(e){if(!this.editor.hasModel()||!e)return null;for(var t=0,n=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);t<n.length;t++){var i=n[t],o=this.currentOccurrences[i.id];if(o)return o}return null},B.prototype.isEnabled=function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))},B.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},B.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},B.ID="editor.linkDetector",B.RECOMPUTE_TIME=1e3,B=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([A(1,I.a),A(2,E.a)],B));function B(e,t,n){var i=this;this.listenersToRemove=new u.b,this.editor=e,this.openerService=t,this.notificationService=n;var o=new f.a(e);this.listenersToRemove.add(o),this.listenersToRemove.add(o.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i._onEditorMouseMove(t,n)}))),this.listenersToRemove.add(o.onExecute((function(e){i.onEditorMouseUp(e)}))),this.listenersToRemove.add(o.onCancel((function(e){i.cleanUpActiveLinkDecoration()}))),this.enabled=e.getOption(52),this.listenersToRemove.add(e.onDidChangeConfiguration((function(t){var n=e.getOption(52);i.enabled!==n&&(i.enabled=n,i.updateDecorations([]),i.stop(),i.beginCompute())}))),this.listenersToRemove.add(e.onDidChangeModelContent((function(e){return i.onChange()}))),this.listenersToRemove.add(e.onDidChangeModel((function(e){return i.onModelChanged()}))),this.listenersToRemove.add(e.onDidChangeModelLanguage((function(e){return i.onModelModeChanged()}))),this.listenersToRemove.add(p.s.onDidChange((function(e){return i.onModelModeChanged()}))),this.timeout=new r.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}var H,z=(P(U,H=d.b),U.prototype.run=function(e,t){var n=V.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)}},U);function U(){return H.call(this,{id:"editor.action.openLink",label:o.a("label","Open Link"),alias:"Open Link",precondition:void 0})||this}Object(d.h)(V.ID,V),Object(d.f)(z),Object(T.e)((function(e,t){var n=e.getColor(M.n);n&&t.addRule(".monaco-editor .detected-link-active { color: "+n+" !important; }")}))},function(e,t,n){"use strict";n.r(t);var i=n(445),o=n(446),r=n(456),s=n(774),a=n(449),l=n(469),u=(n(1378),n(439)),c=n(450),d=n(440),h=n(461),p=n(451),f=n(531),g=n(443),m=function(e,t){return function(n,i){t(n,i,e)}},v=new r.d("renameInputVisible",!1),_=(b.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},b.prototype.getId=function(){return"__renameInputWidget"},b.prototype.getDomNode=function(){var e=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(i.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var t=function(){var t,n,o=e._acceptKeybindings,r=o[0],s=o[1];e._keybindingService.lookupKeybinding(r),e._label.innerText=Object(i.a)("label","{0} to Rename, {1} to Preview",null===(t=e._keybindingService.lookupKeybinding(r))||void 0===t?void 0:t.getLabel(),null===(n=e._keybindingService.lookupKeybinding(s))||void 0===n?void 0:n.getLabel())};t(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(t)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},b.prototype._updateStyles=function(e){var t,n,i,o;if(this._input&&this._domNode){var r=e.getColor(h.hc);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(h.Q))&&void 0!==t?t:""),this._domNode.style.boxShadow=r?" 0 2px 8px "+r:"",this._domNode.style.color=String(null!==(n=e.getColor(h.bb))&&void 0!==n?n:""),this._input.style.backgroundColor=String(null!==(i=e.getColor(h.Z))&&void 0!==i?i:"");var s=e.getColor(h.ab);this._input.style.borderWidth=s?"1px":"0px",this._input.style.borderStyle=s?"solid":"none",this._input.style.borderColor=null!==(o=null==s?void 0:s.toString())&&void 0!==o?o:"none"}},b.prototype._updateFont=function(){if(this._input&&this._label){var e=this._editor.getOption(34);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=e.fontSize+"px",this._label.style.fontSize=.8*e.fontSize+"px"}},b.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},b.prototype.acceptInput=function(e){this._currentAcceptInput&&this._currentAcceptInput(e)},b.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e)},b.prototype.getInput=function(e,t,n,i,o){var r=this;Object(g.Y)(this._domNode,"preview",o),this._position=new c.a(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",i.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var s=new u.b;return new Promise((function(n){r._currentCancelInput=function(e){return r._currentAcceptInput=void 0,r._currentCancelInput=void 0,n(e),!0},r._currentAcceptInput=function(e){0!==r._input.value.trim().length&&r._input.value!==t?(r._currentAcceptInput=void 0,r._currentCancelInput=void 0,n({newName:r._input.value,wantsPreview:o&&e})):r.cancelInput(!0)},s.add(r._editor.onDidChangeCursorSelection((function(){var t=r._editor.getPosition();t&&d.a.containsPosition(e,t)||r.cancelInput(!0)}))),s.add(r._editor.onDidBlurEditorWidget((function(){return r.cancelInput(!1)}))),r._show()})).finally((function(){s.dispose(),r._hide()}))},b.prototype._show=function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((function(){e._input.focus(),e._input.setSelectionRange(parseInt(e._input.getAttribute("selectionStart")),parseInt(e._input.getAttribute("selectionEnd")))}),100)},b.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},b=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([m(2,p.c),m(3,f.a),m(4,r.c)],b));function b(e,t,n,i,o){var r=this;this._editor=e,this._acceptKeybindings=t,this._themeService=n,this._keybindingService=i,this._disposables=new u.b,this.allowEditorOverflow=!0,this._visibleContextKey=v.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&r._updateFont()}))),this._disposables.add(n.onThemeChange(this._updateStyles,this))}var y=n(454),C=n(635),w=n(887),S=n(761),O=n(532),L=n(951),D=n(479),x=n(504),N=n(484),k=n(453),E=n(465),I=n(828),M=n(448),T=n(571),P=n(789),R=n(899);n.d(t,"rename",(function(){return z})),n.d(t,"RenameAction",(function(){return G}));var A,F=(A=function(e,t){return(A=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}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),j=function(e,t){return function(n,i){t(n,i,e)}},W=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},V=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},B=(H.prototype.hasProvider=function(){return 0<this._providers.length},H.prototype.resolveRenameLocation=function(e){return W(this,void 0,void 0,(function(){var t,n,i,o;return V(this,(function(r){switch(r.label){case 0:return(t=this._providers[0])?t.resolveRenameLocation?(i=E.n,[4,t.resolveRenameLocation(this.model,this.position,e)]):[3,2]:[2,void 0];case 1:n=i.apply(void 0,[r.sent()]),r.label=2;case 2:return!n&&(o=this.model.getWordAtPosition(this.position))?[2,{range:new d.a(this.position.lineNumber,o.startColumn,this.position.lineNumber,o.endColumn),text:o.word}]:[2,n]}}))}))},H.prototype.provideRenameEdits=function(e,t,n,o){return W(this,void 0,void 0,(function(){var r,s;return V(this,(function(a){switch(a.label){case 0:return(r=this._providers[t])?[4,r.provideRenameEdits(this.model,this.position,e,o)]:[2,{edits:[],rejectReason:n.join("\n")}];case 1:return(s=a.sent())?s.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(s.rejectReason),o)]:[2,s]:[2,this.provideRenameEdits(e,t+1,n.concat(i.a("no result","No result.")),o)]}}))}))},H);function H(e,t){this.model=e,this.position=t,this._providers=y.v.ordered(e)}function z(e,t,n){return W(this,void 0,void 0,(function(){return V(this,(function(i){return[2,new B(e,t).provideRenameEdits(n,0,[],N.a.None)]}))}))}var U=(K.get=function(e){return e.getContribution(K.ID)},K.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},K.prototype.run=function(){return W(this,void 0,void 0,(function(){var e,t,n,o,r,s,a,l,u,c,h,p=this;return V(this,(function(f){switch(f.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(e=this.editor.getPosition(),!(t=new B(this.editor.getModel(),e)).hasProvider())return[2,void 0];this._cts=new S.b(this.editor,5),f.label=1;case 1:return f.trys.push([1,3,,4]),o=t.resolveRenameLocation(this._cts.token),this._progressService.showWhile(o,250),[4,o];case 2:return n=f.sent(),[3,4];case 3:return r=f.sent(),w.a.get(this.editor).showMessage(r||i.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e),[2,void 0];case 4:return n?n.rejectReason?(w.a.get(this.editor).showMessage(n.rejectReason,e),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(s=this.editor.getSelection(),a=0,l=n.text.length,d.a.isEmpty(s)||d.a.spansMultipleLines(s)||!d.a.containsRange(n.range,s)||(a=Math.max(0,s.startColumn-n.range.startColumn),l=Math.min(n.range.endColumn,s.endColumn)-n.range.startColumn),u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(n.range,n.text,a,l,u)]):[2,void 0];case 5:return"boolean"==typeof(c=f.sent())?(c&&this.editor.focus(),[2,void 0]):(this.editor.focus(),h=Object(k.j)(t.provideRenameEdits(c.newName,0,[],this._cts.token),this._cts.token).then((function(e){return W(p,void 0,void 0,(function(){var t=this;return V(this,(function(o){return e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):this._bulkEditService.apply(e,{editor:this.editor,showPreview:c.wantsPreview,label:i.a("label","Renaming '{0}'",null==n?void 0:n.text)}).then((function(e){e.ariaSummary&&Object(C.a)(i.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,c.newName,e.ariaSummary))})).catch((function(e){t._notificationService.error(i.a("rename.failedApply","Rename failed to apply edits")),t._logService.error(e)}))),[2]}))}))}),(function(e){p._notificationService.error(i.a("rename.failed","Rename failed to compute edits")),p._logService.error(e)})),this._progressService.showWhile(h,250),[2,h])}}))}))},K.prototype.acceptRenameInput=function(e){this._renameInputField.getValue().acceptInput(e)},K.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},K.ID="editor.contrib.renameController",K=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([j(1,M.a),j(2,O.a),j(3,L.a),j(4,s.a),j(5,I.a),j(6,R.a)],K));function K(e,t,n,i,o,r,s){var a=this;this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=i,this._progressService=o,this._logService=r,this._configService=s,this._dispoableStore=new u.b,this._cts=new N.b,this._renameInputField=this._dispoableStore.add(new k.b((function(){return a._dispoableStore.add(a._instaService.createInstance(_,a.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))})))}var q,G=(F(Y,q=a.b),Y.prototype.runCommand=function(e,t){var n=this,i=e.get(x.a),r=Array.isArray(t)&&t||[void 0,void 0],s=r[0],a=r[1];return D.a.isUri(s)&&c.a.isIPosition(a)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then((function(e){e&&(e.setPosition(a),e.invokeWithinContext((function(t){return n.reportTelemetry(t,e),n.run(t,e)})))}),o.e):q.prototype.runCommand.call(this,e,t)},Y.prototype.run=function(e,t){var n=U.get(t);return n?n.run():Promise.resolve()},Y);function Y(){return q.call(this,{id:"editor.action.rename",label:i.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:r.a.and(l.a.writable,l.a.hasRenameProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}Object(a.h)(U.ID,U),Object(a.f)(G);var Z=a.c.bindToContribution(U.get);Object(a.g)(new Z({id:"acceptRenameInput",precondition:v,handler:function(e){return e.acceptRenameInput(!1)},kbOpts:{weight:199,kbExpr:l.a.focus,primary:3}})),Object(a.g)(new Z({id:"acceptRenameInputWithPreview",precondition:r.a.and(v,r.a.has("config.editor.rename.enablePreview")),handler:function(e){return e.acceptRenameInput(!0)},kbOpts:{weight:199,kbExpr:l.a.focus,primary:1027}})),Object(a.g)(new Z({id:"cancelRenameInput",precondition:v,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.e)("_executeDocumentRenameProvider",(function(e,t,n){var i=n.newName;if("string"!=typeof i)throw Object(o.b)("newName");return z(e,t,i)})),T.a.as(P.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:i.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},function(e,t,n){"use strict";n.r(t);var i=n(459),o=n(484),r=n(449),s=n(450),a=n(440),l=n(466),u=n(469),c=n(454),d=n(445),h=n(439),p=n(444),f=(g.prototype.provideSelectionRanges=function(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i],s=[];n.push(s),this._addInWordRanges(s,e,r),this._addWordRanges(s,e,r),this._addWhitespaceLine(s,e,r),s.push({range:e.getFullModelRange()})}return n},g.prototype._addInWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);if(i){for(var o=i.word,r=i.startColumn,s=n.column-r,l=s,u=s,c=0;0<=l&&95!==(d=o.charCodeAt(l))&&45!==d&&(!Object(p.B)(d)||!Object(p.C)(c));l--)c=d;for(l+=1;u<o.length;u++){var d=o.charCodeAt(u);if(Object(p.C)(d)&&Object(p.B)(c))break;if(95===d||45===d)break;c=d}l<u&&e.push({range:new a.a(n.lineNumber,r+l,n.lineNumber,r+u)})}},g.prototype._addWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);i&&e.push({range:new a.a(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})},g.prototype._addWhitespaceLine=function(e,t,n){0<t.getLineLength(n.lineNumber)&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new a.a(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})},g);function g(){}var m=n(1099),v=n(489),_=n(446);n.d(t,"provideSelectionRanges",(function(){return P}));var b,y=(b=function(e,t){return(b=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}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=(w.prototype.mov=function(e){var t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;var n=new w(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n},w);function w(e,t){this.index=e,this.ranges=t}var S=(O.get=function(e){return e.getContribution(O.ID)},O.prototype.dispose=function(){Object(h.f)(this._selectionListener)},O.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),r=this._editor.getModel();if(c.w.has(r)){var s=Promise.resolve(void 0);return this._state||(s=P(r,n.map((function(e){return e.getPosition()})),o.a.None).then((function(e){if(i.q(e)&&e.length===n.length&&t._editor.hasModel()&&i.g(t._editor.getSelections(),n,(function(e,t){return e.equalsSelection(t)}))){for(var o=function(t){e[t]=e[t].filter((function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())})),e[t].unshift(n[t])},r=0;r<e.length;r++)o(r);t._state=e.map((function(e){return new C(0,e)})),Object(h.f)(t._selectionListener),t._selectionListener=t._editor.onDidChangeCursorPosition((function(){t._ignoreSelection||(Object(h.f)(t._selectionListener),t._state=void 0)}))}}))),s.then((function(){if(t._state){t._state=t._state.map((function(t){return t.mov(e)}));var n=t._state.map((function(e){return l.a.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())}));t._ignoreSelection=!0;try{t._editor.setSelections(n)}finally{t._ignoreSelection=!1}}}))}}},O.ID="editor.contrib.smartSelectController",O);function O(e){this._ignoreSelection=!1,this._editor=e}var L,D=(y(x,L=r.b),x.prototype.run=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(n){switch(n.label){case 0:return(e=S.get(t))?[4,e.run(this._forward)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},x);function x(e,t){var n=L.call(this,t)||this;return n._forward=e,n}var N,k=(y(E,N=D),E);function E(){return N.call(this,!0,{id:"editor.action.smartSelect.expand",label:d.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:d.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}v.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var I,M=(y(T,I=D),T);function T(){return I.call(this,!1,{id:"editor.action.smartSelect.shrink",label:d.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:d.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}function P(e,t,n){var o=c.w.all(e);1===o.length&&o.unshift(new m.a);for(var r=[],l=[],u=0,d=o;u<d.length;u++){var h=d[u];r.push(Promise.resolve(h.provideSelectionRanges(e,t,n)).then((function(e){if(i.q(e)&&e.length===t.length)for(var n=0;n<t.length;n++){l[n]||(l[n]=[]);for(var o=0,r=e[n];o<r.length;o++){var s=r[o];a.a.isIRange(s.range)&&a.a.containsPosition(s.range,t[n])&&l[n].push(a.a.lift(s.range))}}}),_.f))}return Promise.all(r).then((function(){return l.map((function(t){if(0===t.length)return[];t.sort((function(e,t){return s.a.isBefore(e.getStartPosition(),t.getStartPosition())?1:s.a.isBefore(t.getStartPosition(),e.getStartPosition())||s.a.isBefore(e.getEndPosition(),t.getEndPosition())?-1:s.a.isBefore(t.getEndPosition(),e.getEndPosition())?1:0}));for(var n,i=[],o=0,r=t;o<r.length;o++){var l=r[o];n&&(!a.a.containsRange(l,n)||a.a.equalsRange(l,n))||(i.push(l),n=l)}for(var u=[i[0]],c=1;c<i.length;c++){var d=i[c-1],h=i[c];if(h.startLineNumber!==d.startLineNumber||h.endLineNumber!==d.endLineNumber){var p=new a.a(d.startLineNumber,e.getLineFirstNonWhitespaceColumn(d.startLineNumber),d.endLineNumber,e.getLineLastNonWhitespaceColumn(d.endLineNumber));p.containsRange(d)&&!p.equalsRange(d)&&h.containsRange(p)&&!h.equalsRange(p)&&u.push(p);var f=new a.a(d.startLineNumber,1,d.endLineNumber,e.getLineMaxColumn(d.endLineNumber));f.containsRange(d)&&!f.equalsRange(p)&&h.containsRange(f)&&!h.equalsRange(f)&&u.push(f)}u.push(h)}return u}))}))}Object(r.h)(S.ID,S),Object(r.f)(k),Object(r.f)(M),c.w.register("*",new f),Object(r.l)("_executeSelectionRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return P(e,t[0],o.a.None)}))},function(e,t,n){"use strict";n.r(t),n(785),n.d(t,"LanguageServiceDefaultsImpl",(function(){return f}));var i,o,r,s,a,l,u,c,d,h,p=monaco.Emitter,f=(Object.defineProperty(g.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),g.prototype.getExtraLibs=function(){return this._extraLibs},g.prototype.addExtraLib=function(e,t){var n,i=this;if(n=void 0===t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var o=1;return this._extraLibs[n]&&(o=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:o},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===o&&(delete i._extraLibs[n],i._fireOnDidExtraLibsChangeSoon())}}},g.prototype.setExtraLibs=function(e){if(this._extraLibs=Object.create(null),e&&0<e.length)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),r=i.content;this._extraLibs[o]={content:r,version:1}}this._fireOnDidExtraLibsChangeSoon()},g.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},g.prototype.getCompilerOptions=function(){return this._compilerOptions},g.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},g.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.setMaximumWorkerIdleTime=function(e){},g.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},g.prototype.getEagerModelSync=function(){return this._eagerModelSync},g);function g(e,t){this._onDidChange=new p,this._onDidExtraLibsChange=new p,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this._onDidExtraLibsChangeTimeout=-1}(o=i=i||{})[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",(s=r=r||{})[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",(l=a=a||{})[l.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",l[l.LineFeed=1]="LineFeed",(c=u=u||{})[c.ES3=0]="ES3",c[c.ES5=1]="ES5",c[c.ES2015=2]="ES2015",c[c.ES2016=3]="ES2016",c[c.ES2017=4]="ES2017",c[c.ES2018=5]="ES2018",c[c.ES2019=6]="ES2019",c[c.ES2020=7]="ES2020",c[c.ESNext=99]="ESNext",c[c.JSON=100]="JSON",c[c.Latest=99]="Latest",(h=d=d||{})[h.Classic=1]="Classic",h[h.NodeJs=2]="NodeJs";var m=new f({allowNonTsExtensions:!0,target:u.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),v=new f({allowNonTsExtensions:!0,allowJs:!0,target:u.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function _(){return n.e(294).then(n.bind(null,2412))}monaco.languages.typescript={ModuleKind:i,JsxEmit:r,NewLineKind:a,ScriptTarget:u,ModuleResolutionKind:d,typescriptVersion:"3.7.5",typescriptDefaults:m,javascriptDefaults:v,getTypeScriptWorker:function(){return _().then((function(e){return e.getTypeScriptWorker()}))},getJavaScriptWorker:function(){return _().then((function(e){return e.getJavaScriptWorker()}))}},monaco.languages.onLanguage("typescript",(function(){return _().then((function(e){return e.setupTypeScript(m)}))})),monaco.languages.onLanguage("javascript",(function(){return _().then((function(e){return e.setupJavaScript(v)}))}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i,o,r=n(944),s=n(442),a=n(439),l=n(505),u=n(440),c=(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)}),d={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},h=(c(p,o=a.a),p.prototype._init=function(){this._editor.getLineChanges()},p.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))},p.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 u.a(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new u.a(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)},p.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},p.prototype._move=function(e,t){if(r.a(!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,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}}},p.prototype.canNavigate=function(){return this.ranges&&0<this.ranges.length},p.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},p.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},p.prototype.dispose=function(){o.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},p);function p(e,t){void 0===t&&(t={});var n=o.call(this)||this;return n._onDidUpdate=n._register(new s.a),n._editor=e,n._options=l.g(t,d,!1),n.disposed=!1,n.nextIdx=-1,n.ranges=[],n.ignoreSelectionChange=!1,n.revealFirst=Boolean(n._options.alwaysRevealFirst),n._register(n._editor.onDidDispose((function(){return n.dispose()}))),n._register(n._editor.onDidUpdateDiff((function(){return n._onDiffUpdated()}))),n._options.followsCaret&&n._register(n._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){n.ignoreSelectionChange||(n.nextIdx=-1)}))),n._options.alwaysRevealFirst&&n._register(n._editor.getModifiedEditor().onDidChangeModel((function(e){n.revealFirst=!0}))),n._init(),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"MonacoDiffEditor",{enumerable:!0,get:function(){return o.default}});var i=r(n(1412)),o=r(n(1413));function r(e){return e&&e.__esModule?e:{default:e}}},,,,,,function(e,t,n){"use strict";n(1386);var i,o=n(445),r=n(443),s=n(488),a=n(891),l=n(453),u=n(442),c=n(439),d=n(505),h=n(707),p=n(761),f=n(504),g=n(930),m=(n(1387),n(772)),v=n(688),_=n(703),b=n(449),y=n(530),C=n(824),w=n(450),S=n(572),O=n(893),L=n(777),D=n(456),x=n(461),N=n(451),k=(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)}),E=(I.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},I);function I(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}var M,T=function(e){this.entries=e},P=(k(R,M=c.a),R.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 w.a(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},R.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 w.a(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},R.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 w.a(e,1)),this._diffEditor.revealPosition(new w.a(e,1),1))},R.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},R.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},R.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},R.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},R.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},R.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},R.prototype.isVisible=function(){return this._isVisible},R.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"))},R.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var t=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel();return t&&n?R._mergeAdjacent(e,t.getLineCount(),n.getLineCount()):[]},R._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],l=a.originalStartLineNumber,u=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],p=0,f=0===u?l:l-1,g=0===d?c:c-1,m=1,v=1;if(0<r){var _=e[r-1];m=0===_.originalEndLineNumber?_.originalStartLineNumber+1:_.originalEndLineNumber+1,v=0===_.modifiedEndLineNumber?_.modifiedStartLineNumber+1:_.modifiedEndLineNumber+1}var b=f-3+1,y=g-3+1;b<m&&(b+=D=m-b,y+=D),y<v&&(b+=D=v-y,y+=D),h[p++]=new E(b,f,y,g),0!==u&&(h[p++]=new E(l,u,0,0)),0!==d&&(h[p++]=new E(0,0,c,d));var C=0===u?l+1:u+1,w=0===d?c+1:d+1,S=t,O=n;if(r+1<s){var L=e[r+1];S=0===L.originalEndLineNumber?L.originalStartLineNumber:L.originalStartLineNumber-1,O=0===L.modifiedEndLineNumber?L.modifiedStartLineNumber:L.modifiedStartLineNumber-1}var D,x=C+3-1,N=w+3-1;S<x&&(x+=D=S-x,N+=D),O<N&&(x+=D=O-N,N+=D),h[p++]=new E(C,x,w,N),i[o++]=new T(h)}var k=i[0].entries,I=[],M=0;for(r=1,s=i.length;r<s;r++){var P=i[r].entries,R=k[k.length-1],A=P[0];k=0===R.getType()&&0===A.getType()&&A.originalLineStart<=R.originalLineEnd?(k[k.length-1]=new E(R.originalLineStart,A.originalLineEnd,R.modifiedLineStart,A.modifiedLineEnd),k.concat(P.slice(1))):(I[M++]=new T(k),P)}return I[M++]=new T(k),I},R.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},R.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel(),s=n.getOptions(),a=i.getOptions();if(!this._isVisible||!n||!i)return r.t(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var l=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[l]!==this._currentDiff){this._currentDiff=this._diffs[l];var u=this._diffs[l].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),h.a.applyFontInfoSlow(c,t.get(34));for(var d=0,p=0,f=0,g=0,m=0,v=u.length;m<v;m++){var _=(E=u[m]).originalLineStart,b=E.originalLineEnd,y=E.modifiedLineStart,C=E.modifiedLineEnd;0!==_&&(0===d||_<d)&&(d=_),0!==b&&(0===p||p<b)&&(p=b),0!==y&&(0===f||y<f)&&(f=y),0!==C&&(0===g||g<C)&&(g=C)}var w=document.createElement("div");w.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var O=p-d+1,L=g-f+1;S.appendChild(document.createTextNode(l+1+"/"+this._diffs.length+": @@ -"+d+","+O+" +"+f+","+L+" @@")),w.setAttribute("data-line",String(f));var D=function(e){return 0===e?o.a("no_lines","no lines"):1===e?o.a("one_line","1 line"):o.a("more_lines","{0} lines",e)},x=D(O),N=D(L);w.setAttribute("aria-label",o.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",l+1,this._diffs.length,d,x,f,N)),w.appendChild(S),w.setAttribute("role","listitem"),c.appendChild(w);var k=f;for(m=0,v=u.length;m<v;m++){var E=u[m];R._renderSection(c,E,k,this._width,e,n,s,t,i,a),0!==E.modifiedLineStart&&(k=E.modifiedLineEnd)}r.t(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}},R._renderSection=function(e,t,n,i,r,s,a,l,u,c){var d=t.getType(),h="diff-review-row",p="",f="diff-review-spacer";switch(d){case 1:h="diff-review-row line-insert",p=" char-insert",f="diff-review-spacer insert-sign";break;case 2:h="diff-review-row line-delete",p=" char-delete",f="diff-review-spacer delete-sign"}for(var g=t.originalLineStart,m=t.originalLineEnd,v=t.modifiedLineStart,_=t.modifiedLineEnd,b=Math.max(_-v,m-g),y=r.get(107),C=y.glyphMarginWidth+y.lineNumbersWidth,w=l.get(107),S=10+w.glyphMarginWidth+w.lineNumbersWidth,O=0;O<=b;O++){var L=0===g?0:g+O,D=0===v?0:v+O,x=document.createElement("div");x.style.minWidth=i+"px",x.className=h,x.setAttribute("role","listitem"),0!==D&&(n=D),x.setAttribute("data-line",String(n));var N=document.createElement("div");N.className="diff-review-cell",x.appendChild(N);var k=document.createElement("span");k.style.width=C+"px",k.style.minWidth=C+"px",k.className="diff-review-line-number"+p,0!==L?k.appendChild(document.createTextNode(String(L))):k.innerHTML=" ",N.appendChild(k);var E=document.createElement("span");E.style.width=S+"px",E.style.minWidth=S+"px",E.style.paddingRight="10px",E.className="diff-review-line-number"+p,0!==D?E.appendChild(document.createTextNode(String(D))):E.innerHTML=" ",N.appendChild(E);var I=document.createElement("span");I.className=f,I.innerHTML="  ",N.appendChild(I);var M=void 0;0===(M=0!==D?(N.insertAdjacentHTML("beforeend",this._renderLine(u,l,c.tabSize,D)),u.getLineContent(D)):(N.insertAdjacentHTML("beforeend",this._renderLine(s,r,a.tabSize,L)),s.getLineContent(L))).length&&(M=o.a("blankLine","blank"));var T="";switch(d){case 0:T=o.a("equalLine","original {0}, modified {1}: {2}",L,D,M);break;case 1:T=o.a("insertLine","+ modified {0}: {1}",D,M);break;case 2:T=o.a("deleteLine","- original {0}: {1}",L,M)}x.setAttribute("aria-label",T),e.appendChild(x)}},R._renderLine=function(e,t,n,i){var o=e.getLineContent(i),r=t.get(34),s=new Uint32Array(2);s[0]=o.length,s[1]=16793600;var a=new C.a(s,o),l=L.d.isBasicASCII(o,e.mightContainNonBasicASCII()),u=L.d.containsRTL(o,l,e.mightContainRTL());return Object(O.e)(new O.c(r.isMonospace&&!t.get(23),r.canUseHalfwidthRightwardsArrow,o,!1,l,u,0,a,[],n,0,r.spaceWidth,r.middotWidth,t.get(88),t.get(74),t.get(69),t.get(35)!==y.d.OFF,null)).html},R);function R(e){var t=M.call(this)||this;return t._width=0,t._diffEditor=e,t._isVisible=!1,t.shadow=Object(s.b)(document.createElement("div")),t.shadow.setClassName("diff-review-shadow"),t.actionBarContainer=Object(s.b)(document.createElement("div")),t.actionBarContainer.setClassName("diff-review-actions"),t._actionBar=t._register(new m.a(t.actionBarContainer.domNode)),t._actionBar.push(new _.a("diffreview.close",o.a("label.close","Close"),"close-diff-review",!0,(function(){return t.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),t.domNode=Object(s.b)(document.createElement("div")),t.domNode.setClassName("diff-review monaco-editor-background"),t._content=Object(s.b)(document.createElement("div")),t._content.setClassName("diff-review-content"),t.scrollbar=t._register(new v.a(t._content.domNode,{})),t.domNode.domNode.appendChild(t.scrollbar.getDomNode()),t._register(e.onDidUpdateDiff((function(){t._isVisible&&(t._diffs=t._compute(),t._render())}))),t._register(e.getModifiedEditor().onDidChangeCursorPosition((function(){t._isVisible&&t._render()}))),t._register(e.getOriginalEditor().onDidFocusEditorWidget((function(){t._isVisible&&t.hide()}))),t._register(e.getModifiedEditor().onDidFocusEditorWidget((function(){t._isVisible&&t.hide()}))),t._register(r.o(t.domNode.domNode,"click",(function(e){e.preventDefault();var n=r.x(e.target,"diff-review-row");n&&t._goToRow(n)}))),t._register(r.o(t.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),t._goToRow(t._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),t._goToRow(t._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),t.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),t.accept())}))),t._diffs=[],t._currentDiff=null,t}Object(N.e)((function(e,t){var n=e.getColor(S.k);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var i=e.getColor(x.Vb);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+i+" 0 -6px 6px -6px inset; }")}));var A,F=(k(j,A=b.b),j.prototype.run=function(e,t){var n=H(e);n&&n.diffReviewNext()},j);function j(){return A.call(this,{id:"editor.action.diffReview.next",label:o.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:D.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}var W,V=(k(B,W=b.b),B.prototype.run=function(e,t){var n=H(e);n&&n.diffReviewPrev()},B);function B(){return W.call(this,{id:"editor.action.diffReview.prev",label:o.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:D.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}function H(e){for(var t=e.get(f.a).listDiffEditors(),n=0,i=t.length;n<i;n++){var o=t[n];if(o.hasWidgetFocus())return o}return null}Object(b.f)(F),Object(b.f)(V);var z,U,K=n(440),q=n(894),G=n(776),Y=n(495),Z=n(758),X=n(1088),$=n(958),J=n(448),Q=n(895),ee=n(532),te=n(757),ne=(z=function(e,t){return(z=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}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ie=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},oe=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},re=(ne(se,U=c.a),Object.defineProperty(se.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),se.prototype._updateLightBulbPosition=function(e,t,n){var i=t-r.C(e).top,o=Math.floor(i/n),s=o*n;return this._diffActions.style.top=s+"px",o},se);function se(e,t,n,i,s,a){var l=U.call(this)||this;l._viewZoneId=e,l._marginDomNode=t,l.editor=n,l.diff=i,l._contextMenuService=s,l._clipboardService=a,l._visibility=!1,l._marginDomNode.style.zIndex="10",l._diffActions=document.createElement("div"),l._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",l._diffActions.style.position="absolute";var u=n.getOption(49),c=n.getModel().getEOL();l._diffActions.style.right="0px",l._diffActions.style.visibility="hidden",l._diffActions.style.height=u+"px",l._diffActions.style.lineHeight=u+"px",l._marginDomNode.appendChild(l._diffActions);var d=[];d.push(new _.a("diff.clipboard.copyDeletedContent",i.originalEndLineNumber>i.modifiedStartLineNumber?o.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):o.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return ie(l,void 0,void 0,(function(){return oe(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent.join(c)+c)];case 1:return e.sent(),[2]}}))}))})));var h=0,p=void 0;function f(e,t){l._contextMenuService.showContextMenu({getAnchor:function(){return{x:e,y:t}},getActions:function(){return p&&(p.label=o.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber+h)),d},autoSelectFirstItem:!0})}return i.originalEndLineNumber>i.modifiedStartLineNumber&&(p=new _.a("diff.clipboard.copyDeletedLineContent",o.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber),void 0,!0,(function(){return ie(l,void 0,void 0,(function(){return oe(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent[h])];case 1:return e.sent(),[2]}}))}))})),d.push(p)),n.getOption(68)||d.push(new _.a("diff.inline.revertChange",o.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return ie(l,void 0,void 0,(function(){var e;return oe(this,(function(t){return 0===i.modifiedEndLineNumber?(e=n.getModel().getLineMaxColumn(i.modifiedStartLineNumber),n.executeEdits("diffEditor",[{range:new K.a(i.modifiedStartLineNumber,e,i.modifiedStartLineNumber,e),text:c+i.originalContent.join(c)}])):(e=n.getModel().getLineMaxColumn(i.modifiedEndLineNumber),n.executeEdits("diffEditor",[{range:new K.a(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,e),text:i.originalContent.join(c)}])),[2]}))}))}))),l._register(r.o(l._diffActions,"mousedown",(function(e){var t=r.C(l._diffActions),n=t.top,i=t.height,o=Math.floor(u/3);e.preventDefault(),f(e.posx,n+i+o)}))),l._register(n.onMouseMove((function(e){(8===e.target.type||5===e.target.type)&&e.target.detail.viewZoneId===l._viewZoneId?(l.visibility=!0,h=l._updateLightBulbPosition(l._marginDomNode,e.event.browserEvent.y,u)):l.visibility=!1}))),l._register(n.onMouseDown((function(e){e.event.rightButton&&(8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===l._viewZoneId&&(e.event.preventDefault(),h=l._updateLightBulbPosition(l._marginDomNode,e.event.browserEvent.y,u),f(e.event.posx,e.event.posy+u)))}))),l}var ae=n(446),le=n(774),ue=n(1087);n.d(t,"a",(function(){return ve}));var ce,de=(ce=function(e,t){return(ce=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}ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),he=function(e,t){return function(n,i){t(n,i,e)}},pe=(fe.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},fe.prototype.clean=function(e){var t=this;0<this._zones.length&&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,[])},fe.prototype.apply=function(e,t,n,i){var o=this,r=i?p.c.capture(e):null;e.changeViewZones((function(t){for(var i=0,r=o._zones.length;i<r;i++)t.removeZone(o._zones[i]);i=0;for(var s=o.inlineDiffMargins.length;i<s;i++)o.inlineDiffMargins[i].dispose();o._zones=[],o._zonesMap={},o.inlineDiffMargins=[],i=0;for(var a=n.zones.length;i<a;i++){var l=n.zones[i];l.suppressMouseDown=!0;var u=t.addZone(l);o._zones.push(u),o._zonesMap[String(u)]=!0,n.zones[i].diff&&l.marginDomNode&&o._clipboardService&&(l.suppressMouseDown=!1,o.inlineDiffMargins.push(new re(u,l.marginDomNode,e,n.zones[i].diff,o._contextMenuService,o._clipboardService)))}})),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},fe);function fe(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}var ge,me=0,ve=(de(_e,ge=c.a),_e.prototype._setState=function(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))},_e.prototype.hasWidgetFocus=function(){return r.K(document.activeElement,this._domElement)},_e.prototype.diffReviewNext=function(){this._reviewPane.next()},_e.prototype.diffReviewPrev=function(){this._reviewPane.prev()},_e._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+Object(N.d)(e.type)},_e.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},_e.prototype._createLeftHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(i.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(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),i},_e.prototype._createRightHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(i.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(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeConfiguration((function(e){e.hasChanged(34)&&i.getModel()&&n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),this._register(i.onDidChangeModelOptions((function(e){e.tabSize&&n._updateDecorationsRunner.schedule()}))),i},_e.prototype._createInnerEditor=function(e,t,n){return e.createInstance(g.a,t,n,{})},_e.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),ge.prototype.dispose.call(this)},_e.prototype.getId=function(){return this.getEditorType()+":"+this.id},_e.prototype.getEditorType=function(){return G.a.IDiffEditor},_e.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},_e.prototype.getOriginalEditor=function(){return this.originalEditor},_e.prototype.getModifiedEditor=function(){return this.modifiedEditor},_e.prototype.updateOptions=function(e){var t=!1;void 0!==e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,t=!0),void 0!==e.maxComputationTime&&(this._maxComputationTime=e.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var n=!1;void 0!==e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,n=!0),void 0!==e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,n=!0),n&&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),t&&(this._renderSideBySide?this._setStrategy(new ke(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Re(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=_e._getClassName(this._themeService.getTheme(),this._renderSideBySide))},_e.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},_e.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++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},_e.prototype.getDomNode=function(){return this._domElement},_e.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},_e.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},_e.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},_e.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},_e.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},_e.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},_e.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},_e.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},_e.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},_e.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},_e.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},_e.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},_e.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},_e.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},_e.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},_e.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},_e.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)},_e.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},_e.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},_e.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},_e.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},_e.prototype.saveViewState=function(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}},_e.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},_e.prototype.layout=function(e){this._elementSizeObserver.observe(e)},_e.prototype.focus=function(){this.modifiedEditor.focus()},_e.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},_e.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},_e.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},_e.prototype._onDidContainerSizeChanged=function(){this._doLayout()},_e.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},_e.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._elementSizeObserver.getHeight(),t=this._getReviewHeight(),n=_e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*_e.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:_e.ONE_OVERVIEW_WIDTH,right:n+_e.ONE_OVERVIEW_WIDTH,height:e-t}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:_e.ONE_OVERVIEW_WIDTH,height:e-t}))}},_e.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},_e.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),_e.UPDATE_DIFF_DECORATIONS_DELAY)},_e._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},_e.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var t=this.originalEditor.getModel(),n=this.modifiedEditor.getModel();if(t&&n){this._diffComputationToken++;var i=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,n.uri)?this._editorWorkerService.computeDiff(t.uri,n.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then((function(o){i===e._diffComputationToken&&t===e.originalEditor.getModel()&&n===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=o,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(o){i===e._diffComputationToken&&t===e.originalEditor.getModel()&&n===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=null,e._updateDecorationsRunner.schedule())})):_e._equals(t.uri,this._lastOriginalWarning)&&_e._equals(n.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=n.uri,this._notificationService.warn(o.a("diff.tooLarge","Cannot compare files because one file is too large.")))}},_e.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},_e.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler){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}}},_e.prototype._adjustOptionsForSubEditor=function(e){var t=d.c(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},_e.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.extraEditorClassName="original-in-monaco-diff-editor",n},_e.prototype._adjustOptionsForRightHandSide=function(e){var t=this._adjustOptionsForSubEditor(e);return t.revealHorizontalRightPadding=y.e.revealHorizontalRightPadding.defaultValue+_e.ENTIRE_DIFF_OVERVIEW_WIDTH,t.scrollbar.verticalHasArrows=!1,t.extraEditorClassName="modified-in-monaco-diff-editor",t},_e.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},_e.prototype._doLayout=function(){var e=this._elementSizeObserver.getWidth(),t=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),i=this._strategy.layout();this._originalDomNode.style.width=i+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-i+"px",this._modifiedDomNode.style.left=i+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=t-n+"px",this._overviewDomElement.style.width=_e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-_e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(_e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:i,height:t-n}),this.modifiedEditor.layout({width:e-i-_e.ENTIRE_DIFF_OVERVIEW_WIDTH,height:t-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(t-n,e,n),this._layoutOverviewViewport()},_e.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))},_e.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.height),o=Math.max(0,+i),r=0<n?o/n:0;return{height:Math.max(0,Math.floor(e.height*r)),top:Math.floor(t*r)}},_e.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._elementSizeObserver.getWidth()},getHeight:function(){return e._elementSizeObserver.getHeight()-e._getReviewHeight()},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},_e.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),(this._strategy=e).applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},_e.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]):1073741824;e<s?o=r-1:a<=e?i=r+1:o=i=r}return n[i]},_e.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(0<t.originalEndLineNumber?-1:0),i=t.modifiedStartLineNumber+(0<t.modifiedEndLineNumber?-1:0),o=0<t.originalEndLineNumber?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=0<t.modifiedEndLineNumber?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+s},_e.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(0<t.originalEndLineNumber?-1:0),i=t.modifiedStartLineNumber+(0<t.modifiedEndLineNumber?-1:0),o=0<t.originalEndLineNumber?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=0<t.modifiedEndLineNumber?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s},_e.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},_e.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},_e.ONE_OVERVIEW_WIDTH=15,_e.ENTIRE_DIFF_OVERVIEW_WIDTH=30,_e.UPDATE_DIFF_DECORATIONS_DELAY=200,_e=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([he(3,Z.a),he(4,D.c),he(5,J.a),he(6,f.a),he(7,N.c),he(8,ee.a),he(9,te.a),he(10,le.a)],_e));function _e(e,t,n,i,o,a,c,d,h,p,f){var g=ge.call(this)||this;g._editorProgressService=f,g._onDidDispose=g._register(new u.a),g.onDidDispose=g._onDidDispose.event,g._onDidUpdateDiff=g._register(new u.a),g.onDidUpdateDiff=g._onDidUpdateDiff.event,g._lastOriginalWarning=null,g._lastModifiedWarning=null,g._editorWorkerService=i,g._codeEditorService=c,g._contextKeyService=g._register(o.createScoped(e)),g._contextKeyService.createKey("isInDiffEditor",!0),g._themeService=d,g._notificationService=h,g.id=++me,g._state=0,g._updatingDiffProgress=null,g._domElement=e,t=t||{},g._renderSideBySide=!0,void 0!==t.renderSideBySide&&(g._renderSideBySide=t.renderSideBySide),g._maxComputationTime=5e3,void 0!==t.maxComputationTime&&(g._maxComputationTime=t.maxComputationTime),g._ignoreTrimWhitespace=!0,void 0!==t.ignoreTrimWhitespace&&(g._ignoreTrimWhitespace=t.ignoreTrimWhitespace),g._renderIndicators=!0,void 0!==t.renderIndicators&&(g._renderIndicators=t.renderIndicators),g._originalIsEditable=!1,void 0!==t.originalEditable&&(g._originalIsEditable=Boolean(t.originalEditable)),g._updateDecorationsRunner=g._register(new l.d((function(){return g._updateDecorations()}),0)),g._containerDomElement=document.createElement("div"),g._containerDomElement.className=_e._getClassName(g._themeService.getTheme(),g._renderSideBySide),g._containerDomElement.style.position="relative",g._containerDomElement.style.height="100%",g._domElement.appendChild(g._containerDomElement),g._overviewViewportDomElement=Object(s.b)(document.createElement("div")),g._overviewViewportDomElement.setClassName("diffViewport"),g._overviewViewportDomElement.setPosition("absolute"),g._overviewDomElement=document.createElement("div"),g._overviewDomElement.className="diffOverview",g._overviewDomElement.style.position="absolute",g._overviewDomElement.appendChild(g._overviewViewportDomElement.domNode),g._register(r.o(g._overviewDomElement,"mousedown",(function(e){g.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),g._containerDomElement.appendChild(g._overviewDomElement),g._originalDomNode=document.createElement("div"),g._originalDomNode.className="editor original",g._originalDomNode.style.position="absolute",g._originalDomNode.style.height="100%",g._containerDomElement.appendChild(g._originalDomNode),g._modifiedDomNode=document.createElement("div"),g._modifiedDomNode.className="editor modified",g._modifiedDomNode.style.position="absolute",g._modifiedDomNode.style.height="100%",g._containerDomElement.appendChild(g._modifiedDomNode),g._beginUpdateDecorationsTimeout=-1,g._currentlyChangingViewZones=!1,g._diffComputationToken=0,g._originalEditorState=new pe(p,n),g._modifiedEditorState=new pe(p,n),g._isVisible=!0,g._isHandlingScrollEvent=!1,g._elementSizeObserver=g._register(new ue.a(g._containerDomElement,void 0,(function(){return g._onDidContainerSizeChanged()}))),t.automaticLayout&&g._elementSizeObserver.startObserving(),g._diffComputationResult=null;var m=g._contextKeyService.createScoped();m.createKey("isInDiffLeftEditor",!0);var v=new Q.a;v.set(D.c,m);var _=a.createChild(v),y=g._contextKeyService.createScoped();y.createKey("isInDiffRightEditor",!0);var C=new Q.a;C.set(D.c,y);var w=a.createChild(C);g.originalEditor=g._createLeftHandSideEditor(t,_),g.modifiedEditor=g._createRightHandSideEditor(t,w),g._originalOverviewRuler=null,g._modifiedOverviewRuler=null,g._reviewPane=new P(g),g._containerDomElement.appendChild(g._reviewPane.domNode.domNode),g._containerDomElement.appendChild(g._reviewPane.shadow.domNode),g._containerDomElement.appendChild(g._reviewPane.actionBarContainer.domNode),g._enableSplitViewResizing=!0,void 0!==t.enableSplitViewResizing&&(g._enableSplitViewResizing=t.enableSplitViewResizing),g._renderSideBySide?g._setStrategy(new ke(g._createDataSource(),g._enableSplitViewResizing)):g._setStrategy(new Re(g._createDataSource(),g._enableSplitViewResizing)),g._register(d.onThemeChange((function(e){g._strategy&&g._strategy.applyColors(e)&&g._updateDecorationsRunner.schedule(),g._containerDomElement.className=_e._getClassName(g._themeService.getTheme(),g._renderSideBySide)})));for(var S=0,O=b.d.getDiffEditorContributions();S<O.length;S++){var L=O[S];try{g._register(a.createInstance(L.ctor,g))}catch(e){Object(ae.e)(e)}}return g._codeEditorService.addDiffEditor(g),g}var be,ye=(de(Ce,be=c.a),Ce.prototype.applyColors=function(e){var t=(e.getColor(x.j)||x.g).transparent(2),n=(e.getColor(x.l)||x.h).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},Ce.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),l=this._getOriginalEditorDecorations(e,t,n,r,s),u=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.modified}}},Ce);function Ce(e){var t=be.call(this)||this;return t._dataSource=e,t._insertColor=null,t._removeColor=null,t}var we=(Se.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},Se);function Se(e){this._source=e,this._index=-1,this.current=null,this.advance()}var Oe=(Le.prototype.getViewZones=function(){for(var e=[],t=[],n=0,i=0,o=0,r=0,s=0,a=0,l=function(e,t){return e.afterLineNumber-t.afterLineNumber},u=function(e,t){if(null===t.domNode&&0<e.length){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},c=new we(this.modifiedForeignVZ),d=new we(this.originalForeignVZ),h=0,p=this.lineChanges.length;h<=p;h++){var f=h<p?this.lineChanges[h]:null;a=null!==f?(o=f.originalStartLineNumber+(0<f.originalEndLineNumber?-1:0),r=f.modifiedStartLineNumber+(0<f.modifiedEndLineNumber?-1:0),i=0<f.originalEndLineNumber?f.originalEndLineNumber-f.originalStartLineNumber+1:0,n=0<f.modifiedEndLineNumber?f.modifiedEndLineNumber-f.modifiedStartLineNumber+1:0,s=Math.max(f.originalStartLineNumber,f.originalEndLineNumber),Math.max(f.modifiedStartLineNumber,f.modifiedEndLineNumber)):(s=o+=1e7+i,r+=1e7+n);for(var g,m=[],v=[];c.current&&c.current.afterLineNumber<=a;){var _=void 0;_=c.current.afterLineNumber<=r?o-r+c.current.afterLineNumber:s;var b=null;f&&f.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=f.modifiedEndLineNumber&&(b=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),m.push({afterLineNumber:_,heightInLines:c.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:b}),c.advance()}for(;d.current&&d.current.afterLineNumber<=s;)_=void 0,_=d.current.afterLineNumber<=o?r-o+d.current.afterLineNumber:a,v.push({afterLineNumber:_,heightInLines:d.current.height/this.originalLineHeight,domNode:null}),d.advance();null!==f&&Ve(f)&&(g=this._produceOriginalFromDiff(f,i,n))&&m.push(g),null!==f&&Be(f)&&(g=this._produceModifiedFromDiff(f,i,n))&&v.push(g);var y=0,C=0;for(m=m.sort(l),v=v.sort(l);y<m.length&&C<v.length;){var w=m[y],S=v[C],O=w.afterLineNumber-o,L=S.afterLineNumber-r;O<L?(u(e,w),y++):L<O?(u(t,S),C++):w.shouldNotShrink?(u(e,w),y++):S.shouldNotShrink?(u(t,S),C++):w.heightInLines>=S.heightInLines?(w.heightInLines-=S.heightInLines,C++):(S.heightInLines-=w.heightInLines,y++)}for(;y<m.length;)u(e,m[y]),y++;for(;C<v.length;)u(t,v[C]),C++}return{original:Le._ensureDomNodes(e),modified:Le._ensureDomNodes(t)}},Le._ensureDomNodes=function(e){return e.map((function(e){var t;return e.domNode||(e.domNode=((t=document.createElement("div")).className="diagonal-fill",t)),e}))},Le);function Le(e,t,n,i,o){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=i,this.modifiedLineHeight=o}function De(e,t,n,i,o){return{range:new K.a(e,t,n,i),options:o}}var xe,Ne={charDelete:Y.a.register({className:"char-delete"}),charDeleteWholeLine:Y.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Y.a.register({className:"char-insert"}),charInsertWholeLine:Y.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Y.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Y.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Y.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Y.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Y.a.register({marginClassName:"line-delete"})},ke=(de(Ee,xe=ye),Ee.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},Ee.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var t=this._dataSource.getWidth()-ve.ENTIRE_DIFF_OVERVIEW_WIDTH,n=Math.floor((e||.5)*t),i=Math.floor(.5*t);return n=!this._disableSash&&n||i,2*Ee.MINIMUM_EDITOR_WIDTH<t?(n<Ee.MINIMUM_EDITOR_WIDTH&&(n=Ee.MINIMUM_EDITOR_WIDTH),t-Ee.MINIMUM_EDITOR_WIDTH<n&&(n=t-Ee.MINIMUM_EDITOR_WIDTH)):n=i,this._sashPosition!==n&&(this._sashPosition=n,this._sash.layout()),this._sashPosition},Ee.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},Ee.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-ve.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},Ee.prototype.onSashDragEnd=function(){this._sash.layout()},Ee.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},Ee.prototype.getVerticalSashTop=function(e){return 0},Ee.prototype.getVerticalSashLeft=function(e){return this._sashPosition},Ee.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},Ee.prototype._getViewZones=function(e,t,n,i,o){return new Me(e,t,i.getOption(49),n,o.getOption(49)).getViewZones()},Ee.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=i.getModel(),l=0,u=e.length;l<u;l++){var c=e[l];if(Be(c)&&(s.decorations.push({range:new K.a(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824),options:n?Ne.lineDeleteWithSign:Ne.lineDelete}),Ve(c)&&c.charChanges||s.decorations.push(De(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824,Ne.charDeleteWholeLine)),s.overviewZones.push(new X.a(c.originalStartLineNumber,c.originalEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Be(p))if(t)for(var f=p.originalStartLineNumber;f<=p.originalEndLineNumber;f++){var g,m;g=f===p.originalStartLineNumber?p.originalStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.originalEndLineNumber?p.originalEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(De(f,g,f,m,Ne.charDelete))}else s.decorations.push(De(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn,Ne.charDelete))}}return s},Ee.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),l=0,u=e.length;l<u;l++){var c=e[l];if(Ve(c)&&(s.decorations.push({range:new K.a(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?Ne.lineInsertWithSign:Ne.lineInsert}),Be(c)&&c.charChanges||s.decorations.push(De(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,Ne.charInsertWholeLine)),s.overviewZones.push(new X.a(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Ve(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g,m;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(De(f,g,f,m,Ne.charInsert))}else s.decorations.push(De(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Ne.charInsert))}}return s},Ee.MINIMUM_EDITOR_WIDTH=100,Ee);function Ee(e,t){var n=xe.call(this,e)||this;return n._disableSash=!1===t,n._sashRatio=null,n._sashPosition=null,n._startSashPosition=null,n._sash=n._register(new a.a(n._dataSource.getContainerDomNode(),n)),n._disableSash&&(n._sash.state=0),n._sash.onDidStart((function(){return n.onSashDragStart()})),n._sash.onDidChange((function(e){return n.onSashDrag(e)})),n._sash.onDidEnd((function(){return n.onSashDragEnd()})),n._sash.onDidReset((function(){return n.onSashReset()})),n}var Ie,Me=(de(Te,Ie=Oe),Te.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},Te.prototype._produceOriginalFromDiff=function(e,t,n){return t<n?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},Te.prototype._produceModifiedFromDiff=function(e,t,n){return n<t?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},Te);function Te(e,t,n,i,o){return Ie.call(this,e,t,n,i,o)||this}var Pe,Re=(de(Ae,Pe=ye),Ae.prototype.setEnableSplitViewResizing=function(e){},Ae.prototype._getViewZones=function(e,t,n,i,o,r){return new je(e,t,n,i,o,r).getViewZones()},Ae.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,l=e.length;a<l;a++){var u=e[a];Be(u)&&(s.decorations.push({range:new K.a(u.originalStartLineNumber,1,u.originalEndLineNumber,1073741824),options:Ne.lineDeleteMargin}),s.overviewZones.push(new X.a(u.originalStartLineNumber,u.originalEndLineNumber,r)))}return s},Ae.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),l=0,u=e.length;l<u;l++){var c=e[l];if(Ve(c))if(s.decorations.push({range:new K.a(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?Ne.lineInsertWithSign:Ne.lineInsert}),s.overviewZones.push(new X.a(c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Ve(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g,m;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(De(f,g,f,m,Ne.charInsert))}else s.decorations.push(De(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Ne.charInsert))}else s.decorations.push(De(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,Ne.charInsertWholeLine))}return s},Ae.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},Ae);function Ae(e,t){var n=Pe.call(this,e)||this;return n.decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,n._register(e.getOriginalEditor().onDidLayoutChange((function(t){n.decorationsLeft!==t.decorationsLeft&&(n.decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))),n}var Fe,je=(de(We,Fe=Oe),We.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},We.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}},We.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];Be(s)&&i.push(new L.a(new K.a(s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0))}for(var a=Object(q.a)(1e4),l=[],u=this.modifiedEditorOptions.get(107),c=this.modifiedEditorOptions.get(34),d=u.decorationsWidth,p=this.modifiedEditorOptions.get(49),f=c.typicalHalfwidthCharacterWidth,g=0,m=[],v=e.originalStartLineNumber;v<=e.originalEndLineNumber;v++)if(g=Math.max(g,this._renderOriginalLine(v-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,v,i,a)),m.push(this.originalModel.getLineContent(v)),this.renderIndicators){var _=v-e.originalStartLineNumber;l=l.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+_*p+"px;width:"+d+"px;height:"+p+'px;right:0;"></div>'])}g+=this.modifiedEditorOptions.get(79);var b=document.createElement("div");b.className="view-lines line-delete",b.innerHTML=a.build(),h.a.applyFontInfoSlow(b,c);var y=document.createElement("div");return y.className="inline-deleted-margin-view-zone",y.innerHTML=l.join(""),h.a.applyFontInfoSlow(y,c),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:g*f,domNode:b,marginDomNode:y,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:m}}},We.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),l=a.getLineContent(),u=n.get(34),c=$.a.filter(r,o,1,l.length+1);s.appendASCIIString('<div class="view-line'),0===r.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.get(49))),s.appendASCIIString('px;width:1000000px;">');var d=L.d.isBasicASCII(l,t.mightContainNonBasicASCII()),h=L.d.containsRTL(l,d,t.mightContainRTL()),p=Object(O.d)(new O.c(u.isMonospace&&!n.get(23),u.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,a,c,i,0,u.spaceWidth,u.middotWidth,n.get(88),n.get(74),n.get(69),n.get(35)!==y.d.OFF,null),s);s.appendASCIIString("</div>");var f=p.characterMapping.getAbsoluteOffsets();return 0<f.length?f[f.length-1]:0},We);function We(e,t,n,i,o,r){var s=Fe.call(this,e,t,i.getOption(49),n,o.getOption(49))||this;return s.originalModel=i.getModel(),s.modifiedEditorOptions=o.getOptions(),s.modifiedEditorTabSize=o.getModel().getOptions().tabSize,s.renderIndicators=r,s}function Ve(e){return 0<e.modifiedEndLineNumber}function Be(e){return 0<e.originalEndLineNumber}Object(N.e)((function(e,t){var n=e.getColor(x.j);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(x.l);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(x.k);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var r=e.getColor(x.m);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var s=e.getColor(x.Vb);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(x.i);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n(452),o=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i.h?"win32":i.e?"darwin":"linux"},nextTick:function(e){return Object(i.i)(e)}}:e,r=o.cwd,s=o.env,a=o.platform}).call(this,n(114))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,t){!function(){"use strict";function n(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var i=setTimeout;function o(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(n){return void l(t.promise,n)}a(t.promise,i)}else(1===e._state?a:l)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"===typeof n)return void d(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return s(this,new c(e,t,n)),n},r.prototype.finally=n,r.all=function(e){return new r((function(t,n){if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var o=i.length;function r(e,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,(function(t){r(e,t)}),n)}i[e]=s,0===--o&&t(i)}catch(s){n(s)}}for(var s=0;s<i.length;s++)r(s,i[s])}))},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,o=e.length;i<o;i++)e[i].then(t,n)}))},r._immediateFn="function"===typeof e&&function(t){e(t)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof t)return t;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype.finally||(h.Promise.prototype.finally=n):h.Promise=r}()}).call(this,n(1383).setImmediate,n(64))},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(1384),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(64))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,o,r,s,a=1,l={},u=!1,c=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,i="[object process]"==={}.toString.call(e.process)?function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(s="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(o=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):function(e){setTimeout(p,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[a]=o,i(a),a++},d.clearImmediate=h}function h(e){delete l[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(64),n(114))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,_,b,y,C,w,S,O,L,D,x,N,k,E,I,M,T,P,R,A,F,j,W,V,B,H,z,U,K,q,G,Y,Z,X,$,J,Q,ee,te,ne,ie,oe,re,se,ae,le,ue,ce,de,he,pe,fe,ge=n(530),me=(n(1382),n(484)),ve=n(442),_e=n(548),be=n(479),ye=n(450),Ce=n(440),we=n(466),Se=n(884);(o=i=i||{})[o.Unknown=0]="Unknown",o[o.Disabled=1]="Disabled",o[o.Enabled=2]="Enabled",(s=r=r||{})[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet",(l=a=a||{})[l.Method=0]="Method",l[l.Function=1]="Function",l[l.Constructor=2]="Constructor",l[l.Field=3]="Field",l[l.Variable=4]="Variable",l[l.Class=5]="Class",l[l.Struct=6]="Struct",l[l.Interface=7]="Interface",l[l.Module=8]="Module",l[l.Property=9]="Property",l[l.Event=10]="Event",l[l.Operator=11]="Operator",l[l.Unit=12]="Unit",l[l.Value=13]="Value",l[l.Constant=14]="Constant",l[l.Enum=15]="Enum",l[l.EnumMember=16]="EnumMember",l[l.Keyword=17]="Keyword",l[l.Text=18]="Text",l[l.Color=19]="Color",l[l.File=20]="File",l[l.Reference=21]="Reference",l[l.Customcolor=22]="Customcolor",l[l.Folder=23]="Folder",l[l.TypeParameter=24]="TypeParameter",l[l.Snippet=25]="Snippet",(c=u=u||{})[c.Deprecated=1]="Deprecated",(h=d=d||{})[h.Invoke=0]="Invoke",h[h.TriggerCharacter=1]="TriggerCharacter",h[h.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(f=p=p||{})[f.EXACT=0]="EXACT",f[f.ABOVE=1]="ABOVE",f[f.BELOW=2]="BELOW",(m=g=g||{})[m.NotSet=0]="NotSet",m[m.ContentFlush=1]="ContentFlush",m[m.RecoverFromMarkers=2]="RecoverFromMarkers",m[m.Explicit=3]="Explicit",m[m.Paste=4]="Paste",m[m.Undo=5]="Undo",m[m.Redo=6]="Redo",(_=v=v||{})[_.LF=1]="LF",_[_.CRLF=2]="CRLF",(y=b=b||{})[y.Text=0]="Text",y[y.Read=1]="Read",y[y.Write=2]="Write",(w=C=C||{})[w.None=0]="None",w[w.Keep=1]="Keep",w[w.Brackets=2]="Brackets",w[w.Advanced=3]="Advanced",w[w.Full=4]="Full",(O=S=S||{})[O.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",O[O.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",O[O.accessibilitySupport=2]="accessibilitySupport",O[O.accessibilityPageSize=3]="accessibilityPageSize",O[O.ariaLabel=4]="ariaLabel",O[O.autoClosingBrackets=5]="autoClosingBrackets",O[O.autoClosingOvertype=6]="autoClosingOvertype",O[O.autoClosingQuotes=7]="autoClosingQuotes",O[O.autoIndent=8]="autoIndent",O[O.automaticLayout=9]="automaticLayout",O[O.autoSurround=10]="autoSurround",O[O.codeLens=11]="codeLens",O[O.colorDecorators=12]="colorDecorators",O[O.comments=13]="comments",O[O.contextmenu=14]="contextmenu",O[O.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",O[O.cursorBlinking=16]="cursorBlinking",O[O.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",O[O.cursorStyle=18]="cursorStyle",O[O.cursorSurroundingLines=19]="cursorSurroundingLines",O[O.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",O[O.cursorWidth=21]="cursorWidth",O[O.disableLayerHinting=22]="disableLayerHinting",O[O.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",O[O.dragAndDrop=24]="dragAndDrop",O[O.emptySelectionClipboard=25]="emptySelectionClipboard",O[O.extraEditorClassName=26]="extraEditorClassName",O[O.fastScrollSensitivity=27]="fastScrollSensitivity",O[O.find=28]="find",O[O.fixedOverflowWidgets=29]="fixedOverflowWidgets",O[O.folding=30]="folding",O[O.foldingStrategy=31]="foldingStrategy",O[O.foldingHighlight=32]="foldingHighlight",O[O.fontFamily=33]="fontFamily",O[O.fontInfo=34]="fontInfo",O[O.fontLigatures=35]="fontLigatures",O[O.fontSize=36]="fontSize",O[O.fontWeight=37]="fontWeight",O[O.formatOnPaste=38]="formatOnPaste",O[O.formatOnType=39]="formatOnType",O[O.glyphMargin=40]="glyphMargin",O[O.gotoLocation=41]="gotoLocation",O[O.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",O[O.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",O[O.hover=44]="hover",O[O.inDiffEditor=45]="inDiffEditor",O[O.letterSpacing=46]="letterSpacing",O[O.lightbulb=47]="lightbulb",O[O.lineDecorationsWidth=48]="lineDecorationsWidth",O[O.lineHeight=49]="lineHeight",O[O.lineNumbers=50]="lineNumbers",O[O.lineNumbersMinChars=51]="lineNumbersMinChars",O[O.links=52]="links",O[O.matchBrackets=53]="matchBrackets",O[O.minimap=54]="minimap",O[O.mouseStyle=55]="mouseStyle",O[O.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",O[O.mouseWheelZoom=57]="mouseWheelZoom",O[O.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",O[O.multiCursorModifier=59]="multiCursorModifier",O[O.multiCursorPaste=60]="multiCursorPaste",O[O.occurrencesHighlight=61]="occurrencesHighlight",O[O.overviewRulerBorder=62]="overviewRulerBorder",O[O.overviewRulerLanes=63]="overviewRulerLanes",O[O.parameterHints=64]="parameterHints",O[O.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",O[O.quickSuggestions=66]="quickSuggestions",O[O.quickSuggestionsDelay=67]="quickSuggestionsDelay",O[O.readOnly=68]="readOnly",O[O.renderControlCharacters=69]="renderControlCharacters",O[O.renderIndentGuides=70]="renderIndentGuides",O[O.renderFinalNewline=71]="renderFinalNewline",O[O.renderLineHighlight=72]="renderLineHighlight",O[O.renderValidationDecorations=73]="renderValidationDecorations",O[O.renderWhitespace=74]="renderWhitespace",O[O.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",O[O.roundedSelection=76]="roundedSelection",O[O.rulers=77]="rulers",O[O.scrollbar=78]="scrollbar",O[O.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",O[O.scrollBeyondLastLine=80]="scrollBeyondLastLine",O[O.selectionClipboard=81]="selectionClipboard",O[O.selectionHighlight=82]="selectionHighlight",O[O.selectOnLineNumbers=83]="selectOnLineNumbers",O[O.showFoldingControls=84]="showFoldingControls",O[O.showUnused=85]="showUnused",O[O.snippetSuggestions=86]="snippetSuggestions",O[O.smoothScrolling=87]="smoothScrolling",O[O.stopRenderingLineAfter=88]="stopRenderingLineAfter",O[O.suggest=89]="suggest",O[O.suggestFontSize=90]="suggestFontSize",O[O.suggestLineHeight=91]="suggestLineHeight",O[O.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",O[O.suggestSelection=93]="suggestSelection",O[O.tabCompletion=94]="tabCompletion",O[O.useTabStops=95]="useTabStops",O[O.wordSeparators=96]="wordSeparators",O[O.wordWrap=97]="wordWrap",O[O.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",O[O.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",O[O.wordWrapColumn=100]="wordWrapColumn",O[O.wordWrapMinified=101]="wordWrapMinified",O[O.wrappingIndent=102]="wrappingIndent",O[O.wrappingStrategy=103]="wrappingStrategy",O[O.editorClassName=104]="editorClassName",O[O.pixelRatio=105]="pixelRatio",O[O.tabFocusMode=106]="tabFocusMode",O[O.layoutInfo=107]="layoutInfo",O[O.wrappingInfo=108]="wrappingInfo",(D=L=L||{})[D.TextDefined=0]="TextDefined",D[D.LF=1]="LF",D[D.CRLF=2]="CRLF",(N=x=x||{})[N.LF=0]="LF",N[N.CRLF=1]="CRLF",(E=k=k||{})[E.None=0]="None",E[E.Indent=1]="Indent",E[E.IndentOutdent=2]="IndentOutdent",E[E.Outdent=3]="Outdent",(M=I=I||{})[M.Unknown=0]="Unknown",M[M.Backspace=1]="Backspace",M[M.Tab=2]="Tab",M[M.Enter=3]="Enter",M[M.Shift=4]="Shift",M[M.Ctrl=5]="Ctrl",M[M.Alt=6]="Alt",M[M.PauseBreak=7]="PauseBreak",M[M.CapsLock=8]="CapsLock",M[M.Escape=9]="Escape",M[M.Space=10]="Space",M[M.PageUp=11]="PageUp",M[M.PageDown=12]="PageDown",M[M.End=13]="End",M[M.Home=14]="Home",M[M.LeftArrow=15]="LeftArrow",M[M.UpArrow=16]="UpArrow",M[M.RightArrow=17]="RightArrow",M[M.DownArrow=18]="DownArrow",M[M.Insert=19]="Insert",M[M.Delete=20]="Delete",M[M.KEY_0=21]="KEY_0",M[M.KEY_1=22]="KEY_1",M[M.KEY_2=23]="KEY_2",M[M.KEY_3=24]="KEY_3",M[M.KEY_4=25]="KEY_4",M[M.KEY_5=26]="KEY_5",M[M.KEY_6=27]="KEY_6",M[M.KEY_7=28]="KEY_7",M[M.KEY_8=29]="KEY_8",M[M.KEY_9=30]="KEY_9",M[M.KEY_A=31]="KEY_A",M[M.KEY_B=32]="KEY_B",M[M.KEY_C=33]="KEY_C",M[M.KEY_D=34]="KEY_D",M[M.KEY_E=35]="KEY_E",M[M.KEY_F=36]="KEY_F",M[M.KEY_G=37]="KEY_G",M[M.KEY_H=38]="KEY_H",M[M.KEY_I=39]="KEY_I",M[M.KEY_J=40]="KEY_J",M[M.KEY_K=41]="KEY_K",M[M.KEY_L=42]="KEY_L",M[M.KEY_M=43]="KEY_M",M[M.KEY_N=44]="KEY_N",M[M.KEY_O=45]="KEY_O",M[M.KEY_P=46]="KEY_P",M[M.KEY_Q=47]="KEY_Q",M[M.KEY_R=48]="KEY_R",M[M.KEY_S=49]="KEY_S",M[M.KEY_T=50]="KEY_T",M[M.KEY_U=51]="KEY_U",M[M.KEY_V=52]="KEY_V",M[M.KEY_W=53]="KEY_W",M[M.KEY_X=54]="KEY_X",M[M.KEY_Y=55]="KEY_Y",M[M.KEY_Z=56]="KEY_Z",M[M.Meta=57]="Meta",M[M.ContextMenu=58]="ContextMenu",M[M.F1=59]="F1",M[M.F2=60]="F2",M[M.F3=61]="F3",M[M.F4=62]="F4",M[M.F5=63]="F5",M[M.F6=64]="F6",M[M.F7=65]="F7",M[M.F8=66]="F8",M[M.F9=67]="F9",M[M.F10=68]="F10",M[M.F11=69]="F11",M[M.F12=70]="F12",M[M.F13=71]="F13",M[M.F14=72]="F14",M[M.F15=73]="F15",M[M.F16=74]="F16",M[M.F17=75]="F17",M[M.F18=76]="F18",M[M.F19=77]="F19",M[M.NumLock=78]="NumLock",M[M.ScrollLock=79]="ScrollLock",M[M.US_SEMICOLON=80]="US_SEMICOLON",M[M.US_EQUAL=81]="US_EQUAL",M[M.US_COMMA=82]="US_COMMA",M[M.US_MINUS=83]="US_MINUS",M[M.US_DOT=84]="US_DOT",M[M.US_SLASH=85]="US_SLASH",M[M.US_BACKTICK=86]="US_BACKTICK",M[M.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",M[M.US_BACKSLASH=88]="US_BACKSLASH",M[M.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",M[M.US_QUOTE=90]="US_QUOTE",M[M.OEM_8=91]="OEM_8",M[M.OEM_102=92]="OEM_102",M[M.NUMPAD_0=93]="NUMPAD_0",M[M.NUMPAD_1=94]="NUMPAD_1",M[M.NUMPAD_2=95]="NUMPAD_2",M[M.NUMPAD_3=96]="NUMPAD_3",M[M.NUMPAD_4=97]="NUMPAD_4",M[M.NUMPAD_5=98]="NUMPAD_5",M[M.NUMPAD_6=99]="NUMPAD_6",M[M.NUMPAD_7=100]="NUMPAD_7",M[M.NUMPAD_8=101]="NUMPAD_8",M[M.NUMPAD_9=102]="NUMPAD_9",M[M.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",M[M.NUMPAD_ADD=104]="NUMPAD_ADD",M[M.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",M[M.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",M[M.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",M[M.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",M[M.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",M[M.ABNT_C1=110]="ABNT_C1",M[M.ABNT_C2=111]="ABNT_C2",M[M.MAX_VALUE=112]="MAX_VALUE",(P=T=T||{})[P.Hint=1]="Hint",P[P.Info=2]="Info",P[P.Warning=4]="Warning",P[P.Error=8]="Error",(A=R=R||{})[A.Unnecessary=1]="Unnecessary",A[A.Deprecated=2]="Deprecated",(j=F=F||{})[j.Inline=1]="Inline",j[j.Gutter=2]="Gutter",(V=W=W||{})[V.UNKNOWN=0]="UNKNOWN",V[V.TEXTAREA=1]="TEXTAREA",V[V.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",V[V.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",V[V.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",V[V.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",V[V.CONTENT_TEXT=6]="CONTENT_TEXT",V[V.CONTENT_EMPTY=7]="CONTENT_EMPTY",V[V.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",V[V.CONTENT_WIDGET=9]="CONTENT_WIDGET",V[V.OVERVIEW_RULER=10]="OVERVIEW_RULER",V[V.SCROLLBAR=11]="SCROLLBAR",V[V.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",V[V.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(H=B=B||{})[H.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",H[H.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",H[H.TOP_CENTER=2]="TOP_CENTER",(U=z=z||{})[U.Left=1]="Left",U[U.Center=2]="Center",U[U.Right=4]="Right",U[U.Full=7]="Full",(q=K=K||{})[q.Off=0]="Off",q[q.On=1]="On",q[q.Relative=2]="Relative",q[q.Interval=3]="Interval",q[q.Custom=4]="Custom",(Y=G=G||{})[Y.None=0]="None",Y[Y.Text=1]="Text",Y[Y.Blocks=2]="Blocks",(X=Z=Z||{})[X.Smooth=0]="Smooth",X[X.Immediate=1]="Immediate",(J=$=$||{})[J.Auto=1]="Auto",J[J.Hidden=2]="Hidden",J[J.Visible=3]="Visible",(ee=Q=Q||{})[ee.LTR=0]="LTR",ee[ee.RTL=1]="RTL",(ne=te=te||{})[ne.Invoke=1]="Invoke",ne[ne.TriggerCharacter=2]="TriggerCharacter",ne[ne.ContentChange=3]="ContentChange",(oe=ie=ie||{})[oe.File=0]="File",oe[oe.Module=1]="Module",oe[oe.Namespace=2]="Namespace",oe[oe.Package=3]="Package",oe[oe.Class=4]="Class",oe[oe.Method=5]="Method",oe[oe.Property=6]="Property",oe[oe.Field=7]="Field",oe[oe.Constructor=8]="Constructor",oe[oe.Enum=9]="Enum",oe[oe.Interface=10]="Interface",oe[oe.Function=11]="Function",oe[oe.Variable=12]="Variable",oe[oe.Constant=13]="Constant",oe[oe.String=14]="String",oe[oe.Number=15]="Number",oe[oe.Boolean=16]="Boolean",oe[oe.Array=17]="Array",oe[oe.Object=18]="Object",oe[oe.Key=19]="Key",oe[oe.Null=20]="Null",oe[oe.EnumMember=21]="EnumMember",oe[oe.Struct=22]="Struct",oe[oe.Event=23]="Event",oe[oe.Operator=24]="Operator",oe[oe.TypeParameter=25]="TypeParameter",(se=re=re||{})[se.Deprecated=1]="Deprecated",(le=ae=ae||{})[le.Hidden=0]="Hidden",le[le.Blink=1]="Blink",le[le.Smooth=2]="Smooth",le[le.Phase=3]="Phase",le[le.Expand=4]="Expand",le[le.Solid=5]="Solid",(ce=ue=ue||{})[ce.Line=1]="Line",ce[ce.Block=2]="Block",ce[ce.Underline=3]="Underline",ce[ce.LineThin=4]="LineThin",ce[ce.BlockOutline=5]="BlockOutline",ce[ce.UnderlineThin=6]="UnderlineThin",(he=de=de||{})[he.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",he[he.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",he[he.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",he[he.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(fe=pe=pe||{})[fe.None=0]="None",fe[fe.Same=1]="Same",fe[fe.Indent=2]="Indent",fe[fe.DeepIndent=3]="DeepIndent";var Oe=(Le.chord=function(e,t){return Object(_e.a)(e,t)},Le.CtrlCmd=2048,Le.Shift=1024,Le.Alt=512,Le.WinCtrl=256,Le);function Le(){}function De(){return{editor:void 0,languages:void 0,CancellationTokenSource:me.b,Emitter:ve.a,KeyCode:I,KeyMod:Oe,Position:ye.a,Range:Ce.a,Selection:we.a,SelectionDirection:Q,MarkerSeverity:T,MarkerTag:R,Uri:be.a,Token:Se.a}}n(1385);var xe,Ne,ke=n(504),Ee=n(443),Ie=n(786),Me=n(1095),Te=n(596),Pe=n(554),Re=n(489),Ae=n(636);(Ne=xe=xe||{})[Ne.API=0]="API",Ne[Ne.USER=1]="USER";var Fe=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},je=function(e,t){return function(n,i){t(n,i,e)}},We=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},Ve=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},Be=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},He=(ze.prototype.open=function(e){return We(this,void 0,void 0,(function(){var t,n;return Ve(this,(function(i){switch(i.label){case 0:if(!Object(Ae.c)(e,Te.b.command))return[2,!1];if("string"==typeof e&&(e=be.a.parse(e)),!Re.a.getCommand(e.path))throw new Error("command '"+e.path+"' NOT known");t=[];try{t=Object(Me.a)(decodeURIComponent(e.query))}catch(i){try{t=Object(Me.a)(e.query)}catch(i){}}return Array.isArray(t)||(t=[t]),[4,(n=this._commandService).executeCommand.apply(n,Be([e.path],t))];case 1:return i.sent(),[2,!0]}}))}))},ze=Fe([je(0,Re.b)],ze));function ze(e){this._commandService=e}var Ue=(Ke.prototype.open=function(e,t){return We(this,void 0,void 0,(function(){var n,i;return Ve(this,(function(o){switch(o.label){case 0:return"string"==typeof e&&(e=be.a.parse(e)),n=void 0,(i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment))&&(n={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1},e=e.with({fragment:""})),e.scheme===Te.b.file&&(e=Object(Pe.g)(e)),[4,this._editorService.openCodeEditor({resource:e,options:{selection:n,context:null!=t&&t.fromUserGesture?xe.USER:xe.API}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide)];case 1:return o.sent(),[2,!0]}}))}))},Ke=Fe([je(0,ke.a)],Ke));function Ke(e){this._editorService=e}var qe=(Ge.prototype.open=function(e,t){return We(this,void 0,void 0,(function(){var n,i,o,r;return Ve(this,(function(s){switch(s.label){case 0:n=0,i=this._validators.toArray(),s.label=1;case 1:return n<i.length?[4,i[n].shouldOpen(e)]:[3,4];case 2:if(!s.sent())return[2,!1];s.label=3;case 3:return n++,[3,1];case 4:o=0,r=this._openers.toArray(),s.label=5;case 5:return o<r.length?[4,r[o].open(e,t)]:[3,8];case 6:if(s.sent())return[2,!0];s.label=7;case 7:return o++,[3,5];case 8:return[2,!1]}}))}))},Ge.prototype.resolveExternalUri=function(e,t){return We(this,void 0,void 0,(function(){var n,i,o;return Ve(this,(function(r){switch(r.label){case 0:n=0,i=this._resolvers.toArray(),r.label=1;case 1:return n<i.length?[4,i[n].resolveExternalUri(e,t)]:[3,4];case 2:if(o=r.sent())return[2,o];r.label=3;case 3:return n++,[3,1];case 4:return[2,{resolved:e,dispose:function(){}}]}}))}))},Ge.prototype._doOpenExternal=function(e,t){return We(this,void 0,void 0,(function(){var n,i;return Ve(this,(function(o){switch(o.label){case 0:return n="string"==typeof e?be.a.parse(e):e,[4,this.resolveExternalUri(n,t)];case 1:return i=o.sent().resolved,"string"==typeof e&&n.toString()===i.toString()?[2,this._externalOpener.openExternal(e)]:[2,this._externalOpener.openExternal(encodeURI(i.toString(!0)))]}}))}))},Ge.prototype.dispose=function(){this._validators.clear()},Ge=Fe([je(0,ke.a),je(1,Re.b)],Ge));function Ge(e,t){var n=this;this._openers=new Ie.a,this._validators=new Ie.a,this._resolvers=new Ie.a,this._externalOpener={openExternal:function(e){return Ee.ab(e),Promise.resolve(!0)}},this._openers.push({open:function(e,t){return We(n,void 0,void 0,(function(){return Ve(this,(function(n){switch(n.label){case 0:return null!=t&&t.openExternal||Object(Ae.c)(e,Te.b.mailto)||Object(Ae.c)(e,Te.b.http)||Object(Ae.c)(e,Te.b.https)?[4,this._doOpenExternal(e,t)]:[3,2];case 1:return n.sent(),[2,!0];case 2:return[2,!1]}}))}))}}),this._openers.push(new He(t)),this._openers.push(new Ue(e))}var Ye,Ze=n(1266),Xe=n(946),$e=n(776),Je=n(599),Qe=n(454),et=n(756),tt=n(758),nt=n(787),it=n(453),ot=n(439),rt=n(446),st=n(452),at=n(465),lt="$initialize";function ut(){st.g}Ye=function(e,t){return(Ye=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)};var ct=(dt.prototype.setWorkerId=function(e){this._workerId=e},dt.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})}))},dt.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},dt.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return;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.req;this._handler.handleMessage(e.method,e.args).then((function(e){t._send({vsWorker:t._workerId,seq:r,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=Object(rt.g)(e.detail)),t._send({vsWorker:t._workerId,seq:r,res:void 0,err:Object(rt.g)(e)})}))}},dt.prototype._send=function(e){var t=[];if(e.req)for(var n=e,i=0;i<n.args.length;i++)n.args[i]instanceof ArrayBuffer&&t.push(n.args[i]);else(n=e).res instanceof ArrayBuffer&&t.push(n.res);this._handler.sendMessage(e,t)},dt);function dt(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}var ht,pt=(function(e,t){function n(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(ft,ht=ot.a),ft.prototype.getProxyObject=function(){return this._lazyProxy},ft.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)}))},ft.prototype._onError=function(e,t){},ft);function ft(e,t,n){var i=ht.call(this)||this,o=null;i._worker=i._register(e.create("vs/base/common/worker/simpleWorker",(function(e){i._protocol.handleMessage(e)}),(function(e){o&&o(e)}))),i._protocol=new ct({sendMessage:function(e,t){i._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!=typeof n[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(n[e].apply(n,t))}catch(e){return Promise.reject(e)}}}),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);var s=at.c(n);function a(e,t){return i._request(e,t)}return i._onModuleLoaded=i._protocol.sendMessage(lt,[i._worker.getId(),JSON.parse(JSON.stringify(r)),t,s]),i._lazyProxy=new Promise((function(e,n){o=n,i._onModuleLoaded.then((function(t){e(at.b(t,a))}),(function(e){n(e),i._onError("Worker failed to load "+t,e)}))})),i}function gt(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new ct({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}gt.prototype.onmessage=function(e){this._protocol.handleMessage(e)},gt.prototype._handleMessage=function(e,t){if(e===lt)return this.initialize(t[0],t[1],t[2],t[3]);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)}},gt.prototype.initialize=function(e,t,n,i){var o=this;this._protocol.setWorkerId(e);var r=at.b(i,(function(e,t){return o._protocol.sendMessage(e,t)}));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(at.c(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise((function(e,t){self.require([n],(function(n){o._requestHandler=n.create(r),o._requestHandler?e(at.c(o._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))};var mt=(vt.prototype.getId=function(){return this.id},vt.prototype.postMessage=function(e,t){this.worker&&this.worker.then((function(n){return n.postMessage(e,t)}))},vt.prototype.dispose=function(){this.worker&&this.worker.then((function(e){return e.terminate()})),this.worker=null},vt);function vt(e,t,n,i,o){this.id=t;var r=function(e,t){if(st.b.MonacoEnvironment){if("function"==typeof st.b.MonacoEnvironment.getWorker)return st.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof st.b.MonacoEnvironment.getWorkerUrl)return new Worker(st.b.MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",n);"function"==typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((function(e){e.onmessage=function(e){i(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}))}var _t=(bt.prototype.create=function(e,t,n){var i=this,o=++bt.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new mt(e,o,this._label||"anonymous"+o,t,(function(e){ut(),i._webWorkerFailedBeforeError=e,n(e)}))},bt.LAST_WORKER_ID=0,bt);function bt(e){this._label=e,this._webWorkerFailedBeforeError=!1}var yt=n(575),Ct=n(459),wt=n(977),St=n(700),Ot=n(444);function Lt(e,t,n,i){return new wt.a(e,t,n).ComputeDiff(i)}var Dt=(xt.prototype.getElements=function(){for(var e=[],t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e},xt.prototype.getStartLineNumber=function(e){return e+1},xt.prototype.getEndLineNumber=function(e){return e+1},xt.prototype.createCharSequence=function(e,t,n){for(var i=[],o=[],r=[],s=0,a=t;a<=n;a++)for(var l=this.lines[a],u=e?this._startColumns[a]:1,c=e?this._endColumns[a]:l.length+1,d=u;d<c;d++)i[s]=l.charCodeAt(d-1),o[s]=a+1,r[s]=d,s++;return new Nt(i,o,r)},xt);function xt(e){for(var t=[],n=[],i=0,o=e.length;i<o;i++)t[i]=At(e[i],1),n[i]=Ft(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}var Nt=(kt.prototype.getElements=function(){return this._charCodes},kt.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},kt.prototype.getStartColumn=function(e){return this._columns[e]},kt.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},kt.prototype.getEndColumn=function(e){return this._columns[e]+1},kt);function kt(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}var Et=(It.createFromDiffChange=function(e,t,n){var i,o,r,s,a,l,u,c;return s=0===e.originalLength?r=o=i=0:(i=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),t.getEndColumn(e.originalStart+e.originalLength-1)),c=0===e.modifiedLength?u=l=a=0:(a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new It(i,o,r,s,a,l,u,c)},It);function It(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}var Mt=(Tt.createFromDiffResult=function(e,t,n,i,o,r,s){var a,l,u,c,d=void 0;if(l=0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,0):(a=n.getStartLineNumber(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1)),c=0===t.modifiedLength?(u=i.getStartLineNumber(t.modifiedStart)-1,0):(u=i.getStartLineNumber(t.modifiedStart),i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&0<t.originalLength&&t.originalLength<20&&0<t.modifiedLength&&t.modifiedLength<20&&o()){var h=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),p=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),f=Lt(h,p,o,!0).changes;s&&(f=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)<3?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(f)),d=[];for(var g=0,m=f.length;g<m;g++)d.push(Et.createFromDiffChange(f[g],h,p))}return new Tt(a,l,u,c,d)},Tt);function Tt(e,t,n,i,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}var Pt=(Rt.prototype.computeDiff=function(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=Lt(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],o=0,r=t.length;o<r;o++)i.push(Mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:i}}for(var s=[],a=0,l=0,u=(o=-1,t.length);o<u;o++){for(var c=o+1<u?t[o+1]:null,d=c?c.originalStart:this.originalLines.length,h=c?c.modifiedStart:this.modifiedLines.length;a<d&&l<h;){var p=this.originalLines[a],f=this.modifiedLines[l];if(p!==f){for(var g=At(p,1),m=At(f,1);1<g&&1<m&&p.charCodeAt(g-2)===f.charCodeAt(m-2);)g--,m--;(1<g||1<m)&&this._pushTrimWhitespaceCharChange(s,a+1,1,g,l+1,1,m);for(var v=Ft(p,1),_=Ft(f,1),b=p.length+1,y=f.length+1;v<b&&_<y&&p.charCodeAt(v-1)===p.charCodeAt(_-1);)v++,_++;(v<b||_<y)&&this._pushTrimWhitespaceCharChange(s,a+1,v,b,l+1,_,y)}a++,l++}c&&(s.push(Mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),a+=c.originalLength,l+=c.modifiedLength)}return{quitEarly:n,changes:s}},Rt.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 Et(t,n,t,i,o,r,o,s)]),e.push(new Mt(t,t,o,o,a))}},Rt.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){var a=e.length;if(0===a)return!1;var l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===o&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Et(t,n,t,i,o,r,o,s)),!0)},Rt);function Rt(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Dt(e),this.modified=new Dt(t),this.continueLineDiff=jt(n.maxComputationTime),this.continueCharDiff=jt(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}function At(e,t){var n=Ot.q(e);return-1===n?t:n+1}function Ft(e,t){var n=Ot.D(e);return-1===n?t:n+2}function jt(e){if(0===e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}var Wt=n(1091),Vt=(Bt.prototype.dispose=function(){this._lines.length=0},Bt.prototype.getText=function(){return this._lines.join(this._eol)},Bt.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=0,n=e.changes;t<n.length;t++){var i=n[t];this._acceptDeleteRange(i.range),this._acceptInsertText(new ye.a(i.range.startLineNumber,i.range.startColumn),i.text)}this._versionId=e.versionId},Bt.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 Wt.a(n)}},Bt.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},Bt.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))}},Bt.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))}},Bt);function Bt(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null}var Ht=n(882),zt=n(790),Ut=(Kt.prototype.get=function(e,t){return this._data[e*this.cols+t]},Kt.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},Kt);function Kt(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}var qt=(Gt.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},Gt);function Gt(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=r[0];t<(u=r[1])&&(t=u),n<s&&(n=s),n<(c=r[2])&&(n=c)}var a=new Ut(++n,++t,0);for(i=0,o=e.length;i<o;i++){var l=e[i],u=(s=l[0],l[1]),c=l[2];a.set(s,u,c)}this._states=a,this._maxCharCode=t}var Yt=null,Zt=null,Xt=($t._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(i<r);if(0<i){var a=t.charCodeAt(i-1),l=t.charCodeAt(r);(40===a&&41===l||91===a&&93===l||123===a&&125===l)&&r--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)}},$t.computeLinks=function(e,t){void 0===t&&(null===Yt&&(Yt=new qt([[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]])),t=Yt);for(var n=function(){if(null===Zt){Zt=new zt.a(0);for(var e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026",t=0;t<e.length;t++)Zt.set(e.charCodeAt(t),1);for(t=0;t<".,;".length;t++)Zt.set(".,;".charCodeAt(t),2)}return Zt}(),i=[],o=1,r=e.getLineCount();o<=r;o++){for(var s=e.getLineContent(o),a=s.length,l=0,u=0,c=0,d=1,h=!1,p=!1,f=!1;l<a;){var g=!1,m=s.charCodeAt(l);if(13===d){var v=void 0;switch(m){case 40:h=!0,v=0;break;case 41:v=h?0:1;break;case 91:p=!0,v=0;break;case 93:v=p?0:1;break;case 123:f=!0,v=0;break;case 125:v=f?0:1;break;case 39:v=34===c||96===c?0:1;break;case 34:v=39===c||96===c?0:1;break;case 96:v=39===c||34===c?0:1;break;case 42:v=42===c?1:0;break;case 124:v=124===c?1:0;break;default:v=n.get(m)}1===v&&(i.push($t._createLink(n,s,o,u,l)),g=!0)}else 12===d?(v=void 0,1===(v=91===m?(p=!0,0):n.get(m))?g=!0:d=13):0===(d=t.nextState(d,m))&&(g=!0);g&&(f=p=h=!(d=1),u=l+1,c=m),l++}13===d&&i.push($t._createLink(n,s,o,u,a))}return i},$t);function $t(){}var Jt=(Qt.prototype.navigateValueSet=function(e,t,n,i,o){var r;return e&&t&&(r=this.doNavigateValueSet(t,o))?{range:e,value:r}:n&&i&&(r=this.doNavigateValueSet(i,o))?{range:n,value:r}:null},Qt.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},Qt.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||0===i&&!t?null:(i=Math.floor(i*n),i+=t?n:-n,String(i/n))},Qt.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},Qt.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},Qt.prototype.valueSetReplace=function(e,t,n){var i=e.indexOf(t);return 0<=i?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null},Qt.INSTANCE=new Qt,Qt);function Qt(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}var en,tn,nn=(en=function(e,t){return(en=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}en(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),on=function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},rn=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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}},sn=(nn(an,tn=Vt),Object.defineProperty(an.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(an.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(an.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),an.prototype.getValue=function(){return this.getText()},an.prototype.getLinesContent=function(){return this._lines.slice(0)},an.prototype.getLineCount=function(){return this._lines.length},an.prototype.getLineContent=function(e){return this._lines[e-1]},an.prototype.getWordAtPosition=function(e,t){var n=Object(Ht.d)(e.column,Object(Ht.c)(t),this._lines[e.lineNumber-1],0);return n?new Ce.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},an.prototype.createWordIterator=function(e){var t,n,i=this,o=0,r=0,s=[];return{next:function a(){if(r<s.length){var l=n.substring(s[r].start,s[r].end);return r+=1,t?t.value=l:t={done:!1,value:l},t}return o>=i._lines.length?St.c:(n=i._lines[o],s=i._wordenize(n,e),r=0,o+=1,a())}}},an.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},an.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},an.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=1+n;r<i;r++)o.push(this._lines[r]);return o.push(this._lines[i].substring(0,e.endColumn-1)),o.join(t)},an.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},an.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)}},an.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},an.prototype._validatePosition=function(e){if(!ye.a.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)n=t=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):o<n&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e},an);function an(){return null!==tn&&tn.apply(this,arguments)||this}var ln=(un.prototype.dispose=function(){this._models=Object.create(null)},un.prototype._getModel=function(e){return this._models[e]},un.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},un.prototype.acceptNewModel=function(e){this._models[e.url]=new sn(be.a.parse(e.url),e.lines,e.EOL,e.versionId)},un.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},un.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},un.prototype.computeDiff=function(e,t,n,i){return on(this,void 0,void 0,(function(){var o,r,s,a,l,u,c;return rn(this,(function(d){return o=this._getModel(e),r=this._getModel(t),o&&r?(s=o.getLinesContent(),a=r.getLinesContent(),l=new Pt(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),u=l.computeDiff(),c=!(0<u.changes.length)&&this._modelsAreIdentical(o,r),[2,{quitEarly:u.quitEarly,identical:c,changes:u.changes}]):[2,null]}))}))},un.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},un.prototype.computeMoreMinimalEdits=function(e,t){return on(this,void 0,void 0,(function(){var n,i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,_,b;return rn(this,(function(y){if(!(n=this._getModel(e)))return[2,t];for(i=[],o=void 0,t=Object(Ct.r)(t,(function(e,t){return e.range&&t.range?Ce.a.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)})),r=0,s=t;r<s.length;r++)if(a=s[r],l=a.range,u=a.text,"number"==typeof(c=a.eol)&&(o=c),(!Ce.a.isEmpty(l)||u)&&(d=n.getValueInRange(l),u=u.replace(/\r\n|\n|\r/g,n.eol),d!==u))if(Math.max(u.length,d.length)>un._diffLimit)i.push({range:l,text:u});else for(h=Object(wt.b)(d,u,!1),p=n.offsetAt(Ce.a.lift(l).getStartPosition()),f=0,g=h;f<g.length;f++)m=g[f],v=n.positionAt(p+m.originalStart),_=n.positionAt(p+m.originalStart+m.originalLength),b={text:u.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:_.lineNumber,endColumn:_.column}},n.getValueInRange(b.range)!==b.text&&i.push(b);return"number"==typeof o&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,i]}))}))},un.prototype.computeLinks=function(e){return on(this,void 0,void 0,(function(){var t;return rn(this,(function(n){return(t=this._getModel(e))?[2,(i=t)&&"function"==typeof i.getLineCount&&"function"==typeof i.getLineContent?Xt.computeLinks(i):[]]:[2,null];var i}))}))},un.prototype.textualSuggest=function(e,t,n,i){return on(this,void 0,void 0,(function(){var o,r,s,a,l,u,c,d;return rn(this,(function(h){if(!(o=this._getModel(e)))return[2,null];for(r=[],s=new Set,a=new RegExp(n,i),(l=o.getWordAtPosition(t,a))&&s.add(o.getValueInRange(l)),u=o.createWordIterator(a),c=u.next();!c.done&&s.size<=un._suggestionsLimit;c=u.next())d=c.value,s.has(d)||(s.add(d),isNaN(Number(d))&&r.push(d));return[2,r]}))}))},un.prototype.computeWordRanges=function(e,t,n,i){return on(this,void 0,void 0,(function(){var o,r,s,a,l,u,c,d,h;return rn(this,(function(p){if(!(o=this._getModel(e)))return[2,Object.create(null)];for(r=new RegExp(n,i),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(l=o.getLineWords(a,r),u=0,c=l;u<c.length;u++)d=c[u],isNaN(Number(d.word))&&((h=s[d.word])||(h=[],s[d.word]=h),h.push({startLineNumber:a,startColumn:d.startColumn,endLineNumber:a,endColumn:d.endColumn}));return[2,s]}))}))},un.prototype.navigateValueSet=function(e,t,n,i,o){return on(this,void 0,void 0,(function(){var r,s,a,l,u;return rn(this,(function(c){return(r=this._getModel(e))?(s=new RegExp(i,o),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),a=r.getValueInRange(t),(l=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s))?(u=r.getValueInRange(l),[2,Jt.INSTANCE.navigateValueSet(t,a,l,u,n)]):[2,null]):[2,null]}))}))},un.prototype.loadForeignModule=function(e,t,n){var i=this,o={host:at.b(n,(function(e,t){return i._host.fhr(e,t)})),getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(at.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},un.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)}},un._diffLimit=1e5,un._suggestionsLimit=1e4,un);function un(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}"function"==typeof importScripts&&(st.b.monaco=De());var cn,dn=n(598),hn=n(899),pn=n(828),fn=n(1054),gn=(cn=function(e,t){return(cn=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}cn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mn=function(e,t){return function(n,i){t(n,i,e)}};function vn(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var _n,bn=(gn(yn,_n=ot.a),yn.prototype.dispose=function(){_n.prototype.dispose.call(this)},yn.prototype.canComputeDiff=function(e,t){return vn(this._modelService,e)&&vn(this._modelService,t)},yn.prototype.computeDiff=function(e,t,n,i){return this._workerManager.withWorker().then((function(o){return o.computeDiff(e,t,n,i)}))},yn.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Object(Ct.q)(t)){if(!vn(this._modelService,e))return Promise.resolve(t);var i=fn.a.create(!0),o=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return o.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),o}return Promise.resolve(void 0)},yn.prototype.canNavigateValueSet=function(e){return vn(this._modelService,e)},yn.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.navigateValueSet(e,t,n)}))},yn.prototype.canComputeWordRanges=function(e){return vn(this._modelService,e)},yn.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},yn=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([mn(0,dn.a),mn(1,hn.a),mn(2,pn.a)],yn));function yn(e,t,n){var i=_n.call(this)||this;return i._modelService=e,i._workerManager=i._register(new On(i._modelService)),i._logService=n,i._register(Qe.s.register("*",{provideLinks:function(e){return vn(i._modelService,e.uri)?i._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),i._register(Qe.d.register("*",new Cn(i._workerManager,t,i._modelService))),i}var Cn=(wn.prototype.provideCompletionItems=function(e,t){return function(e,t,n,i){return new(n=n||Promise)((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var n,i,o,r;return 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=0<(o=s.trys).length&&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(a){r=[6,a],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])}}}(this,(function(s){switch(s.label){case 0:return this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&vn(this._modelService,e.uri)?(n=e.getWordAtPosition(t),i=n?new Ce.a(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):Ce.a.fromPositions(t),o=i.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0];case 1:return[4,s.sent().textualSuggest(e.uri,t)];case 2:return(r=s.sent())?[2,{suggestions:r.map((function(e){return{kind:18,label:e,insertText:e,range:{insert:o,replace:i}}}))}]:[2,void 0]}}))}))},wn);function wn(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}var Sn,On=(gn(Ln,Sn=ot.a),Ln.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),Sn.prototype.dispose.call(this)},Ln.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},Ln.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&3e5<(new Date).getTime()-this._lastWorkerUsedTime&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},Ln.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Rn(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},Ln);function Ln(e){var t=Sn.call(this)||this;return t._modelService=e,t._editorWorkerClient=null,t._lastWorkerUsedTime=(new Date).getTime(),t._register(new it.c).cancelAndSet((function(){return t._checkStopIdleWorker()}),Math.round(15e4)),t._register(t._modelService.onModelRemoved((function(e){return t._checkStopEmptyWorker()}))),t}var Dn,xn=(gn(Nn,Dn=ot.a),Nn.prototype.dispose=function(){for(var e in this._syncedModels)Object(ot.f)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),Dn.prototype.dispose.call(this)},Nn.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString();this._syncedModels[o]||this._beginModelSync(i),this._syncedModels[o]&&(this._syncedModelsLastUsedTime[o]=(new Date).getTime())}},Nn.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime)6e4<e-this._syncedModelsLastUsedTime[n]&&t.push(n);for(var i=0,o=t;i<o.length;i++){var r=o[i];this._stopModelSync(r)}},Nn.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=new ot.b;o.add(n.onDidChangeContent((function(e){t._proxy.acceptModelChanged(i.toString(),e)}))),o.add(n.onWillDispose((function(){t._stopModelSync(i)}))),o.add(Object(ot.h)((function(){t._proxy.acceptRemovedModel(i)}))),this._syncedModels[i]=o}},Nn.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(ot.f)(t)},Nn);function Nn(e,t,n){var i=Dn.call(this)||this;if(i._syncedModels=Object.create(null),i._syncedModelsLastUsedTime=Object.create(null),i._proxy=e,i._modelService=t,!n){var o=new it.c;o.cancelAndSet((function(){return i._checkStopModelSync()}),Math.round(3e4)),i._register(o)}return i}var kn=(En.prototype.dispose=function(){this._instance.dispose()},En.prototype.getProxyObject=function(){return this._proxyObj},En);function En(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}var In=(Mn.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},Mn);function Mn(e){this._workerClient=e}var Tn,Pn,Rn=(gn(An,Tn=ot.a),An.prototype.fhr=function(e,t){throw new Error("Not implemented!")},An.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new pt(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new In(this)))}catch(e){ut(),this._worker=new kn(new ln(new In(this),null))}return this._worker},An.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return ut(),e._worker=new kn(new ln(new In(e),null)),e._getOrCreateWorker().getProxyObject()}))},An.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new xn(e,this._modelService,this._keepIdleModels))),this._modelManager},An.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then((function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n}))},An.prototype.computeDiff=function(e,t,n,i){return this._withSyncedResources([e,t]).then((function(o){return o.computeDiff(e.toString(),t.toString(),n,i)}))},An.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))},An.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))},An.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=yt.a.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Object(Ot.H)(r);return i.textualSuggest(e.toString(),t,s,a)}))},An.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=yt.a.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Object(Ot.H)(r);return i.computeWordRanges(e.toString(),t,s,a)}))},An.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=yt.a.getWordDefinition(r.getLanguageIdentifier().id),a=s.source,l=Object(Ot.H)(s);return o.navigateValueSet(e.toString(),t,n,a,l)}))},An);function An(e,t,n){var i=Tn.call(this)||this;return i._modelService=e,i._keepIdleModels=t,i._workerFactory=new _t(n),i._worker=null,i._modelManager=null,i}var Fn,jn=((Pn=function(e,t){return(Pn=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}Pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Wn,Fn=Rn),Wn.prototype.fhr=function(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}},Wn.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?at.c(e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).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,a=n;s<a.length;s++){var l=a[s];r[l]=o(l,i)}return r}))}))),this._foreignProxy},Wn.prototype.getProxy=function(){return this._getForeignProxy()},Wn.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))},Wn);function Wn(e,t){var n=Fn.call(this,e,t.keepIdleModels||!1,t.label)||this;return n._foreignModuleId=t.moduleId,n._foreignModuleCreateData=t.createData||null,n._foreignModuleHost=t.host||null,n._foreignProxy=null,n}var Vn=n(824),Bn=n(893),Hn=n(777);function zn(e){return t=e,!Array.isArray(t);var t}function Un(e){return"string"==typeof e}function Kn(e){return!Un(e)}function qn(e){return!e}function Gn(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Yn(e){return e.replace(/[&<>'"_]/g,"-")}function Zn(e,t){return new Error(e.languageId+": "+t)}function Xn(e,t,n,i,o){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,l,u,c,d,h,p){return qn(a)?qn(l)?!qn(u)&&u<i.length?Gn(e,i[u]):!qn(d)&&e&&"string"==typeof e[d]?e[d]:(null===r&&(r=o.split(".")).unshift(o),!qn(c)&&c<r.length?Gn(e,r[c]):""):Gn(e,n):"$"}))}function $n(e,t){for(var n=t;n&&0<n.length;){var i=e.tokenizer[n];if(i)return i;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}return null}var Jn=(Qn.create=function(e,t){return this._INSTANCE.create(e,t)},Qn.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new ei(e,t);var n=ei.getStackElementId(e);0<n.length&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new ei(e,t),this._entries[n]=i)},Qn._INSTANCE=new Qn(5),Qn);function Qn(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var ei=(ti.getStackElementId=function(e){for(var t="";null!==e;)0<t.length&&(t+="|"),t+=e.state,e=e.parent;return t},ti._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},ti.prototype.equals=function(e){return ti._equals(this,e)},ti.prototype.push=function(e){return Jn.create(this,e)},ti.prototype.pop=function(){return this.parent},ti.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},ti.prototype.switchTo=function(e){return Jn.create(this.parent,e)},ti);function ti(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}var ni=(ii.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},ii.prototype.clone=function(){return this.state.clone()===this.state?this:new ii(this.modeId,this.state)},ii);function ii(e,t){this.modeId=e,this.state=t}var oi=(ri.create=function(e,t){return this._INSTANCE.create(e,t)},ri.prototype.create=function(e,t){if(null!==t)return new si(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new si(e,t);var n=ei.getStackElementId(e),i=this._entries[n];return i||(i=new si(e,null),this._entries[n]=i)},ri._INSTANCE=new ri(5),ri);function ri(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var si=(ai.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:oi.create(this.stack,this.embeddedModeData)},ai.prototype.equals=function(e){return e instanceof ai&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))},ai);function ai(e,t){this.stack=e,this.embeddedModeData=t}var li=(ui.prototype.enterMode=function(e,t){this._language=t},ui.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new Se.a(e,t,this._language)))},ui.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Qe.B.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},ui.prototype.finalize=function(e){return new Se.b(this._tokens,e)},ui);function ui(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}var ci=(di.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},di.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))},di._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},di.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Qe.B.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize2(e,o,n);return this._prependTokens=di._merge(this._prependTokens,this._tokens,s.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,s.endState},di.prototype.finalize=function(e){return new Se.c(di._merge(this._prependTokens,this._tokens,null),e)},di);function di(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}var hi=(pi.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},pi.prototype.getLoadStatus=function(){var e=[];for(var t in this._embeddedModes){var n=Qe.B.get(t);if(n){if(n instanceof pi){var i=n.getLoadStatus();!1===i.loaded&&e.push(i.promise)}}else{var o=Qe.B.getPromise(t);o&&e.push(o)}}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((function(e){}))}},pi.prototype.getInitialState=function(){var e=Jn.create(null,this._lexer.start);return oi.create(e,null)},pi.prototype.tokenize=function(e,t,n){var i=new li,o=this._tokenize(e,t,n,i);return i.finalize(o)},pi.prototype.tokenize2=function(e,t,n){var i=new ci(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),o=this._tokenize(e,t,n,i);return i.finalize(o)},pi.prototype._tokenize=function(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)},pi.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=$n(this._lexer,t.stack.state)))throw Zn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var i=-1,o=!1,r=0,s=n;r<s.length;r++){var a=s[r];if(Kn(a.action)&&"@pop"===a.action.nextEmbedded){o=!0;var l=a.regex,u=a.regex.source;"^(?:"===u.substr(0,4)&&")"===u.substr(u.length-1,1)&&(l=new RegExp(u.substr(4,u.length-5),l.ignoreCase?"i":""));var c=e.search(l);-1===c||0!==c&&a.matchOnlyAtLineStart||(-1===i||c<i)&&(i=c)}}if(!o)throw Zn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i},pi.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 oi.create(t.stack,new ni(t.embeddedModeData.modeId,r))}var s=e.substring(0,o);0<s.length&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i)},pi.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},pi.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);for(var o=e.length,r=t.embeddedModeData,s=t.stack,a=0,l=null,u=!0;u||a<o;){var c=a,d=s.depth,h=l?l.groups.length:0,p=s.state,f=null,g=null,m=null,v=null,_=null;if(l){f=l.matches;var b=l.groups.shift();g=b.matched,m=b.action,v=l.rule,0===l.groups.length&&(l=null)}else{if(!u&&o<=a)break;u=!1;var y=this._lexer.tokenizer[p];if(!y&&!(y=$n(this._lexer,p)))throw Zn(this._lexer,"tokenizer state is not defined: "+p);for(var C=e.substr(a),w=0,S=y;w<S.length;w++){var O=S[w];if((0===a||!O.matchOnlyAtLineStart)&&(f=C.match(O.regex))){g=f[0],m=O.action;break}}}if(f||(f=[""],g=""),m||(a<o&&(g=(f=[e.charAt(a)])[0]),m=this._lexer.defaultToken),null===g)break;for(a+=g.length;zn(m)&&Kn(m)&&m.test;)m=m.test(g,f,p,a===o);var L=null;if("string"==typeof m||Array.isArray(m))L=m;else if(m.group)L=m.group;else if(null!==m.token&&void 0!==m.token){if(L=m.tokenSubst?Xn(this._lexer,m.token,g,f,p):m.token,m.nextEmbedded)if("@pop"===m.nextEmbedded){if(!r)throw Zn(this._lexer,"cannot pop embedded mode if not inside one");r=null}else{if(r)throw Zn(this._lexer,"cannot enter embedded mode from within an embedded mode");_=Xn(this._lexer,m.nextEmbedded,g,f,p)}if(m.goBack&&(a=Math.max(0,a-m.goBack)),m.switchTo&&"string"==typeof m.switchTo){if("@"===(D=Xn(this._lexer,m.switchTo,g,f,p))[0]&&(D=D.substr(1)),!$n(this._lexer,D))throw Zn(this._lexer,"trying to switch to a state '"+D+"' that is undefined in rule: "+this._safeRuleName(v));s=s.switchTo(D)}else{if(m.transform&&"function"==typeof m.transform)throw Zn(this._lexer,"action.transform not supported");if(m.next)if("@push"===m.next){if(s.depth>=this._lexer.maxStack)throw Zn(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(p)}else if("@pop"===m.next){if(s.depth<=1)throw Zn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));s=s.pop()}else if("@popall"===m.next)s=s.popall();else{var D;if("@"===(D=Xn(this._lexer,m.next,g,f,p))[0]&&(D=D.substr(1)),!$n(this._lexer,D))throw Zn(this._lexer,"trying to set a next state '"+D+"' that is undefined in rule: "+this._safeRuleName(v));s=s.push(D)}}m.log&&"string"==typeof m.log&&(this._lexer,this._lexer.languageId,Xn(this._lexer,m.log,g,f,p))}if(null===L)throw Zn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));if(Array.isArray(L)){if(l&&0<l.groups.length)throw Zn(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(f.length!==L.length+1)throw Zn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));for(var x=0,N=1;N<f.length;N++)x+=f[N].length;if(x!==g.length)throw Zn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(v));for(l={rule:v,matches:f,groups:[]},N=0;N<L.length;N++)l.groups[N]={action:L[N],matched:f[N+1]};a-=g.length}else{if("@rematch"===L&&(a-=g.length,f=null,L=g=""),0===g.length){if(0===o||d!==s.depth||p!==s.state||(l?l.groups.length:0)!==h)continue;throw Zn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(v))}var k=null;if(Un(L)&&0===L.indexOf("@brackets")){var E=L.substr("@brackets".length),I=fi(this._lexer,g);if(!I)throw Zn(this._lexer,"@brackets token returned but no bracket defined as: "+g);k=Yn(I.token+E)}else k=Yn(""===L?"":L+this._lexer.tokenPostfix);if(i.emit(c+n,k),null!==_){var M=this._modeService.getModeIdForLanguageName(_);M&&(_=M);var T=this._getNestedEmbeddedModeData(_);return a<o?(C=e.substr(a),this._nestedTokenize(C,oi.create(s,T),n+a,i)):oi.create(s,T)}}}return oi.create(s,r)},pi.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=Qe.B.get(t);if(n)return new ni(t,n.getInitialState())}return new ni(t||et.b,et.c)},pi.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},pi);function pi(e,t,n,i){var o=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var r=!1;this._tokenizationRegistryListener=Qe.B.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,Qe.B.fire([o._modeId]),r=!1)}}))}function fi(e,t){if(!t)return null;t=Gn(e,t);for(var n=0,i=e.brackets;n<i.length;n++){var o=i[n];if(o.open===t)return{token:o.token,bracketType:1};if(o.close===t)return{token:o.token,bracketType:-1}}return null}var gi=(mi.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 Promise.resolve();e.setTheme(o);var s=n.firstChild?n.firstChild.nodeValue:"";return n.className+=" "+o,this.colorize(t,s||"",r,i).then((function(e){n.innerHTML=e}),(function(e){}))},mi.colorize=function(e,t,n,i){var o=4;i&&"number"==typeof i.tabSize&&(o=i.tabSize),Ot.P(t)&&(t=t.substr(1));var r=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(_i(r,o));e.triggerMode(s);var a=Qe.B.get(s);if(a)return vi(r,o,a);var l=Qe.B.getPromise(s);return new Promise(l?function(e,t){l.then((function(n){vi(r,o,n).then(e,t)}),t)}:function(e,t){function n(){i&&(i.dispose(),i=null),a&&(a.dispose(),a=null);var n=Qe.B.get(s);n?vi(r,o,n).then(e,t):e(_i(r,o))}var i=null,a=null;(a=new it.e).cancelAndSet(n,500),i=Qe.B.onDidChange((function(e){0<=e.changedLanguages.indexOf(s)&&n()}))})},mi.colorizeLine=function(e,t,n,i,o){void 0===o&&(o=4);var r=Hn.d.isBasicASCII(e,t),s=Hn.d.containsRTL(e,r,n);return Object(Bn.e)(new Bn.c(!1,!0,e,!1,r,s,0,i,[],o,0,0,0,-1,"none",!1,!1,null)).html},mi.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)},mi);function mi(){}function vi(e,t,n){return new Promise((function(i,o){!function r(){var s=function(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r<s;r++){var a=e[r],l=n.tokenize2(a,o,0);Vn.a.convertToEndOffset(l.tokens,a.length);var u=new Vn.a(l.tokens,a),c=Hn.d.isBasicASCII(a,!0),d=Hn.d.containsRTL(a,c,!0),h=Object(Bn.e)(new Bn.c(!1,!0,a,!1,c,d,0,u.inflate(),[],t,0,0,0,-1,"none",!1,!1,null));(i=i.concat(h.html)).push("<br/>"),o=l.endState}return i.join("")}(e,t,n);if(n instanceof hi){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(r,o)}i(s)}()}))}function _i(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 Vn.a(i,s),l=Hn.d.isBasicASCII(s,!0),u=Hn.d.containsRTL(s,l,!0),c=Object(Bn.e)(new Bn.c(!1,!0,s,!1,l,u,0,a,[],t,0,0,0,-1,"none",!1,!1,null));(n=n.concat(c.html)).push("<br/>")}return n.join("")}var bi,yi=n(701),Ci=n(889),wi=n(892),Si=n(945),Oi=n(704),Li=n(573),Di=n(553),xi=n(505),Ni=n(789),ki=(bi=function(e,t){return(bi=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}bi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ei=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Ii=(Object.defineProperty(Mi.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(Mi.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),Mi.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},Mi.prototype.getValue=function(e){return e?Object(Li.d)(this.contents,e):this.contents},Mi.prototype.getOverrideValue=function(e,t){var n=this.getContentsForOverrideIdentifer(t);return n?e?Object(Li.d)(n,e):n:void 0},Mi.prototype.override=function(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;for(var n={},i=0,o=Ct.e(Ei(Object.keys(this.contents),Object.keys(t)));i<o.length;i++){var r=o[i],s=this.contents[r],a=t[r];a&&("object"==typeof s&&"object"==typeof a?(s=xi.c(s),this.mergeContents(s,a)):s=a),n[r]=s}return new Mi(n,this.keys,this.overrides)},Mi.prototype.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=xi.c(this.contents),i=xi.c(this.overrides),o=Ei(this.keys),r=0,s=e;r<s.length;r++){var a=s[r];this.mergeContents(n,a.contents);for(var l=function(e){var t=i.filter((function(t){return Ct.g(t.identifiers,e.identifiers)}))[0];t?u.mergeContents(t.contents,e.contents):i.push(xi.c(e))},u=this,c=0,d=a.overrides;c<d.length;c++)l(d[c]);for(var h=0,p=a.keys;h<p.length;h++){var f=p[h];-1===o.indexOf(f)&&o.push(f)}}return new Mi(n,o,i)},Mi.prototype.freeze=function(){return this.isFrozen=!0,this},Mi.prototype.mergeContents=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];o in e&&at.i(e[o])&&at.i(t[o])?this.mergeContents(e[o],t[o]):e[o]=xi.c(t[o])}},Mi.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?xi.d(e):e},Mi.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},Mi.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},Mi.prototype.setValue=function(e,t){this.addKey(e),Object(Li.b)(this.contents,e,t,(function(e){throw new Error(e)}))},Mi.prototype.removeValue=function(e){this.removeKey(e)&&Object(Li.h)(this.contents,e)},Mi.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)},Mi.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},Mi);function Mi(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}var Ti,Pi=(ki(Ri,Ti=Ii),Ri);function Ri(){for(var e=Object(Li.e)(),t=Object(Li.c)(),n=[],i=0,o=Object.keys(e);i<o.length;i++){var r=o[i];Ni.b.test(r)&&n.push({identifiers:[Object(Li.g)(r).trim()],keys:Object.keys(e[r]),contents:Object(Li.i)(e[r],(function(e){}))})}return Ti.call(this,e,t,n)||this}var Ai=(Fi.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)},Fi.prototype.updateValue=function(e,t,n){var i;void 0===n&&(n={}),n.resource?(i=this._memoryConfigurationByResource.get(n.resource))||(i=new Ii,this._memoryConfigurationByResource.set(n.resource,i)):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},Fi.prototype.inspect=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n),o=this.getFolderConfigurationModelForResource(t.resource,n),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,s=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),a=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),u=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),c=n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,d=o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,h=t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),p=i.getValue(e),f=Ct.e(Ct.m(i.overrides.map((function(e){return e.identifiers})))).filter((function(t){return void 0!==i.getOverrideValue(e,t)}));return{defaultValue:s,userValue:a,userLocalValue:l,userRemoteValue:u,workspaceValue:c,workspaceFolderValue:d,memoryValue:h,value:p,default:void 0!==s?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:void 0!==a?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:void 0!==l?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:void 0!==u?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:void 0!==c?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:void 0!==d?{value:null==o?void 0:o.freeze().getValue(e),override:t.overrideIdentifier&&null!=o?o.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:void 0!==h?{value:r.getValue(e),override:t.overrideIdentifier?r.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:f.length?f:void 0}},Object.defineProperty(Fi.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(Fi.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(Fi.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),Fi.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},Fi.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},Fi.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},Fi.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},Fi.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}},Fi);function Fi(e,t,n,i,o,r,s,a){void 0===n&&(n=new Ii),void 0===i&&(i=new Ii),void 0===o&&(o=new Di.b),void 0===r&&(r=new Ii),void 0===s&&(s=new Di.b),void 0===a&&(a=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Di.b,this._userConfiguration=null}var ji,Wi,Vi=n(445),Bi=((ji=function(e,t){return(ji=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}ji(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Hi,Wi=ot.a),Object.defineProperty(Hi.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:ve.b.None},enumerable:!0,configurable:!0}),Hi.prototype.dispose=function(){Wi.prototype.dispose.call(this)},Hi.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},Hi.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},Hi.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return null;var i=n.getDispatchParts()[0];if(null===i)return null;var o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,i)},Hi.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Vi.a("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var i=Date.now();this._currentChordChecker.cancelAndSet((function(){(!n._documentHasFocus()||5e3<Date.now()-i)&&n._leaveChordMode()}),500)},Hi.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},Hi.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},Hi.prototype._doDispatch=function(e,t){var n=this,i=!1;if(e.isChord())return!1;var o=e.getDispatchParts()[0];if(null===o)return i;var r=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),l=this._getResolver().resolve(r,s,o);return l&&l.enterChord?(i=!0,this._enterChordMode(o,a)):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(Vi.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter: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.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"}))),i},Hi.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30)},Hi);function Hi(e,t,n,i){var o=Wi.call(this)||this;return o._contextKeyService=e,o._commandService=t,o._telemetryService=n,o._notificationService=i,o._onDidUpdateKeybindings=o._register(new ve.a),o._currentChord=null,o._currentChordChecker=new it.c,o._currentChordStatusMessage=null,o}var zi=n(456),Ui=(Ki._isTargetedForRemoval=function(e,t,n,i,o){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1}return!0},Ki.combine=function(e,t){e=e.slice(0);for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(r.command&&0!==r.command.length&&"-"===r.command.charAt(0))for(var s=r.command.substr(1),a=r.keypressParts[0],l=r.keypressParts[1],u=r.when,c=e.length-1;0<=c;c--)this._isTargetedForRemoval(e[c],a,l,s,u)&&e.splice(c,1);else n.push(r)}return e.concat(n)},Ki.prototype._addKeyPress=function(e,t){var n=this._map.get(e);if(void 0===n)return this._map.set(e,[t]),void this._addToLookupMap(t);for(var i=n.length-1;0<=i;i--){var o=n[i];if(o.command!==t.command){var r=1<o.keypressParts.length,s=1<t.keypressParts.length;r&&s&&o.keypressParts[1]!==t.keypressParts[1]||Ki.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}}n.push(t),this._addToLookupMap(t)},Ki.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)}},Ki.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)}},Ki.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},Ki._implies=function(e,t){for(var n=function(e){return e instanceof zi.b?e.expr:[e]},i=n(e.negate()).concat(n(t)),o=0;o<i.length;o++)for(var r=i[o].negate(),s=o+1;s<i.length;s++){var a=i[s];if(r.equals(a))return!0}return!1},Ki.prototype.getKeybindings=function(){return this._keybindings},Ki.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return void 0===t||0===t.length?null:t[t.length-1]},Ki.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.keypressParts[1]===n&&i.push(s)}}else{var a;if(void 0===(a=this._map.get(n)))return null;i=a}var l=this._findCommand(e,i);return l?null===t&&1<l.keypressParts.length&&null!==l.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:l.command,commandArgs:l.commandArgs,bubble:l.bubble}:null},Ki.prototype._findCommand=function(e,t){for(var n=t.length-1;0<=n;n--){var i=t[n];if(Ki.contextMatchesRules(e,i.when))return i}return null},Ki.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},Ki);function Ki(e,t){this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(var n=0,i=e.length;n<i;n++){var o=e[n].command;o&&this._defaultBoundCommands.set(o,!0)}for(this._map=new Map,this._lookupMap=new Map,this._keybindings=Ki.combine(e,t),n=0,i=this._keybindings.length;n<i;n++){var r=this._keybindings[n];0!==r.keypressParts.length&&this._addKeyPress(r.keypressParts[0],r)}}var qi,Gi,Yi=n(788),Zi=function(e,t,n,i,o){this.resolvedKeybinding=e,this.keypressParts=e?function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o)return t;t.push(o)}return t}(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o},Xi=n(1092),$i=((qi=function(e,t){return(qi=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}qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ji,Gi=_e.c),Ji.prototype.getLabel=function(){var e=this;return Xi.b.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))},Ji.prototype.getAriaLabel=function(){var e=this;return Xi.a.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))},Ji.prototype.isChord=function(){return 1<this._parts.length},Ji.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},Ji.prototype._getPart=function(e){return new _e.d(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},Ji.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},Ji);function Ji(e,t){var n=Gi.call(this)||this;if(0===t.length)throw Object(rt.b)("parts");return n._os=e,n._parts=t,n}var Qi,eo,to=((Qi=function(e,t){return(Qi=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}Qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(no,eo=$i),no.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return _e.b.toString(e)},no.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},no.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":_e.b.toString(e.keyCode)},no.prototype._getDispatchPart=function(e){return no.getDispatchStr(e)},no.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+_e.b.toString(e.keyCode)},no);function no(e,t){return eo.call(this,t,e.parts)||this}var io,oo=n(532),ro=n(963),so=n(754),ao=(io=function(e,t){return(io=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}io(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),lo=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},uo=(Object.defineProperty(co.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),co.prototype.dispose=function(){this._onDispose.fire()},co);function co(e){this.model=e,this._onDispose=new ve.a}var ho=(po.prototype.setEditor=function(e){this.editor=e},po.prototype.createModelReference=function(e){var t,n,i,o=this,r=null;return this.editor&&(t=this.editor,n=function(t){return o.findModel(t,e)},i=function(t){return o.findModel(t.getOriginalEditor(),e)||o.findModel(t.getModifiedEditor(),e)},r=(Object(wi.a)(t)?n:i)(t)),r?Promise.resolve(new ot.c(new uo(r))):Promise.reject(new Error("Model not found"))},po.prototype.findModel=function(e,t){var n=this.modelService?this.modelService.getModel(t):e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},po);function po(e){this.modelService=e}var fo=(go.prototype.show=function(){return go.NULL_PROGRESS_RUNNER},go.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},go.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},go);function go(){}var mo=function(){},vo=(_o.prototype.info=function(e){return this.notify({severity:Ci.a.Info,message:e})},_o.prototype.warn=function(e){return this.notify({severity:Ci.a.Warning,message:e})},_o.prototype.error=function(e){return this.notify({severity:Ci.a.Error,message:e})},_o.prototype.notify=function(e){switch(e.severity){case Ci.a.Error:case Ci.a.Warning:}return _o.NO_OP},_o.prototype.status=function(e,t){return ot.a.None},_o.NO_OP=new oo.b,_o);function _o(){}var bo=(yo.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Object(ot.h)((function(){delete t._dynamicCommands[n]}))},yo.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Re.a.getCommand(e)||this._dynamicCommands[e];if(!i)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var o=this._instantiationService.invokeFunction.apply(this._instantiationService,lo([i.handler],t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(o)}catch(e){return Promise.reject(e)}},yo);function yo(e){this._onWillExecuteCommand=new ve.a,this._onDidExecuteCommand=new ve.a,this._instantiationService=e,this._dynamicCommands=Object.create(null)}var Co,wo=(ao(So,Co=Bi),So.prototype.addDynamicKeybinding=function(e,t,n,i){var o=this,r=Object(_e.f)(t,st.a),s=new ot.b;r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0}),s.add(Object(ot.h)((function(){for(var t=0;t<o._dynamicKeybindings.length;t++)if(o._dynamicKeybindings[t].command===e)return o._dynamicKeybindings.splice(t,1),void o.updateResolver({source:1})}))));var a=this._commandService;if(!(a instanceof bo))throw new Error("Unknown command service!");return s.add(a.addCommand({id:e,handler:n})),this.updateResolver({source:1}),s},So.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},So.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Yi.a.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Ui(e,t)}return this._cachedResolver},So.prototype._documentHasFocus=function(){return document.hasFocus()},So.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],i=0,o=0,r=e;o<r.length;o++){var s=r[o],a=s.when||void 0,l=s.keybinding;if(l)for(var u=0,c=this.resolveKeybinding(l);u<c.length;u++){var d=c[u];n[i++]=new Zi(d,s.command,s.commandArgs,a,t)}else n[i++]=new Zi(void 0,s.command,s.commandArgs,a,t)}return n},So.prototype.resolveKeybinding=function(e){return[new to(e,st.a)]},So.prototype.resolveKeyboardEvent=function(e){var t=new _e.e(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new to(t,st.a)},So);function So(e,t,n,i,o){var r=Co.call(this,e,t,n,i)||this;return r._cachedResolver=null,r._dynamicKeybindings=[],r._register(Ee.j(o,Ee.d.KEY_DOWN,(function(e){var t=new yi.a(e);r._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),r}function Oo(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof be.a)}var Lo=(Do.prototype.configuration=function(){return this._configuration},Do.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0,i=Oo(e)?e:Oo(t)?t:{};return this.configuration().getValue(n,i,void 0)},Do.prototype.updateValue=function(e,t,n,i){return this.configuration().updateValue(e,t),Promise.resolve()},Do.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},Do);function Do(){this._onDidChangeConfiguration=new ve.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Ai(new Pi,new Ii)}var xo=(No.prototype.getValue=function(e,t,n){var i=ye.a.isIPosition(t)&&t?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return void 0===i?this.configurationService.getValue():this.configurationService.getValue(i)},No);function No(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new ve.a,this.configurationService.onDidChangeConfiguration((function(e){t._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:function(t,n){return e.affectsConfiguration(n)}})}))}var ko=(Eo.prototype.getEOL=function(e,t){var n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:st.d||st.e?"\n":"\r\n"},Eo=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,Li.a)],Eo));function Eo(e){this.configurationService=e}var Io=(Mo.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},Mo.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},Mo);function Mo(){}var To=(Po.prototype.getWorkspace=function(){return this.workspace},Po.prototype.getWorkspaceFolder=function(e){return e&&e.scheme===Po.SCHEME?this.workspace.folders[0]:null},Po.SCHEME="inmemory",Po);function Po(){var e=be.a.from({scheme:Po.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new ro.b({uri:e,name:"",index:0})]}}function Ro(e,t,n){t&&e instanceof Lo&&Object.keys(t).forEach((function(i){Object(Si.d)(i)&&e.updateValue("editor."+i,t[i]),n&&Object(Si.c)(i)&&e.updateValue("diffEditor."+i,t[i])}))}var Ao=(Fo.prototype.hasPreviewHandler=function(){return!1},Fo.prototype.apply=function(e,t){var n=new Map;if(e.edits)for(var i=0,o=e.edits;i<o.length;i++){var r=o[i];if(!Qe.D.is(r))return Promise.reject(new Error("bad edit - only text edits are supported"));var s=this._modelService.getModel(r.resource);if(!s)return Promise.reject(new Error("bad edit - model not found"));var a=n.get(s);a||(a=[],n.set(s,a)),a.push(r.edit)}var l=0,u=0;return n.forEach((function(e,t){t.pushStackElement(),t.pushEditOperations([],e.map((function(e){return Oi.a.replaceMove(Ce.a.lift(e.range),e.text)})),(function(){return[]})),t.pushStackElement(),u+=1,l+=e.length})),Promise.resolve({selection:void 0,ariaSummary:Ot.r(so.f.bulkEditServiceSummary,l,u)})},Fo);function Fo(e){this._modelService=e}var jo=(Wo.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},Wo);function Wo(){}var Vo=(Object.defineProperty(Bo.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),Bo);function Bo(e){this._container=e,this.onLayout=ve.b.None}var Ho,zo,Uo=n(478),Ko=n(635),qo=n(930),Go=n(1273),Yo=n(1089),Zo=n(827),Xo=n(755),$o=n(757),Jo=n(448),Qo=n(531),er=n(451),tr=n(759),nr=n(955),ir=n(774),or=function(e,t){function n(){this.constructor=e}Ho(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},rr=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},sr=function(e,t){return function(n,i){t(n,i,e)}},ar=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},lr=0,ur=!(Ho=function(e,t){return(Ho=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)}),cr=(or(dr,zo=qo.a),dr.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return null;var i="DYNAMIC_"+ ++lr,o=zi.a.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,o),i},dr.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},dr.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 ot.a.None;function n(n){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return Promise.resolve(e.run.apply(e,ar([t],i)))}var i=e.id,o=e.label,r=zi.a.and(zi.a.equals("editorId",this.getId()),zi.a.deserialize(e.precondition)),s=e.keybindings,a=zi.a.and(r,zi.a.deserialize(e.keybindingContext)),l=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,c=new ot.b,d=this.getId()+":"+i;if(c.add(Re.a.registerCommand(d,n)),l){var h={command:{id:d,title:o},when:r,group:l,order:u};c.add(Xo.c.appendMenuItem(7,h))}if(Array.isArray(s))for(var p=0,f=s;p<f.length;p++){var g=f[p];c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,n,a))}var m=new Yo.a(d,o,o,r,n,this._contextKeyService);return this._actions[i]=m,c.add(Object(ot.h)((function(){delete t._actions[i]}))),c},dr=rr([sr(2,Jo.a),sr(3,ke.a),sr(4,Re.b),sr(5,zi.c),sr(6,Qo.a),sr(7,er.c),sr(8,oo.a),sr(9,tr.b)],dr));function dr(e,t,n,i,o,r,s,a,l,u){var c=this;return(t=t||{}).ariaLabel=t.ariaLabel||so.g.editorViewAccessibleLabel,t.ariaLabel=t.ariaLabel+";"+(Uo.i?so.g.accessibilityHelpMessageIE:so.g.accessibilityHelpMessage),(c=zo.call(this,e,t,{},n,i,o,r,a,l,u)||this)._standaloneKeybindingService=s instanceof wo?s:null,ur||(ur=!0,Ko.b(document.body)),c}var hr,pr=(or(fr,hr=cr),fr.prototype.dispose=function(){hr.prototype.dispose.call(this)},fr.prototype.updateOptions=function(e){Ro(this._configurationService,e,!1),hr.prototype.updateOptions.call(this,e)},fr.prototype._attachModel=function(e){hr.prototype._attachModel.call(this,e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},fr.prototype._postDetachModelCleanup=function(e){hr.prototype._postDetachModelCleanup.call(this,e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)},fr=rr([sr(3,Jo.a),sr(4,ke.a),sr(5,Re.b),sr(6,zi.c),sr(7,Qo.a),sr(8,$o.b),sr(9,Zo.a),sr(10,oo.a),sr(11,Li.a),sr(12,tr.b)],fr));function fr(e,t,n,i,o,r,s,a,l,u,c,d,h){var p=this;Ro(d,t,!1);var f=u.registerEditorContainer(e);"string"==typeof(t=t||{}).theme&&u.setTheme(t.theme);var g,m=t.model;if(delete t.model,(p=hr.call(this,e,t,i,o,r,s,a,u,c,h)||this)._contextViewService=l,p._configurationService=d,p._register(n),p._register(f),void 0===m?(g=self.monaco.editor.createModel(t.value||"",t.language||"text/plain"),p._ownsModel=!0):(g=m,p._ownsModel=!1),p._attachModel(g),g){var v={oldModelUrl:null,newModelUrl:g.uri};p._onDidChangeModel.fire(v)}return p}var gr,mr=(or(vr,gr=Go.a),vr.prototype.dispose=function(){gr.prototype.dispose.call(this)},vr.prototype.updateOptions=function(e){Ro(this._configurationService,e,!0),gr.prototype.updateOptions.call(this,e)},vr.prototype._createInnerEditor=function(e,t,n){return e.createInstance(cr,t,n)},vr.prototype.getOriginalEditor=function(){return gr.prototype.getOriginalEditor.call(this)},vr.prototype.getModifiedEditor=function(){return gr.prototype.getModifiedEditor.call(this)},vr.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},vr.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},vr.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},vr=rr([sr(3,Jo.a),sr(4,zi.c),sr(5,Qo.a),sr(6,$o.b),sr(7,tt.a),sr(8,ke.a),sr(9,Zo.a),sr(10,oo.a),sr(11,Li.a),sr(12,$o.a),sr(13,ir.a),sr(14,Object(Jo.d)(nr.a))],vr));function vr(e,t,n,i,o,r,s,a,l,u,c,d,h,p,f){var g=this;Ro(d,t,!0);var m=u.registerEditorContainer(e);return"string"==typeof(t=t||{}).theme&&(t.theme=u.setTheme(t.theme)),(g=gr.call(this,e,t,f,a,o,i,l,u,c,h,p)||this)._contextViewService=s,g._configurationService=d,g._register(n),g._register(m),g._contextViewService.setContainer(g._containerDomElement),g}var _r=n(951),br=n(778),yr=(Cr.prototype.getId=function(){return this._languageIdentifier.language},Cr);function Cr(e){this._languageIdentifier=e}var wr=n(791),Sr=n(1075),Or="text/plain",Lr="application/unknown",Dr=[],xr=[],Nr=[];function kr(e,t){void 0===t&&(t=!1);var n,i={id:(n=e).id,mime:n.mime,filename:n.filename,extension:n.extension,filepattern:n.filepattern,firstline:n.firstline,userConfigured:n.userConfigured,filenameLowercase:n.filename?n.filename.toLowerCase():void 0,extensionLowercase:n.extension?n.extension.toLowerCase():void 0,filepatternLowercase:n.filepattern?n.filepattern.toLowerCase():void 0,filepatternOnPath:!!n.filepattern&&0<=n.filepattern.indexOf(wr.posix.sep)};Dr.push(i),i.userConfigured?Nr.push(i):xr.push(i),t&&!i.userConfigured&&Dr.forEach((function(e){e.mime===i.mime||e.userConfigured||(i.extension&&e.extension,i.filename&&e.filename,i.filepattern&&e.filepattern,i.firstline&&e.firstline)}))}function Er(e,t,n){for(var i=null,o=null,r=null,s=n.length-1;0<=s;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var l=a.filepatternOnPath?e:t;Object(Sr.a)(a.filepatternLowercase,l)&&(o=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&Object(Ot.m)(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}var Ir,Mr,Tr=n(901),Pr=n(571),Rr=(Ir=function(e,t){return(Ir=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}Ir(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ar=Object.prototype.hasOwnProperty,Fr=(Rr(jr,Mr=ot.a),jr.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=Tr.a.getLanguages();this._registerLanguages(e)},jr.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n<i.length;n++){var o=i[n];this._registerLanguage(o)}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}))})),Pr.a.as(Ni.a.Configuration).registerOverrideIdentifiers(Tr.a.getLanguages().map((function(e){return e.id}))),this._onDidChange.fire()},jr.prototype._getLanguageId=function(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];var t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t},jr.prototype._registerLanguage=function(e){var t,n=e.id;if(Ar.call(this._languages,n))t=this._languages[n];else{var i=this._getLanguageId(n);t={identifier:new Qe.r(n,i),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},jr.prototype._mergeLanguage=function(e,t){var n,i=t.id,o=null;if(Array.isArray(t.mimetypes)&&0<t.mimetypes.length&&((n=e.mimetypes).push.apply(n,t.mimetypes),o=t.mimetypes[0]),o||(o="text/x-"+i,e.mimetypes.push(o)),Array.isArray(t.extensions))for(var r=0,s=t.extensions;r<s.length;r++){var a=s[r];kr({id:i,mime:o,extension:a},this._warnOnOverwrite),e.extensions.push(a)}if(Array.isArray(t.filenames))for(var l=0,u=t.filenames;l<u.length;l++){var c=u[l];kr({id:i,mime:o,filename:c},this._warnOnOverwrite),e.filenames.push(c)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++)kr({id:i,mime:o,filepattern:h[d]},this._warnOnOverwrite);if("string"==typeof t.firstLine&&0<t.firstLine.length){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var f=new RegExp(p);Ot.I(f)||kr({id:i,mime:o,firstline:f},this._warnOnOverwrite)}catch(e){Object(rt.e)(e)}}e.aliases.push(i);var g=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(g=0===t.aliases.length?[null]:t.aliases),null!==g)for(var m=0,v=g;m<v.length;m++){var _=v[m];_&&0!==_.length&&e.aliases.push(_)}var b=null!==g&&0<g.length;if(!b||null!==g[0]){var y=(b?g[0]:null)||i;!b&&e.name||(e.name=y)}t.configuration&&e.configurationFiles.push(t.configuration)},jr.prototype.isRegisteredMode=function(e){return!!Ar.call(this._mimeTypesMap,e)||Ar.call(this._languages,e)},jr.prototype.getModeIdForLanguageNameLowercase=function(e){return Ar.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},jr.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return Ar.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return Ar.call(t._languages,e)})):[]},jr.prototype.getLanguageIdentifier=function(e){if(e===et.b||0===e)return et.a;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return Ar.call(this._languages,t)?this._languages[t].identifier:null},jr.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=function(e,t){var n;if(e)switch(e.scheme){case Te.b.file:n=e.fsPath;break;case Te.b.data:n=Pe.a.parseMetaData(e).get(Pe.a.META_DATA_LABEL);break;default:n=e.path}if(!n)return[Lr];n=n.toLowerCase();var i=Object(wr.basename)(n),o=Er(n,i,Nr);if(o)return[o,Or];var r=Er(n,i,xr);if(r)return[r,Or];if(t){var s=function(e){if(Object(Ot.P)(e)&&(e=e.substr(1)),0<e.length)for(var t=Dr.length-1;0<=t;t--){var n=Dr[t];if(n.firstline){var i=e.match(n.firstline);if(i&&0<i.length)return n.mime}}return null}(t);if(s)return[s,Or]}return[Lr]}(e,t);return this.extractModeIds(n.join(","))},jr);function jr(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=Mr.call(this)||this;return n._onDidChange=n._register(new ve.a),n.onDidChange=n._onDidChange.event,n._warnOnOverwrite=t,n._nextLanguageId2=1,n._languageIdToLanguage=[],n._languageToLanguageId=Object.create(null),n._languages={},n._mimeTypesMap={},n._nameMap={},n._lowercaseNameMap={},e&&(n._initializeFromRegistry(),n._register(Tr.a.onDidChangeLanguages((function(e){return n._initializeFromRegistry()})))),n}var Wr,Vr,Br=((Wr=function(e,t){return(Wr=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}Wr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Hr,Vr=ot.a),Hr.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},Hr);function Hr(e,t){var n=Vr.call(this)||this;return n._onDidChange=n._register(new ve.a),n.onDidChange=n._onDidChange.event,n._selector=t,n.languageIdentifier=n._selector(),n._register(e((function(){return n._evaluate()}))),n}var zr=(Ur.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},Ur.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},Ur.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Object(Ct.l)(n,null)},Ur.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return Object(Ct.l)(t,null)},Ur.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},Ur.prototype.create=function(e){var t=this;return new Br(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},Ur.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new Br(this.onLanguagesMaybeChanged,(function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i)}))},Ur.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||et.a;return this._getOrCreateMode(t.language),t},Ur.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},Ur.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||et.a;this._instantiatedModes[e]=new yr(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},Ur);function Ur(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new ve.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new ve.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fr(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}var Kr,qr=n(495),Gr=n(948),Yr=(Kr=function(e,t){return(Kr=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}Kr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zr=function(e,t){return function(n,i){t(n,i,e)}};function Xr(e){return e.toString()}var $r=(Jr.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},Jr.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},Jr.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)},Jr);function Jr(e,t,n){this._modelEventListeners=new ot.b,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.add(e.onDidChangeLanguage((function(t){return n(e,t)})))}var Qr,es=st.d||st.e?1:2,ts=(Yr(ns,Qr=ot.a),ns._readModelOptions=function(e,t){var n=ge.c.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=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var r=parseInt(e.editor.indentSize,10);isNaN(r)||(o=r),o<1&&(o=1)}var s=ge.c.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=es,l=e.eol;"\r\n"===l?a=2:"\n"===l&&(a=1);var u=ge.c.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(u="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=ge.c.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=ge.c.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:u,largeFileOptimizations:d}},ns.prototype.getCreationOptions=function(e,t,n){var i=this._modelCreationOptionsByLanguageAndResource[e+t];if(!i){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:t}),r=this._resourcePropertiesService.getEOL(t,e);i=ns._readModelOptions({editor:o,eol:r},n),this._modelCreationOptionsByLanguageAndResource[e+t]=i}return i},ns.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var o=t[n],r=this._models[o],s=r.model.getLanguageIdentifier().language,a=r.model.uri,l=e[s+a],u=this.getCreationOptions(s,a,r.model.isForSimpleWidget);ns._setModelOptionsForModel(r.model,u,l)}},ns._setModelOptionsForModel=function(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&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,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},ns.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),Qr.prototype.dispose.call(this)},ns.prototype._createModelData=function(e,t,n,i){var o=this,r=this.getCreationOptions(t.language,n,i),s=new qr.b(e,r,t,n),a=Xr(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var l=new $r(s,(function(e){return o._onWillDispose(e)}),(function(e,t){return o._onDidChangeLanguage(e,t)}));return this._models[a]=l},ns.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,Tr.b,n,i),this._onModelAdded.fire(o.model),o.model},ns.prototype.setMode=function(e,t){if(t){var n=this._models[Xr(e.uri)];n&&n.setLanguage(t)}},ns.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},ns.prototype.getModel=function(e){var t=Xr(e),n=this._models[t];return n?n.model:null},ns.prototype._onWillDispose=function(e){var t=Xr(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},ns.prototype._onDidChangeLanguage=function(e,t){var n=t.oldLanguage,i=e.getLanguageIdentifier().language,o=this.getCreationOptions(n,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);ns._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldModeId:n})},ns=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([Zr(0,Li.a),Zr(1,hn.b),Zr(2,er.c),Zr(3,pn.a)],ns));function ns(e,t,n,i){var o=Qr.call(this)||this;return o._onModelAdded=o._register(new ve.a),o.onModelAdded=o._onModelAdded.event,o._onModelRemoved=o._register(new ve.a),o.onModelRemoved=o._onModelRemoved.event,o._onModelModeChanged=o._register(new ve.a),o.onModelModeChanged=o._onModelModeChanged.event,o._configurationService=e,o._resourcePropertiesService=t,o._models={},o._modelCreationOptionsByLanguageAndResource=Object.create(null),o._configurationServiceSubscription=o._configurationService.onDidChangeConfiguration((function(e){return o._updateModelOptions()})),o._updateModelOptions(),o._register(new os(o,n,e,i)),o}var is,os=(Yr(rs,is=ot.a),rs.SETTING_ID="editor.semanticHighlighting",rs);function rs(e,t,n,i){var o=is.call(this)||this;function r(e){var t=n.getValue(rs.SETTING_ID,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri});return t&&t.enabled}function s(e){o._watchers[e.uri.toString()]=new vs(e,t,o._semanticStyling)}function a(e,t){t.dispose(),delete o._watchers[e.uri.toString()]}return o._configurationService=n,o._watchers=Object.create(null),o._semanticStyling=o._register(new as(t,i)),o._register(e.onModelAdded((function(e){r(e)&&s(e)}))),o._register(e.onModelRemoved((function(e){var t=o._watchers[e.uri.toString()];t&&a(e,t)}))),o._configurationService.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(rs.SETTING_ID))for(var n=0,i=e.getModels();n<i.length;n++){var l=i[n],u=o._watchers[l.uri.toString()];r(l)?u||s(l):u&&a(l,u)}})),o}var ss,as=(Yr(ls,ss=ot.a),ls.prototype.get=function(e){return this._caches.has(e)||this._caches.set(e,new hs(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)},ls);function ls(e,t){var n=ss.call(this)||this;return n._themeService=e,n._logService=t,n._caches=new WeakMap,n._themeService&&n._register(n._themeService.onThemeChange((function(){n._caches=new WeakMap}))),n}var us=function(e,t,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.metadata=n,this.next=null},cs=(ds._nullOutEntries=function(e,t){for(var n=0;n<t;n++)e[n]=null},ds.prototype._hashFunc=function(e,t){return((e<<5)-e+t|0)%this._currentLength},ds.prototype.get=function(e,t){for(var n=this._hashFunc(e,t),i=this._elements[n];i;){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t)return i;i=i.next}return null},ds.prototype.add=function(e,t,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var i=this._elements;this._currentLengthIndex++,this._currentLength=ds._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<ds._SIZES.length?2/3*this._currentLength:0),this._elements=[],ds._nullOutEntries(this._elements,this._currentLength);for(var o=0,r=i;o<r.length;o++)for(var s=r[o];s;){var a=s.next;s.next=null,this._add(s),s=a}}this._add(new us(e,t,n))},ds.prototype._add=function(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet);e.next=this._elements[t],this._elements[t]=e},ds._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],ds);function ds(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=ds._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<ds._SIZES.length?2/3*this._currentLength:0),this._elements=[],ds._nullOutEntries(this._elements,this._currentLength)}var hs=(ps.prototype.getMetadata=function(e,t){var n,i=this._hashTable.get(e,t);if(i)n=i.metadata;else{for(var o=this._legend.tokenTypes[e],r=[],s=t,a=0;0<s&&a<this._legend.tokenModifiers.length;a++)1&s&&r.push(this._legend.tokenModifiers[a]),s>>=1;var l=this._themeService.getTheme().getTokenStyleMetadata(o,r);void 0===l?n=2147483647:(void(n=0)!==l.italic&&(n|=1|(l.italic?1:0)<<11),void 0!==l.bold&&(n|=2|(l.bold?2:0)<<11),void 0!==l.underline&&(n|=4|(l.underline?4:0)<<11),l.foreground&&(n|=8|l.foreground<<14),0===n&&(n=2147483647)),this._hashTable.add(e,t,n)}if(this._logService.getLevel()===pn.b.Trace){var u=this._legend.tokenTypes[e],c=t?" "+this._legend.tokenModifiers.filter((function(e,n){return t&1<<n})).join(" "):"";this._logService.trace("tokenStyleMetadata "+(i?"[CACHED] ":"")+u+c+": foreground "+Qe.A.getForeground(n)+", fontStyle "+Qe.A.getFontStyle(n).toString(2))}return n},ps);function ps(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new cs}var fs=(gs.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},gs);function gs(e,t,n){this._provider=e,this.resultId=t,this.data=n}var ms,vs=(Yr(_s,ms=ot.a),_s.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,ms.prototype.dispose.call(this)},_s.prototype._fetchSemanticTokensNow=function(){var e=this;if(!this._currentRequestCancellationTokenSource){var t=this._getSemanticColoringProvider();if(t){this._currentRequestCancellationTokenSource=new me.b;var n=[],i=this._model.onDidChangeContent((function(e){n.push(e)})),o=this._semanticStyling.get(t),r=this._currentResponse&&this._currentResponse.resultId||null;Promise.resolve(t.provideDocumentSemanticTokens(this._model,r,this._currentRequestCancellationTokenSource.token)).then((function(r){e._currentRequestCancellationTokenSource=null,i.dispose(),e._setSemanticTokens(t,r||null,o,n)}),(function(t){t&&"string"==typeof t.message&&-1!==t.message.indexOf("busy")||rt.e(t),e._currentRequestCancellationTokenSource=null,i.dispose(),0<n.length&&(e._fetchSemanticTokens.isScheduled()||e._fetchSemanticTokens.schedule())}))}}},_s._isSemanticTokens=function(e){return e&&!!e.data},_s._isSemanticTokensEdits=function(e){return e&&Array.isArray(e.edits)},_s._copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},_s.prototype._setSemanticTokens=function(e,t,n,i){var o=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&t&&n){if(_s._isSemanticTokensEdits(t)){if(!o)return void this._model.setSemanticTokens(null);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{for(var r=0,s=0,a=t.edits;s<a.length;s++)r+=((p=a[s]).data?p.data.length:0)-p.deleteCount;for(var l=o.data,u=new Uint32Array(l.length+r),c=l.length,d=u.length,h=t.edits.length-1;0<=h;h--){var p,f=c-((p=t.edits[h]).start+p.deleteCount);0<f&&(_s._copy(l,c-f,u,d-f,f),d-=f),p.data&&(_s._copy(p.data,0,u,d-p.data.length,p.data.length),d-=p.data.length),c=p.start}0<c&&_s._copy(l,0,u,0,c),t={resultId:t.resultId,data:u}}}if(_s._isSemanticTokens(t)){this._currentResponse=new fs(e,t.resultId,t.data),l=t.data;for(var g=t.data.length/5|0,m=Math.max(Math.ceil(g/1024),400),v=[],_=0,b=1,y=0;_<g;){var C=_,w=Math.min(C+m,g);if(w<g){for(var S=w;C<S-1&&0===l[5*S];)S--;if(S-1===C){for(var O=w;O+1<g&&0===l[5*O];)O++;w=O}else w=S}u=new Uint32Array(4*(w-C));for(var L=0,D=0;_<w;){var x=5*_,N=l[x],k=l[1+x],E=b+N,I=0===N?y+k:k,M=l[2+x],T=l[3+x],P=l[4+x],R=n.getMetadata(T,P);2147483647!==R&&(0===D&&(D=E),u[L]=E-D,u[L+1]=I,u[L+2]=I+M,u[L+3]=R,L+=4),b=E,y=I,_++}L!==u.length&&(u=u.subarray(0,L));var A=new Gr.a(D,new Gr.c(u));v.push(A)}if(0<i.length){for(var F=0,j=i;F<j.length;F++)for(var W=j[F],V=0,B=v;V<B.length;V++)for(var H=B[V],z=0,U=W.changes;z<U.length;z++){var K=U[z];H.applyEdit(K.range,K.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(v)}else this._model.setSemanticTokens(null)}else this._model.setSemanticTokens(null)},_s.prototype._getSemanticColoringProvider=function(){var e=Qe.l.ordered(this._model);return 0<e.length?e[0]:null},_s);function _s(e,t,n){var i=ms.call(this)||this;return i._isDisposed=!1,i._model=e,i._semanticStyling=n,i._fetchSemanticTokens=i._register(new it.d((function(){return i._fetchSemanticTokensNow()}),300)),i._currentResponse=null,i._currentRequestCancellationTokenSource=null,i._register(i._model.onDidChangeContent((function(e){i._fetchSemanticTokens.isScheduled()||i._fetchSemanticTokens.schedule()}))),i._register(Qe.l.onDidChange((function(e){return i._fetchSemanticTokens.schedule()}))),t&&i._register(t.onThemeChange((function(e){i._setSemanticTokens(null,null,null,[]),i._fetchSemanticTokens.schedule()}))),i._fetchSemanticTokens.schedule(0),i}var bs,ys,Cs=((bs=function(e,t){return(bs=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}bs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ws,ys=ot.a),ws.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},ws.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},ws.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))},ws.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},ws.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},ws.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))},ws.prototype.getFocusedCodeEditor=function(){for(var e=null,t=0,n=this.listCodeEditors();t<n.length;t++){var i=n[t];if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e},ws);function ws(){var e=ys.call(this)||this;return e._onCodeEditorAdd=e._register(new ve.a),e.onCodeEditorAdd=e._onCodeEditorAdd.event,e._onCodeEditorRemove=e._register(new ve.a),e.onCodeEditorRemove=e._onCodeEditorRemove.event,e._onDiffEditorAdd=e._register(new ve.a),e._onDiffEditorRemove=e._register(new ve.a),e._codeEditors=Object.create(null),e._diffEditors=Object.create(null),e}var Ss,Os=(Ss=function(e,t){return(Ss=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}Ss(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ls=(Ds.prototype.ref=function(){this._refCount++},Ds.prototype.unref=function(){var e;this._refCount--,0===this._refCount&&(null!==(e=this.styleSheet.parentNode)&&void 0!==e&&e.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},Ds);function Ds(e,t,n){this._parent=e,this._editorId=t,this.styleSheet=n,this._refCount=0}var xs=(Ns.prototype.ref=function(){},Ns.prototype.unref=function(){},Ns);function Ns(e){this.styleSheet=e}var ks,Es=(Os(Is,ks=Cs),Is.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new xs(Ee.w())),this._globalStyleSheet},Is.prototype._getOrCreateStyleSheet=function(e){if(!e)return this._getOrCreateGlobalStyleSheet();var t=e.getContainerDomNode();if(!Ee.N(t))return this._getOrCreateGlobalStyleSheet();var n=e.getId();if(!this._editorStyleSheets.has(n)){var i=new Ls(this,n,Ee.w(t));this._editorStyleSheets.set(n,i)}return this._editorStyleSheets.get(n)},Is.prototype._removeEditorStyleSheets=function(e){this._editorStyleSheets.delete(e)},Is.prototype.registerDecorationType=function(e,t,n,i){var o=this._decorationOptionProviders.get(e);if(!o){var r=this._getOrCreateStyleSheet(i),s={styleSheet:r.styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};o=new(n?Ms:Ps)(this._themeService,r,s),this._decorationOptionProviders.set(e,o)}o.refCount++},Is.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},Is.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},Is=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,er.c)],Is));function Is(e,t){void 0===t&&(t=null);var n=ks.call(this)||this;return n._decorationOptionProviders=new Map,n._editorStyleSheets=new Map,n._globalStyleSheet=t?new xs(t):null,n._themeService=e,n}var Ms=(Ts.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},Ts.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},Ts);function Ts(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new Fs(3,n,e),this._afterContentRules=new Fs(4,n,e)}var Ps=(Rs.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},Rs.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},Rs);function Rs(e,t,n){var i=this;function o(t){var o=new Fs(t,n,e);if(i._disposables.add(o),o.hasContent)return o.className}this._disposables=new ot.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0,this.className=o(0);var r,s=(r=new Fs(1,n,e),i._disposables.add(r),r.hasContent?{className:r.className,hasLetterSpacing:r.hasLetterSpacing}:null);s&&(this.inlineClassName=s.className,this.inlineClassNameAffectsLetterSpacing=s.hasLetterSpacing),this.beforeContentClassName=o(3),this.afterContentClassName=o(4),this.glyphMarginClassName=o(2);var a=n.options;this.isWholeLine=Boolean(a.isWholeLine),this.stickiness=a.rangeBehavior;var l=a.light&&a.light.overviewRulerColor||a.overviewRulerColor,u=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;void 0===l&&void 0===u||(this.overviewRuler={color:l||u,darkColor:u||l,position:a.overviewRulerLane||Je.d.Center})}var As={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},Fs=(js.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(js.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(js.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(js.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),js.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;0<e.length&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),0<t.length&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),0<n.length&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},js.prototype._removeCSS=function(){Ee.O(this._unThemedSelector,this._providerArgs.styleSheet)},js.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("")},js.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("")},js.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Ot.r(As.contentIconPath,Ee.r(be.a.revive(e.contentIconPath)))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Ot.r(As.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("")},js.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&(t.push(Ot.r(As.gutterIconPath,Ee.r(be.a.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(Ot.r(As.gutterIconSize,e.gutterIconSize))),t.join("")},js.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ot.r("box-sizing: border-box;")),!0)},js.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(Ot.r(As[s],a))}return n.length!==i},js.prototype.resolveValue=function(e){if(Object($e.c)(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e},js);function js(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=Ws.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(o=o+" "+Ws.getClassName(this._providerArgs.parentTypeKey,e)),this._className=o,this._unThemedSelector=Ws.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}var Ws=(Vs.getClassName=function(e,t){return"ced-"+e+"-"+t},Vs.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},Vs);function Vs(){}var Bs,Hs,zs=((Bs=function(e,t){return(Bs=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}Bs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Us,Hs=Es),Us.prototype.getActiveCodeEditor=function(){return null},Us.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},Us.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===Te.b.http||n===Te.b.https)return Object(Ee.ab)(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},Us.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},Us);function Us(){return null!==Hs&&Hs.apply(this,arguments)||this}var Ks=n(490),qs=function(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o};var Gs=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,Ys=(Zs.prototype.getId=function(e){if(null===e)return 0;var t=e.match(Gs);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]=Ks.a.fromHex("#"+e),n)},Zs.prototype.getColorMap=function(){return this._id2color.slice(0)},Zs);function Zs(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}var Xs=($s.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(" "),l=0,u=a.length;l<u;l++)switch(a[l]){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 qs(r.token||"",i,s,c,d)}return t}(e),t)},$s.createFromParsedTokenTheme=function(e,t){return function(e,t){e.sort((function(e,t){var n=function(e,t){return e<t?-1:t<e?1:0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,i="000000",o="ffffff";1<=e.length&&""===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 Ys,a=0,l=t;a<l.length;a++){var u=l[a];s.getId(u)}for(var c=s.getId(i),d=s.getId(o),h=new Qs(n,c,d),p=new ta(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 Xs(s,p)}(e,t)},$s.prototype.getColorMap=function(){return this._colorMap.getColorMap()},$s.prototype._match=function(e){return this._root.match(e)},$s.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(Js);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":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},$s);function $s(e,t){this._colorMap=e,this._root=t,this._cache=new Map}var Js=/\b(comment|string|regex|regexp)\b/,Qs=(ea.prototype.clone=function(){return new ea(this._fontStyle,this._foreground,this._background)},ea.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},ea);function ea(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}var ta=(na.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");n=-1===i?(t=e,""):(t=e.substring(0,i),e.substring(i+1));var o=this._children.get(t);return void 0!==o?o.match(n):this._mainRule},na.prototype.insert=function(e,t,n,i){if(""!==e){var o,r,s=e.indexOf(".");r=-1===s?(o=e,""):(o=e.substring(0,s),e.substring(s+1));var a=this._children.get(o);void 0===a&&(a=new na(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,n,i)}else this._mainRule.acceptOverwrite(t,n,i)},na);function na(e){this._mainRule=e,this._children=new Map}var ia,oa,ra,sa,aa=n(572),la=n(461),ua={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:((ia={})[la.o]="#FFFFFE",ia[la.x]="#000000",ia[la.F]="#E5EBF1",ia[aa.h]="#D3D3D3",ia[aa.a]="#939393",ia[la.M]="#ADD6FF4D",ia)},ca={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:((oa={})[la.o]="#1E1E1E",oa[la.x]="#D4D4D4",oa[la.F]="#3A3D41",oa[aa.h]="#404040",oa[aa.a]="#707070",oa[la.M]="#ADD6FF26",oa)},da={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:((ra={})[la.o]="#000000",ra[la.x]="#FFFFFF",ra[aa.h]="#FFFFFF",ra[aa.a]="#FFFFFF",ra)},ha=(sa=function(e,t){return(sa=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}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),pa="vs",fa="vs-dark",ga="hc-black",ma=Pr.a.as(la.a.ColorContribution),va=Pr.a.as(er.a.ThemingContribution),_a=(Object.defineProperty(ba.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),ba.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},ba.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,Ks.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=Ca(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,Ks.a.fromHex(n.colors[t]))}this.colors=e}return this.colors},ba.prototype.getColor=function(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)},ba.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=ma.resolveDefaultColor(e,this),this.defaultColors[e]=t)},ba.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(ba.prototype,"type",{get:function(){switch(this.base){case pa:return"light";case ga:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(ba.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=Ca(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=Xs.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),ba.prototype.getTokenStyleMetadata=function(e,t){},ba);function ba(e,t){var n=(this.themeData=t).base;0<e.length?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}function ya(e){return e===pa||e===fa||e===ga}function Ca(e){switch(e){case pa:return ua;case fa:return ca;case ga:return da}}function wa(e){var t=Ca(e);return new _a(e,t)}var Sa,Oa=(ha(La,Sa=ot.a),La.prototype.registerEditorContainer=function(e){return Ee.N(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()},La.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=Ee.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),ot.a.None},La.prototype._registerShadowDomContainer=function(e){var t=this,n=Ee.w(e);return n.className="monaco-colors",n.innerHTML=this._css,this._styleElements.push(n),{dispose:function(){for(var e=0;e<t._styleElements.length;e++)if(t._styleElements[e]===n)return void t._styleElements.splice(e,1)}}},La.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!ya(t.base)&&!ya(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new _a(e,t)),ya(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},La.prototype.getTheme=function(){return this._theme},La.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(pa),this._theme===t)return t.id;this._theme=t;var i=[],o={},r={addRule:function(e){o[e]||(i.push(e),o[e]=!0)}};va.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._css=i.join("\n"),this._styleElements.forEach((function(e){return e.innerHTML=n._css})),Qe.B.setColorMap(s),this._onThemeChange.fire(t),t.id},La.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},La);function La(){var e=Sa.call(this)||this;return e._onThemeChange=e._register(new ve.a),e.onThemeChange=e._onThemeChange.event,e._environment=Object.create(null),e._knownThemes=new Map,e._knownThemes.set(pa,wa(pa)),e._knownThemes.set(fa,wa(fa)),e._knownThemes.set(ga,wa(ga)),e._css="",e._globalStyleElement=null,e._styleElements=[],e.setTheme(pa),e}var Da,xa=(Da=function(e,t){return(Da=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}Da(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Na="data-keybinding-context",ka=(Ea.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},Ea.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},Ea.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t},Ea);function Ea(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}var Ia,Ma=(xa(Ta,Ia=ka),Ta.prototype.setValue=function(e,t){return!1},Ta.prototype.removeValue=function(e){return!1},Ta.prototype.getValue=function(e){},Ta.INSTANCE=new Ta,Ta);function Ta(){return Ia.call(this,-1,null)||this}var Pa,Ra=(xa(Aa,Pa=ka),Aa.prototype.dispose=function(){this._listener.dispose()},Aa.prototype.getValue=function(e){if(0!==e.indexOf(Aa._keyPrefix))return Pa.prototype.getValue.call(this,e);if(this._values.has(e))return this._values.get(e);var t=e.substr(Aa._keyPrefix.length),n=this._configurationService.getValue(t),i=void 0;switch(typeof n){case"number":case"boolean":case"string":i=n}return this._values.set(e,i),i},Aa.prototype.setValue=function(e,t){return Pa.prototype.setValue.call(this,e,t)},Aa.prototype.removeValue=function(e){return Pa.prototype.removeValue.call(this,e)},Aa._keyPrefix="config.",Aa);function Aa(e,t,n){var i=Pa.call(this,e,null)||this;return i._configurationService=t,i._values=new Map,i._listener=i._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Object(Di.d)(i._values);i._values.clear(),n.fire(new Ba(t))}else{for(var o=[],r=0,s=e.affectedKeys;r<s.length;r++){var a="config."+s[r];i._values.has(a)&&(i._values.delete(a),o.push(a))}n.fire(new Ba(o))}})),i}var Fa=(ja.prototype.set=function(e){this._service.setContext(this._key,e)},ja.prototype.reset=function(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},ja.prototype.get=function(){return this._service.getContextKeyValue(this._key)},ja);function ja(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}var Wa=(Va.prototype.affectsSome=function(e){return e.has(this.key)},Va);function Va(e){this.key=e}var Ba=(Ha.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},Ha);function Ha(e){this.keys=e}var za=(Ua.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++)if(n[t].affectsSome(e))return!0;return!1},Ua);function Ua(e){this.events=e}var Ka=(qa.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Fa(this,e,t)},Object.defineProperty(qa.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),qa.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},qa.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new $a(this,e)},qa.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return Ui.contextMatchesRules(t,e)},qa.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},qa.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new Wa(e))}},qa.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Wa(e))},qa.prototype.getContext=function(e){return this._isDisposed?Ma.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(Na)){var t=e.getAttribute(Na);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))},qa);function qa(e){this._onDidChangeContext=new ve.e({merge:function(e){return new za(e)}}),this._isDisposed=!1,this._myContextId=e}var Ga,Ya=(xa(Za,Ga=Ka),Za.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},Za.prototype.getContextValuesContainer=function(e){return!this._isDisposed&&this._contexts.get(e)||Ma.INSTANCE},Za.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.set(t,new ka(t,this.getContextValuesContainer(e))),t},Za.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},Za=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,Li.a)],Za));function Za(e){var t=Ga.call(this,0)||this;t._contexts=new Map,t._toDispose=new ot.b,t._lastContextId=0;var n=new Ra(t._myContextId,e,t._onDidChangeContext);return t._contexts.set(t._myContextId,n),t._toDispose.add(n),t}var Xa,$a=(xa(Ja,Xa=Ka),Ja.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Na),this._domNode=void 0)},Object.defineProperty(Ja.prototype,"onDidChangeContext",{get:function(){return ve.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),Ja.prototype.getContextValuesContainer=function(e){return this._isDisposed?Ma.INSTANCE:this._parent.getContextValuesContainer(e)},Ja.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)},Ja.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},Ja);function Ja(e,t){var n=Xa.call(this,e.createChildContext())||this;return n._parent=e,t&&(n._domNode=t,n._domNode.setAttribute(Na,String(n._myContextId))),n}Re.a.registerCommand(zi.e,(function(e,t,n){e.get(zi.c).createKey(String(t),n)})),n(1388);var Qa=n(703),el=n(1081),tl=n(826),nl=n(686),il=n(595),ol=(rl.prototype.configure=function(e){this.options=e},rl.prototype.showContextMenu=function(e){var t,n=this,i=e.getActions();i.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(o){var r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),n.options.blockMouse&&(n.block=o.appendChild(Object(Ee.a)(".context-view-block")));var s=new ot.b,a=e.actionRunner||new Qa.b;return a.onDidBeforeRun(n.onActionRun,n,s),a.onDidRun(n.onDidActionRun,n,s),t=new el.a(o,i,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),s.add(Object(tl.c)(t,n.themeService)),t.onDidCancel((function(){return n.contextViewService.hideContextView(!0)}),null,s),t.onDidBlur((function(){return n.contextViewService.hideContextView(!0)}),null,s),Object(nl.a)(window,Ee.d.BLUR)((function(){n.contextViewService.hideContextView(!0)}),null,s),Object(nl.a)(window,Ee.d.MOUSE_DOWN)((function(e){if(!e.defaultPrevented){var t=new il.b(e),i=t.target;if(!t.rightButton){for(;i;){if(i===o)return;i=i.parentElement}n.contextViewService.hideContextView(!0)}}}),null,s),Object(ot.e)(s,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(Object(Ee.R)(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},rl.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},rl.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},rl);function rl(e,t,n,i,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}var sl,al,ll=n(821),ul=function(e,t){return function(n,i){t(n,i,e)}},cl=((sl=function(e,t){return(sl=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}sl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(dl,al=ot.a),dl.prototype.configure=function(e){this.contextMenuHandler.configure(e)},dl.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},dl=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([ul(0,ll.a),ul(1,oo.a),ul(2,$o.b),ul(3,Qo.a),ul(4,er.c)],dl));function dl(e,t,n,i,o){var r=al.call(this)||this;return r._onDidContextMenu=r._register(new ve.a),r.contextMenuHandler=new ol(n,e,t,i,o),r}n(1389);var hl,pl=n(896),fl=n(820);function gl(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 ml,vl=((hl=function(e,t){return(hl=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}hl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(_l,ml=ot.a),_l.prototype.setContainer=function(e){var t=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var n=new ot.b;_l.BUBBLE_UP_EVENTS.forEach((function(e){n.add(Ee.o(t.container,e,(function(e){t.onDOMEvent(e,!1)})))})),_l.BUBBLE_DOWN_EVENTS.forEach((function(e){n.add(Ee.o(t.container,e,(function(e){t.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=n}},_l.prototype.show=function(e){this.isVisible()&&this.hide(),Ee.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",Ee.X(this.view),this.toDisposeOnClean=e.render(this.view)||ot.a.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},_l.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout||st.c&&fl.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},_l.prototype.doLayout=function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(Ee.L(t)){var n=Ee.C(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var i,o=Ee.H(this.view),r=Ee.G(this.view),s=this.delegate.anchorPosition||0,a=this.delegate.anchorAlignment||0,l={offset:e.top-window.pageYOffset,size:e.height,position:0===s?0:1};i=0===a?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var u=gl(window.innerHeight,r,l)+window.pageYOffset;pl.a.intersects({start:u,end:u+r},{start:l.offset,end:l.offset+l.size})&&(i.size=e.width,1===a&&(i.offset=e.left));var c=gl(window.innerWidth,o,i);Ee.Q(this.view,"top","bottom","left","right"),Ee.f(this.view,0===s?"bottom":"top"),Ee.f(this.view,0===a?"left":"right");var d=Ee.C(this.container);this.view.style.top=u-d.top+"px",this.view.style.left=c-d.left+"px",this.view.style.width="initial"}},_l.prototype.hide=function(e){var t=this.delegate;(this.delegate=null)!=t&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Ee.J(this.view)},_l.prototype.isVisible=function(){return!!this.delegate},_l.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Ee.K(e.target,this.container)&&this.hide())},_l.prototype.dispose=function(){this.hide(),ml.prototype.dispose.call(this)},_l.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],_l.BUBBLE_DOWN_EVENTS=["click"],_l);function _l(e){var t=ml.call(this)||this;return t.container=null,t.delegate=null,t.toDisposeOnClean=ot.a.None,t.toDisposeOnSetContainer=ot.a.None,t.view=Ee.a(".context-view"),Ee.J(t.view),t.setContainer(e),t._register(Object(ot.h)((function(){return t.setContainer(null)}))),t}var bl,yl,Cl=Object(Jo.c)("layoutService"),wl=((bl=function(e,t){return(bl=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}bl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Sl,yl=ot.a),Sl.prototype.setContainer=function(e){this.contextView.setContainer(e)},Sl.prototype.showContextView=function(e){this.contextView.show(e)},Sl.prototype.layout=function(){this.contextView.layout()},Sl.prototype.hideContextView=function(e){this.contextView.hide(e)},Sl=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,Cl)],Sl));function Sl(e){var t=yl.call(this)||this;return t.layoutService=e,t.contextView=t._register(new vl(e.container)),t.layout(),t._register(e.onLayout((function(){return t.layout()}))),t}var Ol=Object(Jo.c)("dialogService"),Ll=n(822),Dl=(xl.prototype.roots=function(){var e=[];return Object(Ll.c)(this._nodes,(function(t){Object(at.f)(t.value.outgoing)&&e.push(t.value)})),e},xl.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);(n.outgoing[this._hashFn(t)]=i).incoming[this._hashFn(e)]=n},xl.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],Object(Ll.c)(this._nodes,(function(e){delete e.value.outgoing[t],delete e.value.incoming[t]}))},xl.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n={data:e,incoming:Object.create(null),outgoing:Object.create(null)},this._nodes[t]=n),n},xl.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},xl.prototype.toString=function(){var e=[];return Object(Ll.c)(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")},xl);function xl(e){this._hashFn=e,this._nodes=Object.create(null)}var Nl,kl,El=n(1079),Il=n(895),Ml=function(e,t){function n(){this.constructor=e}Nl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Tl=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},Pl=(Nl=function(e,t){return(Nl=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"==typeof Proxy),Rl=(Ml(Al,kl=Error),Al);function Al(e){var t=kl.call(this,"cyclic dependency between services")||this;return t.message=e.toString(),t}var Fl=(jl.prototype.createChild=function(e){return new jl(e,this._strict,this)},jl.prototype.invokeFunction=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=Vl.traceInvocation(e),r=!1;try{var s={get:function(e,n){if(r)throw Object(rt.c)("service accessor is only valid during the invocation of its target method");var i=t._getOrCreateServiceInstance(e,o);if(!i&&n!==Jo.d)throw new Error("[invokeFunction] unknown service '"+e+"'");return i}};return e.apply(void 0,Tl([s],n))}finally{r=!0,o.stop()}},jl.prototype.createInstance=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n=e instanceof El.a?(t=Vl.traceCreation(e.ctor),this._createInstance(e.ctor,e.staticArguments.concat(i),t)):(t=Vl.traceCreation(e),this._createInstance(e,i,t)),t.stop(),n},jl.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=Jo.b.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),o=[],r=0,s=i;r<s.length;r++){var a=s[r],l=this._getOrCreateServiceInstance(a.id,n);if(!l&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");o.push(l)}var u=0<i.length?i[0].index:t.length;if(t.length!==u){var c=u-t.length;t=0<c?t.concat(new Array(c)):t.slice(0,u)}return new(e.bind.apply(e,Tl([void 0],Tl(t,o))))},jl.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof El.a)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},jl.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},jl.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof El.a?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},jl.prototype._createAndCacheServiceInstance=function(e,t,n){for(var i=new Dl((function(e){return e.id.toString()})),o=0,r=[{id:e,desc:t,_trace:n}];r.length;){var s=r.pop();if(i.lookupOrInsertNode(s),150<o++)throw new Rl(i);for(var a=0,l=Jo.b.getServiceDependencies(s.desc.ctor);a<l.length;a++){var u=l[a],c=this._getServiceInstanceOrDescriptor(u.id);if(c||u.optional,c instanceof El.a){var d={id:u.id,desc:c,_trace:s._trace.branch(u.id,!0)};i.insertEdge(s,d),r.push(d)}}}for(;;){var h=i.roots();if(0===h.length){if(!i.isEmpty())throw new Rl(i);break}for(var p=0,f=h;p<f.length;p++){var g=f[p].data,m=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,m),i.removeNode(g)}}return this._getServiceInstanceOrDescriptor(e)},jl.prototype._createServiceInstanceWithOwner=function(e,t,n,i,o){if(void 0===n&&(n=[]),this._services.get(e)instanceof El.a)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 "+t.name)},jl.prototype._createServiceInstance=function(e,t,n,i){var o=this;if(void 0===t&&(t=[]),n&&Pl){var r=new it.b((function(){return o._createInstance(e,t,i)}));return new Proxy(Object.create(null),{get:function(e,t){if(t in e)return e[t];var n=r.getValue(),i=n[t];return"function"!=typeof i?i:(i=i.bind(n),e[t]=i)},set:function(e,t,n){return r.getValue()[t]=n,!0}})}return this._createInstance(e,t,i)},jl);function jl(e,t,n){void 0===e&&(e=new Il.a),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(Jo.a,this)}var Wl,Vl=(Bl.traceInvocation=function(e){return Bl._None},Bl.traceCreation=function(e){return Bl._None},Bl.prototype.branch=function(e,t){var n=new Bl(2,e.toString());return this._dep.push([e,t,n]),n},Bl.prototype.stop=function(){var e=Date.now()-this._start;Bl._totals+=e,this.type,this.name,function e(t,n){for(var i=[],o=new Array(t+1).join("\t"),r=0,s=n._dep;r<s.length;r++){var a=s[r],l=a[0],u=a[1],c=a[2];if(u&&c){i.push(o+"CREATES -> "+l);var d=e(t+1,c);d&&i.push(d)}else i.push(o+"uses -> "+l)}return i.join("\n")}(1,this),e.toFixed(2),Bl._totals.toFixed(2)},Bl._None=(Ml(Hl,Wl=Bl),Hl.prototype.stop=function(){},Hl.prototype.branch=function(){return this},new Hl),Bl._totals=0,Bl);function Bl(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}function Hl(){return Wl.call(this,-1,null)||this}var zl,Ul,Kl=n(898),ql=n(969),Gl=n(773);(Ul=zl=zl||{}).get=function(e,t,n){if(e[t])return e[t][n]},Ul.set=function(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i},Ul.remove=function(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],Object(at.f)(e[t])&&delete e[t],!0)};var Yl=(Zl.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},Zl.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}},Zl.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Te.b.inMemory||e.scheme===Te.b.walkThrough||e.scheme===Te.b.walkThroughSnippet)return t;for(var n=0,i=this._service.read({resource:e});n<i.length;n++){var o=i[n].severity;o===Gl.c.Error?t.errors+=1:o===Gl.c.Warning?t.warnings+=1:o===Gl.c.Info?t.infos+=1:t.unknowns+=1}return t},Zl.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},Zl.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},Zl);function Zl(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)}var Xl=($l.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty($l.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),$l.prototype.remove=function(e,t){for(var n=0,i=t||[];n<i.length;n++){var o=i[n];this.changeOne(e,o,[])}},$l.prototype.changeOne=function(e,t,n){if(Object(Ct.p)(n)){var i=zl.remove(this._byResource,t.toString(),e),o=zl.remove(this._byOwner,e,t.toString());if(i!==o)throw new Error("invalid marker service state");i&&o&&this._onMarkerChanged.fire([t])}else{for(var r=[],s=0,a=n;s<a.length;s++){var l=a[s],u=$l._toMarker(e,t,l);u&&r.push(u)}zl.set(this._byResource,t.toString(),e,r),zl.set(this._byOwner,e,t.toString(),r),this._onMarkerChanged.fire([t])}},$l._toMarker=function(e,t,n){var i=n.code,o=n.severity,r=n.message,s=n.source,a=n.startLineNumber,l=n.startColumn,u=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(r)return{resource:t,owner:e,code:i,severity:o,message:r,source:s,startLineNumber:a=0<a?a:1,startColumn:l=0<l?l:1,endLineNumber:u=a<=u?u:a,endColumn:c=0<c?c:l,relatedInformation:d,tags:h}},$l.prototype.read=function(e){void 0===e&&(e=Object.create(null));var t=e.owner,n=e.resource,i=e.severities,o=e.take;if((!o||o<0)&&(o=-1),t&&n){if(_=zl.get(this._byResource,n.toString(),t)){for(var r=[],s=0,a=_;s<a.length;s++){var l=a[s];if($l._accept(l,i)){var u=r.push(l);if(0<o&&u===o)break}}return r}return[]}if(t||n){var c=t?this._byOwner[t]:n?this._byResource[n.toString()]:void 0;if(!c)return[];for(var d in r=[],c)for(var h=0,p=c[d];h<p.length;h++)if(_=p[h],$l._accept(_,i)&&(u=r.push(_),0<o&&u===o))return r;return r}r=[];for(var f in this._byResource)for(var g in this._byResource[f])for(var m=0,v=this._byResource[f][g];m<v.length;m++){var _=v[m];if($l._accept(_,i)){u=r.push(_);if(0<o&&u===o)return r}}return r},$l._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},$l._debouncer=function(e,t){e||($l._dedupeMap=Object.create(null),e=[]);for(var n=0,i=t;n<i.length;n++){var o=i[n];void 0===$l._dedupeMap[o.toString()]&&($l._dedupeMap[o.toString()]=!0,e.push(o))}return e},$l);function $l(){this._onMarkerChanged=new ve.a,this._onMarkerChangedEvent=ve.b.debounce(this._onMarkerChanged.event,$l._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Yl(this)}var Jl=n(775),Ql=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s},eu=function(e,t){return function(n,i){t(n,i,e)}},tu=(nu.prototype.createMenu=function(e,t){return new iu(e,this._commandService,t)},nu=Ql([eu(0,Re.b)],nu));function nu(e){this._commandService=e}var iu=(ou.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},ou.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var e,t=Xo.c.getMenuItems(this._id);t.sort(ou._compareMenuItems);for(var n=0,i=t;n<i.length;n++){var o=i[n],r=o.group||"";e&&e[0]===r||(e=[r,[]],this._menuGroups.push(e)),e[1].push(o),ou._fillInKbExprKeys(o.when,this._contextKeys),Object(Xo.e)(o)&&o.command.precondition&&ou._fillInKbExprKeys(o.command.precondition,this._contextKeys),Object(Xo.e)(o)&&o.command.toggled&&ou._fillInKbExprKeys(o.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},ou.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,l=o[1];a<l.length;a++){var u=l[a];if(this._contextKeyService.contextMatchesRules(u.when)){var c=Object(Xo.e)(u)?new Xo.b(u.command,u.alt,e,this._contextKeyService,this._commandService):new Xo.d(u);s.push(c)}}0<s.length&&t.push([r,s])}return t},ou._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();n<i.length;n++){var o=i[n];t.add(o)}},ou._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;return r<s?-1:s<r?1:ou._compareTitles(Object(Xo.e)(e)?e.command.title:e.title,Object(Xo.e)(t)?t.command.title:t.title)},ou._compareTitles=function(e,t){var n="string"==typeof e?e:e.value,i="string"==typeof t?t:t.value;return n.localeCompare(i)},ou=Ql([eu(1,Re.b),eu(2,zi.c)],ou));function ou(e,t,n){var i=this;this._id=e,this._commandService=t,this._contextKeyService=n,this._onDidChange=new ve.a,this._dispoables=new ot.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(ve.b.debounce(ve.b.filter(Xo.c.onDidChangeMenu,(function(e){return e===i._id})),(function(){}),50)(this._build,this)),this._dispoables.add(ve.b.debounce(this._contextKeyService.onDidChangeContext,(function(e,t){return e||t.affectsSome(i._contextKeys)}),50)((function(e){return e&&i._onDidChange.fire(void 0)}),this))}var ru,su=n(1096),au=(ru=function(e,t){return(ru=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}ru(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),lu=function(e,t){return function(n,i){t(n,i,e)}};function uu(e){return e.toString()}var cu,du=(au(hu,cu=ot.a),hu.prototype.update=function(e,t){var n=Object(Di.d)(this._markersData);this._markersData.clear();for(var i=this.model.deltaDecorations(n,t),o=0;o<i.length;o++)this._markersData.set(i[o],e[o])},hu.prototype.getMarker=function(e){return this._markersData.get(e.id)},hu);function hu(e){var t=cu.call(this)||this;return t.model=e,t._markersData=new Map,t._register(Object(ot.h)((function(){t.model.deltaDecorations(Object(Di.d)(t._markersData),[]),t._markersData.clear()}))),t}var pu,fu=(au(gu,pu=ot.a),gu.prototype.dispose=function(){pu.prototype.dispose.call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()},gu.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(uu(e.uri));return n?Object(at.o)(n.getMarker(t)):null},gu.prototype._handleMarkerChange=function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(uu(e));n&&t._updateDecorations(n)}))},gu.prototype._onModelAdded=function(e){var t=new du(e);this._markerDecorations.set(uu(e.uri),t),this._updateDecorations(t)},gu.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(uu(e.uri));n&&(n.dispose(),this._markerDecorations.delete(uu(e.uri))),e.uri.scheme!==Te.b.inMemory&&e.uri.scheme!==Te.b.internal&&e.uri.scheme!==Te.b.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])}))},gu.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),i=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,i),this._onDidChangeMarker.fire(e.model)},gu.prototype._createDecorationRange=function(e,t){var n=Ce.a.lift(t);if(t.severity!==Gl.c.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),(n=e.validateRange(n)).isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new Ce.a(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 Ce.a(n.startLineNumber,o-1,n.endLineNumber,o):new Ce.a(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 Ce.a(n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n},gu.prototype._createDecorationOption=function(e){var t,n,i,o=void 0,r=void 0;switch(e.severity){case Gl.c.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case Gl.c.Warning:t="squiggly-warning",o=Object(er.f)(aa.r),n=20,i={color:Object(er.f)(la.Jb),position:Je.c.Inline};break;case Gl.c.Info:t="squiggly-info",o=Object(er.f)(aa.q),n=10;break;case Gl.c.Error:default:t="squiggly-error",o=Object(er.f)(aa.p),n=30,i={color:Object(er.f)(la.Gb),position:Je.c.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(r="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:o,position:Je.d.Right},minimap:i,zIndex:n,inlineClassName:r}},gu.prototype._hasMarkerTag=function(e,t){return!!e.tags&&0<=e.tags.indexOf(t)},gu=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([lu(0,dn.a),lu(1,Gl.b)],gu));function gu(e,t){var n=pu.call(this)||this;return n._markerService=t,n._onDidChangeMarker=n._register(new ve.a),n._markerDecorations=new Map,e.getModels().forEach((function(e){return n._onModelAdded(e)})),n._register(e.onModelAdded(n._onModelAdded,n)),n._register(e.onModelRemoved(n._onModelRemoved,n)),n._register(n._markerService.onMarkerChanged(n._handleMarkerChange,n)),n}var mu,vu,_u=n(792),bu=function(e,t){return function(n,i){t(n,i,e)}},yu=((mu=function(e,t){return(mu=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}mu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Cu,vu=ot.a),Object.defineProperty(Cu.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),Cu.prototype.isScreenReaderOptimized=function(){var e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport},Cu.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},Cu=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;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,n,s):o(t,n))||s);return 3<r&&s&&Object.defineProperty(t,n,s),s}([bu(0,zi.c),bu(1,Li.a)],Cu));function Cu(e,t){var n=vu.call(this)||this;function i(){return n._accessibilityModeEnabledContext.set(n.isScreenReaderOptimized())}return n._contextKeyService=e,n._configurationService=t,n._accessibilitySupport=0,n._onDidChangeScreenReaderOptimized=new ve.a,n._accessibilityModeEnabledContext=tr.a.bindTo(n._contextKeyService),n._register(n._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&(i(),n._onDidChangeScreenReaderOptimized.fire())}))),i(),n.onDidChangeScreenReaderOptimized((function(){return i()})),n}var wu,Su,Ou=(wu=function(e,t){return(wu=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}wu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(e){var t=new Il.a,n=(Object.defineProperty(i.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),i.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},i);function i(e,t){this._serviceId=e,this._factory=t,this._value=null}e.LazyStaticService=n;var o=[];function r(e,t){var i=new n(e,t);return o.push(i),i}e.init=function(e){for(var t=new Il.a,n=0,i=Object(_u.a)();n<i.length;n++){var r=i[n],s=r[0],a=r[1];t.set(s,a)}for(var l in e)e.hasOwnProperty(l)&&t.set(Object(Jo.c)(l),e[l]);o.forEach((function(n){return t.set(n.id,n.get(e))}));var u=new Fl(t,!0);return t.set(Jo.a,u),[t,u]},e.instantiationService=r(Jo.a,(function(){return new Fl(t,!0)}));var s=new Lo;e.configurationService=r(Li.a,(function(){return s})),e.resourceConfigurationService=r(hn.a,(function(){return new xo(s)})),e.resourcePropertiesService=r(hn.b,(function(){return new ko(s)})),e.contextService=r(ro.a,(function(){return new To})),e.labelService=r(Kl.a,(function(){return new jo})),e.telemetryService=r(ll.a,(function(){return new Io})),e.dialogService=r(Ol,(function(){return new mo})),e.notificationService=r(oo.a,(function(){return new vo})),e.markerService=r(Gl.b,(function(){return new Xl})),e.modeService=r(br.a,(function(e){return new zr})),e.standaloneThemeService=r(Zo.a,(function(){return new Oa})),e.logService=r(pn.a,(function(){return new pn.c})),e.modelService=r(dn.a,(function(t){return new ts(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t))})),e.markerDecorationsService=r(su.a,(function(t){return new fu(e.modelService.get(t),e.markerService.get(t))})),e.codeEditorService=r(ke.a,(function(t){return new zs(e.standaloneThemeService.get(t))})),e.editorProgressService=r(ir.a,(function(){return new fo})),e.storageService=r(Jl.a,(function(){return new Jl.b})),e.editorWorkerService=r(tt.a,(function(t){return new bn(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))}))}(Su=Su||{});var Lu,Du=(Ou(xu,Lu=ot.a),xu.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},xu.prototype.set=function(e,t){this._serviceCollection.set(e,t)},xu.prototype.has=function(e){return this._serviceCollection.has(e)},xu);function xu(e,t){var n=Lu.call(this)||this,i=Su.init(t),o=i[0],r=i[1];function s(e,i){var o=null;return t&&(o=t[e.toString()]),o=o||i(),n._serviceCollection.set(e,o),o}n._serviceCollection=o,n._instantiationService=r;var a=n.get(Li.a),l=n.get(oo.a),u=n.get(ll.a),c=n.get(er.c),d=s(zi.c,(function(){return n._register(new Ya(a))}));s(tr.b,(function(){return new yu(d,a)})),s(ql.a,(function(){return new ql.b(c)}));var h=s(Re.b,(function(){return new bo(n._instantiationService)})),p=s(Qo.a,(function(){return n._register(new wo(d,h,u,l,e))})),f=s(Cl,(function(){return new Vo(e)})),g=s($o.b,(function(){return n._register(new wl(f))}));return s($o.a,(function(){var e=new cl(u,l,g,p,c);return e.configure({blockMouse:!1}),n._register(e)})),s(Xo.a,(function(){return new tu(h)})),s(_r.a,(function(){return new Ao(Su.modelService.get(dn.a))})),n}var Nu=n(707);function ku(e,t,n){var i=new Du(e,t),o=null;i.has(nt.a)||(o=new ho(Su.modelService.get()),i.set(nt.a,o)),i.has(Ae.a)||i.set(Ae.a,new qe(i.get(ke.a),i.get(Re.b)));var r=n(i);return o&&o.setEditor(r),r}function Eu(e,t,n){return Su.modelService.get().createModel(e,t,n)}function Iu(e,t){return"boolean"==typeof e?e:t}function Mu(e,t){return"string"==typeof e?e:t}function Tu(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,i=e;n<i.length;n++)t[i[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 Pu(e,t){for(var n=0;0<=t.indexOf("@")&&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]?Zn(e,"language definition does not contain attribute '"+i+"', used at: "+t):Zn(e,"attribute reference '"+i+"' must be a string, used at: "+t);o=e[i].source}return qn(o)?"":"(?:"+o+")"}));return new RegExp(t,e.ignoreCase?"i":"")}function Ru(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,l="~",u=r;if(r&&0!==r.length?/^\w*$/.test(u)?l="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=s[1],u=s[2]):(l="!=",u=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(u))if("@"===l||"!@"===l){var c=e[u];if(!c)throw Zn(e,"the @ match target '"+u+"' is not defined, in rule: "+t);if(!function(e,t){if(t&&Array.isArray(t)){for(var n=0,i=t;n<i.length;n++)if(!e(i[n]))return;return 1}}((function(e){return"string"==typeof e}),c))throw Zn(e,"the @ match target '"+u+"' must be an array of strings, in rule: "+t);var d=Tu(c,e.ignoreCase);a=function(e){return"@"===l?d(e):!d(e)}}else if("~"===l||"!~"===l)if(u.indexOf("$")<0){var h=Pu(e,"^"+u+"$");a=function(e){return"~"===l?h.test(e):!h.test(e)}}else a=function(t,n,i,o){return Pu(e,"^"+Xn(e,u,n,i,o)+"$").test(t)};else if(u.indexOf("$")<0){var p=Gn(e,u);a=function(e){return"=="===l?e===p:e!==p}}else{var f=Gn(e,u);a=function(t,n,i,o){var r=Xn(e,f,n,i,o);return"=="===l?t===r:t!==r}}else{var g=Tu(u.split("|"),e.ignoreCase);a=function(e){return"~"===l?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(100<=i){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 Au=(Fu.prototype.setRegex=function(e,t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw Zn(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=0<n.length&&"^"===n[0],this.name=this.name+": "+n,this.regex=Pu(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},Fu.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 Zn(t,"a 'token' attribute must be of type string, in rule: "+n);var o={token:i.token};if(0<=i.token.indexOf("$")&&(o.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)o.bracket=1;else{if("@close"!==i.bracket)throw Zn(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 Zn(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&&0<n.length;){if(e.stateNames[n])return 1;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}}(t,Xn(t,r,"",[],""))))throw Zn(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)){for(var s=[],a=0,l=i.length;a<l;a++)s[a]=e(t,n,i[a]);return{group:s}}if(i.cases){var u=[];for(var c in i.cases)if(i.cases.hasOwnProperty(c)){var d=e(t,n,i.cases[c]);"@default"===c||"@"===c||""===c?u.push({test:void 0,value:d,name:c}):"@eos"===c?u.push({test:function(e,t,n,i){return i},value:d,name:c}):u.push(Ru(t,n,c,d))}var h=t.defaultToken;return{test:function(e,t,n,i){for(var o=0,r=u;o<r.length;o++){var s=r[o];if(!s.test||s.test(e,t,n,i))return s.value}return h}}}throw Zn(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)},Fu);function Fu(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}var ju=(Wu.prototype.getInitialState=function(){return this._actual.getInitialState()},Wu.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},Wu.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new Se.c(n.tokens,n.endState)},Wu);function Wu(e){this._actual=e}var Vu=(Bu.prototype.getInitialState=function(){return this._actual.getInitialState()},Bu.prototype._toClassicTokens=function(e,t,n){for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],l=a.startIndex;0===r?l=0:l<o&&(l=o),i[r]=new Se.a(l+n,a.scopes,t),o=l}return i},Bu.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 Se.b(r,i)},Bu.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,i=this._standaloneThemeService.getTheme().tokenTheme,o=[],r=0,s=0,a=0,l=e.length;a<l;a++){var u=e[a],c=i.match(n,u.scopes);if(!(0<r&&o[r-1]===c)){var d=u.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},Bu.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 Se.c(r,i)},Bu);function Bu(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}function Hu(e){return e&&"function"==typeof e.then}n.d(t,"CancellationTokenSource",(function(){return Ku})),n.d(t,"Emitter",(function(){return qu})),n.d(t,"KeyCode",(function(){return Gu})),n.d(t,"KeyMod",(function(){return Yu})),n.d(t,"Position",(function(){return Zu})),n.d(t,"Range",(function(){return Xu})),n.d(t,"Selection",(function(){return $u})),n.d(t,"SelectionDirection",(function(){return Ju})),n.d(t,"MarkerSeverity",(function(){return Qu})),n.d(t,"MarkerTag",(function(){return ec})),n.d(t,"Uri",(function(){return tc})),n.d(t,"Token",(function(){return nc})),n.d(t,"editor",(function(){return ic})),n.d(t,"languages",(function(){return oc}));var zu=self;ge.e.wrappingIndent.defaultValue=0,ge.e.glyphMargin.defaultValue=!1,ge.e.autoIndent.defaultValue=3,ge.e.overviewRulerLanes.defaultValue=2;var Uu=De();Uu.editor={create:function(e,t,n){return ku(e,n||{},(function(n){return new pr(e,t,n,n.get(Jo.a),n.get(ke.a),n.get(Re.b),n.get(zi.c),n.get(Qo.a),n.get($o.b),n.get(Zo.a),n.get(oo.a),n.get(Li.a),n.get(tr.b))}))},onDidCreateEditor:function(e){return Su.codeEditorService.get().onCodeEditorAdd((function(t){e(t)}))},createDiffEditor:function(e,t,n){return ku(e,n||{},(function(n){return new mr(e,t,n,n.get(Jo.a),n.get(zi.c),n.get(Qo.a),n.get($o.b),n.get(tt.a),n.get(ke.a),n.get(Zo.a),n.get(oo.a),n.get(Li.a),n.get($o.a),n.get(ir.a),null)}))},createDiffNavigator:function(e,t){return new Ze.a(e,t)},createModel:function(e,t,n){if(e=e||"",t)return Eu(e,Su.modeService.get().create(t),n);var i=e.indexOf("\n"),o=e;return-1!==i&&(o=e.substring(0,i)),Eu(e,Su.modeService.get().createByFilepathOrFirstLine(n||null,o),n)},setModelLanguage:function(e,t){Su.modelService.get().setMode(e,Su.modeService.get().create(t))},setModelMarkers:function(e,t,n){e&&Su.markerService.get().changeOne(t,e.uri,n)},getModelMarkers:function(e){return Su.markerService.get().read(e)},getModels:function(){return Su.modelService.get().getModels()},getModel:function(e){return Su.modelService.get().getModel(e)},onDidCreateModel:function(e){return Su.modelService.get().onModelAdded(e)},onWillDisposeModel:function(e){return Su.modelService.get().onModelRemoved(e)},onDidChangeModelLanguage:function(e){return Su.modelService.get().onModelModeChanged((function(t){e({model:t.model,oldLanguage:t.oldModeId})}))},createWebWorker:function(e){return t=Su.modelService.get(),new jn(t,e);var t},colorizeElement:function(e,t){return gi.colorizeElement(Su.standaloneThemeService.get(),Su.modeService.get(),e,t)},colorize:function(e,t,n){return gi.colorize(Su.modeService.get(),e,t,n)},colorizeModelLine:function(e,t,n){return void 0===n&&(n=4),gi.colorizeModelLine(e,t,n)},tokenize:function(e,t){Su.modeService.get().triggerMode(t);for(var n,i=(n=t,Qe.B.get(n)||{getInitialState:function(){return et.c},tokenize:function(e,t,i){return Object(et.d)(n,e,t,i)}}),o=e.split(/\r\n|\r|\n/),r=[],s=i.getInitialState(),a=0,l=o.length;a<l;a++){var u=o[a],c=i.tokenize(u,s,0);r[a]=c.tokens,s=c.endState}return r},defineTheme:function(e,t){Su.standaloneThemeService.get().defineTheme(e,t)},setTheme:function(e){Su.standaloneThemeService.get().setTheme(e)},remeasureFonts:function(){Object(Nu.b)()},AccessibilitySupport:i,ContentWidgetPositionPreference:p,CursorChangeReason:g,DefaultEndOfLine:v,EditorAutoIndentStrategy:C,EditorOption:S,EndOfLinePreference:L,EndOfLineSequence:x,MinimapPosition:F,MouseTargetType:W,OverlayWidgetPositionPreference:B,OverviewRulerLane:z,RenderLineNumbersType:K,RenderMinimap:G,ScrollbarVisibility:$,ScrollType:Z,TextEditorCursorBlinkingStyle:ae,TextEditorCursorStyle:ue,TrackedRangeStickiness:de,WrappingIndent:pe,ConfigurationChangedEvent:ge.a,BareFontInfo:Xe.a,FontInfo:Xe.b,TextModelResolvedOptions:Je.e,FindMatch:Je.b,EditorType:$e.a,EditorOptions:ge.e},Uu.languages={register:function(e){Tr.a.registerLanguage(e)},getLanguages:function(){var e=[];return e.concat(Tr.a.getLanguages())},onLanguage:function(e,t){var n=Su.modeService.get().onDidCreateMode((function(i){i.getId()===e&&(n.dispose(),t())}));return n},getEncodedLanguageId:function(e){var t=Su.modeService.get().getLanguageIdentifier(e);return t?t.id:0},setLanguageConfiguration:function(e,t){var n=Su.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return yt.a.register(n,t)},setTokensProvider:function(e,t){var n=Su.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);function i(e){return"tokenizeEncoded"in e?new ju(e):new Vu(Su.standaloneThemeService.get(),n,e)}return Hu(t)?Qe.B.registerPromise(e,t.then((function(e){return i(e)}))):Qe.B.register(e,i(t))},setMonarchTokensProvider:function(e,t){function n(t){return n=Su.modeService.get(),i=Su.standaloneThemeService.get(),r=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=Iu(t.ignoreCase,!1),n.tokenPostfix=Mu(t.tokenPostfix,"."+n.languageId),n.defaultToken=Mu(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function o(e,r,s){for(var a=0,l=s;a<l.length;a++){var u=l[a],c=u.include;if(c){if("string"!=typeof c)throw Zn(n,"an 'include' attribute must be a string at: "+e);if("@"===c[0]&&(c=c.substr(1)),!t.tokenizer[c])throw Zn(n,"include target '"+c+"' is not defined at: "+e);o(e+"."+c,r,t.tokenizer[c])}else{var d=new Au(e);if(Array.isArray(u)&&1<=u.length&&u.length<=3)if(d.setRegex(i,u[0]),3<=u.length)if("string"==typeof u[1])d.setAction(i,{token:u[1],next:u[2]});else{if("object"!=typeof u[1])throw Zn(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 h=u[1];h.next=u[2],d.setAction(i,h)}else d.setAction(i,u[1]);else{if(!u.regex)throw Zn(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&&(d.name=u.name),u.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Iu(u.matchOnlyAtLineStart,!1)),d.setRegex(i,u.regex),d.setAction(i,u.action)}r.push(d)}}}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 Zn(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 Zn(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"}];for(var a=[],l=0,u=t.brackets;l<u.length;l++){var c=u[l];if(c&&Array.isArray(c)&&3===c.length&&(c={token:c[2],open:c[0],close:c[1]}),c.open===c.close)throw Zn(n,"open and close brackets in a 'brackets' attribute must be different: "+c.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof c.open||"string"!=typeof c.token||"string"!=typeof c.close)throw Zn(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:c.token+n.tokenPostfix,open:Gn(n,c.open),close:Gn(n,c.close)})}return n.brackets=a,n.noThrow=!0,n}(o=e,t),new hi(n,i,o,r);var n,i,o,r}return Hu(t)?Qe.B.registerPromise(e,t.then((function(e){return n(e)}))):Qe.B.register(e,n(t))},registerReferenceProvider:function(e,t){return Qe.u.register(e,t)},registerRenameProvider:function(e,t){return Qe.v.register(e,t)},registerCompletionItemProvider:function(e,t){return Qe.d.register(e,t)},registerSignatureHelpProvider:function(e,t){return Qe.x.register(e,t)},registerHoverProvider:function(e,t){return Qe.p.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 Ce.a(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new Ce.a(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return Qe.m.register(e,t)},registerDocumentHighlightProvider:function(e,t){return Qe.i.register(e,t)},registerDefinitionProvider:function(e,t){return Qe.f.register(e,t)},registerImplementationProvider:function(e,t){return Qe.q.register(e,t)},registerTypeDefinitionProvider:function(e,t){return Qe.C.register(e,t)},registerCodeLensProvider:function(e,t){return Qe.b.register(e,t)},registerCodeActionProvider:function(e,t){return Qe.a.register(e,{provideCodeActions:function(e,n,i,o){var r=Su.markerService.get().read({resource:e.uri}).filter((function(e){return Ce.a.areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:r,only:i.only},o)}})},registerDocumentFormattingEditProvider:function(e,t){return Qe.g.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return Qe.j.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return Qe.t.register(e,t)},registerLinkProvider:function(e,t){return Qe.s.register(e,t)},registerColorProvider:function(e,t){return Qe.c.register(e,t)},registerFoldingRangeProvider:function(e,t){return Qe.o.register(e,t)},registerDeclarationProvider:function(e,t){return Qe.e.register(e,t)},registerSelectionRangeProvider:function(e,t){return Qe.w.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return Qe.l.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return Qe.k.register(e,t)},DocumentHighlightKind:b,CompletionItemKind:a,CompletionItemTag:u,CompletionItemInsertTextRule:r,SymbolKind:ie,SymbolTag:re,IndentAction:k,CompletionTriggerKind:d,SignatureHelpTriggerKind:te,FoldingRangeKind:Qe.n};var Ku=Uu.CancellationTokenSource,qu=Uu.Emitter,Gu=Uu.KeyCode,Yu=Uu.KeyMod,Zu=Uu.Position,Xu=Uu.Range,$u=Uu.Selection,Ju=Uu.SelectionDirection,Qu=Uu.MarkerSeverity,ec=Uu.MarkerTag,tc=Uu.Uri,nc=Uu.Token,ic=Uu.editor,oc=Uu.languages;zu.monaco=Uu,void 0!==zu.require&&"function"==typeof zu.require.config&&zu.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"]})},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(785)),o=a(n(1)),r=a(n(0)),s=n(1150);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=d(e).call(this,t),n=!i||"object"!==l(i)&&"function"!=typeof i?h(this):i,f(h(n),"assignRef",(function(e){n.containerElement=e})),n.containerElement=void 0,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(e,r.default.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,o=t.language,r=t.theme,s=t.height,a=t.options,l=t.width,u=this.editor,c=u.getModel();null!=this.props.value&&this.props.value!==c.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.pushUndoStop(),c.pushEditOperations([],[{range:c.getFullModelRange(),text:n}]),this.editor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==o&&i.editor.setModelLanguage(c,o),e.theme!==r&&i.editor.setTheme(r),!u||l===e.width&&s===e.height||u.layout(),e.options!==a&&u.updateOptions(a)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel();e&&e.dispose()}this._subscription&&this._subscription.dispose()}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.language,o=t.theme,r=t.options,s=t.overrideServices;this.containerElement&&(Object.assign(r,this.editorWillMount()),this.editor=i.editor.create(this.containerElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:e,language:n},r,{},o?{theme:o}:{}),s),this.editorDidMount(this.editor))}},{key:"editorWillMount",value:function(){return(0,this.props.editorWillMount)(i)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,i),this._subscription=e.onDidChangeModelContent((function(n){t.__prevent_trigger_change_event||t.props.onChange(e.getValue(),n)}))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,i={width:(0,s.processSize)(t),height:(0,s.processSize)(n)};return r.default.createElement("div",{ref:this.assignRef,style:i,className:"react-monaco-editor-container"})}}])&&c(t.prototype,n),e}();g.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),value:o.default.string,defaultValue:o.default.string,language:o.default.string,theme:o.default.string,options:o.default.object,overrideServices:o.default.object,editorDidMount:o.default.func,editorWillMount:o.default.func,onChange:o.default.func},g.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:s.noop,editorWillMount:s.noop,onChange:s.noop};var m=g;t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(785)),o=a(n(1)),r=a(n(0)),s=n(1150);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(){function e(t){var n,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,i=d(e).call(this,t),n=!i||"object"!==l(i)&&"function"!=typeof i?h(this):i,f(h(n),"assignRef",(function(e){n.containerElement=e})),n.containerElement=void 0,n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(e,r.default.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.language,o=t.theme,r=t.height,s=t.options,a=t.width,l=this.editor.getModel(),u=l.original,c=l.modified;this.props.original!==u.getValue()&&u.setValue(this.props.original),null!=this.props.value&&this.props.value!==c.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.modifiedEditor.pushUndoStop(),c.pushEditOperations([],[{range:c.getFullModelRange(),text:this.props.value}]),this.editor.modifiedEditor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==n&&(i.editor.setModelLanguage(u,n),i.editor.setModelLanguage(c,n)),e.theme!==o&&i.editor.setTheme(o),!this.editor||a===e.width&&r===e.height||this.editor.layout(),e.options!==s&&this.editor.updateOptions(s)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"editorWillMount",value:function(){return(0,this.props.editorWillMount)(i)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,i);var n=e.getModel().modified;this._subscription=n.onDidChangeContent((function(e){t.__prevent_trigger_change_event||t.props.onChange(n.getValue(),e)}))}},{key:"initModels",value:function(e,t){var n=this.props.language,o=i.editor.createModel(t,n),r=i.editor.createModel(e,n);this.editor.setModel({original:o,modified:r})}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.original,o=t.theme,r=t.options,s=t.overrideServices;this.containerElement&&(this.editorWillMount(),this.editor=i.editor.createDiffEditor(this.containerElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},o?{theme:o}:{}),s),this.initModels(e,n),this.editorDidMount(this.editor))}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel(),t=e.original,n=e.modified;t&&t.dispose(),n&&n.dispose()}this._subscription&&this._subscription.dispose()}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,i={width:(0,s.processSize)(t),height:(0,s.processSize)(n)};return r.default.createElement("div",{ref:this.assignRef,style:i,className:"react-monaco-editor-container"})}}])&&c(t.prototype,n),e}();g.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),original:o.default.string,value:o.default.string,defaultValue:o.default.string,language:o.default.string,theme:o.default.string,options:o.default.object,overrideServices:o.default.object,editorDidMount:o.default.func,editorWillMount:o.default.func,onChange:o.default.func},g.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:s.noop,editorWillMount:s.noop,onChange:s.noop};var m=g;t.default=m}])]); |