/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["exports","require","vs/base/common/platform","vs/base/common/errors","vs/base/common/event","vs/base/browser/browser","vs/base/common/lifecycle","vs/base/common/functional","vs/base/browser/mouseEvent","vs/base/common/linkedList","vs/base/browser/iframe","vs/base/common/iterator","vs/base/browser/event","vs/base/common/cancellation","vs/base/common/async","vs/base/common/keyCodes","vs/base/browser/keyboardEvent","vs/base/common/arrays","vs/base/browser/dom","vs/base/common/process","vs/base/common/path","vs/base/common/strings","vs/base/common/uri","vs/base/common/amd","vs/base/parts/contextmenu/common/contextmenu","vs/base/parts/contextmenu/electron-browser/contextmenu","electron","vs/css!vs/code/electron-browser/processExplorer/media/processExplorer","vs/platform/product/node/product","vs/platform/diagnostics/common/diagnosticsService","vs/css!vs/code/electron-browser/processExplorer/processExplorerMain","vs/code/electron-browser/processExplorer/processExplorerMain","os","vs/nls!vs/code/electron-browser/processExplorer/processExplorerMain"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[10],t([1,0]),function(e,t){"use strict";function n(e){if(!e.parent||e.parent===e)return null;try{let 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 r(e,t){let n,r=e.document.getElementsByTagName("iframe");for(let e=0,i=r.length;e<i;e++)if((n=r[e]).contentWindow===t)return n;return null}Object.defineProperty(t,"__esModule",{value:!0});let i=!1,s=null;class o{static getSameOriginWindowChain(){if(!s){s=[];let e,t=window;do{(e=n(t))?s.push({window:t,iframeElement:r(e,t)}):s.push({window:t,iframeElement:null}),t=e}while(t)}return s.slice(0)}static hasDifferentOriginAncestor(){return s||this.getSameOriginWindowChain(),i}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0,i=this.getSameOriginWindowChain();for(const e of i){if(e.window===t)break;if(!e.iframeElement)break
;let i=e.iframeElement.getBoundingClientRect();n+=i.top,r+=i.left}return{top:n,left:r}}}t.IframeUtils=o}),define(e[3],t([1,0]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===i&&e.message===i}Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=r,t.errorHandler=new r,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=function(e){
n(e)||t.errorHandler.onUnexpectedError(e)},t.onUnexpectedExternalError=function(e){n(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e};const i="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){const e=new Error(i);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")},t.readonly=function(e){return e?new Error(`readonly property '${e} cannot be changed'`):new Error("readonly property cannot be changed")},t.disposed=function(e){const t=new Error(`${e} has been disposed`);return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}});var n=this&&this.__awaiter||function(e,t,n,r){
return new(n||(n=Promise))(function(i,s){function o(e){try{a(r.next(e))}catch(e){s(e)}}function l(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,l)}a((r=r.apply(e,t||[])).next())})};define(e[17],t([1,0,3]),function(e,t,r){"use strict";function i(e,t){let n=0,r=e.length;if(0===r)return 0;for(;n<r;){const i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function s(e,t){return o(e,t,0,e.length-1,[]),e}function o(e,t,n,r,i){if(r<=n)return;const s=n+(r-n)/2|0;o(e,t,n,s,i),o(e,t,s+1,r,i),t(e[s],e[s+1])<=0||function(e,t,n,r,i,s){let o=n,l=r+1;for(let t=n;t<=i;t++)s[t]=e[t];for(let a=n;a<=i;a++)o>r?e[a]=s[l++]:l>i?e[a]=s[o++]:t(s[l],s[o])<0?e[a]=s[l++]:e[a]=s[o++]}(e,t,n,s,r,i)}function l(e,t,n){function r(e,t,n){if(0===t&&0===n.length)return;const r=i[i.length-1];r&&r.start+r.deleteCount===e?(r.deleteCount+=t,r.toInsert.push(...n)):i.push({start:e,deleteCount:t,toInsert:n})}const i=[];let s=0,o=0;for(;;){if(s===e.length){r(s,0,t.slice(o));break}
if(o===t.length){r(s,e.length-s,[]);break}const i=e[s],l=t[o],a=n(i,l);0===a?(s+=1,o+=1):a<0?(r(s,1,[]),s+=1):a>0&&(r(s,0,[l]),o+=1)}return i}function a(e,t,n,r,s){for(const o=n.length;r<s;r++){const s=e[r];if(t(s,n[o-1])<0){n.pop();const e=i(n,e=>t(s,e)<0);n.splice(e,0,s)}}}function c(e,t){for(let n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t=0){return e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},t.binarySearch=function(e,t,n){let r=0,i=e.length-1;for(;r<=i;){const s=(r+i)/2|0,o=n(e[s],t);if(o<0)r=s+1;else{if(!(o>0))return s;i=s-1}}return-(r+1)},t.findFirstInSorted=i,t.mergeSort=s,t.groupBy=function(e,t){const n=[];let r=void 0
;for(const i of s(e.slice(0),t))r&&0===t(r[0],i)?r.push(i):(r=[i],n.push(r));return n},t.sortedDiff=l,t.delta=function(e,t,n){const r=l(e,t,n),i=[],s=[];for(const t of r)i.push(...e.slice(t.start,t.start+t.deleteCount)),s.push(...t.toInsert);return{removed:i,added:s}},t.top=function(e,t,n){if(0===n)return[];const r=e.slice(0,n).sort(t);return a(e,t,r,n,e.length),r},t.topAsync=function(e,t,i,s,o){return 0===i?Promise.resolve([]):new Promise((l,c)=>{(()=>n(this,void 0,void 0,function*(){const n=e.length,l=e.slice(0,i).sort(t);for(let c=i,u=Math.min(i+s,n);c<n;c=u,u=Math.min(u+s,n)){if(c>i&&(yield new Promise(e=>setTimeout(e))),o&&o.isCancellationRequested)throw r.canceled();a(e,t,l,c,u)}return l}))().then(l,c)})},t.coalesce=function(e){return e?e.filter(e=>!!e):e},t.coalesceInPlace=function(e){if(!e)return;let t=0;for(let n=0;n<e.length;n++)e[n]&&(e[t]=e[n],t+=1);e.length=t},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},
t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.distinct=function(e,t){if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.distinctES6=function(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))},t.uniqueFilter=function(e){const t=Object.create(null);return n=>{const r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.lastIndex=function(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1},t.firstIndex=c,t.first=function(e,t,n){const r=c(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n=((e,t)=>e===t)){let r=0;for(let i=0,s=Math.min(e.length,t.length);i<s&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){return[].concat(...e)},t.range=function(e,t){let n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);const r=[];if(n<=t)for(let e=n;e<t;e++)r.push(e);else for(let e=n;e>t;e--)r.push(e);return r},t.fill=function(e,t,n=[]){for(let r=0;r<e;r++)n[r]=t;return n},
t.index=function(e,t,n=(e=>e)){return e.reduce((e,r)=>{const i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){const r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)},t.shuffle=function(e,t){let n;if("number"==typeof t){let e=t;n=(()=>{const t=179426549*Math.sin(e++);return t-Math.floor(t)})}else n=Math.random;for(let t=e.length-1;t>0;t-=1){const r=Math.floor(n()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}},t.pushToStart=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},t.pushToEnd=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))},t.find=function(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r,n,e))return r}},t.mapArrayOrNot=function(e,t){return Array.isArray(e)?e.map(t):t(e)},t.asArray=function(e){return Array.isArray(e)?e:[e]}}),define(e[7],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this
;let n,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}}),define(e[11],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0};var n;!function(e){function n(e,t){for(let n=e.next();!n.done;n=e.next())t(n.value)}const r={next:()=>t.FIN};e.empty=function(){return r},e.fromArray=function(e,n=0,r=e.length){return{next:()=>n>=r?t.FIN:{done:!1,value:e[n++]}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,n){return{next(){const r=e.next();return r.done?t.FIN:{done:!1,value:n(r.value)}}}},e.filter=function(e,n){return{next(){for(;;){const r=e.next();if(r.done)return t.FIN;if(n(r.value))return{done:!1,value:r.value}}}}},e.forEach=n,e.collect=function(e){const t=[];return n(e,e=>t.push(e)),t}}(n=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?n.fromArray(e):e};class r{constructor(e,t=0,n=e.length,r=t-1){this.items=e,this.start=t,this.end=n,this.index=r}first(){
return this.index=this.start,this.current()}next(){return this.index=Math.min(this.index+1,this.end),this.current()}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}}t.ArrayIterator=r;class i extends r{constructor(e,t=0,n=e.length,r=t-1){super(e,t,n,r)}current(){return super.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}parent(){return null}}t.ArrayNavigator=i;class s{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=s;class o extends s{constructor(e,t){super(e,t),this.navigator=e}current(){return this.fn(this.navigator.current())}previous(){return this.fn(this.navigator.previous())}parent(){return this.fn(this.navigator.parent())}first(){return this.fn(this.navigator.first())}last(){return this.fn(this.navigator.last())}next(){return this.fn(this.navigator.next())}}
t.MappedNavigator=o}),define(e[15],t([1,0,3]),function(e,t,n){"use strict";function r(e,t){const n=!!(2048&e),r=!!(256&e);return new c(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",
e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",
e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",
e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(t.KeyCode||(t.KeyCode={}));class i{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const s=new i,o=new i,l=new i;!function(){function e(e,t,n=t,r=n){s.define(e,t),o.define(e,n),l.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),
e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),
e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}();!function(e){e.toString=function(e){return s.keyCodeToStr(e)},e.fromString=function(e){return s.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||l.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={}));var a;!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl",e[e.KeyCode=255]="KeyCode"}(a||(a={}));!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl"}(t.KeyMod||(t.KeyMod={})),t.KeyChord=function(e,t){return(e|(65535&t)<<16>>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;const n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new u(0!==i?[r(n,t),r(i,t)]:[r(n,t)])},t.createSimpleKeybinding=r;class c{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}
equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}getHashCode(){return`${this.ctrlKey?"1":"0"}${this.shiftKey?"1":"0"}${this.altKey?"1":"0"}${this.metaKey?"1":"0"}${this.keyCode}`}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new u([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}t.SimpleKeybinding=c;class u{constructor(e){if(0===e.length)throw n.illegalArgument("parts");this.parts=e}getHashCode(){let e="";for(let t=0,n=this.parts.length;t<n;t++)0!==t&&(e+=";"),e+=this.parts[t].getHashCode();return e}equals(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(let t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0}}t.ChordKeybinding=u;class h{
constructor(e,t,n,r,i,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=s}}t.ResolvedKeybindingPart=h;class d{}t.ResolvedKeybinding=d}),define(e[6],t([1,0,7]),function(e,t,n){"use strict";function r(e,...t){if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return r(e),r(t),[];if(e)return e.dispose(),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=r,t.combinedDisposable=function(e){return{dispose:()=>r(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class i{constructor(){this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}get toDispose(){return this._toDispose}dispose(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=r(this._toDispose)}_register(e){return this._lifecycle_disposable_isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.push(e),e}}
i.None=Object.freeze({dispose(){}}),t.Disposable=i;class s{constructor(){this.references=Object.create(null)}acquire(e){let t=this.references[e];t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});const{object:r}=t,i=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:r,dispose:i}}}t.ReferenceCollection=s;class o{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=o}),define(e[9],t([1,0,11]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}r.Undefined=new r(void 0);class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e)
;if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}iterator(){let e,t=this._first;return{next:()=>t===r.Undefined?n.FIN:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}toArray(){const e=[];for(let t=this._first;t!==r.Undefined;t=t.next)e.push(t.element)
;return e}}t.LinkedList=i}),define(e[4],t([1,0,3,7,6,9]),function(e,t,r,i,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l;!function(e){function t(e){return(t,n=null,r)=>{let i,s=!1;return i=e(e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)},null,r),s&&i.dispose(),i}}function n(e,t){return l((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function r(e,t){return l((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function i(e,t){return l((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i))}function o(e,t,r){let i=r;return n(e,e=>i=t(i,e))}function l(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function a(e){let t,n=!0;return i(e,e=>{const r=n||e!==t;return n=!1,t=e,r})}const c={dispose(){}};e.None=function(){return c},e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>s.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=l,
e.debounce=function(e,t,n=100,r=!1,i){let s,o=void 0,l=void 0,a=0;const c=new u({leakWarningThreshold:i,onFirstListenerAdd(){s=e(e=>{a++,o=t(o,e),r&&!l&&c.fire(o),clearTimeout(l),l=setTimeout(()=>{const e=o;o=void 0,l=void 0,(!r||a>1)&&c.fire(e),a=0},n)})},onLastListenerRemove(){s.dispose()}});return c.event},e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=a,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):o.fire(e)});const s=()=>{r&&r.forEach(e=>o.fire(e)),r=null},o=new u({onFirstListenerAdd(){i||(i=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(s):s())},onLastListenerRemove(){i&&i.dispose(),i=null}});return o.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(r(this.event,e))}filter(e){return new h(i(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(a(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}
e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromPromise=function(e){const t=new u;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(l=t.Event||(t.Event={}));let a=-1;t.setGlobalLeakWarningThreshold=function(e){const t=a;return a=e,{dispose(){a=t}}};class c{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=a;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(n)||0;if(this._stacks.set(n,r+1),this._warnCountdown-=1,this._warnCountdown<=0){
this._warnCountdown=.5*t;let n,r=0;this._stacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${r}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=a>0?new c(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=((e,t,n)=>{this._listeners||(this._listeners=new o.LinkedList);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const i=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);let s;this._leakageMon&&(s=this._leakageMon.check(this._listeners.size));let l;return l={dispose:()=>{if(s&&s(),
l.dispose=u._noop,!this._disposed&&(i(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(l),l})),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new o.LinkedList);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}u._noop=function(){},t.Emitter=u;class h extends u{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.LinkedList,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){
const e=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}t.PauseableEmitter=h;class d extends u{fireAsync(e){return n(this,void 0,void 0,function*(){if(this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next()){const t=[];this._asyncDeliveryQueue.push([n.value,e(t,"function"==typeof n.value?n.value:n.value[0]),t])}for(;this._asyncDeliveryQueue.length>0;){const[e,t,n]=this._asyncDeliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e);continue}Object.freeze(n),yield Promise.all(n)}}})}}t.AsyncEmitter=d;class f{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onFirstListenerAdd:()=>this.onFirstListenerAdd(),
onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return s.toDisposable(i.once(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}t.EventMultiplexer=f;class m{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(e=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(n,e)):t.call(n,e)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}t.EventBufferer=m;class p{constructor(){this.listening=!1,this.inputEvent=l.None,
this.inputEventListener=s.Disposable.None,this.emitter=new u({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}t.Relay=p}),define(e[5],t([1,0,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1,this._onDidChangeFullscreen=new n.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){
return Date.now()-this._lastZoomLevelChangeTime}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))}getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}}r.INSTANCE=new r,t.setZoomLevel=function(e,t){r.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return r.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return r.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){
return r.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){r.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return r.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){r.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return r.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=r.INSTANCE.onDidChangeFullscreen;const i=navigator.userAgent;t.isIE=i.indexOf("Trident")>=0,t.isEdge=i.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=i.indexOf("Opera")>=0,t.isFirefox=i.indexOf("Firefox")>=0,t.isWebKit=i.indexOf("AppleWebKit")>=0,t.isChrome=i.indexOf("Chrome")>=0,t.isSafari=!t.isChrome&&i.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=i.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&i.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){let e=i.indexOf("Edge/"),t=parseInt(i.substring(e+5,i.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}}),define(e[12],t([1,0,4]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=((e,t,r)=>{const i=e=>s.fire(e),s=new n.Emitter({onFirstListenerAdd:()=>{e.addEventListener(t,i,r)},onLastListenerRemove:()=>{e.removeEventListener(t,i,r)}});return s.event}),t.stop=function(e){return n.Event.map(e,e=>(e.preventDefault(),e.stopPropagation(),e))}}),define(e[13],t([1,0,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var i;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof s||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(i=t.CancellationToken||(t.CancellationToken={}));class s{constructor(){this._isCancelled=!1,
this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class o{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled}dispose(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}}t.CancellationTokenSource=o}),define(e[14],t([1,0,13,3,4,6]),function(e,t,r,i,s,o){"use strict";function l(e){return e&&"function"==typeof e.then}function a(e){
const t=new r.CancellationTokenSource,n=e(t.token),s=new Promise((e,r)=>{t.token.onCancellationRequested(()=>{r(i.canceled())}),Promise.resolve(n).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),r(e)})});return new class{cancel(){t.cancel()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function c(e,t){return t?new Promise((n,r)=>{const s=setTimeout(n,e);t.onCancellationRequested(()=>{clearTimeout(s),r(i.canceled())})}):a(t=>c(e,t))}function u(e){function t(s){void 0!==s&&null!==s&&n.push(s);const o=r<i?e[r++]():null;return o?o.then(t):Promise.resolve(n)}const n=[];let r=0;const i=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=l,t.createCancelablePromise=a,t.asPromise=function(e){return new Promise((t,n)=>{const r=e();l(r)?r.then(t,n):t(r)})};class h{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,
!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}t.Throttler=h;class d{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=d;class f{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,
this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(i.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=f;class m{constructor(e){this.delayer=new f(e),this.throttler=new h}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}t.ThrottledDelayer=m;class p{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}t.Barrier=p,t.timeout=c,t.disposableTimeout=function(e,t=0){const n=setTimeout(e,t);return o.toDisposable(()=>clearTimeout(n))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=u,
t.first=function(e,t=(e=>!!e),n=null){let r=0;const i=e.length,s=()=>{if(r>=i)return Promise.resolve(n);const o=e[r++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):s())};return s()};class g{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new s.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=g;class _ extends g{constructor(){super(1)}}t.Queue=_;class C{
constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new _;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=C;class v extends o.Disposable{constructor(e,t){super(),this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}t.TimeoutTimer=v;class E extends o.Disposable{constructor(){super(),this._token=-1}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=E;class y{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,
this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}t.RunOnceScheduler=y;class b extends y{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}}t.RunOnceWorker=b,function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{const n=setTimeout(()=>t(e));let r=!1;return{dispose(){r||(r=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{const n=requestIdleCallback(e,"number"==typeof t?{timeout:t
}:void 0);let r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(n))}}})}();class w{constructor(e){this._didRun=!1,this._executor=(()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}}),this._handle=t.runWhenIdle(()=>this._executor())}dispose(){this._handle.dispose()}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}t.IdleValue=w,t.retry=function(e,t,r){return n(this,void 0,void 0,function*(){let n;for(let i=0;i<r;i++)try{return yield e()}catch(e){n=e,yield c(t)}return Promise.reject(n)})}}),define(e[2],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=!1,r=!1,i=!1,s=!1,o=!1,l=void 0,a="en",c=void 0;const u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){n="win32"===process.platform,r="darwin"===process.platform,i="linux"===process.platform,l="en",
a="en";const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];l=t.locale,a=n||"en",c=t._translationsConfigFile}catch(e){}s=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,r=e.indexOf("Macintosh")>=0,i=e.indexOf("Linux")>=0,o=!0,a=l=navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};let h=0;s&&(r?h=1:n?h=3:i&&(h=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=s,t.isWeb=o,t.platform=h,t.isRootUser=function(){return s&&!n&&0===process.getuid()},t.language=a;!function(e){e.value=function(){return t.language},e.isDefaultVariant=function(){return 2===t.language.length?"en"===t.language:t.language.length>=3&&"e"===t.language[0]&&"n"===t.language[1]&&"-"===t.language[2]},e.isDefault=function(){return"en"===t.language}
}(t.Language||(t.Language={})),t.locale=l,t.translationsConfigFile=c;const d="object"==typeof self?self:"object"==typeof global?global:{};t.globals=d;let f=null;t.setImmediate=function(e){return null===f&&(f=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),f(e)};!function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=r?2:n?1:3}),define(e[16],t([1,0,5,15,2]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let s=new Array(230),o=new Array(112);!function(){function e(e,t){s[e]=t,o[t]=e}for(let e=0;e<o.length;e++)o[e]=-1;e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),
e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),n.isIE?e(91,57):n.isFirefox?(e(59,80),e(107,81),e(109,83),i.isMacintosh&&e(224,57)):n.isWebKit&&(e(91,57),i.isMacintosh?e(93,57):e(92,57))}(),t.getCodeForKeyCode=function(e){return o[e]}
;const l=i.isMacintosh?256:2048,a=i.isMacintosh?2048:256;class c{constructor(e){this._standardKeyboardEventBrand=!0;let 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){let t=String.fromCharCode(e.charCode).toUpperCase();return r.KeyCodeUtils.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()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}
_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=a),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}t.StandardKeyboardEvent=c}),define(e[8],t([1,0,5,10,2]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,
this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=r.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}}t.StandardMouseEvent=s;class o extends s{constructor(e){super(e),this.dataTransfer=e.dataTransfer}}t.DragMouseEvent=o;class l{constructor(e,t=0,r=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t,e){let t=e,r=e;void 0!==t.wheelDeltaY?this.deltaY=t.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS&&(this.deltaY=-r.detail/3),
void 0!==t.wheelDeltaX?n.isSafari&&i.isWindows?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120:void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}}t.StandardWheelEvent=l}),define(e[18],t([1,0,5,12,16,8,14,3,4,6,2,17]),function(e,t,n,r,i,s,o,l,a,c,u,h){"use strict";function d(e,t,n,r){return new x(e,t,n,r)}function f(e){return document.defaultView.getComputedStyle(e,null)}function m(e){let t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;let i=f(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=T.getBorderLeftWidth(e),n+=T.getBorderTopWidth(e),n+=e.offsetTop,
r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function p(e){let t=T.getMarginLeft(e)+T.getMarginRight(e);return e.offsetWidth+t}function g(e){let t=T.getMarginLeft(e)+T.getMarginRight(e);return e.scrollWidth+t}function _(e,t){let n=t.map(t=>Math.max(g(t),p(t))+function(e,t){if(null===e)return 0;let n=m(e),r=m(t);return n.left-r.left}(t,e)||0);return Math.max(...n)}function C(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function v(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}function E(){return N||(N=v()),N}function y(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){let t=function(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}Object.defineProperty(t,"__esModule",{value:!0}),t.clearNode=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},
t.removeNode=function(e){e.parentNode&&e.parentNode.removeChild(e)},t.isInDOM=function(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1};const b=new class{_findClassName(e,t){let n=e.className;if(!n)return void(this._lastStart=-1);t=t.trim();let r=n.length,i=t.length;if(0===i)return void(this._lastStart=-1);if(r<i)return void(this._lastStart=-1);if(n===t)return this._lastStart=0,void(this._lastEnd=r);let s,o=-1;for(;(o=n.indexOf(t,o+1))>=0;){if(s=o+i,(0===o||32===n.charCodeAt(o-1))&&32===n.charCodeAt(s))return this._lastStart=o,void(this._lastEnd=s+1);if(o>0&&32===n.charCodeAt(o-1)&&s===r)return this._lastStart=o-1,void(this._lastEnd=s);if(0===o&&s===r)return this._lastStart=0,void(this._lastEnd=s)}this._lastStart=-1}hasClass(e,t){return this._findClassName(e,t),-1!==this._lastStart}addClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.addClass(e,t)))}addClass(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t}
removeClass(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))}removeClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.removeClass(e,t)))}toggleClass(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)}},w=new class{hasClass(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)}addClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.addClass(e,t)))}addClass(e,t){t&&e.classList&&e.classList.add(t)}removeClass(e,t){t&&e.classList&&e.classList.remove(t)}removeClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.removeClass(e,t)))}toggleClass(e,t,n){e.classList&&e.classList.toggle(t,n)}},A=n.isIE?b:w;t.hasClass=A.hasClass.bind(A),t.addClass=A.addClass.bind(A),t.addClasses=A.addClasses.bind(A),t.removeClass=A.removeClass.bind(A),t.removeClasses=A.removeClasses.bind(A),t.toggleClass=A.toggleClass.bind(A)
;class x{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._useCapture=r||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)}}t.addDisposableListener=d,t.addStandardDisposableListener=function(e,t,n,r){let o=n;return"click"===t||"mousedown"===t?o=function(e){return function(t){return e(new s.StandardMouseEvent(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new i.StandardKeyboardEvent(t))}}(n)),d(e,t,o,r)},t.addDisposableNonBubblingMouseOutListener=function(e,t){return d(e,"mouseout",n=>{let r=n.relatedTarget||n.target;for(;r&&r!==e;)r=r.parentNode;r!==e&&t(n)})};let D=null;class L{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){l.onUnexpectedError(e)}}static sort(e,t){
return t.priority-e.priority}}!function(){let e=[],n=null,r=!1,i=!1;t.scheduleAtNextAnimationFrame=((t,s=0)=>{let o=new L(t,s);return e.push(o),r||(r=!0,function(e){D||(D=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||(e=>setTimeout(()=>e((new Date).getTime()),0))),D.call(self,e)}(()=>{for(r=!1,n=e,e=[],i=!0;n.length>0;)n.sort(L.sort),n.shift().execute();i=!1})),o}),t.runAtThisOrScheduleAtNextAnimationFrame=((e,r)=>{if(i){let t=new L(e,r);return n.push(t),t}return t.scheduleAtNextAnimationFrame(e,r)})}(),t.measure=function(e){return t.scheduleAtNextAnimationFrame(e,1e4)},t.modify=function(e){return t.scheduleAtNextAnimationFrame(e,-1e4)};class P extends c.Disposable{constructor(e,t,n,r=function(e,t){return t},i=16){super();let s=null,l=0,a=this._register(new o.TimeoutTimer),c=()=>{l=(new Date).getTime(),n(s),s=null};this._register(d(e,t,e=>{s=r(s,e);let t=(new Date).getTime()-l;t>=i?(a.cancel(),
c()):a.setIfNotSet(c,i-t)}))}}t.addDisposableThrottledListener=function(e,t,n,r,i){return new P(e,t,n,r,i)},t.getComputedStyle=f,t.getClientArea=function(e){if(e!==document.body)return new S(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new S(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new S(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new S(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};class T{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){let r=f(e),i="0";return r&&(i=r.getPropertyValue?r.getPropertyValue(t):r.getAttribute(n)),T.convertToPixels(e,i)}static getBorderLeftWidth(e){return T.getDimension(e,"border-left-width","borderLeftWidth")}
static getBorderRightWidth(e){return T.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return T.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return T.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return T.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return T.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return T.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return T.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return T.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return T.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return T.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return T.getDimension(e,"margin-bottom","marginBottom")}}class S{constructor(e,t){this.width=e,this.height=t}static equals(e,t){
return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}t.Dimension=S,t.getTopLeftOffset=m,t.size=function(e,t,n){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof n&&(e.style.height=`${n}px`)},t.position=function(e,t,n,r,i,s="absolute"){"number"==typeof t&&(e.style.top=`${t}px`),"number"==typeof n&&(e.style.right=`${n}px`),"number"==typeof r&&(e.style.bottom=`${r}px`),"number"==typeof i&&(e.style.left=`${i}px`),e.style.position=s},t.getDomNodePagePosition=function(e){let n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}},t.StandardWindow=new class{get scrollX(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}},t.getTotalWidth=p,t.getContentWidth=function(e){
let t=T.getBorderLeftWidth(e)+T.getBorderRightWidth(e),n=T.getPaddingLeft(e)+T.getPaddingRight(e);return e.offsetWidth-t-n},t.getTotalScrollWidth=g,t.getContentHeight=function(e){let t=T.getBorderTopWidth(e)+T.getBorderBottomWidth(e),n=T.getPaddingTop(e)+T.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){let t=T.getMarginTop(e)+T.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=_,t.isAncestor=C,t.findParentWithClass=function(e,n,r){for(;e;){if(t.hasClass(e,n))return e;if(r)if("string"==typeof r){if(t.hasClass(e,r))return null}else if(e===r)return null;e=e.parentNode}return null},t.createStyleSheet=v;let N=null;t.createCSSRule=function(e,t,n=E()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t=E()){if(!t)return;let n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[];for(let t=0;t<n.length;t++)-1!==n[t].selectorText.indexOf(e)&&r.push(t)
;for(let e=r.length-1;e>=0;e--)t.sheet.deleteRule(r[e])},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:n.isWebKit?"webkitAnimationEnd":"animationend",
ANIMATION_ITERATION:n.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode};class F{constructor(e){this._onDidFocus=new a.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new a.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];let n=C(document.activeElement,e),i=!1;r.domEvent(e,t.EventType.FOCUS,!0)(()=>{i=!1,n||(n=!0,this._onDidFocus.fire())},null,this.disposables),r.domEvent(e,t.EventType.BLUR,!0)(()=>{n&&(i=!0,window.setTimeout(()=>{i&&(i=!1,n=!1,this._onDidBlur.fire())},0))},null,this.disposables)}dispose(){this.disposables=c.dispose(this.disposables),
this._onDidFocus.dispose(),this._onDidBlur.dispose()}}t.trackFocus=function(e){return new F(e)},t.append=function(e,...t){return t.forEach(t=>e.appendChild(t)),t[t.length-1]},t.prepend=function(e,t){return e.insertBefore(t,e.firstChild),t};const k=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=function(e,t,...n){let r=k.exec(e);if(!r)throw new Error("Bad use of emmet");let i=document.createElement(r[1]||"div");return r[3]&&(i.id=r[3]),r[4]&&(i.className=r[4].replace(/\./g," ").trim()),t=t||{},Object.keys(t).forEach(e=>{const n=t[e];/^on\w+$/.test(e)?i[e]=n:"selected"===e?n&&i.setAttribute(e,"true"):i.setAttribute(e,n)}),h.coalesce(n).forEach(e=>{e instanceof Node?i.appendChild(e):i.appendChild(document.createTextNode(e))}),i},t.join=function(e,t){const n=[];return e.forEach((e,r)=>{r>0&&(t instanceof Node?n.push(t.cloneNode()):n.push(document.createTextNode(t))),n.push(e)}),n},t.show=function(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")},t.hide=function(...e){
for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")},t.removeTabIndexAndUpdateFocus=y,t.getElementsByTagName=function(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)},t.finalHandler=function(e){return t=>{t.preventDefault(),t.stopPropagation(),e(t)}},t.domContentLoaded=function(){return new Promise(e=>{"complete"===document.readyState||document&&null!==document.body?u.setImmediate(e):window.addEventListener("DOMContentLoaded",e,!1)})},t.computeScreenAwareSize=function(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio},t.windowOpenNoOpener=function(e){if(u.isNative||n.isEdgeWebView)window.open(e);else{let t=window.open();t&&(t.opener=null,t.location.href=e)}},t.animate=function(e){const n=()=>{e(),r=t.scheduleAtNextAnimationFrame(n)};let r=t.scheduleAtNextAnimationFrame(n);return c.toDisposable(()=>r.dispose())}}),define(e[19],t([1,0,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;const r="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return n.isWindows?"win32":n.isMacintosh?"darwin":"linux"},nextTick:e=>n.setImmediate(e)}:process;t.cwd=r.cwd,t.env=r.env,t.platform=r.platform,t.nextTick=r.nextTick}),define(e[20],t([1,0,19]),function(e,t,n){"use strict";function r(e,t){if("string"!=typeof e)throw new g(t,"string",e)}function i(e){return e===m||e===p}function s(e){return e===m}function o(e){return e>=c&&e<=h||e>=u&&e<=d}function l(e,t,n,r){let i,s="",o=0,l=-1,a=0;for(let c=0;c<=e.length;++c){if(c<e.length)i=e.charCodeAt(c);else{if(r(i))break;i=m}if(r(i)){if(l===c-1||1===a);else if(l!==c-1&&2===a){if(s.length<2||2!==o||s.charCodeAt(s.length-1)!==f||s.charCodeAt(s.length-2)!==f){if(s.length>2){const e=s.lastIndexOf(n);-1===e?(s="",o=0):o=(s=s.slice(0,e)).length-1-s.lastIndexOf(n),l=c,a=0;continue}if(2===s.length||1===s.length){s="",o=0,l=c,a=0;continue}}t&&(s.length>0?s+=`${n}..`:s="..",o=2)}else s.length>0?s+=n+e.slice(l+1,c):s=e.slice(l+1,c),o=c-l-1;l=c,
a=0}else i===f&&-1!==a?++a:a=-1}return s}function a(e,t){const n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}Object.defineProperty(t,"__esModule",{value:!0});const c=65,u=97,h=90,d=122,f=46,m=47,p=92;class g extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";let i=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${r} of type ${t}`;super(i+=`. Received type ${typeof n}`)}}t.win32={resolve(...e){let t="",s="",a=!1;for(let l=e.length-1;l>=-1;l--){let c;if(l>=0?c=e[l]:t?void 0!==(c=n.env["="+t]||n.cwd())&&c.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(c=t+"\\"):c=n.cwd(),r(c,"path"),0===c.length)continue;const u=c.length;let h=0,d="",f=!1;const m=c.charCodeAt(0);if(u>1)if(i(m))if(f=!0,i(c.charCodeAt(1))){let e=2,t=e;for(;e<u&&!i(c.charCodeAt(e));++e);if(e<u&&e!==t){const n=c.slice(t,e);for(t=e;e<u&&i(c.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!i(c.charCodeAt(e));++e);
e===u?(d="\\\\"+n+"\\"+c.slice(t),h=e):e!==t&&(d="\\\\"+n+"\\"+c.slice(t,e),h=e)}}}else h=1;else o(m)&&58===c.charCodeAt(1)&&(d=c.slice(0,2),h=2,u>2&&i(c.charCodeAt(2))&&(f=!0,h=3));else i(m)&&(h=1,f=!0);if(!(d.length>0&&t.length>0&&d.toLowerCase()!==t.toLowerCase())&&(0===t.length&&d.length>0&&(t=d),a||(s=c.slice(h)+"\\"+s,a=f),t.length>0&&a))break}return s=l(s,!a,"\\",i),t+(a?"\\":"")+s||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let n,s=0,a=!1;const c=e.charCodeAt(0);if(t>1)if(i(c))if(a=!0,i(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==o){const l=e.slice(o,r);for(o=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==o){for(o=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return"\\\\"+l+"\\"+e.slice(o)+"\\";r!==o&&(n="\\\\"+l+"\\"+e.slice(o,r),s=r)}}}else s=1;else o(c)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),s=2,t>2&&i(e.charCodeAt(2))&&(a=!0,s=3));else if(i(c))return"\\";let u;return 0!==(u=s<t?l(e.slice(s),!a,"\\",i):"").length||a||(u="."),
u.length>0&&i(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?a?u.length>0?"\\"+u:"\\":u.length>0?u:"":a?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){r(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return!!i(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&i(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let n,s;for(let t=0;t<e.length;++t){const i=e[t];r(i,"path"),i.length>0&&(void 0===n?n=s=i:n+="\\"+i)}if(void 0===n)return".";let o=!0,l=0;if("string"==typeof s&&i(s.charCodeAt(0))){++l;const e=s.length;e>1&&i(s.charCodeAt(1))&&(++l,e>2&&(i(s.charCodeAt(2))?++l:o=!1))}if(o){for(;l<n.length&&i(n.charCodeAt(l));++l);l>=2&&(n="\\"+n.slice(l))}return t.win32.normalize(n)},relative(e,n){if(r(e,"from"),r(n,"to"),e===n)return"";const i=t.win32.resolve(e),s=t.win32.resolve(n);if(i===s)return"";if(e=i.toLowerCase(),n=s.toLowerCase(),e===n)return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===p;++o);let l=e.length;for(;l-1>o&&e.charCodeAt(l-1)===p;--l);const a=l-o;let c=0
;for(;c<n.length&&n.charCodeAt(c)===p;++c);let u=n.length;for(;u-1>c&&n.charCodeAt(u-1)===p;--u);const h=u-c,d=a<h?a:h;let f=-1,m=0;for(;m<=d;++m){if(m===d){if(h>d){if(n.charCodeAt(c+m)===p)return s.slice(c+m+1);if(2===m)return s.slice(c+m)}a>d&&(e.charCodeAt(o+m)===p?f=m:2===m&&(f=3));break}const t=e.charCodeAt(o+m);if(t!==n.charCodeAt(c+m))break;t===p&&(f=m)}if(m!==d&&-1===f)return s;let g="";for(-1===f&&(f=0),m=o+f+1;m<=l;++m)m!==l&&e.charCodeAt(m)!==p||(0===g.length?g+="..":g+="\\..");return g.length>0?g+s.slice(c+f,u):(c+=f,s.charCodeAt(c)===p&&++c,s.slice(c,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const n=t.win32.resolve(e);if(n.length>=3)if(n.charCodeAt(0)===p){if(n.charCodeAt(1)===p){const e=n.charCodeAt(2);if(63!==e&&e!==f)return"\\\\?\\UNC\\"+n.slice(2)}}else if(o(n.charCodeAt(0))&&58===n.charCodeAt(1)&&n.charCodeAt(2)===p)return"\\\\?\\"+n;return e},dirname(e){r(e,"path");const t=e.length;if(0===t)return".";let n=-1,s=-1,l=!0,a=0;const c=e.charCodeAt(0)
;if(t>1)if(i(c)){if(n=a=1,i(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==s){for(s=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==s){for(s=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return e;r!==s&&(n=a=r+1)}}}}else o(c)&&58===e.charCodeAt(1)&&(n=a=2,t>2&&i(e.charCodeAt(2))&&(n=a=3));else if(i(c))return e;for(let n=t-1;n>=a;--n)if(i(e.charCodeAt(n))){if(!l){s=n;break}}else l=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,s=0,l=-1,a=!0;if(e.length>=2){o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(s=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let r=t.length-1,o=-1;for(n=e.length-1;n>=s;--n){const c=e.charCodeAt(n);if(i(c)){if(!a){s=n+1;break}}else-1===o&&(a=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(l=n):(r=-1,l=o))}return s===l?l=o:-1===l&&(l=e.length),e.slice(s,l)}for(n=e.length-1;n>=s;--n)if(i(e.charCodeAt(n))){if(!a){s=n+1;break}}else-1===l&&(a=!1,l=n+1)
;return-1===l?"":e.slice(s,l)},extname(e){r(e,"path");let t=0,n=-1,s=0,l=-1,a=!0,c=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=s=2);for(let r=e.length-1;r>=t;--r){const t=e.charCodeAt(r);if(i(t)){if(!a){s=r+1;break}}else-1===l&&(a=!1,l=r+1),t===f?-1===n?n=r:1!==c&&(c=1):-1!==n&&(c=-1)}return-1===n||-1===l||0===c||1===c&&n===l-1&&n===s+1?"":e.slice(n,l)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return a("\\",e)},parse(e){r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let s=0,l=e.charCodeAt(0);if(n>1){if(i(l)){if(s=1,i(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!i(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&i(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&!i(e.charCodeAt(t));++t);t===n?s=t:t!==r&&(s=t+1)}}}}else if(o(l)&&58===e.charCodeAt(1)){if(s=2,!(n>2))return t.root=t.dir=e,t;if(i(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;s=3}}}else if(i(l))return t.root=t.dir=e,t
;s>0&&(t.root=e.slice(0,s));let a=-1,c=s,u=-1,h=!0,d=e.length-1,m=0;for(;d>=s;--d)if(l=e.charCodeAt(d),i(l)){if(!h){c=d+1;break}}else-1===u&&(h=!1,u=d+1),l===f?-1===a?a=d:1!==m&&(m=1):-1!==a&&(m=-1);return-1===a||-1===u||0===m||1===m&&a===u-1&&a===c+1?-1!==u&&(t.base=t.name=e.slice(c,u)):(t.name=e.slice(c,a),t.base=e.slice(c,u),t.ext=e.slice(a,u)),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",i=!1;for(let s=e.length-1;s>=-1&&!i;s--){let o;r(o=s>=0?e[s]:n.cwd(),"path"),0!==o.length&&(t=o+"/"+t,i=o.charCodeAt(0)===m)}return t=l(t,!i,"/",s),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m,n=e.charCodeAt(e.length-1)===m;return 0!==(e=l(e,!t,"/",s)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(r(e,"path"),e.length>0&&e.charCodeAt(0)===m),join(...e){if(0===e.length)return".";let n;for(let t=0;t<e.length;++t){const e=arguments[t];r(e,"path"),
e.length>0&&(void 0===n?n=e:n+="/"+e)}return void 0===n?".":t.posix.normalize(n)},relative(e,n){if(r(e,"from"),r(n,"to"),e===n)return"";if(e=t.posix.resolve(e),n=t.posix.resolve(n),e===n)return"";let i=1;for(;i<e.length&&e.charCodeAt(i)===m;++i);const s=e.length,o=s-i;let l=1;for(;l<n.length&&n.charCodeAt(l)===m;++l);const a=n.length-l,c=o<a?o:a;let u=-1,h=0;for(;h<=c;++h){if(h===c){if(a>c){if(n.charCodeAt(l+h)===m)return n.slice(l+h+1);if(0===h)return n.slice(l+h)}else o>c&&(e.charCodeAt(i+h)===m?u=h:0===h&&(u=0));break}const t=e.charCodeAt(i+h);if(t!==n.charCodeAt(l+h))break;t===m&&(u=h)}let d="";for(h=i+u+1;h<=s;++h)h!==s&&e.charCodeAt(h)!==m||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(l+u):(l+=u,n.charCodeAt(l)===m&&++l,n.slice(l))},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===m;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===m){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){
void 0!==t&&r(t,"ext"),r(e,"path");let n,i=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let r=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){const a=e.charCodeAt(n);if(a===m){if(!o){i=n+1;break}}else-1===l&&(o=!1,l=n+1),r>=0&&(a===t.charCodeAt(r)?-1==--r&&(s=n):(r=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===m){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1);return-1===s?"":e.slice(i,s)},extname(e){r(e,"path");let t=-1,n=0,i=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){const l=e.charCodeAt(r);if(l!==m)-1===i&&(s=!1,i=r+1),l===f?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){n=r+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return a("/",e)},parse(e){r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===m;let i;n?(t.root="/",i=1):i=0
;let s=-1,o=0,l=-1,a=!0,c=e.length-1,u=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==m)-1===l&&(a=!1,l=c+1),t===f?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);else if(!a){o=c+1;break}}return-1===s||-1===l||0===u||1===u&&s===l-1&&s===o+1?-1!==l&&(t.base=t.name=0===o&&n?e.slice(1,l):e.slice(o,l)):(0===o&&n?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(o,s),t.base=e.slice(o,l)),t.ext=e.slice(s,l)),o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===n.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===n.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===n.platform?t.win32.join:t.posix.join,t.resolve="win32"===n.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===n.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===n.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===n.platform?t.win32.basename:t.posix.basename,
t.extname="win32"===n.platform?t.win32.extname:t.posix.extname,t.format="win32"===n.platform?t.win32.format:t.posix.format,t.parse="win32"===n.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===n.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===n.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===n.platform?t.win32.delimiter:t.posix.delimiter}),define(e[21],t([1,0]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;const n=t.length,r=e.length;if(0===n||0===r)return e;let i=r,s=-1;for(;;){if(-1===(s=e.lastIndexOf(t,i-1))||s+n!==i)break;if(0===s)return"";i=s}return e.substring(0,i)}function s(e,t){return e<t?-1:e>t?1:0}function o(e){return e>=97&&e<=122}function l(e){return e>=65&&e<=90}function a(e){return o(e)||l(e)}
function c(e,t,n=e.length){if("string"!=typeof e||"string"!=typeof t)return!1;for(let r=0;r<n;r++){const n=e.charCodeAt(r),i=t.charCodeAt(r);if(n!==i)if(a(n)&&a(i)){const e=Math.abs(n-i);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(i).toLowerCase())return!1}return!0}function u(e,t,n,r,i,s){for(;t<n&&i<s;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function h(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n="0"){const r=""+e,i=[r];for(let e=r.length;e<t;e++)i.push(n);return i.reverse().join("")};const f=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(f,function(e,n){const r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})},t.escape=function(e){return e.replace(/[<>&]/g,function(e){
switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t=" "){return i(r(e,t),t)},t.ltrim=r,t.rtrim=i,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){const n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),new RegExp(e,i)},t.regExpLeadsToEndlessLoop=function(e){
return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1},t.getLeadingWhitespace=function(e,t=0,n=e.length){for(let r=t;r<n;r++){const n=e.charCodeAt(r);if(32!==n&&9!==n)return e.substring(t,r)}return e.substring(t,n)},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1},t.compare=s,t.compareIgnoreCase=function(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.charCodeAt(r),i=t.charCodeAt(r);if(n===i)continue;l(n)&&(n+=32),l(i)&&(i+=32);const a=n-i;if(0!==a)return o(n)&&o(i)?a:s(e.toLowerCase(),t.toLowerCase())}
return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=l,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&c(e,t,n)},t.commonPrefixLength=function(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r},t.commonSuffixLength=function(e,t){let n,r=Math.min(e.length,t.length);const i=e.length-1,s=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(s-n))return n;return r},t.overlap=function(e,t){const n=e.length;let r=t.length,i=n-r;if(0===i)return e===t?n:0;for(i<0&&(r+=i,i=0);i<n&&r>0;){if(u(e,i,n,t,0,r))return r;r-=1,i+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343}
;const m=/(?:[\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])/;t.containsRTL=function(e){return m.test(e)};const p=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return p.test(e)};const g=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return g.test(e)},t.containsFullWidthCharacter=function(e){for(let t=0,n=e.length;t<n;t++)if(h(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=h,t.lcut=function(e,n){if(e.length<n)return e;const r=/\b/g
;let i=0;for(;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};const _=/\x1B\x5B[12]?K/g,C=/\x1b\[\d+m/g,v=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(_,"")).replace(C,"")).replace(v,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};{const e=/[\u0300-\u036f]/g;return function(n){return n.normalize("NFD").replace(e,t.empty)}}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n},t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;const n=t.length,r=e.toLowerCase();let i=0,s=-1;for(;i<n;){const e=r.indexOf(t[i],s+1);if(e<0)return!1;s=e,i++}return!0},t.containsUppercaseCharacter=function(e,t=!1){
return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.getNLines=function(e,t=1){if(0===t)return"";let n=-1;do{n=e.indexOf("\n",n+1),t--}while(t>0&&n>=0);return n>=0?e.substr(0,n):e}}),define(e[22],t([1,0,2]),function(e,t,n){"use strict";function r(e,t){let n=void 0,r=-1;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=p[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function i(e){let t
;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){const n=t?function(e){let t=void 0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=p[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:r;let i="",{scheme:s,authority:o,path:l,query:a,fragment:c}=e;if(s&&(i+=s,i+=":"),(o||"file"===s)&&(i+=h,i+=h),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,e),!1),i+=o.substr(e))}if(l){if(l.length>=3&&47===l.charCodeAt(0)&&58===l.charCodeAt(2)){const e=l.charCodeAt(1)
;e>=65&&e<=90&&(l=`/${String.fromCharCode(e+32)}:${l.substr(3)}`)}else if(l.length>=2&&58===l.charCodeAt(1)){const e=l.charCodeAt(0);e>=65&&e<=90&&(l=`${String.fromCharCode(e+32)}:${l.substr(2)}`)}i+=n(l,!0)}return a&&(i+="?",i+=n(a,!1)),c&&(i+="#",i+=t?c:r(c,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,l=/^\//,a=/^\/\//;let c=!0;t.setUriThrowOnMissingScheme=function(e){const t=c;return c=e,t};const u="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static isUri(e){return e instanceof f||!!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)}constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){
return t||c?e||u:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,s),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||u),this.query=r||u,this.fragment=i||u,function(e,t){if(!e.scheme){if(t||c)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);console.warn(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)}if(e.scheme&&!o.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(a.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,s))}get fsPath(){return i(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===r?r=this.path:null===r&&(r=u),void 0===i?i=this.query:null===i&&(i=u),void 0===s?s=this.fragment:null===s&&(s=u),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new m(t,n,r,i,s)}static parse(e,t=!1){const n=d.exec(e);return n?new m(n[2]||u,decodeURIComponent(n[4]||u),decodeURIComponent(n[5]||u),decodeURIComponent(n[7]||u),decodeURIComponent(n[9]||u),t):new m(u,u,u,u,u)}static file(e){let t=u;if(n.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new m("file",t,e,u,u)}static from(e){
return new m(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return s(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof f)return e;{const t=new m(e);return t._fsPath=e.fsPath,t._formatted=e.external,t}}return e}}t.URI=f;class m extends f{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=i(this)),this._fsPath}toString(e=!1){return e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"}}),
define(e[23],t([1,0,22]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.URI.parse(e.toUrl(t)).fsPath}}),define(e[24],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_MENU_CHANNEL="vscode:contextmenu",t.CONTEXT_MENU_CLOSE_CHANNEL="vscode:onCloseContextMenu"}),define(e[25],t([1,0,26,24]),function(e,t,n,r){"use strict";function i(e,t){const n={id:t.length,label:e.label,type:e.type,accelerator:e.accelerator,checked:e.checked,enabled:"boolean"!=typeof e.enabled||e.enabled,visible:"boolean"!=typeof e.visible||e.visible};return t.push(e),Array.isArray(e.submenu)&&(n.submenu=e.submenu.map(e=>i(e,t))),n}Object.defineProperty(t,"__esModule",{value:!0});let s=0;t.popup=function(e,t){const o=[],l=s++,a=`vscode:onContextMenu${l}`,c=(e,t,n)=>{const r=o[t];r.click&&r.click(n)};n.ipcRenderer.once(a,c),n.ipcRenderer.once(r.CONTEXT_MENU_CLOSE_CHANNEL,(e,r)=>{r===l&&(n.ipcRenderer.removeListener(a,c),
t&&t.onHide&&t.onHide())}),n.ipcRenderer.send(r.CONTEXT_MENU_CHANNEL,l,e.map(e=>i(e,o)),a,t)}}),define(e[27],t([30]),{}),define(e[29],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteDiagnosticError=function(e){return!!e.hostName&&!!e.errorMessage}}),define(e[28],t([1,0,20,23]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n.dirname(r.getPathFromAmdModule(e,"")),s=n.join(i,"product.json"),o=e.__$__nodeRequire(s);process.env.VSCODE_DEV&&(o.nameShort+=" Dev",o.nameLong+=" Dev",o.dataFolderName+="-dev"),t.default=o}),define(e[31],t([1,0,26,21,32,28,33,5,2,25,18,29,27]),function(e,t,n,r,i,s,o,l,a,c,u,h){"use strict";function d(e,t,n,o){const l=0===n;let a=t.name;if(l&&(a=o?`${s.default.applicationName} main`:"remote agent"),"window"===a){a=void 0!==y.get(t.pid)?`${a} (${y.get(t.pid)})`:a}const c=l?a:`${r.repeat("    ",n)} ${a}`,u="win32"===process.platform?t.mem:i.totalmem()*(t.mem/100);e.push({cpu:t.load,memory:u/1048576,
pid:t.pid.toFixed(0),name:a,formattedName:c,cmd:t.cmd}),Array.isArray(t.children)&&t.children.forEach(t=>d(e,t,n+1,o))}function f(e,t){let n,r=0;return e.forEach(e=>{e[t]>r&&(r=e[t],n=e.pid)}),n}function m(e,t,n,r){e?(t.classList.remove("hidden"),x.set(r,!1),n.src="./media/expanded.svg"):(t.classList.add("hidden"),x.set(r,!0),n.src="./media/collapsed.svg")}function p(e,t,n){const r=document.createElement("tr"),i=document.createElement("td");i.textContent=e,i.colSpan=4,r.appendChild(i);const s=document.createElement("img");m(!x.get(e),t,s,e),i.prepend(s),A.push(u.addDisposableListener(i,"click",n=>{m(t.classList.contains("hidden"),t,s,e)})),n.appendChild(r)}function g(e,t,r,i){const s=document.getElementById("process-list");if(!s)return;const l=f(t,"cpu"),a=f(t,"memory"),h=document.createElement("tbody");r&&p(e,h,s),t.forEach(e=>{const t=document.createElement("tr");t.id=e.pid.toString();const r=document.createElement("td");e.pid===l?r.classList.add("centered","highest"):r.classList.add("centered"),
r.textContent=e.cpu.toFixed(0);const s=document.createElement("td");e.pid===a?s.classList.add("centered","highest"):s.classList.add("centered"),s.textContent=e.memory.toFixed(0);const d=document.createElement("td");d.classList.add("centered"),d.textContent=e.pid;const f=document.createElement("th");f.scope="row",f.classList.add("data"),f.title=e.cmd,f.textContent=e.formattedName,t.append(r,s,d,f),A.push(u.addDisposableListener(t,"contextmenu",t=>{!function(e,t,r){e.preventDefault();const i=[],s=Number(t.pid);r&&(i.push({label:o.localize(4,null),click(){process.kill(s,"SIGTERM")}}),i.push({label:o.localize(5,null),click(){process.kill(s,"SIGKILL")}}),i.push({type:"separator"}));i.push({label:o.localize(6,null),click(){const e=document.getElementById(s.toString());e&&n.clipboard.writeText(e.innerText)}}),i.push({label:o.localize(7,null),click(){const e=document.getElementById("process-list");e&&n.clipboard.writeText(e.innerText)}}),t&&r&&function(e){const t=b.exec(e)
;return t&&t.length>=2||e.indexOf("node ")>=0||e.indexOf("node.exe")>=0}(t.cmd)&&(i.push({type:"separator"}),i.push({label:o.localize(8,null),click(){!function(e){const t={type:"node",request:"attach",name:`process ${e.pid}`};let r=b.exec(e.cmd);r&&r.length>=2?(4===r.length&&r[3]&&(t.port=parseInt(r[3])),t.protocol="debug"===r[1]?"legacy":"inspector"):t.processId=String(e.pid),(r=w.exec(e.cmd))&&3===r.length&&(t.port=parseInt(r[2])),n.ipcRenderer.send("vscode:workbenchCommand",{id:"debug.startFromConfig",from:"processExplorer",args:[t]})}(t)}}));c.popup(i)}(t,e,i)})),h.appendChild(t)}),s.appendChild(h)}function _(e){const t=document.getElementById("process-list");if(!t)return;t.innerHTML="",A.forEach(e=>e.dispose());const n=document.createElement("thead")
;n.innerHTML=`<tr>\n\t\t<th scope="col" class="cpu">${o.localize(0,null)}</th>\n\t\t<th scope="col" class="memory">${o.localize(1,null)}</th>\n\t\t<th scope="col" class="pid">${o.localize(2,null)}</th>\n\t\t<th scope="col" class="nameLabel">${o.localize(3,null)}</th>\n\t</tr>`,t.append(n);const r=Object.keys(e).length>1;e.forEach((e,t)=>{const n=0===t;h.isRemoteDiagnosticError(e.rootProcess)?function(e,t){const n=document.getElementById("process-list");if(!n)return;const r=document.createElement("tbody");p(e,r,n);const i=document.createElement("tr"),s=document.createElement("td");s.textContent=t,s.className="error",s.colSpan=4,i.appendChild(s),r.appendChild(i),n.appendChild(r)}(e.name,e.rootProcess.errorMessage):g(e.name,function(e,t){const n=[];return e&&d(n,e,0,t),n}(e.rootProcess,n),r,n)})}function C(e){n.webFrame.setZoomLevel(e),l.setZoomFactor(n.webFrame.getZoomFactor()),l.setZoomLevel(n.webFrame.getZoomLevel(),!1)}function v(e){setTimeout(()=>{const t=Date.now(),r=e+t-D;D=t,
r>1e3?(n.ipcRenderer.send("windowsInfoRequest"),n.ipcRenderer.send("vscode:listProcesses")):v(r)},200)}function E(e){!function(e){const t=document.createElement("style"),n=[];e.hoverBackground&&n.push(`tbody > tr:hover, table > tr:hover  { background-color: ${e.hoverBackground}; }`),e.hoverForeground&&n.push(`tbody > tr:hover, table > tr:hover { color: ${e.hoverForeground}; }`),e.highlightForeground&&n.push(`.highest { color: ${e.highlightForeground}; }`),t.innerHTML=n.join("\n"),document.head&&document.head.appendChild(t),e.color&&(document.body.style.color=e.color)}(e.styles),C(e.zoomLevel),n.ipcRenderer.on("vscode:windowsInfoResponse",(e,t)=>{y=new Map,t.forEach(e=>y.set(e.pid,e.title))}),n.ipcRenderer.on("vscode:listProcessesResponse",(e,t)=>{_(t),v(0)}),D=Date.now(),n.ipcRenderer.send("windowsInfoRequest"),n.ipcRenderer.send("vscode:listProcesses"),document.onkeydown=(e=>{const t=a.isMacintosh?e.metaKey:e.ctrlKey;t&&187===e.keyCode&&C(n.webFrame.getZoomLevel()+1),
t&&189===e.keyCode&&C(n.webFrame.getZoomLevel()-1)})}Object.defineProperty(t,"__esModule",{value:!0});let y=new Map;const b=/\s--(inspect|debug)(-brk|port)?=(\d+)?/,w=/\s--(inspect|debug)-port=(\d+)/,A=[],x=new Map;let D;t.startup=E})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/a622c65b2c713c890fcf4fbf07cf34049d5fe758/core/vs/code/electron-browser/processExplorer/processExplorerMain.js.map
