/*!--------------------------------------------------------
 * 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/instantiation/common/instantiation","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{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,a)}l((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,a=r+1;for(let t=n;t<=i;t++)s[t]=e[t];for(let l=n;l<=i;l++)o>r?e[l]=s[a++]:a>i?e[l]=s[o++]:t(s[a],s[o])<0?e[l]=s[a++]:e[l]=s[o++]}(e,t,n,s,r,i)}function a(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],a=t[o],l=n(i,a);0===l?(s+=1,o+=1):l<0?(r(s,1,[]),s+=1):l>0&&(r(s,0,[a]),o+=1)}return i}function l(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=a,t.delta=function(e,t,n){const r=a(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 l(e,t,r,n,e.length),r},t.topAsync=function(e,t,i,s,o){return 0===i?Promise.resolve([]):new Promise((a,c)=>{(()=>n(this,void 0,void 0,function*(){const n=e.length,a=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();l(e,t,a,c,u)}return a}))().then(a,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,a=new i;!function(){function e(e,t,n=t,r=n){s.define(e,t),o.define(e,n),a.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 a.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||a.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={}));var l;!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"}(l||(l={}));!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){if(o&&e&&e!==c.None)try{e[a]=!0}catch(e){}}function i(e){if(!o)return e;const t=(new Error).stack;return setTimeout(()=>{e[a]||console.log(t)},3e3),e}function s(e){return Array.isArray(e)?(e.forEach(e=>{e&&(r(e),e.dispose())}),[]):e?(r(e),e.dispose(),e):void 0}Object.defineProperty(t,"__esModule",{value:!0});const o=!1,a="__is_disposable_tracked__";t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=s,t.combinedDisposable=function(...e){return e.forEach(r),i({dispose:()=>s(e)})},t.toDisposable=function(e){return i({dispose:e})};class l{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(r(this),this._isDisposed=!0,this.clear())}clear(){this._toDispose.forEach(e=>e.dispose()),
this._toDispose.clear()}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return r(e),this._isDisposed?(console.warn(new Error("Registering disposable on object that has already been disposed of").stack),e.dispose()):this._toDispose.add(e),e}}t.DisposableStore=l;class c{constructor(){this._store=new l,i(this)}dispose(){r(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}c.None=Object.freeze({dispose(){}}),t.Disposable=c;class u{constructor(){this._isDisposed=!1,i(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&r(e),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,r(this),this._value&&this._value.dispose(),this._value=void 0}}t.MutableDisposable=u;class h{constructor(){this.references=new Map}acquire(e){let t=this.references.get(e);t||(t={counter:0,
object:this.createReferencedObject(e)},this.references.set(e,t));const{object:r}=t,i=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),this.references.delete(e))});return t.counter++,{object:r,dispose:i}}}t.ReferenceCollection=h;class d{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=d}),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 a;!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 a((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function r(e,t){return a((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function i(e,t){return a((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 a(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e){let t,n=!0;return i(e,e=>{const r=n||e!==t;return n=!1,t=e,r})}e.None=(()=>s.Disposable.None),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=a,e.debounce=function(e,t,n=100,r=!1,i){let s,o=void 0,a=void 0,l=0;const c=new u({leakWarningThreshold:i,onFirstListenerAdd(){s=e(e=>{l++,o=t(o,e),r&&!a&&c.fire(o),clearTimeout(a),a=setTimeout(()=>{
const e=o;o=void 0,a=void 0,(!r||l>1)&&c.fire(e),l=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=l,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 c{constructor(e){this.event=e}map(e){return new c(n(this.event,e))}forEach(e){return new c(r(this.event,e))}filter(e){return new c(i(this.event,e))}reduce(e,t){return new c(o(this.event,e,t))}latch(){return new c(l(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 c(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))}}(a=t.Event||(t.Event={}));let l=-1;t.setGlobalLeakWarningThreshold=function(e){const t=l;return l=e,{dispose(){l=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=l;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=l>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 a;this._leakageMon&&(a=this._leakageMon.check(this._listeners.size));let l;return l={dispose:()=>{if(a&&a(),l.dispose=u._noop,!this._disposed&&(i(),this._options&&this._options.onLastListenerRemove)){
this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},n instanceof s.DisposableStore?n.add(l):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=a.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 a(e){return e&&"function"==typeof e.then}function l(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())})}):l(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=a,t.createCancelablePromise=l,t.raceCancellation=function(e,t,n){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(n)))])},t.asPromise=function(e){return new Promise((t,n)=>{const r=e();a(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 v{constructor(){this.queues=new Map}queueFor(e){const t=e.toString()
;if(!this.queues.has(t)){const e=new _;e.onFinished(()=>{e.dispose(),this.queues.delete(t)}),this.queues.set(t,e)}return this.queues.get(t)}}t.ResourceQueue=v;class E{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}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=E;class C{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=C;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,a=void 0,l="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,a="en",l="en";const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];a=t.locale,l=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,l=a=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=l;!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=a,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 a=i.isMacintosh?256:2048,l=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|=a),this.altKey&&(t|=512),
this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),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 a{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=a}),define(e[18],t([1,0,5,12,16,8,14,3,4,6,2,17]),function(e,t,n,r,i,s,o,a,l,c,u,h){"use strict";function d(e,t,n,r){return new P(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+=k.getBorderLeftWidth(e),n+=k.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function p(e){let t=k.getMarginLeft(e)+k.getMarginRight(e);return e.offsetWidth+t}function g(e){let t=k.getMarginLeft(e)+k.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 v(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function E(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}function C(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}function y(){return M||(M=C()),M}function b(e,t,n,...r){let i=K.exec(t);if(!i)throw new Error("Bad use of emmet");n=Object.assign({},n||{});let s,o=i[1]||"div";return s=e!==U.HTML?document.createElementNS(e,o):document.createElement(o),i[3]&&(s.id=i[3]),i[4]&&(s.className=i[4].replace(/\./g," ").trim()),Object.keys(n).forEach(e=>{const t=n[e];/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t)}),h.coalesce(r).forEach(e=>{e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))}),s}
function w(e,t,...n){return b(U.HTML,e,t,...n)}function A(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 x=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)}},D=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)}},L=n.isIE?x:D;t.hasClass=L.hasClass.bind(L),t.addClass=L.addClass.bind(L),t.addClasses=L.addClasses.bind(L),t.removeClass=L.removeClass.bind(L),t.removeClasses=L.removeClasses.bind(L),t.toggleClass=L.toggleClass.bind(L);class P{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 S=null;class T{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){a.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 T(t,s);return e.push(o),r||(r=!0,function(e){S||(S=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||(e=>setTimeout(()=>e((new Date).getTime()),0))),S.call(self,e)}(()=>{for(r=!1,n=e,e=[],i=!0;n.length>0;)n.sort(T.sort),n.shift().execute();i=!1})),o}),t.runAtThisOrScheduleAtNextAnimationFrame=((e,r)=>{if(i){let t=new T(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 N extends c.Disposable{constructor(e,t,n,r=function(e,t){return t},i=16){super();let s=null,a=0,l=this._register(new o.TimeoutTimer),c=()=>{a=(new Date).getTime(),n(s),s=null};this._register(d(e,t,e=>{s=r(s,e);let t=(new Date).getTime()-a;t>=i?(l.cancel(),c()):l.setIfNotSet(c,i-t)}))}}t.addDisposableThrottledListener=function(e,t,n,r,i){return new N(e,t,n,r,i)},t.getComputedStyle=f,t.getClientArea=function(e){if(e!==document.body)return new F(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new F(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new F(document.body.clientWidth,document.body.clientHeight)
;if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new F(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};class k{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)),k.convertToPixels(e,i)}static getBorderLeftWidth(e){return k.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return k.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return k.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return k.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return k.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return k.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){
return k.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return k.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return k.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return k.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return k.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return k.getDimension(e,"margin-bottom","marginBottom")}}class F{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=F,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=k.getBorderLeftWidth(e)+k.getBorderRightWidth(e),n=k.getPaddingLeft(e)+k.getPaddingRight(e);return e.offsetWidth-t-n},t.getTotalScrollWidth=g,t.getContentHeight=function(e){let t=k.getBorderTopWidth(e)+k.getBorderBottomWidth(e),n=k.getPaddingTop(e)+k.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){let t=k.getMarginTop(e)+k.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=_,t.isAncestor=v,t.findParentWithClass=E,t.hasParentWithClass=function(e,t,n){return!!E(e,t,n)},t.createStyleSheet=C
;let M=null;t.createCSSRule=function(e,t,n=y()){n&&t&&(n.textContent=`${e}{${t}}\n${n.textContent}`)},t.removeCSSRulesContainingSelector=function(e,t=y()){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",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: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 O extends c.Disposable{constructor(e){super(),
this._onDidFocus=this._register(new l.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l.Emitter),this.onDidBlur=this._onDidBlur.event;let n=v(document.activeElement,e),i=!1;this._register(r.domEvent(e,t.EventType.FOCUS,!0)(()=>{i=!1,n||(n=!0,this._onDidFocus.fire())})),this._register(r.domEvent(e,t.EventType.BLUR,!0)(()=>{n&&(i=!0,window.setTimeout(()=>{i&&(i=!1,n=!1,this._onDidBlur.fire())},0))}))}}t.trackFocus=function(e){return new O(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\-]+))*)/;var U;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(U=t.Namespace||(t.Namespace={})),t.$=w,w.SVG=function(e,t,...n){return b(U.SVG,e,t,...n)},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=A,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 a(e,t,n,r){let i,s="",o=0,a=-1,l=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(a===c-1||1===l);else if(a!==c-1&&2===l){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),a=c,l=0;continue}
if(2===s.length||1===s.length){s="",o=0,a=c,l=0;continue}}t&&(s.length>0?s+=`${n}..`:s="..",o=2)}else s.length>0?s+=n+e.slice(a+1,c):s=e.slice(a+1,c),o=c-a-1;a=c,l=0}else i===f&&-1!==l?++l:l=-1}return s}function l(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="",l=!1;for(let a=e.length-1;a>=-1;a--){let c;if(a>=0?c=e[a]: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),l||(s=c.slice(h)+"\\"+s,l=f),t.length>0&&l))break}return s=a(s,!l,"\\",i),t+(l?"\\":"")+s||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let n,s=0,l=!1;const c=e.charCodeAt(0);if(t>1)if(i(c))if(l=!0,i(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==o){const a=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"\\\\"+a+"\\"+e.slice(o)+"\\";r!==o&&(n="\\\\"+a+"\\"+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))&&(l=!0,s=3));else if(i(c))return"\\";let u;return 0!==(u=s<t?a(e.slice(s),!l,"\\",i):"").length||l||(u="."),u.length>0&&i(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?l?u.length>0?"\\"+u:"\\":u.length>0?u:"":l?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,a=0;if("string"==typeof s&&i(s.charCodeAt(0))){++a;const e=s.length;e>1&&i(s.charCodeAt(1))&&(++a,e>2&&(i(s.charCodeAt(2))?++a:o=!1))}if(o){for(;a<n.length&&i(n.charCodeAt(a));++a);a>=2&&(n="\\"+n.slice(a))}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 a=e.length;for(;a-1>o&&e.charCodeAt(a-1)===p;--a);const l=a-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=l<h?l: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)}l>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<=a;++m)m!==a&&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,a=!0,l=0;const c=e.charCodeAt(0);if(t>1)if(i(c)){if(n=l=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=l=r+1)}}}}else o(c)&&58===e.charCodeAt(1)&&(n=l=2,t>2&&i(e.charCodeAt(2))&&(n=l=3));else if(i(c))return e;for(let n=t-1;n>=l;--n)if(i(e.charCodeAt(n))){if(!a){s=n;break}}else a=!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,a=-1,l=!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(!l){s=n+1;break}}else-1===o&&(l=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=o))}return s===a?a=o:-1===a&&(a=e.length),
e.slice(s,a)}for(n=e.length-1;n>=s;--n)if(i(e.charCodeAt(n))){if(!l){s=n+1;break}}else-1===a&&(l=!1,a=n+1);return-1===a?"":e.slice(s,a)},extname(e){r(e,"path");let t=0,n=-1,s=0,a=-1,l=!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(!l){s=r+1;break}}else-1===a&&(l=!1,a=r+1),t===f?-1===n?n=r:1!==c&&(c=1):-1!==n&&(c=-1)}return-1===n||-1===a||0===c||1===c&&n===a-1&&n===s+1?"":e.slice(n,a)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return l("\\",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,a=e.charCodeAt(0);if(n>1){if(i(a)){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(a)&&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(a))return t.root=t.dir=e,t;s>0&&(t.root=e.slice(0,s));let l=-1,c=s,u=-1,h=!0,d=e.length-1,m=0;for(;d>=s;--d)if(a=e.charCodeAt(d),i(a)){if(!h){c=d+1;break}}else-1===u&&(h=!1,u=d+1),a===f?-1===l?l=d:1!==m&&(m=1):-1!==l&&(m=-1);return-1===l||-1===u||0===m||1===m&&l===u-1&&l===c+1?-1!==u&&(t.base=t.name=e.slice(c,u)):(t.name=e.slice(c,l),t.base=e.slice(c,u),t.ext=e.slice(l,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=a(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=a(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 a=1;for(;a<n.length&&n.charCodeAt(a)===m;++a);const l=n.length-a,c=o<l?o:l;let u=-1,h=0;for(;h<=c;++h){if(h===c){if(l>c){if(n.charCodeAt(a+h)===m)return n.slice(a+h+1);if(0===h)return n.slice(a+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(a+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(a+u):(a+=u,n.charCodeAt(a)===m&&++a,n.slice(a))},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,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===m){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(s=n):(r=-1,s=a))}return i===s?s=a:-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 a=e.charCodeAt(r);if(a!==m)-1===i&&(s=!1,i=r+1),a===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 l("/",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,a=-1,l=!0,c=e.length-1,u=0;for(;c>=i;--c){const t=e.charCodeAt(c);if(t!==m)-1===a&&(l=!1,a=c+1),t===f?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);else if(!l){o=c+1;break}}return-1===s||-1===a||0===u||1===u&&s===a-1&&s===o+1?-1!==a&&(t.base=t.name=0===o&&n?e.slice(1,a):e.slice(o,a)):(0===o&&n?(t.name=e.slice(1,s),t.base=e.slice(1,a)):(t.name=e.slice(o,s),t.base=e.slice(o,a)),t.ext=e.slice(s,a)),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 a(e){return e>=65&&e<=90}function l(e){return o(e)||a(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(l(n)&&l(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;a(n)&&(n+=32),a(i)&&(i+=32);const l=n-i
;if(0!==l)return o(n)&&o(i)?l:s(e.toLowerCase(),t.toLowerCase())}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=a,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,v=/\x1b\[\d+m/g,E=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(_,"")).replace(v,"")).replace(E,"")),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){if(!e)return!1;switch(e.toLowerCase()){case"http":case"https":case"ftp":return!0}return!1}function i(e,t){if(t>=e.length)return!1;const n=e.charCodeAt(t);return n>=48&&n<=57||n>=97&&n<=102||n>=65&&n<=70}function s(e,t,n){let r,s=-1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(37===a&&i(e,o+1)&&i(e,o+2)){const i=e.charCodeAt(o+1),a=e.charCodeAt(o+2);if(t&&50===i&&(70===a||102===a)||n&&(50===i&&54===a||51===i&&(66===a||98===a||68===a||100===a))){-1!==s&&(r+=decodeURIComponent(e.substring(s,o)),s=-1),void 0!==r&&(r+=e.substr(o,3)),o+=2;continue}void 0===r&&(r=e.substring(0,o)),-1===s&&(s=o),o+=2}else-1!==s&&(r+=decodeURIComponent(e.substring(s,o)),s=-1),
void 0!==r&&(r+=String.fromCharCode(a))}return-1!==s&&(r+=decodeURIComponent(e.substr(s))),void 0!==r?r:e}function o(e,t,n){let r=void 0,s=-1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&(61===a||38===a||59===a))-1!==s&&(r+=encodeURIComponent(e.substring(s,o)),s=-1),void 0!==r&&(r+=e.charAt(o));else if(37===a&&i(e,o+1)&&i(e,o+2))-1!==s&&(r+=encodeURIComponent(e.substring(s,o)),s=-1),void 0!==r&&(r+=e.substr(o,3)),o+=2;else{void 0===r&&(r=e.substr(0,o));const t=E[a];void 0!==t?(-1!==s&&(r+=encodeURIComponent(e.substring(s,o)),s=-1),r+=t):-1===s&&(s=o)}}return-1!==s&&(r+=encodeURIComponent(e.substring(s))),void 0!==r?r:e}function a(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 l(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+=E[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:o;let i="",{scheme:s,authority:a,path:l,query:c,fragment:u}=e;if(s&&(i+=s,i+=":"),(a||"file"===s)&&(i+=m,i+=m),a){let e=a.indexOf("@");if(-1!==e){const t=a.substr(0,e);a=a.substr(e+1),-1===(e=t.indexOf(":"))?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!1)),i+="@"}-1===(e=(a=a.toLowerCase()).indexOf(":"))?i+=n(a,!1,!1):(i+=n(a.substr(0,e),!1,!1),i+=a.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,!1)}return c&&(i+="?",i+=n(c,!1,r(s))),u&&(i+="#",i+=t?u:o(u,!1,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});const c=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//;let d=!0;t.setUriThrowOnMissingScheme=function(e){const t=d;return d=e,t};const f="",m="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class g{static isUri(e){return e instanceof g||!!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||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=function(e,t){
return t||d?e||f:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,s),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==m&&(t=m+t):t=m}return t}(this.scheme,n||f),this.query=r||f,this.fragment=i||f,function(e,t){if(!e.scheme){if(t||d)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&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.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(h.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 a(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=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===i?i=this.query:null===i&&(i=f),void 0===s?s=this.fragment:null===s&&(s=f),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new v(t,n,r,i,s)}static parse(e,t=!1){const n=p.exec(e);return n?new v(n[2]||f,s(n[4]||f,!1,!1),s(n[5]||f,!0,!1),s(n[7]||f,!1,r(n[2])),s(n[9]||f,!1,!1),t):new v(f,f,f,f,f,t)}static file(e){let t=f;if(n.isWindows&&(e=e.replace(/\\/g,m)),e[0]===m&&e[1]===m){const n=e.indexOf(m,2);-1===n?(t=e.substring(2),e=m):(t=e.substring(2,n),e=e.substring(n)||m)}return new v("file",t,e,f,f)}static from(e){
return new v(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return l(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof g)return e;{const t=new v(e);return t._formatted=e.external,t._fsPath=e._sep===_?e.fsPath:null,t}}return e}}t.URI=g;const _=n.isWindows?1:void 0;class v extends g{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=a(this)),this._fsPath}toString(e=!1){return e?l(this,!0):(this._formatted||(this._formatted=l(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=_),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 E={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=[],a=s++,l=`vscode:onContextMenu${a}`,c=(e,t,n)=>{const r=o[t];r.click&&r.click(n)};n.ipcRenderer.once(l,c),n.ipcRenderer.once(r.CONTEXT_MENU_CLOSE_CHANNEL,(e,r)=>{
r===a&&(n.ipcRenderer.removeListener(l,c),t&&t.onHide&&t.onHide())}),n.ipcRenderer.send(r.CONTEXT_MENU_CHANNEL,a,e.map(e=>i(e,o)),l,t)}}),define(e[27],t([31]),{}),define(e[29],t([1,0]),function(e,t){"use strict";function n(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function r(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,i,!1)};return t.toString=(()=>e),i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,i){
if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,i,!0)}}}),define(e[30],t([1,0,29]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ID="diagnosticsService",t.IDiagnosticsService=n.createDecorator(t.ID),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[32],t([1,0,26,21,33,28,34,5,2,25,18,30,27]),function(e,t,n,r,i,s,o,a,l,c,u,h){"use strict";function d(e,t,n,o){const a=0===n;let l=t.name;if(a&&(l=o?`${s.default.applicationName} main`:"remote agent"),"window"===l){l=void 0!==y.get(t.pid)?`${l} (${y.get(t.pid)})`:l}
const c=a?l:`${r.repeat("    ",n)} ${l}`,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:l,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 a=f(t,"cpu"),l=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===a?r.classList.add("centered","highest"):r.classList.add("centered"),r.textContent=e.cpu.toFixed(0);const s=document.createElement("td");e.pid===l?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 v(e){n.webFrame.setZoomLevel(e),a.setZoomFactor(n.webFrame.getZoomFactor()),a.setZoomLevel(n.webFrame.getZoomLevel(),!1)}function E(e){setTimeout(()=>{const t=Date.now(),r=e+t-D;D=t,
r>1e3?(n.ipcRenderer.send("windowsInfoRequest"),n.ipcRenderer.send("vscode:listProcesses")):E(r)},200)}function C(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),v(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),E(0)}),D=Date.now(),n.ipcRenderer.send("windowsInfoRequest"),n.ipcRenderer.send("vscode:listProcesses"),document.onkeydown=(e=>{const t=l.isMacintosh?e.metaKey:e.ctrlKey;t&&187===e.keyCode&&v(n.webFrame.getZoomLevel()+1),
t&&189===e.keyCode&&v(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=C})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/0f3794b38477eea13fb47fbe15a42798e6129338/core/vs/code/electron-browser/processExplorer/processExplorerMain.js.map
