/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/platform","vs/base/common/event","vs/base/common/lifecycle","vs/base/common/strings","vs/base/common/path","vs/base/common/uri","vs/platform/instantiation/common/instantiation","vs/base/common/errors","vs/base/common/async","vs/base/common/types","vs/base/common/objects","vs/nls!vs/code/electron-browser/issue/issueReporterMain","vs/base/common/network","vs/platform/log/common/log","os","vs/base/common/amd","vs/base/parts/ipc/common/ipc","vs/base/common/arrays","vs/base/common/extpath","vs/base/browser/browser","vs/base/common/buffer","vs/platform/registry/common/platform","vs/base/browser/dom","vs/base/common/uuid","vs/base/common/json","vs/css!vs/code/electron-browser/issue/issueReporterMain","vs/nls","vs/base/common/map","vs/base/common/decorators","vs/platform/configuration/common/configuration","vs/base/browser/keyboardEvent","vs/base/common/iterator","vs/base/common/cancellation","vs/base/common/functional","vs/platform/instantiation/common/serviceCollection","vs/platform/ipc/electron-browser/mainProcessService","vs/base/common/resources","vs/platform/product/node/package","vs/platform/product/node/product","vs/base/common/collections","vs/platform/configuration/common/configurationRegistry","vs/platform/diagnostics/common/diagnosticsService","vs/base/node/paths","vs/base/node/pfs","vs/base/common/process","vs/base/common/color","vs/base/browser/event","vs/base/parts/ipc/common/ipc.net","vs/base/parts/ipc/node/ipc.electron","vs/base/parts/ipc/electron-browser/ipc.electron-browser","electron","vs/base/parts/ipc/node/ipc.net","vs/code/electron-browser/issue/issueReporterUtil","vs/css!vs/base/browser/ui/button/button","vs/base/common/date","vs/base/browser/ui/button/button","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons-animations","vs/base/browser/ui/octiconLabel/octiconLabel","vs/css!vs/code/electron-browser/issue/media/issueReporter","vs/nls!vs/code/electron-browser/issue/issueReporterPage","vs/base/common/jsonFormatter","vs/base/common/jsonEdit","vs/code/electron-browser/issue/issueReporterPage","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/telemetry/common/telemetryService","vs/nls!vs/platform/workspaces/common/workspaces","vs/base/common/keyCodes","vs/code/electron-browser/issue/issueReporterModel","vs/platform/instantiation/common/descriptors","vs/platform/instantiation/common/graph","vs/base/browser/iframe","vs/platform/history/common/history","vs/base/common/linkedList","vs/platform/instantiation/common/instantiationService","vs/base/browser/mouseEvent","vs/base/common/glob","vs/platform/log/node/logIpc","vs/platform/log/node/spdlogService","vs/base/common/normalization","vs/base/common/assert","vs/platform/environment/node/environmentService","vs/base/common/labels","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/base/browser/touch","vs/base/node/encoding","vs/platform/remote/common/remoteHosts","vs/platform/telemetry/common/telemetryService","vs/platform/telemetry/common/telemetryUtils","vs/platform/telemetry/node/commonProperties","vs/platform/telemetry/node/telemetryIpc","vs/platform/windows/common/windows","vs/platform/workspaces/common/workspaces","vs/platform/windows/electron-browser/windowsService","net","crypto","iconv-lite","fs","child_process","stream","vs/code/electron-browser/issue/issueReporterMain","util"],t=function(t){
for(var n=[],i=0,r=t.length;i<r;i++)n[i]=e[t[i]];return n};define(e[73],t([0,1]),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 r=!0,null}catch(e){return r=!0,null}return e.parent}function i(e,t){let n,i=e.document.getElementsByTagName("iframe");for(let e=0,r=i.length;e<r;e++)if((n=i[e]).contentWindow===t)return n;return null}Object.defineProperty(t,"__esModule",{value:!0});let r=!1,s=null;class o{static getSameOriginWindowChain(){if(!s){s=[];let e,t=window;do{(e=n(t))?s.push({window:t,iframeElement:i(e,t)}):s.push({window:t,iframeElement:null}),t=e}while(t)}return s.slice(0)}static hasDifferentOriginAncestor(){return s||this.getSameOriginWindowChain(),r}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,i=0,r=this.getSameOriginWindowChain();for(const e of r){if(e.window===t)break;if(!e.iframeElement)break
;let r=e.iframeElement.getBoundingClientRect();n+=r.top,i+=r.left}return{top:n,left:i}}}t.IframeUtils=o}),define(e[82],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(e[22],t([0,1]),function(e,t){"use strict";function n(){return new o}Object.defineProperty(t,"__esModule",{value:!0}),t.hasBuffer="undefined"!=typeof Buffer;let i,r;class s{static alloc(e){return new s(t.hasBuffer?Buffer.allocUnsafe(e):new Uint8Array(e))}static wrap(e){return t.hasBuffer&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new s(e)}static fromString(e){return t.hasBuffer?new s(Buffer.from(e)):(i||(i=new TextEncoder),new s(i.encode(e)))}static concat(e,t){if(void 0===t){t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].byteLength}const n=s.alloc(t);let i=0;for(let t=0,r=e.length;t<r;t++){const r=e[t];n.set(r,i),i+=r.byteLength}return n}constructor(e){this.buffer=e,
this.byteLength=this.buffer.byteLength}toString(){return t.hasBuffer?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}slice(e,t){return new s(this.buffer.slice(e,t))}set(e,t){this.buffer.set(e.buffer,t)}readUInt32BE(e){return function(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}(this.buffer,e)}writeUInt32BE(e,t){!function(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}(this.buffer,e,t)}readUInt8(e){return function(e,t){return e[t]}(this.buffer,e)}writeUInt8(e,t){!function(e,t,n){e[n]=t}(this.buffer,e,t)}}t.VSBuffer=s,t.readableToBuffer=function(e){const t=[];let n;for(;n=e.read();)t.push(n);return s.concat(t)},t.bufferToReadable=function(e){let t=!1;return{read:()=>t?null:(t=!0,e)}},t.streamToBuffer=function(e){return new Promise((t,n)=>{const i=[];e.on("data",e=>i.push(e)),e.on("error",e=>n(e)),e.on("end",()=>t(s.concat(i)))})},t.bufferToStream=function(e){const t=n();return t.end(e),t},t.writeableBufferStream=n;class o{constructor(){
this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]}}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(e){this.state.destroyed||(this.state.flowing?this.listeners.data.forEach(t=>t(e)):this.buffer.data.push(e))}error(e){this.state.destroyed||(this.state.flowing?this.listeners.error.forEach(t=>t(e)):this.buffer.error.push(e))}end(e){this.state.destroyed||(e instanceof Error?this.error(e):e&&this.write(e),this.state.flowing?(this.listeners.end.forEach(e=>e()),this.destroy()):this.state.ended=!0)}on(e,t){if(!this.state.destroyed)switch(e){case"data":this.listeners.data.push(t),this.resume();break;case"end":this.listeners.end.push(t),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(t),this.state.flowing&&this.flowErrors()}}flowData(){if(this.buffer.data.length>0){
const e=s.concat(this.buffer.data);this.listeners.data.forEach(t=>t(e)),this.buffer.data.length=0}}flowErrors(){if(this.listeners.error.length>0){for(const e of this.buffer.error)this.listeners.error.forEach(t=>t(e));this.buffer.error.length=0}}flowEnd(){return!!this.state.ended&&(this.listeners.end.forEach(e=>e()),this.listeners.end.length>0)}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0)}}}),define(e[41],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=Object.prototype.hasOwnProperty;t.values=function(e){const t=[];for(let i in e)n.call(e,i)&&t.push(e[i]);return t},t.size=function(e){let t=0;for(let i in e)n.call(e,i)&&(t+=1);return t},t.first=function(e){for(let t in e)if(n.call(e,t))return e[t]},t.forEach=function(e,t){for(let i in e)if(n.call(e,i)&&!1===t({key:i,value:e[i]},function(){
delete e[i]}))return},t.groupBy=function(e,t){const n=Object.create(null);for(const i of e){const e=t(i);let r=n[e];r||(r=n[e]=[]),r.push(i)}return n},t.fromMap=function(e){const t=Object.create(null);return e&&e.forEach((e,n)=>{t[n]=e}),t}}),define(e[47],t([0,1]),function(e,t){"use strict";function n(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,i,r=1){this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}t.RGBA=i;class r{constructor(e,t,i,r){this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,s=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let c=0,l=0
;const u=(a+o)/2,h=o-a;if(h>0){switch(l=Math.min(u<=.5?h/(2*u):h/(2-2*u),1),o){case t:c=(n-i)/h+(n<i?6:0);break;case n:c=(i-t)/h+2;break;case i:c=(t-n)/h+4}c*=60,c=Math.round(c)}return new r(c,l,u,s)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:s,a:o}=e;let a,c,l;if(0===n)a=c=l=s;else{const e=s<.5?s*(1+n):s+n-s*n,i=2*s-e;a=r._hue2rgb(i,e,t+1/3),c=r._hue2rgb(i,e,t),l=r._hue2rgb(i,e,t-1/3)}return new i(Math.round(255*a),Math.round(255*c),Math.round(255*l),o)}}t.HSLA=r;class s{constructor(e,t,i,r){this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=r-Math.min(t,n,i),a=0===r?0:o/r;let c;return c=0===o?0:r===t?((n-i)/o%6+6)%6:r===n?(i-t)/o+2:(t-n)/o+4,
new s(Math.round(60*c),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:s}=e,o=r*n,a=o*(1-Math.abs(t/60%2-1)),c=r-o;let[l,u,h]=[0,0,0];return t<60?(l=o,u=a):t<120?(l=a,u=o):t<180?(u=o,h=a):t<240?(u=a,h=o):t<300?(l=a,h=o):t<360&&(l=o,h=a),l=Math.round(255*(l+c)),u=Math.round(255*(u+c)),h=Math.round(255*(h+c)),new i(l,u,h,s)}}t.HSVA=s;class o{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}static fromHex(e){return o.Format.CSS.parseHex(e)||o.red}get hsla(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)}equals(e){return!!e&&i.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)}getRelativeLuminance(){
return n(.2126*o._relativeLuminanceForComponent(this.rgba.r)+.7152*o._relativeLuminanceForComponent(this.rgba.g)+.0722*o._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}getContrastRatio(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)}isDarker(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new o(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new o(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:s}=this.rgba;return new o(new i(t,n,r,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){
return 1===this.rgba.a}opposite(){return new o(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}blend(e){const t=e.rgba,n=this.rgba.a,r=t.a,s=n+r*(1-n);if(s<1e-6)return o.transparent;const a=this.rgba.r*n/s+t.r*r*(1-n)/s,c=this.rgba.g*n/s+t.g*r*(1-n)/s,l=this.rgba.b*n/s+t.b*r*(1-n)/s;return new o(new i(a,c,l,s))}flatten(...e){const t=e.reduceRight((e,t)=>o._flatten(t,e));return o._flatten(this,t)}static _flatten(e,t){const n=1-e.rgba.a;return new o(new i(n*t.rgba.r+e.rgba.a*e.rgba.r,n*t.rgba.g+e.rgba.a*e.rgba.g,n*t.rgba.b+e.rgba.a*e.rgba.b))}toString(){return""+o.Format.CSS.format(this)}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}}o.white=new o(new i(255,255,255,1)),o.black=new o(new i(0,0,0,1)),
o.red=new o(new i(255,0,0,1)),o.blue=new o(new i(0,0,255,1)),o.green=new o(new i(0,255,0,1)),o.cyan=new o(new i(0,255,255,1)),o.lightgrey=new o(new i(211,211,211,1)),o.transparent=new o(new i(0,0,0,0)),t.Color=o,function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){
return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t?t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t):null},t.parseHex=function(t){if(!t)return null;const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new i(n,s,o,1))}if(9===n){
const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),a=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new i(n,s,o,a/255))}if(4===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3));return new e(new i(16*n+n,16*s+s,16*o+o))}if(5===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3)),a=r(t.charCodeAt(4));return new e(new i(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(o=t.Color||(t.Color={}))}),define(e[30],t([0,1]),function(e,t){"use strict";function n(e){return(t,n,i)=>{let r=null,s=null;if("function"==typeof i.value?(r="value",s=i.value):"function"==typeof i.get&&(r="get",s=i.get),!s)throw new Error("not supported");i[r]=e(s,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=n,t.memoize=function(e,t,n){let i=null,r=null;if("function"==typeof n.value?(i="value",
0!==(r=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(i="get",r=n.get),!r)throw new Error("not supported");const s=`$memoize$${t}`;n[i]=function(...e){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,e)}),this[s]}},t.debounce=function(e,t,i){return n((n,r)=>{const s=`$debounce$${r}`,o=`$debounce$result$${r}`;return function(...r){this[o]||(this[o]=i?i():void 0),clearTimeout(this[s]),t&&(this[o]=t(this[o],...r),r=[this[o]]),this[s]=setTimeout(()=>{n.apply(this,r),this[o]=i?i():void 0},e)}})}}),define(e[9],t([0,1]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===r&&e.message===r}Object.defineProperty(t,"__esModule",{value:!0});class i{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=i,t.errorHandler=new i,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 r="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){const e=new Error(r);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,i){return new(n||(n=Promise))(function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(o,a)}c((i=i.apply(e,t||[])).next())})};define(e[19],t([0,1,9]),function(e,t,i){"use strict";function r(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){const r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}function s(e,t){return o(e,t,0,e.length-1,[]),e}
function o(e,t,n,i,r){if(i<=n)return;const s=n+(i-n)/2|0;o(e,t,n,s,r),o(e,t,s+1,i,r),t(e[s],e[s+1])<=0||function(e,t,n,i,r,s){let o=n,a=i+1;for(let t=n;t<=r;t++)s[t]=e[t];for(let c=n;c<=r;c++)o>i?e[c]=s[a++]:a>r?e[c]=s[o++]:t(s[a],s[o])<0?e[c]=s[a++]:e[c]=s[o++]}(e,t,n,s,i,r)}function a(e,t,n){function i(e,t,n){if(0===t&&0===n.length)return;const i=r[r.length-1];i&&i.start+i.deleteCount===e?(i.deleteCount+=t,i.toInsert.push(...n)):r.push({start:e,deleteCount:t,toInsert:n})}const r=[];let s=0,o=0;for(;;){if(s===e.length){i(s,0,t.slice(o));break}if(o===t.length){i(s,e.length-s,[]);break}const r=e[s],a=t[o],c=n(r,a);0===c?(s+=1,o+=1):c<0?(i(s,1,[]),s+=1):c>0&&(i(s,0,[a]),o+=1)}return r}function c(e,t,n,i,s){for(const o=n.length;i<s;i++){const s=e[i];if(t(s,n[o-1])<0){n.pop();const e=r(n,e=>t(s,e)<0);n.splice(e,0,s)}}}function l(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 i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0},t.binarySearch=function(e,t,n){let i=0,r=e.length-1;for(;i<=r;){const s=(i+r)/2|0,o=n(e[s],t);if(o<0)i=s+1;else{if(!(o>0))return s;r=s-1}}return-(i+1)},t.findFirstInSorted=r,t.mergeSort=s,t.groupBy=function(e,t){const n=[];let i=void 0;for(const r of s(e.slice(0),t))i&&0===t(i[0],r)?i.push(r):(i=[r],n.push(i));return n},t.sortedDiff=a,t.delta=function(e,t,n){const i=a(e,t,n),r=[],s=[];for(const t of i)r.push(...e.slice(t.start,t.start+t.deleteCount)),s.push(...t.toInsert);return{removed:r,added:s}},t.top=function(e,t,n){if(0===n)return[];const i=e.slice(0,n).sort(t);return c(e,t,i,n,e.length),i},t.topAsync=function(e,t,r,s,o){return 0===r?Promise.resolve([]):new Promise((a,l)=>{(()=>n(this,void 0,void 0,function*(){
const n=e.length,a=e.slice(0,r).sort(t);for(let l=r,u=Math.min(r+s,n);l<n;l=u,u=Math.min(u+s,n)){if(l>r&&(yield new Promise(e=>setTimeout(e))),o&&o.isCancellationRequested)throw i.canceled();c(e,t,a,l,u)}return a}))().then(a,l)})},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 i=t(e);return!n[i]&&(n[i]=!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 i=e(n);return!t[i]&&(t[i]=!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=l,t.first=function(e,t,n){const i=l(e,t);return i<0?n:e[i]},t.commonPrefixLength=function(e,t,n=((e,t)=>e===t)){let i=0;for(let r=0,s=Math.min(e.length,t.length);r<s&&n(e[r],t[r]);r++)i++;return i},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 i=[];if(n<=t)for(let e=n;e<t;e++)i.push(e);else for(let e=n;e>t;e--)i.push(e);return i},t.fill=function(e,t,n=[]){for(let i=0;i<e;i++)n[i]=t;return n},t.index=function(e,t,n=(e=>e)){return e.reduce((e,i)=>{const r=t(i);return e[r]=n(i,e[r]),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 i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)},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 i=Math.floor(n()*(t+1)),r=e[t];e[t]=e[i],
e[i]=r}},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 i=e[n];if(t(i,n,e))return i}},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[35],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let n,i=!1;return function(){return i?n:(i=!0,n=e.apply(t,arguments))}}}),define(e[33],t([0,1]),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 i={next:()=>t.FIN};e.empty=function(){return i},e.fromArray=function(e,n=0,i=e.length){return{next:()=>n>=i?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 i=e.next();return i.done?t.FIN:{done:!1,value:n(i.value)}}}},e.filter=function(e,n){return{next(){for(;;){const i=e.next();if(i.done)return t.FIN;if(n(i.value))return{done:!1,value:i.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 i{constructor(e,t=0,n=e.length,i=t-1){this.items=e,this.start=t,this.end=n,this.index=i}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=i;class r extends i{constructor(e,t=0,n=e.length,i=t-1){super(e,t,n,i)}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=r;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[26],t([0,1]),function(e,t){"use strict";function n(e,t=!1){function n(t){let n=0,i=0;for(;n<t;){const t=e.charCodeAt(a);if(t>=48&&t<=57)i=16*i+t-48;else if(t>=65&&t<=70)i=16*i+t-65+10;else{if(!(t>=97&&t<=102))break;i=16*i+t-97+10}a++,n++}return n<t&&(i=-1),i}function o(){if(l="",d=0,u=a,a>=c)return u=c,h=17;let t=e.charCodeAt(a);if(i(t)){do{a++,l+=String.fromCharCode(t),t=e.charCodeAt(a)}while(i(t));return h=15}if(r(t))return a++,l+=String.fromCharCode(t),
13===t&&10===e.charCodeAt(a)&&(a++,l+="\n"),h=14;switch(t){case 123:return a++,h=1;case 125:return a++,h=2;case 91:return a++,h=3;case 93:return a++,h=4;case 58:return a++,h=6;case 44:return a++,h=5;case 34:return a++,l=function(){let t="",i=a;for(;;){if(a>=c){t+=e.substring(i,a),d=2;break}let s=e.charCodeAt(a);if(34===s){t+=e.substring(i,a),a++;break}if(92!==s){if(s>=0&&s<=31){if(r(s)){t+=e.substring(i,a),d=2;break}d=6}a++}else{if(t+=e.substring(i,a),++a>=c){d=2;break}switch(i=e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const i=n(4);i>=0?t+=String.fromCharCode(i):d=4;break;default:d=5}i=a}}return t}(),h=10;case 47:const o=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<c&&!r(e.charCodeAt(a));)a++;return l=e.substring(o,a),h=12}if(42===e.charCodeAt(a+1)){a+=2;const t=c-1;let n=!1;for(;a<t;){if(42===e.charCodeAt(a)&&47===e.charCodeAt(a+1)){a+=2,n=!0;break}
a++}return n||(a++,d=1),l=e.substring(o,a),h=13}return l+=String.fromCharCode(t),a++,h=16;case 45:if(l+=String.fromCharCode(t),++a===c||!s(e.charCodeAt(a)))return h=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return l+=function(){const t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&s(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(!(++a<e.length&&s(e.charCodeAt(a))))return d=3,e.substring(t,a);for(a++;a<e.length&&s(e.charCodeAt(a));)a++}let n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if((++a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&s(e.charCodeAt(a))){for(a++;a<e.length&&s(e.charCodeAt(a));)a++;n=a}else d=3;return e.substring(t,n)}(),h=11;default:for(;a<c&&function(e){if(i(e)||r(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)a++,t=e.charCodeAt(a);if(u!==a){switch(l=e.substring(u,a)){case"true":return h=8;case"false":return h=9
;case"null":return h=7}return h=16}return l+=String.fromCharCode(t),a++,h=16}}let a=0,c=e.length,l="",u=0,h=16,d=0;return{setPosition:function(e){a=e,l="",u=0,h=16,d=0},getPosition:()=>a,scan:t?function(){let e;do{e=o()}while(e>=12&&e<=15);return e}:o,getToken:()=>h,getTokenValue:()=>l,getTokenOffset:()=>u,getTokenLength:()=>a-u,getTokenError:()=>d}}function i(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function r(e){return 10===e||13===e||8232===e||8233===e}function s(e){return e>=48&&e<=57}function o(e){if(!e.parent||!e.parent.children)return[];const t=o(e.parent);if("property"===e.parent.type){const n=e.parent.children[0].value;t.push(n)}else if("array"===e.parent.type){const n=e.parent.children.indexOf(e);-1!==n&&t.push(n)}return t}function a(e){switch(e.type){case"array":return e.children.map(a);case"object":const t=Object.create(null);for(let n of e.children){const e=n.children[1];e&&(t[n.children[0].value]=a(e))}return t
;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function c(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function l(e,t,n=!1){if(c(e,t,n)){const i=e.children;if(Array.isArray(i))for(let e=0;e<i.length&&i[e].offset<=t;e++){const r=l(i[e],t,n);if(r)return r}return e}}function u(e,t,i=d.DEFAULT){function r(e){return e?()=>e(h.getTokenOffset(),h.getTokenLength()):()=>!0}function s(e){return e?t=>e(t,h.getTokenOffset(),h.getTokenLength()):()=>!0}function o(){for(;;){const e=h.scan();switch(h.getTokenError()){case 4:a(14);break;case 5:a(15);break;case 3:a(13);break;case 1:E||a(11);break;case 2:a(12);break;case 6:a(16)}switch(e){case 12:case 13:E?a(10):y();break;case 16:a(1);break;case 15:case 14:break;default:return e}}}function a(e,t=[],n=[]){if(w(e),t.length+n.length>0){let e=h.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){o();break}if(-1!==n.indexOf(e))break;e=o()}}}function c(e){const t=h.getTokenValue();return e?_(t):p(t),o(),!0}function l(){
return 10!==h.getToken()?(a(3,[],[2,5]),!1):(c(!1),6===h.getToken()?(b(":"),o(),u()||a(4,[],[2,5])):a(5,[],[2,5]),!0)}function u(){switch(h.getToken()){case 3:return function(){m(),o();let e=!1;for(;4!==h.getToken()&&17!==h.getToken();){if(5===h.getToken()){if(e||a(4,[],[]),b(","),o(),4===h.getToken()&&C)break}else e&&a(6,[],[]);u()||a(4,[],[4,5]),e=!0}return v(),4!==h.getToken()?a(8,[4],[]):o(),!0}();case 1:return function(){f(),o();let e=!1;for(;2!==h.getToken()&&17!==h.getToken();){if(5===h.getToken()){if(e||a(4,[],[]),b(","),o(),2===h.getToken()&&C)break}else e&&a(6,[],[]);l()||a(4,[],[2,5]),e=!0}return g(),2!==h.getToken()?a(7,[2],[]):o(),!0}();case 10:return c(!0);default:return function(){switch(h.getToken()){case 11:let e=0;try{"number"!=typeof(e=JSON.parse(h.getTokenValue()))&&(a(2),e=0)}catch(e){a(2)}_(e);break;case 7:_(null);break;case 8:_(!0);break;case 9:_(!1);break;default:return!1}return o(),!0}()}}
const h=n(e,!1),f=r(t.onObjectBegin),p=s(t.onObjectProperty),g=r(t.onObjectEnd),m=r(t.onArrayBegin),v=r(t.onArrayEnd),_=s(t.onLiteralValue),b=s(t.onSeparator),y=r(t.onComment),w=s(t.onError),E=i&&i.disallowComments,C=i&&i.allowTrailingComma;return o(),17===h.getToken()||(u()?(17!==h.getToken()&&a(9,[],[]),!0):(a(4,[],[]),!1))}function h(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(t.ScanError||(t.ScanError={}));!function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",
e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(t.SyntaxKind||(t.SyntaxKind={}));!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",
e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(t.ParseErrorCode||(t.ParseErrorCode={}));var d;!function(e){e.DEFAULT={allowTrailingComma:!0}}(d=t.ParseOptions||(t.ParseOptions={})),t.createScanner=n;var f;!function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",
e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",
e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",
e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(f||(f={})),t.getLocation=function(e,t){function n(e,t,n,i){o.value=e,o.offset=t,o.length=n,o.type=i,o.colonOffset=void 0,s=o}const i=[],r=new Object;let s=void 0;const o={value:{},offset:0,length:0,type:"object",parent:void 0};let a=!1;try{u(e,{onObjectBegin:(e,n)=>{if(t<=e)throw r;s=void 0,a=t>e,i.push("")},onObjectProperty:(e,s,o)=>{if(t<s)throw r;if(n(e,s,o,"property"),i[i.length-1]=e,t<=s+o)throw r},onObjectEnd:(e,n)=>{if(t<=e)throw r;s=void 0,i.pop()},onArrayBegin:(e,n)=>{if(t<=e)throw r;s=void 0,i.push(0)},onArrayEnd:(e,n)=>{if(t<=e)throw r;s=void 0,i.pop()},onLiteralValue:(e,i,s)=>{if(t<i)throw r;if(n(e,i,s,h(e)),t<=i+s)throw r},onSeparator:(e,n,o)=>{if(t<=n)throw r;if(":"===e&&s&&"property"===s.type)s.colonOffset=n,a=!1,s=void 0;else if(","===e){const e=i[i.length-1]
;"number"==typeof e?i[i.length-1]=e+1:(a=!0,i[i.length-1]=""),s=void 0}}})}catch(e){if(e!==r)throw e}return{path:i,previousNode:s,isAtPropertyKey:a,matches:e=>{let t=0;for(let n=0;t<e.length&&n<i.length;n++)if(e[t]===i[n]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}},t.parse=function(e,t=[],n=d.DEFAULT){function i(e){Array.isArray(s)?s.push(e):r&&(s[r]=e)}let r=null,s=[];const o=[];return u(e,{onObjectBegin:()=>{const e={};i(e),o.push(s),s=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{s=o.pop()},onArrayBegin:()=>{const e=[];i(e),o.push(s),s=e,r=null},onArrayEnd:()=>{s=o.pop()},onLiteralValue:i,onError:(e,n,i)=>{t.push({error:e,offset:n,length:i})}},n),s[0]},t.parseTree=function(e,t=[],n=d.DEFAULT){function i(e){"property"===s.type&&(s.length=e-s.offset,s=s.parent)}function r(e){return s.children.push(e),e}let s={type:"array",offset:-1,length:-1,children:[],parent:void 0};u(e,{onObjectBegin:e=>{s=r({type:"object",offset:e,length:-1,parent:s,children:[]})},
onObjectProperty:(e,t,n)=>{(s=r({type:"property",offset:t,length:-1,parent:s,children:[]})).children.push({type:"string",value:e,offset:t,length:n,parent:s})},onObjectEnd:(e,t)=>{s.length=e+t-s.offset,s=s.parent,i(e+t)},onArrayBegin:(e,t)=>{s=r({type:"array",offset:e,length:-1,parent:s,children:[]})},onArrayEnd:(e,t)=>{s.length=e+t-s.offset,s=s.parent,i(e+t)},onLiteralValue:(e,t,n)=>{r({type:h(e),offset:t,length:n,parent:s,value:e}),i(t+n)},onSeparator:(e,t,n)=>{"property"===s.type&&(":"===e?s.colonOffset=t:","===e&&i(t))},onError:(e,n,i)=>{t.push({error:e,offset:n,length:i})}},n);const o=s.children[0];return o&&delete o.parent,o},t.findNodeAtLocation=function(e,t){if(!e)return;let n=e;for(let e of t)if("string"==typeof e){if("object"!==n.type||!Array.isArray(n.children))return;let t=!1;for(const i of n.children)if(Array.isArray(i.children)&&i.children[0].value===e){n=i.children[1],t=!0;break}if(!t)return}else{const t=e;if("array"!==n.type||t<0||!Array.isArray(n.children)||t>=n.children.length)return
;n=n.children[t]}return n},t.getNodePath=o,t.getNodeValue=a,t.contains=c,t.findNodeAtOffset=l,t.visit=u,t.stripComments=function(e,t){let i,r,s=n(e),o=[],a=0;do{switch(r=s.getPosition(),i=s.scan()){case 12:case 13:case 17:a!==r&&o.push(e.substring(a,r)),void 0!==t&&o.push(s.getTokenValue().replace(/[^\r\n]/g,t)),a=s.getPosition()}}while(17!==i);return o.join("")}}),define(e[63],t([0,1,26]),function(e,t,n){"use strict";function i(e,t,i){function o(){return p+r(g,l+v)}function a(){let e=_.scan();for(m=!1;15===e||14===e;)m=m||14===e,e=_.scan();return b=16===e||0!==_.getTokenError(),e}function c(t,n,i){!b&&n<f&&i>d&&e.substring(n,i)!==t&&y.push({offset:n,length:i-n,content:t})}let l,u,h,d,f;if(t){for(d=t.offset,f=d+t.length,h=d;h>0&&!s(e,h-1);)h--;let n=f;for(;n<e.length&&!s(e,n);)n++;u=e.substring(h,n),l=function(e,t){let n=0,i=0;const r=t.tabSize||4;for(;n<e.length;){const t=e.charAt(n);if(" "===t)i++;else{if("\t"!==t)break;i+=r}n++}return Math.floor(i/r)}(u,i)}else u=e,l=0,h=0,d=0,f=e.length
;const p=function(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}(i,e);let g,m=!1,v=0;g=i.insertSpaces?r(" ",i.tabSize||4):"\t";const _=n.createScanner(u,!1);let b=!1;const y=[];let w=a();if(17!==w){const e=_.getTokenOffset()+h;c(r(g,l),h,e)}for(;17!==w;){let e=_.getTokenOffset()+_.getTokenLength()+h,t=a(),n="";for(;!m&&(12===t||13===t);){c(" ",e,_.getTokenOffset()+h),e=_.getTokenOffset()+_.getTokenLength()+h,n=12===t?o():"",t=a()}if(2===t)1!==w&&(v--,n=o());else if(4===t)3!==w&&(v--,n=o());else{switch(w){case 3:case 1:v++,n=o();break;case 5:case 12:n=o();break;case 13:n=m?o():" ";break;case 6:n=" ";break;case 10:if(6===t){n="";break}case 7:case 8:case 9:case 11:case 2:case 4:12===t||13===t?n=" ":5!==t&&17!==t&&(b=!0);break;case 16:b=!0}!m||12!==t&&13!==t||(n=o())}c(n,e,_.getTokenOffset()+h),w=t}return y}function r(e,t){let n="";for(let i=0;i<t;i++)n+=e;return n}function s(e,t){
return-1!=="\r\n".indexOf(e.charAt(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.format=i,t.isEOL=s}),define(e[64],t([0,1,26,63,19]),function(e,t,n,i,r){"use strict";function s(e,t,i,r,s){const a=t.slice(),c=n.parseTree(e,[]);let l=void 0,u=void 0;for(;a.length>0&&(u=a.pop(),void 0===(l=n.findNodeAtLocation(c,a))&&void 0!==i);)i="string"==typeof u?{[u]:i}:[i];if(l){if("object"===l.type&&"string"==typeof u&&Array.isArray(l.children)){const t=n.findNodeAtLocation(l,[u]);if(void 0!==t){if(void 0===i){if(!t.parent)throw new Error("Malformed AST");const n=l.children.indexOf(t.parent);let i,s=t.parent.offset+t.parent.length;if(n>0){const e=l.children[n-1];i=e.offset+e.length}else if(i=l.offset+1,l.children.length>1){s=l.children[1].offset}return o(e,{offset:i,length:s-i,content:""},r)}return o(e,{offset:t.offset,length:t.length,content:JSON.stringify(i)},r)}{if(void 0===i)return[];const t=`${JSON.stringify(u)}: ${JSON.stringify(i)}`,n=s?s(l.children.map(e=>e.children[0].value)):l.children.length;let a
;if(n>0){const e=l.children[n-1];a={offset:e.offset+e.length,length:0,content:","+t}}else a=0===l.children.length?{offset:l.offset+1,length:0,content:t}:{offset:l.offset+1,length:0,content:t+","};return o(e,a,r)}}if("array"===l.type&&"number"==typeof u&&Array.isArray(l.children)){if(-1===u){const t=`${JSON.stringify(i)}`;let n;if(0===l.children.length)n={offset:l.offset+1,length:0,content:t};else{const e=l.children[l.children.length-1];n={offset:e.offset+e.length,length:0,content:","+t}}return o(e,n,r)}if(void 0===i&&l.children.length>=0){const t=u,n=l.children[t];let i;if(1===l.children.length)i={offset:l.offset+1,length:l.length-2,content:""};else if(l.children.length-1===t){const e=l.children[t-1],n=e.offset+e.length;i={offset:n,length:l.offset+l.length-2-n,content:""}}else i={offset:n.offset,length:l.children[t+1].offset-n.offset,content:""};return o(e,i,r)}throw new Error("Array modification not supported yet")}
throw new Error(`Can not add ${"number"!=typeof u?"index":"property"} to parent of type ${l.type}`)}if(void 0===i)throw new Error("Can not delete in empty document");return o(e,{offset:c?c.offset:0,length:c?c.length:0,content:JSON.stringify(i)},r)}function o(e,t,n){let r=a(e,t),s=t.offset,o=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;s>0&&!i.isEOL(r,s-1);)s--;for(;o<r.length&&!i.isEOL(r,o);)o++}const c=i.format(r,{offset:s,length:o-s},n);for(let e=c.length-1;e>=0;e--){const t=c[e];r=a(r,t),s=Math.min(s,t.offset),o=Math.max(o,t.offset+t.length),o+=t.content.length-t.length}return[{offset:s,length:e.length-(r.length-o)-s,content:r.substring(s,o)}]}function a(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}Object.defineProperty(t,"__esModule",{value:!0}),t.removeProperty=function(e,t,n){return s(e,t,void 0,n)},t.setProperty=s,t.applyEdit=a,t.applyEdits=function(e,t){let n=r.mergeSort(t,(e,t)=>{const n=e.offset-t.offset;return 0===n?e.length-t.length:n
}),i=e.length;for(let t=n.length-1;t>=0;t--){let r=n[t];if(!(r.offset+r.length<=i))throw new Error("Overlapping edit");e=a(e,r),i=r.offset}return e},t.isWS=function(e,t){return-1!=="\r\n \t".indexOf(e.charAt(t))}}),define(e[69],t([0,1,9]),function(e,t,n){"use strict";function i(e,t){const n=!!(2048&e),i=!!(256&e);return new l(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,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 r{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 r,o=new r,a=new r;!function(){function e(e,t,n=t,i=n){s.define(e,t),o.define(e,n),a.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),
e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),
e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}();!function(e){e.toString=function(e){return 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 c;!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"}(c||(c={}));!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,r=(4294901760&e)>>>16;return new u(0!==r?[i(n,t),i(r,t)]:[i(n,t)])},t.createSimpleKeybinding=i;class l{constructor(e,t,n,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=r}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=l;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,i,r,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=r,this.keyAriaLabel=s}}t.ResolvedKeybindingPart=h;class d{}t.ResolvedKeybinding=d}),define(e[4],t([0,1,35]),function(e,t,n){"use strict";function i(e,...t){if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return i(e),i(t),[];if(e)return e.dispose(),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=i,t.combinedDisposable=function(...e){return{dispose:()=>i(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class r{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clear()}clear(){this._toDispose.forEach(e=>e.dispose()),this._toDispose.clear()}
add(e){return this._isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.add(e),e}}t.DisposableStore=r;class s{constructor(){this._store=new r}dispose(){this._store.dispose()}_register(e){return this._store.add(e)}}s.None=Object.freeze({dispose(){}}),t.Disposable=s;class o{constructor(){this.references=Object.create(null)}acquire(e){let t=this.references[e];t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});const{object:i}=t,r=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:i,dispose:r}}}t.ReferenceCollection=o;class a{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=a}),define(e[75],t([0,1,33]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,
this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.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 r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,
this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}iterator(){let e,t=this._first;return{next:()=>t===i.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!==i.Undefined;t=t.next)e.push(t.element);return e}}t.LinkedList=r}),define(e[3],t([0,1,9,35,4,75]),function(e,t,i,r,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a;!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e(e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)},null,i),s&&r.dispose(),r}}function n(e,t){return a((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r))}function i(e,t){return a((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r))}function r(e,t){return a((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r))}function o(e,t,i){let r=i;return n(e,e=>r=t(r,e))}function a(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}
function c(e){let t,n=!0;return r(e,e=>{const i=n||e!==t;return n=!1,t=e,i})}const l={dispose(){}};e.None=function(){return l},e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>s.combinedDisposable(...e.map(e=>e(e=>t.call(n,e),null,i)))},e.reduce=o,e.snapshot=a,e.debounce=function(e,t,n=100,i=!1,r){let s,o=void 0,a=void 0,c=0;const l=new u({leakWarningThreshold:r,onFirstListenerAdd(){s=e(e=>{c++,o=t(o,e),i&&!a&&l.fire(o),clearTimeout(a),a=setTimeout(()=>{const e=o;o=void 0,a=void 0,(!i||c>1)&&l.fire(e),c=0},n)})},onLastListenerRemove(){s.dispose()}});return l.event},e.stopwatch=function(e){const i=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-i)},e.latch=c,e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e(e=>{i?i.push(e):o.fire(e)});const s=()=>{i&&i.forEach(e=>o.fire(e)),i=null},o=new u({onFirstListenerAdd(){r||(r=e(e=>o.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}})
;return o.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(i(this.event,e))}filter(e){return new h(r(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(c(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.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 c=-1;t.setGlobalLeakWarningThreshold=function(e){const t=c;return c=e,{dispose(){c=t}}};class l{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=c;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"),i=this._stacks.get(n)||0;if(this._stacks.set(n,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;let n,i=0;this._stacks.forEach((e,t)=>{(!n||i<e)&&(n=t,i=e)}),console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${i}):`),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=c>0?new l(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 i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this)
;const r=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);let s;this._leakageMon&&(s=this._leakageMon.check(this._listeners.size));let a;return a={dispose:()=>{if(s&&s(),a.dispose=u._noop,!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(a),a})),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){i.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){i.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(r.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 p{constructor(){this.buffers=[]}wrapEvent(e){
return(t,n,i)=>e(e=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>t.call(n,e)):t.call(n,e)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}t.EventBufferer=p;class g{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=g}),define(e[21],t([0,1,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{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}}i.INSTANCE=new i,t.setZoomLevel=function(e,t){
i.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return i.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return i.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return i.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return i.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){i.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return i.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){i.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return i.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=i.INSTANCE.onDidChangeFullscreen;const r=navigator.userAgent;t.isIE=r.indexOf("Trident")>=0,t.isEdge=r.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=r.indexOf("Opera")>=0,t.isFirefox=r.indexOf("Firefox")>=0,t.isWebKit=r.indexOf("AppleWebKit")>=0,t.isChrome=r.indexOf("Chrome")>=0,t.isSafari=!t.isChrome&&r.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=r.indexOf("iPad")>=0,
t.isEdgeWebView=t.isEdge&&r.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){let e=r.indexOf("Edge/"),t=parseInt(r.substring(e+5,r.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}}),define(e[48],t([0,1,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=((e,t,i)=>{const r=e=>s.fire(e),s=new n.Emitter({onFirstListenerAdd:()=>{e.addEventListener(t,r,i)},onLastListenerRemove:()=>{e.removeEventListener(t,r,i)}});return s.event}),t.stop=function(e){return n.Event.map(e,e=>(e.preventDefault(),e.stopPropagation(),e))}}),define(e[34],t([0,1,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var r;!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:i})}(r=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?i:(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=r.Cancelled}dispose(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}t.CancellationTokenSource=o}),define(e[10],t([0,1,34,9,3,4]),function(e,t,i,r,s,o){"use strict";function a(e){return e&&"function"==typeof e.then}function c(e){const t=new i.CancellationTokenSource,n=e(t.token),s=new Promise((e,i)=>{t.token.onCancellationRequested(()=>{i(r.canceled())}),Promise.resolve(n).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),i(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 l(e,t){return t?new Promise((n,i)=>{const s=setTimeout(n,e);t.onCancellationRequested(()=>{clearTimeout(s),i(r.canceled())})}):c(t=>l(e,t))}function u(e){function t(s){void 0!==s&&null!==s&&n.push(s);const o=i<r?e[i++]():null;return o?o.then(t):Promise.resolve(n)}const n=[];let i=0
;const r=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=a,t.createCancelablePromise=c,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 i=e();a(i)?i.then(t,n):t(i)})};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(r.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=f;class p{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=p;class g{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=g,t.timeout=l,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 i=0;const r=e.length,s=()=>{if(i>=r)return Promise.resolve(n);const o=e[i++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):s())};return s()};class m{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=m;class v extends m{constructor(){super(1)}}t.Queue=v;class _{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new v;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=_;class b extends o.Disposable{constructor(e,t){super(),this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}
cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}t.TimeoutTimer=b;class y extends o.Disposable{constructor(){super(),this._token=-1}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=y;class w{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=w;class E extends w{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=E,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 i=!1;return{dispose(){i||(i=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{const n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(n))}}})}();class C{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=C,t.retry=function(e,t,i){return n(this,void 0,void 0,function*(){let n
;for(let r=0;r<i;r++)try{return yield e()}catch(e){n=e,yield l(t)}return Promise.reject(n)})}}),define(e[14],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote"}(t.Schemas||(t.Schemas={}))}),define(e[2],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=!1,i=!1,r=!1,s=!1,o=!1,a=void 0,c="en",l=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,i="darwin"===process.platform,r="linux"===process.platform,a="en",c="en";const e=process.env.VSCODE_NLS_CONFIG;if(e)try{
const t=JSON.parse(e),n=t.availableLanguages["*"];a=t.locale,c=n||"en",l=t._translationsConfigFile}catch(e){}s=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,i=e.indexOf("Macintosh")>=0,r=e.indexOf("Linux")>=0,o=!0,c=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&&(i?h=1:n?h=3:r&&(h=2)),t.isWindows=n,t.isMacintosh=i,t.isLinux=r,t.isNative=s,t.isWeb=o,t.platform=h,t.isRootUser=function(){return s&&!n&&0===process.getuid()},t.language=c;!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=l
;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=i?2:n?1:3}),define(e[32],t([0,1,21,69,2]),function(e,t,n,i,r){"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),r.isMacintosh&&e(224,57)):n.isWebKit&&(e(91,57),r.isMacintosh?e(93,57):e(92,57))}(),t.getCodeForKeyCode=function(e){return o[e]};const a=r.isMacintosh?256:2048,c=r.isMacintosh?2048:256;class l{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 i.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|=c),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new i.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}t.StandardKeyboardEvent=l}),define(e[77],t([0,1,21,73,2]),function(e,t,n,i,r){"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=i.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,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){let t=e,i=e;void 0!==t.wheelDeltaY?this.deltaY=t.wheelDeltaY/120:void 0!==i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS&&(this.deltaY=-i.detail/3),
void 0!==t.wheelDeltaX?n.isSafari&&r.isWindows?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120:void 0!==i.HORIZONTAL_AXIS&&i.axis===i.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[24],t([0,1,21,48,32,77,10,9,3,4,2,19]),function(e,t,n,i,r,s,o,a,c,l,u,h){"use strict";function d(e,t,n,i){return new k(e,t,n,i)}function f(e){return document.defaultView.getComputedStyle(e,null)}function p(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;let r=f(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=I.getBorderLeftWidth(e),n+=I.getBorderTopWidth(e),n+=e.offsetTop,
i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function g(e){let t=I.getMarginLeft(e)+I.getMarginRight(e);return e.offsetWidth+t}function m(e){let t=I.getMarginLeft(e)+I.getMarginRight(e);return e.scrollWidth+t}function v(e,t){let n=t.map(t=>Math.max(m(t),g(t))+function(e,t){if(null===e)return 0;let n=p(e),i=p(t);return n.left-i.left}(t,e)||0);return Math.max(...n)}function _(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function b(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 L||(L=b()),L}function w(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 E=new class{_findClassName(e,t){let n=e.className;if(!n)return void(this._lastStart=-1);t=t.trim();let i=n.length,r=t.length;if(0===r)return void(this._lastStart=-1);if(i<r)return void(this._lastStart=-1);if(n===t)return this._lastStart=0,void(this._lastEnd=i);let s,o=-1;for(;(o=n.indexOf(t,o+1))>=0;){if(s=o+r,(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===i)return this._lastStart=o-1,void(this._lastEnd=s);if(0===o&&s===i)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)}},C=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)}},S=n.isIE?E:C;t.hasClass=S.hasClass.bind(S),t.addClass=S.addClass.bind(S),t.addClasses=S.addClasses.bind(S),t.removeClass=S.removeClass.bind(S),t.removeClasses=S.removeClasses.bind(S),t.toggleClass=S.toggleClass.bind(S)
;class k{constructor(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._useCapture=i||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}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,i){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 r.StandardKeyboardEvent(t))}}(n)),d(e,t,o,i)},t.addDisposableNonBubblingMouseOutListener=function(e,t){return d(e,"mouseout",n=>{let i=n.relatedTarget||n.target;for(;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})};let A=null;class x{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,i=!1,r=!1;t.scheduleAtNextAnimationFrame=((t,s=0)=>{let o=new x(t,s);return e.push(o),i||(i=!0,function(e){A||(A=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||(e=>setTimeout(()=>e((new Date).getTime()),0))),A.call(self,e)}(()=>{for(i=!1,n=e,e=[],r=!0;n.length>0;)n.sort(x.sort),n.shift().execute();r=!1})),o}),t.runAtThisOrScheduleAtNextAnimationFrame=((e,i)=>{if(r){let t=new x(e,i);return n.push(t),t}return t.scheduleAtNextAnimationFrame(e,i)})}(),t.measure=function(e){return t.scheduleAtNextAnimationFrame(e,1e4)},t.modify=function(e){return t.scheduleAtNextAnimationFrame(e,-1e4)};class P extends l.Disposable{constructor(e,t,n,i=function(e,t){return t},r=16){super();let s=null,a=0,c=this._register(new o.TimeoutTimer),l=()=>{a=(new Date).getTime(),n(s),s=null};this._register(d(e,t,e=>{s=i(s,e);let t=(new Date).getTime()-a;t>=r?(c.cancel(),
l()):c.setIfNotSet(l,r-t)}))}}t.addDisposableThrottledListener=function(e,t,n,i,r){return new P(e,t,n,i,r)},t.getComputedStyle=f,t.getClientArea=function(e){if(e!==document.body)return new T(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new T(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new T(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new T(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};class I{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){let i=f(e),r="0";return i&&(r=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),I.convertToPixels(e,r)}static getBorderLeftWidth(e){return I.getDimension(e,"border-left-width","borderLeftWidth")}
static getBorderRightWidth(e){return I.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return I.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return I.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return I.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return I.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return I.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return I.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return I.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return I.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return I.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return I.getDimension(e,"margin-bottom","marginBottom")}}class T{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=T,t.getTopLeftOffset=p,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,i,r,s="absolute"){"number"==typeof t&&(e.style.top=`${t}px`),"number"==typeof n&&(e.style.right=`${n}px`),"number"==typeof i&&(e.style.bottom=`${i}px`),"number"==typeof r&&(e.style.left=`${r}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=g,t.getContentWidth=function(e){
let t=I.getBorderLeftWidth(e)+I.getBorderRightWidth(e),n=I.getPaddingLeft(e)+I.getPaddingRight(e);return e.offsetWidth-t-n},t.getTotalScrollWidth=m,t.getContentHeight=function(e){let t=I.getBorderTopWidth(e)+I.getBorderBottomWidth(e),n=I.getPaddingTop(e)+I.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){let t=I.getMarginTop(e)+I.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=v,t.isAncestor=_,t.findParentWithClass=function(e,n,i){for(;e;){if(t.hasClass(e,n))return e;if(i)if("string"==typeof i){if(t.hasClass(e,i))return null}else if(e===i)return null;e=e.parentNode}return null},t.createStyleSheet=b;let L=null;t.createCSSRule=function(e,t,n=y()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},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),i=[];for(let t=0;t<n.length;t++)-1!==n[t].selectorText.indexOf(e)&&i.push(t)
;for(let e=i.length-1;e>=0;e--)t.sheet.deleteRule(i[e])},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:n.isWebKit?"webkitAnimationEnd":"animationend",
ANIMATION_ITERATION:n.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode};class O{constructor(e){this._onDidFocus=new c.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new c.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];let n=_(document.activeElement,e),r=!1;i.domEvent(e,t.EventType.FOCUS,!0)(()=>{r=!1,n||(n=!0,this._onDidFocus.fire())},null,this.disposables),i.domEvent(e,t.EventType.BLUR,!0)(()=>{n&&(r=!0,window.setTimeout(()=>{r&&(r=!1,n=!1,this._onDidBlur.fire())},0))},null,this.disposables)}dispose(){this.disposables=l.dispose(this.disposables),
this._onDidFocus.dispose(),this._onDidBlur.dispose()}}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 D=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=function(e,t,...n){let i=D.exec(e);if(!i)throw new Error("Bad use of emmet");let r=document.createElement(i[1]||"div");return i[3]&&(r.id=i[3]),i[4]&&(r.className=i[4].replace(/\./g," ").trim()),t=t||{},Object.keys(t).forEach(e=>{const n=t[e];/^on\w+$/.test(e)?r[e]=n:"selected"===e?n&&r.setAttribute(e,"true"):r.setAttribute(e,n)}),h.coalesce(n).forEach(e=>{e instanceof Node?r.appendChild(e):r.appendChild(document.createTextNode(e))}),r},t.join=function(e,t){const n=[];return e.forEach((e,i)=>{i>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=w,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(),i=t.scheduleAtNextAnimationFrame(n)};let i=t.scheduleAtNextAnimationFrame(n);return l.toDisposable(()=>i.dispose())}});var i=this&&this.__decorate||function(e,t,n,i){
var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};define(e[86],t([0,1,19,4,24,30]),function(e,t,n,r,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a;!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(a=t.EventType||(t.EventType={}));class c extends r.Disposable{constructor(){super(),this.activeTouches={},this.handle=null,this.targets=[],this._register(s.addDisposableListener(document,"touchstart",e=>this.onTouchStart(e))),this._register(s.addDisposableListener(document,"touchend",e=>this.onTouchEnd(e))),this._register(s.addDisposableListener(document,"touchmove",e=>this.onTouchMove(e)))}static addTarget(e){
c.isTouchDevice()&&(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.targets.push(e))}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,i=e.targetTouches.length;n<i;n++){let i=e.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],rollingPageY:[i.pageY]};let r=this.newGestureEvent(a.Start,i.target);r.pageX=i.pageX,r.pageY=i.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),i=Object.keys(this.activeTouches).length;for(let r=0,s=e.changedTouches.length;r<s;r++){let s=e.changedTouches.item(r)
;if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("move of an UNKNOWN touch",s);continue}let o=this.activeTouches[s.identifier],l=Date.now()-o.initialTimeStamp;if(l<c.HOLD_DELAY&&Math.abs(o.initialPageX-n.tail(o.rollingPageX))<30&&Math.abs(o.initialPageY-n.tail(o.rollingPageY))<30){let e=this.newGestureEvent(a.Tap,o.initialTarget);e.pageX=n.tail(o.rollingPageX),e.pageY=n.tail(o.rollingPageY),this.dispatchEvent(e)}else if(l>=c.HOLD_DELAY&&Math.abs(o.initialPageX-n.tail(o.rollingPageX))<30&&Math.abs(o.initialPageY-n.tail(o.rollingPageY))<30){let e=this.newGestureEvent(a.Contextmenu,o.initialTarget);e.pageX=n.tail(o.rollingPageX),e.pageY=n.tail(o.rollingPageY),this.dispatchEvent(e)}else if(1===i){let e=n.tail(o.rollingPageX),i=n.tail(o.rollingPageY),r=n.tail(o.rollingTimestamps)-o.rollingTimestamps[0],s=e-o.rollingPageX[0],a=i-o.rollingPageY[0];const c=this.targets.filter(e=>o.initialTarget instanceof Node&&e.contains(o.initialTarget))
;this.inertia(c,t,Math.abs(s)/r,s>0?1:-1,e,Math.abs(a)/r,a>0?1:-1,i)}this.dispatchEvent(this.newGestureEvent(a.End,o.initialTarget)),delete this.activeTouches[s.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n}dispatchEvent(e){this.targets.forEach(t=>{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,n,i,r,o,l,u){this.handle=s.scheduleAtNextAnimationFrame(()=>{let s=Date.now(),h=s-t,d=0,f=0,p=!0;n+=c.SCROLL_FRICTION*h,o+=c.SCROLL_FRICTION*h,n>0&&(p=!1,d=i*n*h),o>0&&(p=!1,f=l*o*h);let g=this.newGestureEvent(a.Change);g.translationX=d,g.translationY=f,e.forEach(e=>e.dispatchEvent(g)),p||this.inertia(e,s,n,i,r+d,o,l,u+f)})}onTouchMove(e){let t=Date.now();for(let i=0,r=e.changedTouches.length;i<r;i++){let r=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(r.identifier))){
console.warn("end of an UNKNOWN touch",r);continue}let s=this.activeTouches[r.identifier],o=this.newGestureEvent(a.Change,s.initialTarget);o.translationX=r.pageX-n.tail(s.rollingPageX),o.translationY=r.pageY-n.tail(s.rollingPageY),o.pageX=r.pageX,o.pageY=r.pageY,this.dispatchEvent(o),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(r.pageX),s.rollingPageY.push(r.pageY),s.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}c.SCROLL_FRICTION=-.005,c.HOLD_DELAY=700,i([o.memoize],c,"isTouchDevice",null),t.Gesture=c}),define(e[46],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i="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=i.cwd,t.env=i.env,t.platform=i.platform,t.nextTick=i.nextTick}),
define(e[6],t([0,1,46]),function(e,t,n){"use strict";function i(e,t){if("string"!=typeof e)throw new m(t,"string",e)}function r(e){return e===p||e===g}function s(e){return e===p}function o(e){return e>=l&&e<=h||e>=u&&e<=d}function a(e,t,n,i){let r,s="",o=0,a=-1,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)r=e.charCodeAt(l);else{if(i(r))break;r=p}if(i(r)){if(a===l-1||1===c);else if(a!==l-1&&2===c){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=l,c=0;continue}if(2===s.length||1===s.length){s="",o=0,a=l,c=0;continue}}t&&(s.length>0?s+=`${n}..`:s="..",o=2)}else s.length>0?s+=n+e.slice(a+1,l):s=e.slice(a+1,l),o=l-a-1;a=l,c=0}else r===f&&-1!==c?++c:c=-1}return s}function c(e,t){const n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}Object.defineProperty(t,"__esModule",{value:!0});const l=65,u=97,h=90,d=122,f=46,p=47,g=92
;class m extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let r=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${i} of type ${t}`;super(r+=`. Received type ${typeof n}`)}}t.win32={resolve(...e){let t="",s="",c=!1;for(let a=e.length-1;a>=-1;a--){let l;if(a>=0?l=e[a]:t?void 0!==(l=n.env["="+t]||n.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=n.cwd(),i(l,"path"),0===l.length)continue;const u=l.length;let h=0,d="",f=!1;const p=l.charCodeAt(0);if(u>1)if(r(p))if(f=!0,r(l.charCodeAt(1))){let e=2,t=e;for(;e<u&&!r(l.charCodeAt(e));++e);if(e<u&&e!==t){const n=l.slice(t,e);for(t=e;e<u&&r(l.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!r(l.charCodeAt(e));++e);e===u?(d="\\\\"+n+"\\"+l.slice(t),h=e):e!==t&&(d="\\\\"+n+"\\"+l.slice(t,e),h=e)}}}else h=1;else o(p)&&58===l.charCodeAt(1)&&(d=l.slice(0,2),h=2,u>2&&r(l.charCodeAt(2))&&(f=!0,h=3));else r(p)&&(h=1,f=!0)
;if(!(d.length>0&&t.length>0&&d.toLowerCase()!==t.toLowerCase())&&(0===t.length&&d.length>0&&(t=d),c||(s=l.slice(h)+"\\"+s,c=f),t.length>0&&c))break}return s=a(s,!c,"\\",r),t+(c?"\\":"")+s||"."},normalize(e){i(e,"path");const t=e.length;if(0===t)return".";let n,s=0,c=!1;const l=e.charCodeAt(0);if(t>1)if(r(l))if(c=!0,r(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!r(e.charCodeAt(i));++i);if(i<t&&i!==o){const a=e.slice(o,i);for(o=i;i<t&&r(e.charCodeAt(i));++i);if(i<t&&i!==o){for(o=i;i<t&&!r(e.charCodeAt(i));++i);if(i===t)return"\\\\"+a+"\\"+e.slice(o)+"\\";i!==o&&(n="\\\\"+a+"\\"+e.slice(o,i),s=i)}}}else s=1;else o(l)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),s=2,t>2&&r(e.charCodeAt(2))&&(c=!0,s=3));else if(r(l))return"\\";let u;return 0!==(u=s<t?a(e.slice(s),!c,"\\",r):"").length||c||(u="."),u.length>0&&r(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?c?u.length>0?"\\"+u:"\\":u.length>0?u:"":c?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){i(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0)
;return!!r(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&r(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let n,s;for(let t=0;t<e.length;++t){const r=e[t];i(r,"path"),r.length>0&&(void 0===n?n=s=r:n+="\\"+r)}if(void 0===n)return".";let o=!0,a=0;if("string"==typeof s&&r(s.charCodeAt(0))){++a;const e=s.length;e>1&&r(s.charCodeAt(1))&&(++a,e>2&&(r(s.charCodeAt(2))?++a:o=!1))}if(o){for(;a<n.length&&r(n.charCodeAt(a));++a);a>=2&&(n="\\"+n.slice(a))}return t.win32.normalize(n)},relative(e,n){if(i(e,"from"),i(n,"to"),e===n)return"";const r=t.win32.resolve(e),s=t.win32.resolve(n);if(r===s)return"";if(e=r.toLowerCase(),n=s.toLowerCase(),e===n)return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===g;++o);let a=e.length;for(;a-1>o&&e.charCodeAt(a-1)===g;--a);const c=a-o;let l=0;for(;l<n.length&&n.charCodeAt(l)===g;++l);let u=n.length;for(;u-1>l&&n.charCodeAt(u-1)===g;--u);const h=u-l,d=c<h?c:h;let f=-1,p=0;for(;p<=d;++p){if(p===d){if(h>d){if(n.charCodeAt(l+p)===g)return s.slice(l+p+1);if(2===p)return s.slice(l+p)}
c>d&&(e.charCodeAt(o+p)===g?f=p:2===p&&(f=3));break}const t=e.charCodeAt(o+p);if(t!==n.charCodeAt(l+p))break;t===g&&(f=p)}if(p!==d&&-1===f)return s;let m="";for(-1===f&&(f=0),p=o+f+1;p<=a;++p)p!==a&&e.charCodeAt(p)!==g||(0===m.length?m+="..":m+="\\..");return m.length>0?m+s.slice(l+f,u):(l+=f,s.charCodeAt(l)===g&&++l,s.slice(l,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)===g){if(n.charCodeAt(1)===g){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)===g)return"\\\\?\\"+n;return e},dirname(e){i(e,"path");const t=e.length;if(0===t)return".";let n=-1,s=-1,a=!0,c=0;const l=e.charCodeAt(0);if(t>1)if(r(l)){if(n=c=1,r(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!r(e.charCodeAt(i));++i);if(i<t&&i!==s){for(s=i;i<t&&r(e.charCodeAt(i));++i);if(i<t&&i!==s){for(s=i;i<t&&!r(e.charCodeAt(i));++i);if(i===t)return e;i!==s&&(n=c=i+1)}}}
}else o(l)&&58===e.charCodeAt(1)&&(n=c=2,t>2&&r(e.charCodeAt(2))&&(n=c=3));else if(r(l))return e;for(let n=t-1;n>=c;--n)if(r(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&&i(t,"ext"),i(e,"path");let n,s=0,a=-1,c=!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 i=t.length-1,o=-1;for(n=e.length-1;n>=s;--n){const l=e.charCodeAt(n);if(r(l)){if(!c){s=n+1;break}}else-1===o&&(c=!1,o=n+1),i>=0&&(l===t.charCodeAt(i)?-1==--i&&(a=n):(i=-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(r(e.charCodeAt(n))){if(!c){s=n+1;break}}else-1===a&&(c=!1,a=n+1);return-1===a?"":e.slice(s,a)},extname(e){i(e,"path");let t=0,n=-1,s=0,a=-1,c=!0,l=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=s=2);for(let i=e.length-1;i>=t;--i){const t=e.charCodeAt(i);if(r(t)){if(!c){s=i+1;break}}else-1===a&&(c=!1,
a=i+1),t===f?-1===n?n=i:1!==l&&(l=1):-1!==n&&(l=-1)}return-1===n||-1===a||0===l||1===l&&n===a-1&&n===s+1?"":e.slice(n,a)},format(e){if(null===e||"object"!=typeof e)throw new m("pathObject","Object",e);return c("\\",e)},parse(e){i(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(r(a)){if(s=1,r(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!r(e.charCodeAt(t));++t);if(t<n&&t!==i){for(i=t;t<n&&r(e.charCodeAt(t));++t);if(t<n&&t!==i){for(i=t;t<n&&!r(e.charCodeAt(t));++t);t===n?s=t:t!==i&&(s=t+1)}}}}else if(o(a)&&58===e.charCodeAt(1)){if(s=2,!(n>2))return t.root=t.dir=e,t;if(r(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;s=3}}}else if(r(a))return t.root=t.dir=e,t;s>0&&(t.root=e.slice(0,s));let c=-1,l=s,u=-1,h=!0,d=e.length-1,p=0;for(;d>=s;--d)if(a=e.charCodeAt(d),r(a)){if(!h){l=d+1;break}}else-1===u&&(h=!1,u=d+1),a===f?-1===c?c=d:1!==p&&(p=1):-1!==c&&(p=-1)
;return-1===c||-1===u||0===p||1===p&&c===u-1&&c===l+1?-1!==u&&(t.base=t.name=e.slice(l,u)):(t.name=e.slice(l,c),t.base=e.slice(l,u),t.ext=e.slice(c,u)),t.dir=l>0&&l!==s?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",r=!1;for(let s=e.length-1;s>=-1&&!r;s--){let o;i(o=s>=0?e[s]:n.cwd(),"path"),0!==o.length&&(t=o+"/"+t,r=o.charCodeAt(0)===p)}return t=a(t,!r,"/",s),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(i(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p,n=e.charCodeAt(e.length-1)===p;return 0!==(e=a(e,!t,"/",s)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(i(e,"path"),e.length>0&&e.charCodeAt(0)===p),join(...e){if(0===e.length)return".";let n;for(let t=0;t<e.length;++t){const e=arguments[t];i(e,"path"),e.length>0&&(void 0===n?n=e:n+="/"+e)}return void 0===n?".":t.posix.normalize(n)},relative(e,n){if(i(e,"from"),i(n,"to"),e===n)return"";if(e=t.posix.resolve(e),n=t.posix.resolve(n),e===n)return"";let r=1
;for(;r<e.length&&e.charCodeAt(r)===p;++r);const s=e.length,o=s-r;let a=1;for(;a<n.length&&n.charCodeAt(a)===p;++a);const c=n.length-a,l=o<c?o:c;let u=-1,h=0;for(;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(a+h)===p)return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else o>l&&(e.charCodeAt(r+h)===p?u=h:0===h&&(u=0));break}const t=e.charCodeAt(r+h);if(t!==n.charCodeAt(a+h))break;t===p&&(u=h)}let d="";for(h=r+u+1;h<=s;++h)h!==s&&e.charCodeAt(h)!==p||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+u):(a+=u,n.charCodeAt(a)===p&&++a,n.slice(a))},toNamespacedPath:e=>e,dirname(e){if(i(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&i(t,"ext"),i(e,"path");let n,r=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 i=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){
const c=e.charCodeAt(n);if(c===p){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),i>=0&&(c===t.charCodeAt(i)?-1==--i&&(s=n):(i=-1,s=a))}return r===s?s=a:-1===s&&(s=e.length),e.slice(r,s)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1);return-1===s?"":e.slice(r,s)},extname(e){i(e,"path");let t=-1,n=0,r=-1,s=!0,o=0;for(let i=e.length-1;i>=0;--i){const a=e.charCodeAt(i);if(a!==p)-1===r&&(s=!1,r=i+1),a===f?-1===t?t=i:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){n=i+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format(e){if(null===e||"object"!=typeof e)throw new m("pathObject","Object",e);return c("/",e)},parse(e){i(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===p;let r;n?(t.root="/",r=1):r=0;let s=-1,o=0,a=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l){const t=e.charCodeAt(l);if(t!==p)-1===a&&(c=!1,a=l+1),t===f?-1===s?s=l:1!==u&&(u=1):-1!==s&&(u=-1);else if(!c){o=l+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[5],t([0,1]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function i(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function r(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,s=-1;for(;;){if(-1===(s=e.lastIndexOf(t,r-1))||s+n!==r)break;if(0===s)return"";r=s}return e.substring(0,r)}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 c(e){return o(e)||a(e)}function l(e,t,n=e.length){if("string"!=typeof e||"string"!=typeof t)return!1;for(let i=0;i<n;i++){const n=e.charCodeAt(i),r=t.charCodeAt(i);if(n!==r)if(c(n)&&c(r)){const e=Math.abs(n-r)
;if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function u(e,t,n,i,r,s){for(;t<n&&r<s;){if(e[t]!==i[r])return!1;t+=1,r+=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 i=""+e,r=[i];for(let e=i.length;e<t;e++)r.push(n);return r.reverse().join("")};const f=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(f,function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]})},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 r(i(e,t),t)},t.ltrim=i,t.rtrim=r,
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,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return i.global&&(r+="g"),i.matchCase||(r+="i"),i.multiline&&(r+="m"),i.unicode&&(r+="u"),new RegExp(e,r)},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 i=t;i<n;i++){const n=e.charCodeAt(i);if(32!==n&&9!==n)return e.substring(t,i)}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 i=0;i<n;i++){let n=e.charCodeAt(i),r=t.charCodeAt(i);if(n===r)continue;a(n)&&(n+=32),a(r)&&(r+=32);const c=n-r;if(0!==c)return o(n)&&o(r)?c: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)&&l(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length
;return!(t.length>e.length)&&l(e,t,n)},t.commonPrefixLength=function(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i},t.commonSuffixLength=function(e,t){let n,i=Math.min(e.length,t.length);const r=e.length-1,s=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(s-n))return n;return i},t.overlap=function(e,t){const n=e.length;let i=t.length,r=n-i;if(0===r)return e===t?n:0;for(r<0&&(i+=r,r=0);r<n&&i>0;){if(u(e,r,n,t,0,i))return i;i-=1,r+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343}
;const p=/(?:[\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 p.test(e)};const g=/(?:[\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 g.test(e)};const m=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return m.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 i=/\b/g
;let r=0;for(;i.test(e)&&!(e.length-i.lastIndex<n);)r=i.lastIndex,i.lastIndex+=1;return e.substring(r).replace(/^\s/,t.empty)};const v=/\x1B\x5B[12]?K/g,_=/\x1b\[\d+m/g,b=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(_,"")).replace(b,"")),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 i=0;i<t;i++)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,i=e.toLowerCase();let r=0,s=-1;for(;r<n;){const e=i.indexOf(t[r],s+1);if(e<0)return!1;s=e,r++}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[56],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toLocalISOString=function(e){return e.getFullYear()+"-"+n.pad(e.getMonth()+1,2)+"-"+n.pad(e.getDate(),2)+"T"+n.pad(e.getHours(),2)+":"+n.pad(e.getMinutes(),2)+":"+n.pad(e.getSeconds(),2)+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}),define(e[20],t([0,1,2,5,6]),function(e,t,n,i,r){"use strict";function s(e){return 47===e||92===e}function o(e){return e>=65&&e<=90||e>=97&&e<=122}Object.defineProperty(t,"__esModule",{value:!0}),t.toSlashes=function(e){return e.replace(/[\\/]/g,r.posix.sep)},t.getRoot=function(e,t=r.posix.sep){if(!e)return"";const n=e.length,i=e.charCodeAt(0);if(s(i)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){
let i=3;const r=i;for(;i<n&&!s(e.charCodeAt(i));i++);if(r!==i&&!s(e.charCodeAt(i+1)))for(i+=1;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if(o(i)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let a=e.indexOf("://");if(-1!==a)for(a+=3;a<n;a++)if(s(e.charCodeAt(a)))return e.slice(0,a+1);return""},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;let i=2;const r=i;for(;i<e.length&&92!==(t=e.charCodeAt(i));i++);return r!==i&&(t=e.charCodeAt(i+1),!isNaN(t)&&92!==t)};const a=/[\\/:\*\?"<>\|]/g,c=/[\\/]/g,l=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e,t=n.isWindows){const i=t?a:c;return!(!e||0===e.length||/^\s+$/.test(e)||(i.lastIndex=0,i.test(e)||t&&l.test(e)||"."===e||".."===e||t&&"."===e[e.length-1]||t&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,n){const r=e===t
;return!n||r?r:!(!e||!t)&&i.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,n,s=r.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!i.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)},t.isWindowsDriveLetter=o,t.sanitizeFilePath=function(e,t){return n.isWindows&&i.endsWith(e,":")&&(e+=r.sep),r.isAbsolute(e)||(e=r.join(t,e)),e=r.normalize(e),n.isWindows?(e=i.rtrim(e,r.sep),i.endsWith(e,":")&&(e+=r.sep)):(e=i.rtrim(e,r.sep))||(e=r.sep),e},t.isRootOrDriveLetter=function(e){const t=r.normalize(e);return n.isWindows?!(e.length>3)&&o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&(2===e.length||92===t.charCodeAt(2)):t===r.posix.sep}}),define(e[11],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==l.number||e.constructor!==Array)}function i(e){
return typeof e===l.string||e instanceof String}function r(e){return!(typeof e!==l.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return typeof e===l.undefined}function o(e){return s(e)||null===e}function a(e){return typeof e===l.function}function c(e,t){if(i(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(a(t)){try{if(e instanceof t)return}catch(e){}if(!o(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0});const l={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=i,t.isStringArray=function(e){return n(e)&&e.every(e=>i(e))},t.isObject=r,t.isNumber=function(e){return(typeof e===l.number||e instanceof Number)&&!isNaN(e)},
t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=s,t.isUndefinedOrNull=o;const u=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!r(e))return!1;for(let t in e)if(u.call(e,t))return!1;return!0},t.isFunction=a,t.areFunctions=function(...e){return e.length>0&&e.every(a)},t.validateConstraints=function(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)c(e[i],t[i])},t.validateConstraint=c,t.getAllPropertyNames=function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t},t.withNullAsUndefined=function(e){return null===e?void 0:e},t.withUndefinedAsNull=function(e){return void 0===e?null:e}}),define(e[12],t([0,1,11]),function(e,t,n){"use strict";function i(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]=i(e[n]):t[n]=e[n]}),t}function r(e,t,i){
if(n.isUndefinedOrNull(e))return e;const s=t(e);if(void 0!==s)return s;if(n.isArray(e)){const n=[];for(const s of e)n.push(r(s,t,i));return n}if(n.isObject(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(let s in e)a.call(e,s)&&(n[s]=r(e[s],t,i));return i.delete(e),n}return e}function s(e,t,i=!0){return n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(r=>{r in e?i&&(n.isObject(e[r])&&n.isObject(t[r])?s(e[r],t[r],i):e[r]=t[r]):e[r]=t[r]}),e):t}function o(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1}else{const r=[];for(i in e)r.push(i);r.sort();const s=[];for(i in t)s.push(i);if(s.sort(),!o(r,s))return!1;for(n=0;n<r.length;n++)if(!o(e[r[n]],t[r[n]]))return!1}return!0}Object.defineProperty(t,"__esModule",{
value:!0}),t.deepClone=i,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const n in e)if(a.call(e,n)){const i=e[n];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};const a=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return r(e,t,new Set)},t.mixin=s,t.assign=function(e,...t){return t.forEach(t=>Object.keys(t).forEach(n=>e[n]=t[n])),e},t.equals=o,t.safeStringify=function(e){const t=[];return JSON.stringify(e,(e,i)=>{if(n.isObject(i)||Array.isArray(i)){if(-1!==t.indexOf(i))return"[Circular]";t.push(i)}return i})},t.getOrDefault=function(e,t,n){const i=t(e);return void 0===i?n:i},t.distinct=function(e,t){const n=Object.create(null);return e&&t?(Object.keys(t).forEach(i=>{const r=e[i],s=t[i];o(r,s)||(n[i]=s)}),n):n}}),define(e[7],t([0,1,2]),function(e,t,n){"use strict";function i(e,t){let n=void 0,i=-1;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r)
;if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=m[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function r(e){let t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){const n=t?function(e){let t=void 0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=m[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:i;let r="",{scheme:s,authority:o,path:a,query:c,fragment:l}=e;if(s&&(r+=s,r+=":"),
(o||"file"===s)&&(r+=h,r+=h),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0)}return c&&(r+="?",r+=n(c,!1)),l&&(r+="#",r+=t?l:i(l,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,a=/^\//,c=/^\/\//;let l=!0;t.setUriThrowOnMissingScheme=function(e){const t=l;return l=e,t};const u="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static isUri(e){
return e instanceof f||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){return t||l?e||u:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,s),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||u),this.query=i||u,this.fragment=r||u,function(e,t){if(!e.scheme){if(t||l)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)
;console.warn(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)}if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.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(c.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 r(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===i?i=this.path:null===i&&(i=u),void 0===r?r=this.query:null===r&&(r=u),void 0===s?s=this.fragment:null===s&&(s=u),
t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new g(t,n,i,r,s)}static parse(e,t=!1){const n=d.exec(e);return n?new g(n[2]||u,decodeURIComponent(n[4]||u),decodeURIComponent(n[5]||u),decodeURIComponent(n[7]||u),decodeURIComponent(n[9]||u),t):new g(u,u,u,u,u)}static file(e){let t=u;if(n.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new g("file",t,e,u,u)}static from(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return s(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof f)return e;{const t=new g(e);return t._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t}}return e}}t.URI=f;const p=n.isWindows?1:void 0;class g extends f{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this)),this._fsPath}toString(e=!1){
return e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),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 m={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[17],t([0,1,7]),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[29],t([0,1,7,33]),function(e,t,n,i){"use strict";function r(e){const t=[];return e.forEach(e=>t.push(e)),t}function s(e){const t=[];return e.forEach((e,n)=>t.push(n)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=r,t.keys=s,
t.getOrSet=function(e,t,n){let i=e.get(t);return void 0===i&&(i=n,e.set(t,i)),i},t.mapToString=function(e){const t=[];return e.forEach((e,n)=>{t.push(`${n} => ${e}`)}),`Map(${e.size}) {${t.join(", ")}}`},t.setToString=function(e){const t=[];return e.forEach(e=>{t.push(e)}),`Set(${e.size}) {${t.join(", ")}}`},t.mapToSerializable=function(e){const t=[];return e.forEach((e,n)=>{t.push([n,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[n,i]of e)t.set(n,i);return t};class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=o;class a{reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){
const t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){let t=0;const n=e.length;let i=this._from;for(;t<n&&i<this._to;){const n=e.charCodeAt(t)-this._value.charCodeAt(i);if(0!==n)return n;t+=1,i+=1}return n===this._to-this._from?0:t<n?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=a;class c{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class l{constructor(e){this._iter=e}static forPaths(){return new l(new a)}static forStrings(){return new l(new o)}clear(){this._root=void 0}set(e,t){const n=this._iter.reset(e);let i;for(this._root||(this._root=new c,this._root.segment=n.value()),i=this._root;;){const e=n.cmp(i.segment);if(e>0)i.left||(i.left=new c,i.left.segment=n.value()),i=i.left;else if(e<0)i.right||(i.right=new c,i.right.segment=n.value()),i=i.right;else{if(!n.hasNext())break;n.next(),i.mid||(i.mid=new c,i.mid.segment=n.value()),i=i.mid}}const r=i.value;return i.value=t,i.key=e,r}get(e){
const t=this._iter.reset(e);let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0}delete(e){const t=this._iter.reset(e),n=[];let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)n.push([1,i]),i=i.left;else if(e<0)n.push([-1,i]),i=i.right;else{if(!t.hasNext()){for(i.value=void 0;n.length>0&&i.isEmpty();){let[e,t]=n.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}i=t}break}t.next(),n.push([0,i]),i=i.mid}}}findSubstr(e){const t=this._iter.reset(e);let n=this._root,i=void 0;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){const t=this._iter.reset(e);let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}}_nodeIterator(e){let t,n,r
;return{next:()=>(r||(r=[],n=0,this._forEach(e,e=>r.push(e))),n>=r.length?i.FIN:(t?t.value=r[n++]:t={done:!1,value:r[n++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}t.TernarySearchTree=l;class u{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return r(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return s(this.map).map(e=>n.URI.parse(e))}clone(){const e=new u;return this.map.forEach((t,n)=>e.map.set(n,t)),e}}t.ResourceMap=u;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class h{constructor(){this._map=new Map,this._head=void 0,
this._tail=void 0,this._size=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:default:this.addItemLast(i)}this._map.set(e,i),this._size++}}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._head;for(;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next}values(){const e=[]
;let t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){const e=[];let t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous
;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=h;class d extends h{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){
return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}t.LRUCache=d}),define(e[78],t([0,1,19,5,20,6,29,10]),function(e,t,n,i,r,s,o,a){"use strict";function c(e){switch(e){case 0:return"";case 1:return`${E}*?`;default:return`(?:${w}|${E}+${w}|${w}${E}+)*?`}}function l(e,t){if(!e)return[];const n=[];let i=!1,r=!1,s="";for(const o of e){switch(o){case t:if(!i&&!r){n.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}s+=o}return s&&n.push(s),n}function u(e){if(!e)return"";let t="";const n=l(e,y);if(n.every(e=>e===b))t=".*";else{let e=!1;n.forEach((r,s)=>{if(r===b)return void(e||(t+=c(2),e=!0));let o=!1,a="",h=!1,d="";for(const e of r)if("}"!==e&&o)a+=e;else if(!h||"]"===e&&d)switch(e){case"{":o=!0;continue;case"[":h=!0;continue;case"}":const n=`(?:${l(a,",").map(e=>u(e)).join("|")})`;t+=n,o=!1,a="";break;case"]":t+="["+d+"]",h=!1,d="";break
;case"?":t+=E;continue;case"*":t+=c(1);continue;default:t+=i.escapeRegExpCharacters(e)}else{let t;d+=t="-"===e?e:"^"!==e&&"!"!==e||d?e===y?"":i.escapeRegExpCharacters(e):"^"}s<n.length-1&&(n[s+1]!==b||s+2<n.length)&&(t+=w),e=!1})}return t}function h(e,t){if(!e)return O;let r;r="string"!=typeof e?e.pattern:e;const s=`${r=r.trim()}_${!!t.trimForExclusions}`;let o=T.get(s);if(o)return d(o,e);let a;if(S.test(r)){const e=r.substr(4);o=function(t,n){return"string"==typeof t&&i.endsWith(t,e)?r:null}}else o=(a=k.exec(f(r,t)))?function(e,t){const n=`/${e}`,r=`\\${e}`,s=function(s,o){return"string"!=typeof s?null:o?o===e?t:null:s===e||i.endsWith(s,n)||i.endsWith(s,r)?t:null},o=[e];return s.basenames=o,s.patterns=[t],s.allBasenames=o,s}(a[1],r):(t.trimForExclusions?x:A).test(r)?function(e,t){const i=_(e.slice(1,-1).split(",").map(e=>h(e,t)).filter(e=>e!==O),e),r=i.length;if(!r)return O;if(1===r)return i[0];const s=function(t,n){for(let r=0,s=i.length;r<s;r++)if(i[r](t,n))return e;return null
},o=n.first(i,e=>!!e.allBasenames);o&&(s.allBasenames=o.allBasenames);const a=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(s.allPaths=a);return s}(r,t):(a=P.exec(f(r,t)))?p(a[1].substr(1),r,!0):(a=I.exec(f(r,t)))?p(a[1],r,!1):function(e){try{const t=new RegExp(`^${u(e)}$`);return function(n,i){return t.lastIndex=0,"string"==typeof n&&t.test(n)?e:null}}catch(e){return O}}(r);return T.set(s,o),d(o,e)}function d(e,t){return"string"==typeof t?e:function(n,i){return r.isEqualOrParent(n,t.base)?e(s.relative(t.base,n),i):null}}function f(e,t){return t.trimForExclusions&&i.endsWith(e,"/**")?e.substr(0,e.length-2):e}function p(e,t,n){const r=s.sep!==s.posix.sep?e.replace(C,s.sep):e,o=s.sep+r,a=n?function(e,n){return"string"!=typeof e||e!==r&&!i.endsWith(e,o)?null:t}:function(e,n){return"string"==typeof e&&e===r?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function g(e,t={}){if(!e)return L;if("string"==typeof e||v(e)){const n=h(e,t);if(n===O)return L;const i=function(e,t){return!!n(e,t)}
;return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const i=_(Object.getOwnPropertyNames(e).map(n=>(function(e,t,n){if(!1===t)return O;const i=h(e,n);if(i===O)return O;if("boolean"==typeof t)return i;if(t){const n=t.when;if("string"==typeof n){const t=(t,r,s,o)=>{if(!o||!i(t,r))return null;const c=n.replace("$(basename)",s),l=o(c);return a.isThenable(l)?l.then(t=>t?e:null):l?e:null};return t.requiresSiblings=!0,t}}return i})(n,e[n],t)).filter(e=>e!==O)),r=i.length;if(!r)return O;if(!i.some(e=>!!e.requiresSiblings)){if(1===r)return i[0];const e=function(e,t){for(let n=0,r=i.length;n<r;n++){const r=i[n](e,t);if(r)return r}return null},t=n.first(i,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const s=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}const o=function(e,t,n){let r=void 0;for(let o=0,a=i.length;o<a;o++){const a=i[o];a.requiresSiblings&&n&&(t||(t=s.basename(e)),
r||(r=t.substr(0,t.length-s.extname(e).length)));const c=a(e,t,r,n);if(c)return c}return null},c=n.first(i,e=>!!e.allBasenames);c&&(o.allBasenames=c.allBasenames);const l=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(o.allPaths=l);return o}(e,t)}function m(e){const t={};for(const n of e)t[n]=!0;return t}function v(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function _(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const i=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce((e,t)=>{const n=t.patterns;return n?e.concat(n):e},[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;const o=e.filter(e=>!e.basenames);return o.push(s),o}Object.defineProperty(t,"__esModule",{
value:!0}),t.getEmptyExpression=function(){return Object.create(null)};const b="**",y="/",w="[/\\\\]",E="[^/\\\\]",C=/\//g;t.splitGlobAware=l;const S=/^\*\*\/\*\.[\w\.-]+$/,k=/^\*\*\/([\w\.-]+)\/?$/,A=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,x=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,P=/^\*\*((\/[\w\.-]+)+)\/?$/,I=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new o.LRUCache(1e4),L=function(){return!1},O=function(){return null};t.match=function(e,t,n){return!(!e||"string"!=typeof t)&&g(e)(t,void 0,n)},t.parse=g,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return n=>(t||(t=(e()||Promise.resolve([])).then(e=>e?m(e):{})),t.then(e=>!!e[n]))},t.hasSiblingFn=function(e){if(!e)return;let t;return n=>{if(!t){const n=e();t=n?m(n):{}}return!!t[n]}},t.isRelativePattern=v,t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[81],t([0,1,29]),function(e,t,n){"use strict";function i(e,n,i){
if(!t.canNormalize||!e)return e;const r=i.get(e);if(r)return r;let s;return s=o.test(e)?e.normalize(n):e,i.set(e,s),s}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;const r=new n.LRUCache(1e4);t.normalizeNFC=function(e){return i(e,"NFC",r)};const s=new n.LRUCache(1e4);t.normalizeNFD=function(e){return i(e,"NFD",s)};const o=/[^\u0000-\u0080]/}),define(e[38],t([0,1,20,6,7,5,14,2,78,29]),function(e,t,n,i,r,s,o,a,c,l){"use strict";function u(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function h(e,t,i=u(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return n.isEqualOrParent(p(e),p(t),i);if(d(e.authority,t.authority))return n.isEqualOrParent(e.path,t.path,i,"/")}return!1}function d(e,t){return e===t||s.equalsIgnoreCase(e,t)}function f(e){return i.posix.basename(e.path)}function p(e){let t;const i=e.path
;return t=e.authority&&i.length>1&&e.scheme===o.Schemas.file?`//${e.authority}${i}`:a.isWindows&&47===i.charCodeAt(0)&&n.isWindowsDriveLetter(i.charCodeAt(1))&&58===i.charCodeAt(2)?i.substr(1):i,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function g(e,t=i.sep){if(e.scheme===o.Schemas.file){const i=p(e);return i.length>n.getRoot(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function m(e,t){if(e.scheme===t.scheme&&d(e.authority,t.authority)){if(e.scheme===o.Schemas.file){const r=i.relative(e.path,t.path);return a.isWindows?n.toSlashes(r):r}return i.posix.relative(e.path||"/",t.path||"/")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return u(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=u,t.basenameOrAuthority=function(e){return f(e)||e.authority},t.isEqualOrParent=h,t.isEqualAuthority=d,t.isEqual=function(e,t,n=u(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!d(e.authority,t.authority))return!1
;const i=e.path||"/",r=t.path||"/";return i===r||n&&s.equalsIgnoreCase(i||"/",r||"/")},t.basename=f,t.extname=function(e){return i.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return r.URI.file(i.dirname(p(e)));let t=i.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/"),e.with({path:t})},t.joinPath=function(e,...t){let n;return n=e.scheme===o.Schemas.file?r.URI.file(i.join(p(e),...t)).path:i.posix.join(e.path||"/",...t),e.with({path:n})},t.normalizePath=function(e){if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?r.URI.file(i.normalize(p(e))).path:i.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=p,t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=g,t.removeTrailingPathSeparator=function(e,t=i.sep){return g(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e},
t.addTrailingPathSeparator=function(e,t=i.sep){let r=!1;if(e.scheme===o.Schemas.file){const i=p(e);r=void 0!==i&&i.length===n.getRoot(i).length&&i[i.length-1]===t}else{t="/";const n=e.path;r=1===n.length&&47===n.charCodeAt(n.length-1)}return r||g(e,t)?e:e.with({path:e.path+"/"})},t.relativePath=m,t.resolvePath=function(e,t){if(e.scheme===o.Schemas.file){const n=r.URI.file(i.resolve(p(e),t));return e.with({authority:n.authority,path:n.path})}return e.with({path:i.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const n=[];for(let i=0;i<e.length;i++){const r=t(e[i]);e.some((e,n)=>n!==i&&h(r,t(e)))||n.push(e[i])}return n};!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)});const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}
}(t.DataUri||(t.DataUri={}));class v{constructor(e,t){this.expressionsByRoot=l.TernarySearchTree.forPaths(),this.globalExpression=c.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:c.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const n=m(t.root,e);if(n&&t.expression(n))return!0}return!!this.globalExpression(e.path)}}t.ResourceGlobMatcher=v,t.toLocalResource=function(e,t){if(t){let n=e.path;return n&&n[0]!==i.posix.sep&&(n=i.posix.sep+n),e.with({scheme:o.Schemas.vscodeRemote,authority:t,path:n})}return e.with({scheme:o.Schemas.file})}}),define(e[84],t([0,1,7,6,5,14,2,38]),function(e,t,n,i,r,s,o,a){"use strict";function c(e){return!(!o.isWindows||!e||":"!==e[1])}function l(e){return c(e)?e.charAt(0).toUpperCase()+e.slice(1):e}function u(e,t){if(o.isWindows||!e||!t)return e;let n=h.original===t?h.normalized:void 0;return n||(n=`${r.rtrim(t,i.posix.sep)}${i.posix.sep}`,h={original:t,normalized:n}),
(o.isLinux?r.startsWith(e,n):r.startsWithIgnoreCase(e,n))&&(e=`~/${e.substr(n.length)}`),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getPathLabel=function(e,t,r){if("string"==typeof e&&(e=n.URI.file(e)),r){const t=r.getWorkspaceFolder(e);if(t){const n=r.getWorkspace().folders.length>1;let i;if(i=a.isEqual(t.uri,e)?"":a.relativePath(t.uri,e),n){const e=t&&t.name?t.name:a.basename(t.uri);i=i?e+" • "+i:e}return i}}if(e.scheme!==s.Schemas.file&&e.scheme!==s.Schemas.untitled)return e.with({query:null,fragment:null}).toString(!0);if(c(e.fsPath))return i.normalize(l(e.fsPath));let h=i.normalize(e.fsPath);return!o.isWindows&&t&&(h=u(h,t.userHome)),h},t.getBaseLabel=function(e){if(!e)return;"string"==typeof e&&(e=n.URI.file(e));const t=a.basename(e)||(e.scheme===s.Schemas.file?e.fsPath:e.path);return c(t)?l(t):t},t.normalizeDriveLetter=l;let h=Object.create(null);t.tildify=u,t.untildify=function(e,t){return e.replace(/^~($|\/|\\)/,`${t}$1`)};const d="…",f="\\\\",p="~";t.shorten=function(e){
const t=new Array(e.length);let n=!1;for(let s=0;s<e.length;s++){let o=e[s];if(""===o){t[s]=`.${i.sep}`;continue}if(!o){t[s]=o;continue}n=!0;let a="";0===o.indexOf(f)?(a=o.substr(0,o.indexOf(f)+f.length),o=o.substr(o.indexOf(f)+f.length)):0===o.indexOf(i.sep)?(a=o.substr(0,o.indexOf(i.sep)+i.sep.length),o=o.substr(o.indexOf(i.sep)+i.sep.length)):0===o.indexOf(p)&&(a=o.substr(0,o.indexOf(p)+p.length),o=o.substr(o.indexOf(p)+p.length));const c=o.split(i.sep);for(let o=1;n&&o<=c.length;o++)for(let l=c.length-o;n&&l>=0;l--){n=!1;let u=c.slice(l,l+o).join(i.sep);for(let t=0;!n&&t<e.length;t++)if(t!==s&&e[t]&&e[t].indexOf(u)>-1){const s=l+o===c.length,a=l>0&&e[t].indexOf(i.sep)>-1?i.sep+u:u,h=r.endsWith(e[t],a);n=!s||h}if(!n){let e="";(r.endsWith(c[0],":")||""!==a)&&(1===l&&(l=0,o++,u=c[0]+i.sep+u),l>0&&(e=c[0]+i.sep),e=a+e),l>0&&(e=e+d+i.sep),e+=u,l+o<c.length&&(e=e+i.sep+d),t[s]=e}}n&&(t[s]=o)}return t};var g;!function(e){e[e.TEXT=0]="TEXT",e[e.VARIABLE=1]="VARIABLE",e[e.SEPARATOR=2]="SEPARATOR"}(g||(g={})),
t.template=function(e,t=Object.create(null)){const n=[];let i=!1,r="";for(const s of e)if("$"===s||i&&"{"===s)r&&n.push({value:r,type:g.TEXT}),r="",i=!0;else if("}"===s&&i){const e=t[r];if("string"==typeof e)e.length&&n.push({value:e,type:g.VARIABLE});else if(e){const t=n[n.length-1];t&&t.type===g.SEPARATOR||n.push({value:e.label,type:g.SEPARATOR})}r="",i=!1}else r+=s;return r&&!i&&n.push({value:r,type:g.TEXT}),n.filter((e,t)=>e.type!==g.SEPARATOR||[n[t-1],n[t+1]].every(e=>e&&(e.type===g.VARIABLE||e.type===g.TEXT)&&e.value.length>0)).map(e=>e.value).join("")},t.mnemonicMenuLabel=function(e,t){return o.isMacintosh||t?e.replace(/\(&&\w\)|&&/g,"").replace(/&/g,o.isMacintosh?"&":"&&"):e.replace(/&&|&/g,e=>"&"===e?"&&":"&")},t.mnemonicButtonLabel=function(e,t){return o.isMacintosh||t?e.replace(/\(&&\w\)|&&/g,""):o.isWindows?e.replace(/&&|&/g,e=>"&"===e?"&&":"&"):e.replace(/&&/g,"_")},t.unmnemonicLabel=function(e){return e.replace(/&/g,"&&")},t.splitName=function(e){for(let t=e.length-1;t>=1;t--){
const n=e.charCodeAt(t);if(47===n||92===n)return{parentPath:e.substr(0,t),name:e.substr(t+1)}}return{parentPath:"",name:e}}}),define(e[25],t([0,1]),function(e,t){"use strict";function n(){return new s}function i(e){return o.test(e)}Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this._value=e}asHex(){return this._value}}class s extends r{constructor(){super([s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),"-",s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),"-","4",s._randomHex(),s._randomHex(),s._randomHex(),"-",s._oneOf(s._timeHighBits),s._randomHex(),s._randomHex(),s._randomHex(),"-",s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return s._oneOf(s._chars)}}
s._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],s._timeHighBits=["8","9","a","b"],t.v4=n;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;t.isUUID=i,t.parse=function(e){if(!i(e))throw new Error("invalid uuid");return new r(e)},t.generateUuid=function(){return n().asHex()}}),define(e[87],t([0,1,98,2,100,101]),function(e,t,i,r,s,o){"use strict";function a(e,t){return t.minBytesRequiredForDetection||(t.minBytesRequiredForDetection=t.guessEncoding?p:f),new Promise((n,r)=>{const s=new class extends o.Writable{constructor(){super(...arguments),this.bufferedChunks=[],this.bytesBuffered=0}_write(e,n,i){if(!Buffer.isBuffer(e))return i(new Error("toDecodeStream(): data must be a buffer"));this.decodeStream?this.decodeStream.write(e,i):(this.bufferedChunks.push(e),this.bytesBuffered+=e.byteLength,
this.decodeStreamPromise?this.decodeStreamPromise.then(()=>i(null),e=>i(e)):"number"==typeof t.minBytesRequiredForDetection&&this.bytesBuffered>=t.minBytesRequiredForDetection?this._startDecodeStream(i):i(null))}_startDecodeStream(e){this.decodeStreamPromise=Promise.resolve(h({buffer:Buffer.concat(this.bufferedChunks),bytesRead:this.bytesBuffered},t.guessEncoding)).then(r=>{r.encoding=t.overwriteEncoding(r.encoding),this.decodeStream=function(e){return i.decodeStream(c(e))}(r.encoding),this.decodeStream.write(Buffer.concat(this.bufferedChunks),e),this.bufferedChunks.length=0,n({detected:r,stream:this.decodeStream})},t=>{this.emit("error",t),e(t)})}_final(e){this.decodeStream?this.decodeStream.end(e):this._startDecodeStream(()=>this.decodeStream.end(e))}};e.on("error",r),e.pipe(s)})}function c(e){return e===t.UTF8_with_bom||null===e?t.UTF8:e}function l(e,n){if(!e||n<t.UTF16be_BOM.length)return null;const i=e.readUInt8(0),r=e.readUInt8(1);if(i===t.UTF16be_BOM[0]&&r===t.UTF16be_BOM[1])return t.UTF16be
;if(i===t.UTF16le_BOM[0]&&r===t.UTF16le_BOM[1])return t.UTF16le;if(n<t.UTF8_BOM.length)return null;const s=e.readUInt8(2);return i===t.UTF8_BOM[0]&&r===t.UTF8_BOM[1]&&s===t.UTF8_BOM[2]?t.UTF8:null}function u(e){const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return v[t]||t}function h({buffer:i,bytesRead:r},s){let o=l(i,r),a=!1;if(o!==t.UTF16be&&o!==t.UTF16le&&i){let e=!0,n=!0,s=!1;for(let t=0;t<r&&t<d;t++){const r=t%2==1,o=0===i.readInt8(t);if(o&&(s=!0),e&&(r&&!o||!r&&o)&&(e=!1),n&&(r&&o||!r&&!o)&&(n=!1),o&&!e&&!n)break}s&&(e?o=t.UTF16le:n?o=t.UTF16be:a=!0)}return s&&!a&&!o&&i?function(t){return n(this,void 0,void 0,function*(){const n=yield new Promise((t,n)=>{e(["jschardet"],t,n)});n.Constants.MINIMUM_THRESHOLD=g;const i=n.detect(t);if(!i||!i.encoding)return null;const r=i.encoding.toLowerCase();return 0<=m.indexOf(r)?null:u(i.encoding)})}(i.slice(0,r)).then(e=>({seemsBinary:!1,encoding:e})):{seemsBinary:a,encoding:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",
t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.UTF16be_BOM=[254,255],t.UTF16le_BOM=[255,254],t.UTF8_BOM=[239,187,191];const d=512,f=512,p=4096;t.toDecodeStream=a,t.decode=function(e,t){return i.decode(e,c(t))},t.encode=function(e,t,n){return i.encode(e,c(t),n)},t.encodingExists=function(e){return i.encodingExists(c(e))},t.encodeStream=function(e,t){return i.encodeStream(c(e),t)},t.detectEncodingByBOMFromBuffer=l;const g=.2,m=["ascii","utf-8","utf-16","utf-32"],v={ibm866:"cp866",big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:const t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}},t.detectEncodingFromBuffer=h;const _={437:"cp437",850:"cp850",852:"cp852",855:"cp855",
857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=function(e){return n(this,void 0,void 0,function*(){let n;const o=process.env.VSCODE_CLI_ENCODING;o?(e&&console.log(`Found VSCODE_CLI_ENCODING variable: ${o}`),n=Promise.resolve(o)):n=r.isLinux||r.isMacintosh?new Promise(t=>{e&&console.log('Running "locale charmap" to detect terminal encoding...'),s.exec("locale charmap",(e,n,i)=>t(n))}):new Promise(t=>{e&&console.log('Running "chcp" to detect terminal encoding...'),s.exec("chcp",(e,n,i)=>{if(n){const e=Object.keys(_);for(const i of e)if(n.indexOf(i)>=0)return t(_[i])}return t(void 0)})});const a=yield n;if(e&&console.log(`Detected raw terminal encoding: ${a}`),!a||"utf-8"===a.toLowerCase()||a.toLowerCase()===t.UTF8)return t.UTF8;const c=u(a);return i.encodingExists(c)?c:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[44],t([0,1,17]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});const i=n.getPathFromAmdModule(e,"paths"),r=e.__$__nodeRequire(i);t.getAppDataPath=r.getAppDataPath,t.getDefaultUserDataPath=r.getDefaultUserDataPath}),define(e[45],t([0,1,6,10,99,16,2,3,5,103,20,25,81,87]),function(e,t,i,r,s,o,a,c,l,u,h,d,f,p){"use strict";function g(e,t=L.UNLINK){return n(this,void 0,void 0,function*(){if(h.isRootOrDriveLetter(e))throw new Error("rimraf - will refuse to recursively delete root");return t===L.UNLINK?m(e):function(e){return n(this,void 0,void 0,function*(){try{const t=i.join(o.tmpdir(),d.generateUuid());try{yield S(e,t)}catch(t){return m(e)}m(t)}catch(e){if("ENOENT"!==e.code)throw e}})}(e)})}function m(e){return n(this,void 0,void 0,function*(){try{const t=yield C(e);if(!t.isDirectory()||t.isSymbolicLink()){const n=t.mode;return 128&n||(yield w(e,128|n)),k(e)}{const t=yield _(e);yield Promise.all(t.map(t=>m(i.join(e,t)))),yield u.promisify(s.rmdir)(e)}}catch(e){if("ENOENT"!==e.code)throw e}})}function v(e){
if(h.isRootOrDriveLetter(e))throw new Error("rimraf - will refuse to recursively delete root");try{const t=s.lstatSync(e);if(!t.isDirectory()||t.isSymbolicLink()){const n=t.mode;return 128&n||s.chmodSync(e,128|n),s.unlinkSync(e)}b(e).map(t=>v(i.join(e,t))),s.rmdirSync(e)}catch(e){if("ENOENT"!==e.code)throw e}}function _(e){return n(this,void 0,void 0,function*(){return y(yield u.promisify(s.readdir)(e))})}function b(e){return y(s.readdirSync(e))}function y(e){return a.isMacintosh?e.map(e=>f.normalizeNFC(e)):e}function w(e,t){return u.promisify(s.chmod)(e,t)}function E(e){return u.promisify(s.stat)(e)}function C(e){return u.promisify(s.lstat)(e)}function S(e,t){return u.promisify(s.rename)(e,t)}function k(e){return u.promisify(s.unlink)(e)}function A(e,t,n){return function(e){let t=O[e];if(!t){t=new r.Queue,O[e]=t;c.Event.once(t.onFinished)(()=>{delete O[e],t.dispose()})}return t}(function(e){let t=e;(a.isWindows||a.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(()=>(function(e,t,n){const i=x(n)
;return new Promise((n,r)=>{"string"==typeof t||Buffer.isBuffer(t)||t instanceof Uint8Array?function(e,t,n,i){n.encoding&&(t=p.encode(t instanceof Uint8Array?Buffer.from(t):t,n.encoding.charset,{addBOM:n.encoding.addBOM}));if(!D)return s.writeFile(e,t,{mode:n.mode,flag:n.flag},i);s.open(e,n.flag,n.mode,(e,n)=>{if(e)return i(e);s.writeFile(n,t,e=>{if(e)return s.close(n,()=>i(e));s.fdatasync(n,e=>(e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),D=!1),s.close(n,e=>i(e))))})})}(e,t,i,e=>e?r(e):n()):function(e,t,n,i){let r=!1;const o=e=>{r||(r=!0,e?l?(a.once("close",()=>i(e)),a.destroy()):i(e):i())},a=s.createWriteStream(e,{mode:n.mode,flags:n.flag,autoClose:!1});let c,l;a.once("open",e=>{c=e,l=!0,n.encoding&&(t=t.pipe(p.encodeStream(n.encoding.charset,{addBOM:n.encoding.addBOM}))),t.pipe(a)}),t.once("error",e=>o(e)),a.once("error",e=>o(e)),a.once("finish",()=>{D&&l?s.fdatasync(c,e=>{
e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),D=!1),a.destroy()}):a.destroy()}),a.once("close",()=>o())}(e,t,i,e=>e?r(e):n())})})(e,t,n))}function x(e){return e?{mode:"number"==typeof e.mode?e.mode:438,flag:"string"==typeof e.flag?e.flag:"w",encoding:e.encoding}:{mode:438,flag:"w"}}function P(e){return n(this,void 0,void 0,function*(){try{return(yield E(e)).isDirectory()}catch(e){return!1}})}function I(e,t,r){return n(this,void 0,void 0,function*(){const o=r||Object.create(null),a=yield E(e);if(!a.isDirectory())return function(e,t,i){return n(this,void 0,void 0,function*(){return new Promise((n,r)=>{const o=s.createReadStream(e),a=s.createWriteStream(t,{mode:i});let c=!1;const l=e=>{if(!c){if(c=!0,e)return r(e);s.chmod(t,i,e=>e?r(e):n())}};o.once("error",e=>l(e)),a.once("error",e=>l(e)),a.once("close",()=>l()),o.pipe(a)})})}(e,t,511&a.mode);if(o[e])return Promise.resolve();o[e]=!0,yield T(t,511&a.mode);const c=yield _(e);for(let n=0;n<c.length;n++){
const r=c[n];yield I(i.join(e,r),i.join(t,r),o)}})}function T(e,t,r){return n(this,void 0,void 0,function*(){const o=()=>n(this,void 0,void 0,function*(){try{yield u.promisify(s.mkdir)(e,t)}catch(t){if("ENOENT"===t.code)return Promise.reject(t);try{if(!(yield E(e)).isDirectory())return Promise.reject(new Error(`'${e}' exists and is not a directory.`))}catch(e){throw t}}});if(e===i.dirname(e))return Promise.resolve();try{yield o()}catch(n){return r&&r.isCancellationRequested?Promise.resolve():"ENOENT"===n.code?(yield T(i.dirname(e),t),o()):Promise.reject(n)}})}Object.defineProperty(t,"__esModule",{value:!0});var L;!function(e){e[e.UNLINK=0]="UNLINK",e[e.MOVE=1]="MOVE"}(L=t.RimRafMode||(t.RimRafMode={})),t.rimraf=g,t.rimrafSync=v,t.readdir=_,t.readdirSync=b,t.exists=function(e){return u.promisify(s.exists)(e)},t.chmod=w,t.stat=E,t.statLink=function(e){return n(this,void 0,void 0,function*(){let t,n;try{t=yield C(e)}catch(e){n=e}const i=!(!t||!t.isSymbolicLink());return n||i?{stat:yield E(e),isSymbolicLink:i}:{
stat:t,isSymbolicLink:!1}})},t.lstat=C,t.rename=S,t.renameIgnoreError=function(e,t){return new Promise(n=>{s.rename(e,t,()=>n())})},t.unlink=k,t.symlink=function(e,t,n){return u.promisify(s.symlink)(e,t,n)},t.truncate=function(e,t){return u.promisify(s.truncate)(e,t)},t.readFile=function(e,t){return u.promisify(s.readFile)(e,t)};const O=Object.create(null);t.writeFile=A;let D=!0;t.writeFileSync=function(e,t,n){const i=x(n);if(i.encoding&&(t=p.encode(t,i.encoding.charset,{addBOM:i.encoding.addBOM})),!D)return s.writeFileSync(e,t,{mode:i.mode,flag:i.flag});const r=s.openSync(e,i.flag,i.mode);try{s.writeFileSync(r,t);try{s.fdatasyncSync(r)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),D=!1}}finally{s.closeSync(r)}},t.readDirsInDir=function(e){return n(this,void 0,void 0,function*(){const t=yield _(e),n=[];for(const r of t)(yield P(i.join(e,r)))&&n.push(r);return n})},t.dirExists=P,t.fileExists=function(e){return n(this,void 0,void 0,function*(){try{
return(yield E(e)).isFile()}catch(e){return!1}})},t.whenDeleted=function(e){return new Promise(t=>{let n=!1;const i=setInterval(()=>{n||(n=!0,s.exists(e,e=>{n=!1,e||(clearInterval(i),t(void 0))}))},1e3)})},t.move=function(e,t){return n(this,void 0,void 0,function*(){function i(e){return n(this,void 0,void 0,function*(){const t=yield C(e);if(t.isDirectory()||t.isSymbolicLink())return Promise.resolve();const n=yield u.promisify(s.open)(e,"a");try{yield u.promisify(s.futimes)(n,t.atime,new Date)}catch(e){}return u.promisify(s.close)(n)})}if(e===t)return Promise.resolve();try{yield S(e,t),yield i(t)}catch(n){if(!(e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||l.endsWith(e,".")))throw n;yield I(e,t),yield g(e,L.MOVE),yield i(t)}})},t.copy=I,t.mkdirp=T;t.MAX_FILE_SIZE="ia32"===process.arch?314572800:17179869184,t.MAX_HEAP_SIZE="ia32"===process.arch?734003200:1468006400}),define(e[18],t([0,1,3,4,10,34,9,22]),function(e,t,i,r,s,o,a,c){"use strict";function l(e){const t=c.VSBuffer.alloc(4)
;return t.writeUInt32BE(e,0),t}function u(e){return e.read(4).readUInt32BE(0)}function h(e){const t=c.VSBuffer.alloc(1);return t.writeUInt8(e,0),t}function d(e,t){if(void 0===t)e.write(b.Undefined);else if("string"==typeof t){const n=c.VSBuffer.fromString(t);e.write(b.String),e.write(l(n.byteLength)),e.write(n)}else if(y&&Buffer.isBuffer(t)){const n=c.VSBuffer.wrap(t);e.write(b.Buffer),e.write(l(n.byteLength)),e.write(n)}else if(t instanceof c.VSBuffer)e.write(b.VSBuffer),e.write(l(t.byteLength)),e.write(t);else if(Array.isArray(t)){e.write(b.Array),e.write(l(t.length));for(const n of t)d(e,n)}else{const n=c.VSBuffer.fromString(JSON.stringify(t));e.write(b.Object),e.write(l(n.byteLength)),e.write(n)}}function f(e){switch(e.read(1).readUInt8(0)){case _.Undefined:return;case _.String:return e.read(u(e)).toString();case _.Buffer:return e.read(u(e)).buffer;case _.VSBuffer:return e.read(u(e));case _.Array:{const t=u(e),n=[];for(let i=0;i<t;i++)n.push(f(e));return n}case _.Object:
return JSON.parse(e.read(u(e)).toString())}}function p(e){return{call:(t,n,i)=>e.then(e=>e.call(t,n,i)),listen(t,n){const r=new i.Relay;return e.then(e=>r.input=e.listen(t,n)),r.event}}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(t.RequestType||(t.RequestType={}));!function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(t.ResponseType||(t.ResponseType={}));var g;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(g||(g={}));class m{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.byteLength,t}}class v{constructor(){this.buffers=[]}get buffer(){return c.VSBuffer.concat(this.buffers)}write(e){this.buffers.push(e)}}var _;!function(e){
e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object"}(_||(_={}));const b={Undefined:h(_.Undefined),String:h(_.String),Buffer:h(_.Buffer),VSBuffer:h(_.VSBuffer),Array:h(_.Array),Object:h(_.Object)},y="undefined"!=typeof Buffer;class w{constructor(e,t){this.protocol=e,this.ctx=t,this.channels=new Map,this.activeRequests=new Map,this.protocolListener=this.protocol.onMessage(e=>this.onRawMessage(e)),this.sendResponse({type:200})}registerChannel(e,t){this.channels.set(e,t)}sendResponse(e){switch(e.type){case 200:return this.send([e.type]);case 201:case 202:case 204:case 203:return this.send([e.type,e.id],e.data)}}send(e,t){const n=new v;d(n,e),d(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onRawMessage(e){const t=new m(e),n=f(t),i=f(t),r=n[0];switch(r){case 100:return this.onPromise({type:r,id:n[1],channelName:n[2],name:n[3],arg:i});case 102:return this.onEventListen({type:r,id:n[1],
channelName:n[2],name:n[3],arg:i});case 101:case 103:return this.disposeActiveRequest({type:r,id:n[1]})}}onPromise(e){const t=this.channels.get(e.channelName);if(!t)throw new Error("Unknown channel");const n=new o.CancellationTokenSource;let i;try{i=t.call(this.ctx,e.name,e.arg,n.token)}catch(e){i=Promise.reject(e)}const s=e.id;i.then(t=>{this.sendResponse({id:s,data:t,type:201}),this.activeRequests.delete(e.id)},t=>{t instanceof Error?this.sendResponse({id:s,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:202}):this.sendResponse({id:s,data:t,type:203}),this.activeRequests.delete(e.id)});const a=r.toDisposable(()=>n.cancel());this.activeRequests.set(e.id,a)}onEventListen(e){const t=this.channels.get(e.channelName);if(!t)throw new Error("Unknown channel");const n=e.id,i=t.listen(this.ctx,e.name,e.arg)(e=>this.sendResponse({id:n,data:e,type:204}));this.activeRequests.set(e.id,i)}disposeActiveRequest(e){const t=this.activeRequests.get(e.id)
;t&&(t.dispose(),this.activeRequests.delete(e.id))}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelServer=w;class E{constructor(e){this.protocol=e,this.state=g.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new i.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(e=>this.onBuffer(e))}getChannel(e){const t=this;return{call:(n,i,r)=>t.requestPromise(e,n,i,r),listen:(n,i)=>t.requestEvent(e,n,i)}}requestPromise(e,t,n,i=o.CancellationToken.None){const c=this.lastRequestId++,l={id:c,type:100,channelName:e,name:t,arg:n};if(i.isCancellationRequested)return Promise.reject(a.canceled());let u;return new Promise((e,t)=>{if(i.isCancellationRequested)return t(a.canceled());let n=s.createCancelablePromise(e=>this.whenInitialized());n.then(()=>{n=null;this.handlers.set(c,n=>{
switch(n.type){case 201:this.handlers.delete(c),e(n.data);break;case 202:this.handlers.delete(c);const i=new Error(n.data.message);i.stack=n.data.stack,i.name=n.data.name,t(i);break;case 203:this.handlers.delete(c),t(n.data)}}),this.sendRequest(l)});const o=()=>{n?(n.cancel(),n=null):this.sendRequest({id:c,type:101}),t(a.canceled())},h=i.onCancellationRequested(o);u=r.combinedDisposable(r.toDisposable(o),h),this.activeRequests.add(u)}).finally(()=>this.activeRequests.delete(u))}requestEvent(e,t,n){const r=this.lastRequestId++,o={id:r,type:102,channelName:e,name:t,arg:n};let a=null;const c=new i.Emitter({onFirstListenerAdd:()=>{(a=s.createCancelablePromise(e=>this.whenInitialized())).then(()=>{a=null,this.activeRequests.add(c),this.sendRequest(o)})},onLastListenerRemove:()=>{a?(a.cancel(),a=null):(this.activeRequests.delete(c),this.sendRequest({id:r,type:103}))}});return this.handlers.set(r,e=>c.fire(e.data)),c.event}sendRequest(e){switch(e.type){case 100:case 102:
return this.send([e.type,e.id,e.channelName,e.name],e.arg);case 101:case 103:return this.send([e.type,e.id])}}send(e,t){const n=new v;d(n,e),d(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onBuffer(e){const t=new m(e),n=f(t),i=f(t);switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:case 203:return this.onResponse({type:n[0],id:n[1],data:i})}}onResponse(e){if(200===e.type)return this.state=g.Idle,void this._onDidInitialize.fire();const t=this.handlers.get(e.id);t&&t(e)}whenInitialized(){return this.state===g.Idle?Promise.resolve():i.Event.toPromise(this.onDidInitialize)}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelClient=E;class C{constructor(e){this.channels=new Map,this._connections=new Set,this._onDidChangeConnections=new i.Emitter,this.onDidChangeConnections=this._onDidChangeConnections.event,
e(({protocol:e,onDidClientDisconnect:t})=>{i.Event.once(e.onMessage)(n=>{const i=f(new m(n)),r=new w(e,i),s=new E(e);this.channels.forEach((e,t)=>r.registerChannel(t,e));const o={channelClient:s,ctx:i};this._connections.add(o),this._onDidChangeConnections.fire(o),t(()=>{r.dispose(),s.dispose(),this._connections.delete(o)})})})}get connections(){const e=[];return this._connections.forEach(t=>e.push(t)),e}getChannel(e,t){const n=this;return{call:(i,r,s)=>p(t.routeCall(n,i,r).then(t=>t.channelClient.getChannel(e))).call(i,r,s),listen:(i,r)=>p(t.routeEvent(n,i,r).then(t=>t.channelClient.getChannel(e))).listen(i,r)}}registerChannel(e,t){this.channels.set(e,t)}dispose(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()}}t.IPCServer=C;class S{constructor(e,t){const n=new v;d(n,t),e.send(n.buffer),this.channelClient=new E(e),this.channelServer=new w(e,t)}getChannel(e){return this.channelClient.getChannel(e)}registerChannel(e,t){this.channelServer.registerChannel(e,t)}dispose(){
this.channelClient.dispose(),this.channelServer.dispose()}}t.IPCClient=S,t.getDelayedChannel=p,t.getNextTickChannel=function(e){let t=!1;return{call:(n,i,r)=>t?e.call(n,i,r):s.timeout(0).then(()=>t=!0).then(()=>e.call(n,i,r)),listen(n,r){if(t)return e.listen(n,r);const o=new i.Relay;return s.timeout(0).then(()=>t=!0).then(()=>o.input=e.listen(n,r)),o.event}}};class k{constructor(e){this.fn=e}routeCall(e){return this.route(e)}routeEvent(e){return this.route(e)}route(e){return n(this,void 0,void 0,function*(){for(const t of e.connections)if(yield Promise.resolve(this.fn(t.ctx)))return Promise.resolve(t);return yield i.Event.toPromise(e.onDidChangeConnections),yield this.route(e)})}}t.StaticRouter=k}),define(e[49],t([0,1,3,18,4,22,2]),function(e,t,n,i,r,s,o){"use strict";function a(){return l||(l=s.VSBuffer.alloc(0)),l}function c(e){let t,i=!1,r=!1,s=[];const a=()=>{if(!r){for(r=!0;i&&s.length>0;)t.fire(s.shift());r=!1}};return e(e=>{s.push(e),a()}),(t=new n.Emitter({onFirstListenerAdd:()=>{i=!0,
"undefined"!=typeof process?process.nextTick(a):o.setImmediate(a)},onLastListenerRemove:()=>{i=!1}})).event}Object.defineProperty(t,"__esModule",{value:!0});let l=null;class u{get byteLength(){return this._totalLength}constructor(){this._chunks=[],this._totalLength=0}acceptChunk(e){this._chunks.push(e),this._totalLength+=e.byteLength}read(e){return this._read(e,!0)}peek(e){return this._read(e,!1)}_read(e,t){if(0===e)return a();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const n=this._chunks[0];return t&&(this._chunks.shift(),this._totalLength-=e),n}if(this._chunks[0].byteLength>e){const n=this._chunks[0].slice(0,e);return t&&(this._chunks[0]=this._chunks[0].slice(e),this._totalLength-=e),n}let n=s.VSBuffer.alloc(e),i=0,r=0;for(;e>0;){const s=this._chunks[r];if(s.byteLength>e){const o=s.slice(0,e);n.set(o,i),i+=e,t&&(this._chunks[r]=s.slice(e),this._totalLength-=e),e-=e}else n.set(s,i),i+=s.byteLength,t?(this._chunks.shift(),
this._totalLength-=s.byteLength):r++,e-=s.byteLength}return n}}t.ChunkStream=u;var h;!function(e){e[e.None=0]="None",e[e.Regular=1]="Regular",e[e.Control=2]="Control",e[e.Ack=3]="Ack",e[e.KeepAlive=4]="KeepAlive",e[e.Disconnect=5]="Disconnect"}(h||(h={}));!function(e){e[e.HeaderLength=13]="HeaderLength",e[e.AcknowledgeTime=2e3]="AcknowledgeTime",e[e.AcknowledgeTimeoutTime=1e4]="AcknowledgeTimeoutTime",e[e.KeepAliveTime=5e3]="KeepAliveTime",e[e.KeepAliveTimeoutTime=1e4]="KeepAliveTimeoutTime",e[e.ReconnectionGraceTime=108e5]="ReconnectionGraceTime"}(t.ProtocolConstants||(t.ProtocolConstants={}));class d{constructor(e,t,n,i){this.type=e,this.id=t,this.ack=n,this.data=i,this.writtenTime=0}get size(){return this.data.byteLength}}class f extends r.Disposable{constructor(e){super(),this._onMessage=this._register(new n.Emitter),this.onMessage=this._onMessage.event,this._state={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this._socket=e,this._isDisposed=!1,this._incomingData=new u,
this._register(this._socket.onData(e=>this.acceptChunk(e))),this.lastReadTime=Date.now()}acceptChunk(e){if(e&&0!==e.byteLength)for(this.lastReadTime=Date.now(),this._incomingData.acceptChunk(e);this._incomingData.byteLength>=this._state.readLen;){const e=this._incomingData.read(this._state.readLen);if(this._state.readHead)this._state.readHead=!1,this._state.readLen=e.readUInt32BE(9),this._state.messageType=e.readUInt8(0),this._state.id=e.readUInt32BE(1),this._state.ack=e.readUInt32BE(5);else{const t=this._state.messageType,n=this._state.id,i=this._state.ack;if(this._state.readHead=!0,this._state.readLen=13,this._state.messageType=0,this._state.id=0,this._state.ack=0,this._onMessage.fire(new d(t,n,i,e)),this._isDisposed)break}}}readEntireBuffer(){return this._incomingData.read(this._incomingData.byteLength)}dispose(){this._isDisposed=!0,super.dispose()}}class p{constructor(e){this._isDisposed=!1,this._socket=e,this._data=[],this._totalLength=0,this.lastWriteTime=0}dispose(){this.flush(),this._isDisposed=!0}
flush(){this._writeNow()}write(e){if(this._isDisposed)return console.warn("Cannot write message in a disposed ProtocolWriter"),void console.warn(e);e.writtenTime=Date.now(),this.lastWriteTime=Date.now();const t=s.VSBuffer.alloc(13);t.writeUInt8(e.type,0),t.writeUInt32BE(e.id,1),t.writeUInt32BE(e.ack,5),t.writeUInt32BE(e.data.byteLength,9),this._writeSoon(t,e.data)}_bufferAdd(e,t){const n=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.byteLength+t.byteLength,n}_bufferTake(){const e=s.VSBuffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e}_writeSoon(e,t){this._bufferAdd(e,t)&&o.setImmediate(()=>{this._writeNow()})}_writeNow(){0!==this._totalLength&&this._socket.write(this._bufferTake())}}class g extends r.Disposable{constructor(e){super(),this._onMessage=new n.Emitter,this.onMessage=this._onMessage.event,this._onClose=new n.Emitter,this.onClose=this._onClose.event,this._socket=e,this._socketWriter=this._register(new p(this._socket)),
this._socketReader=this._register(new f(this._socket)),this._register(this._socketReader.onMessage(e=>{1===e.type&&this._onMessage.fire(e.data)})),this._register(this._socket.onClose(()=>this._onClose.fire()))}getSocket(){return this._socket}sendDisconnect(){}send(e){this._socketWriter.write(new d(1,0,0,e))}}t.Protocol=g;class m extends i.IPCClient{constructor(e,t){super(e,t),this.protocol=e}static fromSocket(e,t){return new m(new g(e),t)}get onClose(){return this.protocol.onClose}dispose(){super.dispose();const e=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),e.end()}}t.Client=m,t.createBufferedEvent=c;class v{constructor(e){this.data=e,this.next=null}}class _{constructor(){this._first=null,this._last=null}peek(){return this._first?this._first.data:null}toArray(){let e=[],t=0,n=this._first;for(;n;)e[t++]=n.data,n=n.next;return e}pop(){if(this._first)return this._first===this._last?(this._first=null,void(this._last=null)):void(this._first=this._first.next)}push(e){
const t=new v(e);if(!this._first)return this._first=t,void(this._last=t);this._last.next=t,this._last=t}}class b{constructor(e,t=null){this._onControlMessage=new n.Emitter,this.onControlMessage=c(this._onControlMessage.event),this._onMessage=new n.Emitter,this.onMessage=c(this._onMessage.event),this._onClose=new n.Emitter,this.onClose=c(this._onClose.event),this._onSocketClose=new n.Emitter,this.onSocketClose=c(this._onSocketClose.event),this._onSocketTimeout=new n.Emitter,this.onSocketTimeout=c(this._onSocketTimeout.event),this._isReconnecting=!1,this._outgoingUnackMsg=new _,this._outgoingMsgId=0,this._outgoingAckId=0,this._outgoingAckTimeout=null,this._incomingMsgId=0,this._incomingAckId=0,this._incomingMsgLastTime=0,this._incomingAckTimeout=null,this._outgoingKeepAliveTimeout=null,this._incomingKeepAliveTimeout=null,this._socketDisposables=[],this._socket=e,this._socketWriter=new p(this._socket),this._socketDisposables.push(this._socketWriter),this._socketReader=new f(this._socket),
this._socketDisposables.push(this._socketReader),this._socketDisposables.push(this._socketReader.onMessage(e=>this._receiveMessage(e))),this._socketDisposables.push(this._socket.onClose(()=>this._onSocketClose.fire())),t&&this._socketReader.acceptChunk(t),this._sendKeepAliveCheck(),this._recvKeepAliveCheck()}get unacknowledgedCount(){return this._outgoingMsgId-this._outgoingAckId}dispose(){this._outgoingAckTimeout&&(clearTimeout(this._outgoingAckTimeout),this._outgoingAckTimeout=null),this._incomingAckTimeout&&(clearTimeout(this._incomingAckTimeout),this._incomingAckTimeout=null),this._outgoingKeepAliveTimeout&&(clearTimeout(this._outgoingKeepAliveTimeout),this._outgoingKeepAliveTimeout=null),this._incomingKeepAliveTimeout&&(clearTimeout(this._incomingKeepAliveTimeout),this._incomingKeepAliveTimeout=null),this._socketDisposables=r.dispose(this._socketDisposables)}sendDisconnect(){const e=new d(5,0,0,a());this._socketWriter.write(e),this._socketWriter.flush()}_sendKeepAliveCheck(){
if(this._outgoingKeepAliveTimeout)return;const e=Date.now()-this._socketWriter.lastWriteTime;if(e>=5e3){const e=new d(4,0,0,a());return this._socketWriter.write(e),void this._sendKeepAliveCheck()}this._outgoingKeepAliveTimeout=setTimeout(()=>{this._outgoingKeepAliveTimeout=null,this._sendKeepAliveCheck()},5e3-e+5)}_recvKeepAliveCheck(){if(this._incomingKeepAliveTimeout)return;const e=Date.now()-this._socketReader.lastReadTime;e>=1e4?this._onSocketTimeout.fire(void 0):this._incomingKeepAliveTimeout=setTimeout(()=>{this._incomingKeepAliveTimeout=null,this._recvKeepAliveCheck()},1e4-e+5)}getSocket(){return this._socket}beginAcceptReconnection(e,t){this._isReconnecting=!0,this._socketDisposables=r.dispose(this._socketDisposables),this._socket=e,this._socketWriter=new p(this._socket),this._socketDisposables.push(this._socketWriter),this._socketReader=new f(this._socket),this._socketDisposables.push(this._socketReader),this._socketDisposables.push(this._socketReader.onMessage(e=>this._receiveMessage(e))),
this._socketDisposables.push(this._socket.onClose(()=>this._onSocketClose.fire())),this._socketReader.acceptChunk(t)}endAcceptReconnection(){this._isReconnecting=!1;const e=this._outgoingUnackMsg.toArray();for(let t=0,n=e.length;t<n;t++)this._socketWriter.write(e[t]);this._recvAckCheck(),this._sendKeepAliveCheck(),this._recvKeepAliveCheck()}acceptDisconnect(){this._onClose.fire()}_receiveMessage(e){if(e.ack>this._outgoingAckId)for(this._outgoingAckId=e.ack;;){const t=this._outgoingUnackMsg.peek();if(!(t&&t.id<=e.ack))break;this._outgoingUnackMsg.pop()}1===e.type?e.id>this._incomingMsgId&&(e.id!==this._incomingMsgId+1&&console.error(`PROTOCOL CORRUPTION, LAST SAW MSG ${this._incomingMsgId} AND HAVE NOW RECEIVED MSG ${e.id}`),this._incomingMsgId=e.id,this._incomingMsgLastTime=Date.now(),this._sendAckCheck(),this._onMessage.fire(e.data)):2===e.type?this._onControlMessage.fire(e.data):5===e.type&&this._onClose.fire()}readEntireBuffer(){return this._socketReader.readEntireBuffer()}flush(){
this._socketWriter.flush()}send(e){const t=++this._outgoingMsgId;this._incomingAckId=this._incomingMsgId;const n=new d(1,t,this._incomingAckId,e);this._outgoingUnackMsg.push(n),this._isReconnecting||(this._socketWriter.write(n),this._recvAckCheck())}sendControl(e){const t=new d(2,0,0,e);this._socketWriter.write(t)}_sendAckCheck(){if(this._incomingMsgId<=this._incomingAckId)return;if(this._incomingAckTimeout)return;const e=Date.now()-this._incomingMsgLastTime;e>=2e3?this._sendAck():this._incomingAckTimeout=setTimeout(()=>{this._incomingAckTimeout=null,this._sendAckCheck()},2e3-e+5)}_recvAckCheck(){if(this._outgoingMsgId<=this._outgoingAckId)return;if(this._outgoingAckTimeout)return;const e=this._outgoingUnackMsg.peek(),t=Date.now()-e.writtenTime;t>=1e4?this._onSocketTimeout.fire(void 0):this._outgoingAckTimeout=setTimeout(()=>{this._outgoingAckTimeout=null,this._recvAckCheck()},1e4-t+5)}_sendAck(){if(this._incomingMsgId<=this._incomingAckId)return;this._incomingAckId=this._incomingMsgId
;const e=new d(3,0,this._incomingAckId,a());this._socketWriter.write(e)}}t.PersistentProtocol=b}),define(e[50],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t){this.sender=e,this.onMessage=t}send(e){try{this.sender.send("ipc:message",e.buffer)}catch(e){}}dispose(){this.sender.send("ipc:disconnect",null)}}t.Protocol=n}),define(e[51],t([0,1,3,18,50,52,22]),function(e,t,n,i,r,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class a extends i.IPCClient{static createProtocol(){const e=n.Event.fromNodeEventEmitter(s.ipcRenderer,"ipc:message",(e,t)=>o.VSBuffer.wrap(t));return s.ipcRenderer.send("ipc:hello"),new r.Protocol(s.ipcRenderer,e)}constructor(e){const t=a.createProtocol();super(t,e),this.protocol=t}dispose(){this.protocol.dispose()}}t.Client=a}),define(e[53],t([0,1,96,3,18,6,16,25,4,22,49]),function(e,t,n,i,r,s,o,a,c,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class h{constructor(e){this.socket=e}dispose(){
this.socket.destroy()}onData(e){const t=t=>e(l.VSBuffer.wrap(t));return this.socket.on("data",t),{dispose:()=>this.socket.off("data",t)}}onClose(e){return this.socket.on("close",e),{dispose:()=>this.socket.off("close",e)}}onEnd(e){return this.socket.on("end",e),{dispose:()=>this.socket.off("end",e)}}write(e){this.socket.destroyed||this.socket.write(e.buffer)}end(){this.socket.end()}}t.NodeSocket=h;var d;!function(e){e[e.MinHeaderByteSize=2]="MinHeaderByteSize"}(d||(d={}));var f;!function(e){e[e.PeekHeader=1]="PeekHeader",e[e.ReadHeader=2]="ReadHeader",e[e.ReadBody=3]="ReadBody",e[e.Fin=4]="Fin"}(f||(f={}));class p extends c.Disposable{constructor(e){super(),this._onData=this._register(new i.Emitter),this._state={state:1,readLen:2,mask:0},this.socket=e,this._incomingData=new u.ChunkStream,this._register(this.socket.onData(e=>this._acceptChunk(e)))}dispose(){this.socket.dispose()}onData(e){return this._onData.event(e)}onClose(e){return this.socket.onClose(e)}onEnd(e){return this.socket.onEnd(e)}write(e){let t=2
;e.byteLength<126?t+=0:e.byteLength<Math.pow(2,16)?t+=2:t+=8;const n=l.VSBuffer.alloc(t);if(n.writeUInt8(130,0),e.byteLength<126)n.writeUInt8(e.byteLength,1);else if(e.byteLength<Math.pow(2,16)){n.writeUInt8(126,1);let t=1;n.writeUInt8(e.byteLength>>>8&255,++t),n.writeUInt8(e.byteLength>>>0&255,++t)}else{n.writeUInt8(127,1);let t=1;n.writeUInt8(0,++t),n.writeUInt8(0,++t),n.writeUInt8(0,++t),n.writeUInt8(0,++t),n.writeUInt8(e.byteLength>>>24&255,++t),n.writeUInt8(e.byteLength>>>16&255,++t),n.writeUInt8(e.byteLength>>>8&255,++t),n.writeUInt8(e.byteLength>>>0&255,++t)}this.socket.write(l.VSBuffer.concat([n,e]))}end(){this.socket.end()}_acceptChunk(e){if(0!==e.byteLength)for(this._incomingData.acceptChunk(e);this._incomingData.byteLength>=this._state.readLen;)if(1===this._state.state){const e=this._incomingData.peek(this._state.readLen).readUInt8(1),t=(128&e)>>>7,n=127&e;this._state.state=2,this._state.readLen=2+(t?4:0)+(126===n?2:0)+(127===n?8:0),this._state.mask=0}else if(2===this._state.state){
const e=this._incomingData.read(this._state.readLen),t=e.readUInt8(1),n=(128&t)>>>7;let i=127&t,r=1;126===i?i=e.readUInt8(++r)*Math.pow(2,8)+e.readUInt8(++r):127===i&&(i=0*e.readUInt8(++r)+0*e.readUInt8(++r)+0*e.readUInt8(++r)+0*e.readUInt8(++r)+e.readUInt8(++r)*Math.pow(2,24)+e.readUInt8(++r)*Math.pow(2,16)+e.readUInt8(++r)*Math.pow(2,8)+e.readUInt8(++r));let s=0;n&&(s=e.readUInt8(++r)*Math.pow(2,24)+e.readUInt8(++r)*Math.pow(2,16)+e.readUInt8(++r)*Math.pow(2,8)+e.readUInt8(++r)),this._state.state=3,this._state.readLen=i,this._state.mask=s}else if(3===this._state.state){const e=this._incomingData.read(this._state.readLen);!function(e,t){if(0===t)return;let n=e.byteLength>>>2;for(let i=0;i<n;i++){const n=e.readUInt32BE(4*i);e.writeUInt32BE(n^t,4*i)}let i=4*n,r=e.byteLength-i;const s=t>>>24&255,o=t>>>16&255,a=t>>>8&255;r>=1&&e.writeUInt8(e.readUInt8(i)^s,i),r>=2&&e.writeUInt8(e.readUInt8(i+1)^o,i+1),r>=3&&e.writeUInt8(e.readUInt8(i+2)^a,i+2)}(e,this._state.mask),this._state.state=1,this._state.readLen=2,
this._state.mask=0,this._onData.fire(e)}}}t.WebSocketNodeSocket=p,t.generateRandomPipeName=function(){const e=a.generateUuid();return"win32"===process.platform?`\\\\.\\pipe\\vscode-ipc-${e}-sock`:s.join(o.tmpdir(),`vscode-ipc-${e}.sock`)};class g extends r.IPCServer{static toClientConnectionEvent(e){const t=i.Event.fromNodeEventEmitter(e,"connection");return i.Event.map(t,e=>({protocol:new u.Protocol(new h(e)),onDidClientDisconnect:i.Event.once(i.Event.fromNodeEventEmitter(e,"close"))}))}constructor(e){super(g.toClientConnectionEvent(e)),this.server=e}dispose(){super.dispose(),this.server&&(this.server.close(),this.server=null)}}t.Server=g,t.serve=function(e){return new Promise((t,i)=>{const r=n.createServer();r.on("error",i),r.listen(e,()=>{r.removeListener("error",i),t(new g(r))})})},t.connect=function(e,t){return new Promise((i,r)=>{const s=n.createConnection(e,()=>{s.removeListener("error",r),i(u.Client.fromSocket(new h(s),t))});s.once("error",r)})}}),define(e[54],t([0,1,5]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeGitHubUrl=function(e){return n.endsWith(e,".git")&&(e=e.substr(0,e.length-4)),e=n.rtrim(e,"/"),n.endsWith(e,"/new")&&(e=n.rtrim(e,"/new")),n.endsWith(e,"/issues")&&(e=n.rtrim(e,"/issues")),e}}),define(e[55],t([27]),{}),define(e[57],t([0,1,24,32,47,12,3,4,86,55]),function(e,t,n,i,r,s,o,a,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const l={buttonBackground:r.Color.fromHex("#0E639C"),buttonHoverBackground:r.Color.fromHex("#006BB3"),buttonForeground:r.Color.white};class u extends a.Disposable{constructor(e,t){super(),this._onDidClick=this._register(new o.Emitter),this.options=t||Object.create(null),s.mixin(this.options,l,!1),this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonForeground=this.options.buttonForeground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),n.addClass(this._element,"monaco-button"),
this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),c.Gesture.addTarget(this._element),[n.EventType.CLICK,c.EventType.Tap].forEach(e=>{this._register(n.addDisposableListener(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):n.EventHelper.stop(e)}))}),this._register(n.addDisposableListener(this._element,n.EventType.KEY_DOWN,e=>{const t=new i.StandardKeyboardEvent(e);let r=!1;this.enabled&&t.equals(3)||t.equals(10)?(this._onDidClick.fire(e),r=!0):t.equals(9)&&(this._element.blur(),r=!0),r&&n.EventHelper.stop(t,!0)})),this._register(n.addDisposableListener(this._element,n.EventType.MOUSE_OVER,e=>{n.hasClass(this._element,"disabled")||this.setHoverBackground()})),this._register(n.addDisposableListener(this._element,n.EventType.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register(n.trackFocus(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),
this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){const e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null;e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){const e=this.buttonBackground?this.buttonBackground.toString():null,t=this.buttonForeground?this.buttonForeground.toString():null,n=this.buttonBorder?this.buttonBorder.toString():null;this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":null,this._element.style.borderStyle=n?"solid":null,this._element.style.borderColor=n}}get element(){return this._element}set label(e){n.hasClass(this._element,"monaco-text-button")||n.addClass(this._element,"monaco-text-button"),
this._element.textContent=e,this.options.title&&(this._element.title=e)}set icon(e){n.addClass(this._element,e)}set enabled(e){e?(n.removeClass(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(n.addClass(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),n.removeTabIndexAndUpdateFocus(this._element))}get enabled(){return!n.hasClass(this._element,"disabled")}focus(){this._element.focus()}}t.Button=u;class h extends a.Disposable{constructor(e,t,n){super(),this._buttons=[],this.create(e,t,n)}get buttons(){return this._buttons}create(e,t,r){for(let s=0;s<t;s++){const o=this._register(new u(e,r));this._buttons.push(o),t>1&&this._register(n.addDisposableListener(o.element,n.EventType.KEY_DOWN,e=>{const t=new i.StandardKeyboardEvent(e);let r,o=!0;t.equals(15)?r=s>0?s-1:this._buttons.length-1:t.equals(17)?r=s===this._buttons.length-1?0:s+1:o=!1,o&&"number"==typeof r&&(this._buttons[r].focus(),n.EventHelper.stop(e,!0))}))}}}
t.ButtonGroup=h}),define(e[58],t([27]),{}),define(e[59],t([27]),{}),define(e[60],t([0,1,5,58,59]),function(e,t,n){"use strict";function i(e){return function(e){return e.replace(/\$\(((.+?)(~(.*?))?)\)/g,(e,t,n,i,r)=>`<span class="octicon octicon-${n} ${r?`octicon-animation-${r}`:""}"></span>`)}(n.escape(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.renderOcticons=i;class r{constructor(e){this._container=e}set text(e){this._container.innerHTML=i(e||"")}set title(e){this._container.title=e}}t.OcticonLabel=r}),define(e[61],t([27]),{}),define(e[62],t([28,13]),function(e,t){return e.create("vs/code/electron-browser/issue/issueReporterPage",t)}),define(e[65],t([0,1,5,62]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
t.default=(()=>`\n<div id="issue-reporter">\n\t<div id="english" class="input-group hidden">${n.escape(i.localize(0,null))}</div>\n\n\t<div class="section">\n\t\t<div class="input-group">\n\t\t\t<label class="inline-label" for="issue-type">${n.escape(i.localize(1,null))}</label>\n\t\t\t<select id="issue-type" class="inline-form-control">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</select>\n\t\t</div>\n\n\t\t<div class="input-group" id="problem-source">\n\t\t\t<label class="inline-label" for="issue-source">${n.escape(i.localize(2,null))}<span class="required-input">*</span></label>\n\t\t\t<select id="issue-source" class="inline-form-control" required>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</select>\n\t\t\t<div id="problem-source-help-text" class="instructions hidden">${n.escape(i.localize(3,null)).replace("{0}",`<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${n.escape(i.localize(4,null))}</span>`)}\n\t\t\t</div>\n\n\t\t\t<div id="extension-selection">\n\t\t\t\t<label class="inline-label" for="extension-selector">${n.escape(i.localize(5,null))} <span class="required-input">*</span></label>\n\t\t\t\t<select id="extension-selector" class="inline-form-control">\n\t\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</select>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="input-group">\n\t\t\t<label class="inline-label" for="issue-title">${n.escape(i.localize(6,null))} <span class="required-input">*</span></label>\n\t\t\t<input id="issue-title" type="text" class="inline-form-control" placeholder="${n.escape(i.localize(7,null))}" required>\n\t\t\t<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${n.escape(i.localize(8,null))}</div>\n\t\t\t<small id="similar-issues">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</small>\n\t\t</div>\n\n\t</div>\n\n\t<div class="input-group description-section">\n\t\t<label for="description" id="issue-description-label">\n\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t</label>\n\t\t<div class="instructions" id="issue-description-subtitle">\n\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t</div>\n\t\t<div class="block-info-text">\n\t\t\t<textarea name="description" id="description" placeholder="${n.escape(i.localize(9,null))}" required></textarea>\n\t\t</div>\n\t</div>\n\n\t<div class="system-info" id="block-container">\n\t\t<div class="block block-system">\n\t\t\t<input class="sendData" type="checkbox" id="includeSystemInfo" checked/>\n\t\t\t<label class="caption" for="includeSystemInfo">${n.escape(i.localize(10,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(i.localize(11,null))}</a>`)}</label>\n\n\n\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-process">\n\t\t\t<input class="sendData" type="checkbox" id="includeProcessInfo" checked/>\n\t\t\t<label class="caption" for="includeProcessInfo">${n.escape(i.localize(12,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(i.localize(13,null))}</a>`)}</label>\n\n\n\n\t\t\t<pre class="block-info hidden">\n\t\t\t\t<code>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</code>\n\t\t\t</pre>\n\t\t</div>\n\t\t<div class="block block-workspace">\n\t\t\t<input class="sendData" type="checkbox" id="includeWorkspaceInfo" checked/>\n\t\t\t<label class="caption" for="includeWorkspaceInfo">${n.escape(i.localize(14,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(i.localize(15,null))}</a>`)}</label>\n\n\n\n\t\t\t<pre id="systemInfo" class="block-info hidden">\n\t\t\t\t<code>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</code>\n\t\t\t</pre>\n\t\t</div>\n\t\t<div class="block block-extensions">\n\t\t\t<input class="sendData" type="checkbox" id="includeExtensions" checked/>\n\t\t\t<label class="caption" for="includeExtensions">${n.escape(i.localize(16,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(i.localize(17,null))}</a>`)}</label>\n\n\n\n\t\t\t<div id="systemInfo" class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-searchedExtensions">\n\t\t\t<input class="sendData" type="checkbox" id="includeSearchedExtensions" checked/>\n\t\t\t<label class="caption" for="includeSearchedExtensions">${n.escape(i.localize(18,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(i.localize(19,null))}</a>`)}</label>\n\n\n\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-settingsSearchResults">\n\t\t\t<input class="sendData" type="checkbox" id="includeSettingsSearchDetails" checked/>\n\t\t\t<label class="caption" for="includeSettingsSearchDetails">${n.escape(i.localize(20,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(i.localize(21,null))}</a>`)}</label>\n\n\n\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>`)
}),define(e[66],t([28,13]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[67],t([28,13]),function(e,t){return e.create("vs/platform/telemetry/common/telemetryService",t)}),define(e[68],t([28,13]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)}),define(e[43],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteDiagnosticError=function(e){return!!e.hostName&&!!e.errorMessage}}),define(e[70],t([0,1,12,43]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){const t={issueType:0,includeSystemInfo:!0,includeWorkspaceInfo:!0,includeProcessInfo:!0,includeExtensions:!0,includeSearchedExtensions:!0,includeSettingsSearchDetails:!0,allExtensions:[]};this._data=e?n.assign(t,e):t}getData(){return this._data}update(e){n.assign(this._data,e)}serialize(){
return`\nIssue Type: <b>${this.getIssueTypeTitle()}</b>\n\n${this._data.issueDescription}\n${this.getExtensionVersion()}\nVS Code version: ${this._data.versionInfo&&this._data.versionInfo.vscodeVersion}\nOS version: ${this._data.versionInfo&&this._data.versionInfo.os}\n${this.getRemoteOSes()}\n${this.getInfos()}\n\x3c!-- generated by issue reporter --\x3e`}getRemoteOSes(){return this._data.systemInfo&&this._data.systemInfo.remoteData.length?this._data.systemInfo.remoteData.map(e=>i.isRemoteDiagnosticError(e)?e.errorMessage:`Remote OS version: ${e.machineInfo.os}`).join("\n")+"\n":""}fileOnExtension(){return(0===this._data.issueType||1===this._data.issueType||2===this._data.issueType)&&this._data.fileOnExtension}getExtensionVersion(){return this.fileOnExtension()&&this._data.selectedExtension?`\nExtension version: ${this._data.selectedExtension.version}`:""}getIssueTypeTitle(){
return 0===this._data.issueType?"Bug":1===this._data.issueType?"Performance Issue":3===this._data.issueType?"Settings Search Issue":"Feature Request"}getInfos(){let e="";return 0!==this._data.issueType&&1!==this._data.issueType||this._data.includeSystemInfo&&this._data.systemInfo&&(e+=this.generateSystemInfoMd()),1===this._data.issueType&&(this._data.includeProcessInfo&&(e+=this.generateProcessInfoMd()),this._data.includeWorkspaceInfo&&(e+=this.generateWorkspaceInfoMd())),0!==this._data.issueType&&1!==this._data.issueType||!this._data.fileOnExtension&&this._data.includeExtensions&&(e+=this.generateExtensionsMd()),3===this._data.issueType&&(this._data.includeSearchedExtensions&&(e+=this.generateExtensionsMd()),this._data.includeSettingsSearchDetails&&(e+=this.generateSettingSearchResultsMd(),e+="\n"+this.generateSettingsSearchResultDetailsMd())),e}generateSystemInfoMd(){let e="<details>\n<summary>System Info</summary>\n\n|Item|Value|\n|---|---|\n"
;return this._data.systemInfo&&(e+=`|CPUs|${this._data.systemInfo.cpus}|\n|GPU Status|${Object.keys(this._data.systemInfo.gpuStatus).map(e=>`${e}: ${this._data.systemInfo.gpuStatus[e]}`).join("<br>")}|\n|Load (avg)|${this._data.systemInfo.load}|\n|Memory (System)|${this._data.systemInfo.memory}|\n|Process Argv|${this._data.systemInfo.processArgs}|\n|Screen Reader|${this._data.systemInfo.screenReader}|\n|VM|${this._data.systemInfo.vmHint}|`,this._data.systemInfo.remoteData.forEach(t=>{i.isRemoteDiagnosticError(t)?e+=`\n\n${t.errorMessage}`:e+=`\n\n|Item|Value|\n|---|---|\n|Remote|${t.hostName}|\n|OS|${t.machineInfo.os}|\n|CPUs|${t.machineInfo.cpus}|\n|Memory (System)|${t.machineInfo.memory}|\n|VM|${t.machineInfo.vmHint}|`})),e+="\n</details>"}generateProcessInfoMd(){return`<details>\n<summary>Process Info</summary>\n\n\`\`\`\n${this._data.processInfo}\n\`\`\`\n\n</details>\n`}generateWorkspaceInfoMd(){
return`<details>\n<summary>Workspace Info</summary>\n\n\`\`\`\n${this._data.workspaceInfo};\n\`\`\`\n\n</details>\n`}generateExtensionsMd(){if(this._data.extensionsDisabled)return"Extensions disabled";const e=this._data.numberOfThemeExtesions?`\n(${this._data.numberOfThemeExtesions} theme extensions excluded)`:"";if(!this._data.enabledNonThemeExtesions)return"Extensions: none"+e;const t=this._data.enabledNonThemeExtesions.map(e=>`${e.name}|${e.publisher.substr(0,3)}|${e.version}`).join("\n");return`<details><summary>Extensions (${this._data.enabledNonThemeExtesions.length})</summary>\n\nExtension|Author (truncated)|Version\n---|---|---\n${t}\n${e}\n\n</details>`}generateSettingsSearchResultDetailsMd(){return`\nQuery: ${this._data.query}\nLiteral matches: ${this._data.filterResultCount}`}generateSettingSearchResultsMd(){if(!this._data.actualSearchResults)return"";if(!this._data.actualSearchResults.length)return"No fuzzy results"
;return`<details><summary>Results</summary>\n\nSetting|Extension|Score\n---|---|---\n${this._data.actualSearchResults.map(e=>`${e.key}|${e.extensionId}|${String(e.score).slice(0,5)}`).join("\n")}\n\n</details>`}}t.IssueReporterModel=r}),define(e[71],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}t.SyncDescriptor=n,t.createSyncDescriptor=((e,...t)=>new n(e,t))}),define(e[72],t([0,1,11,41]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this._hashFn=e,this._nodes=Object.create(null)}roots(){const e=[];return i.forEach(this._nodes,t=>{n.isEmptyObject(t.value.outgoing)&&e.push(t.value)}),e}insertEdge(e,t){const n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=i,i.incoming[this._hashFn(e)]=n}removeNode(e){const t=this._hashFn(e);delete this._nodes[t],i.forEach(this._nodes,e=>{
delete e.value.outgoing[t],delete e.value.incoming[t]})}lookupOrInsertNode(e){const t=this._hashFn(e);let n=this._nodes[t];return n||(n=function(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}(e),this._nodes[t]=n),n}lookup(e){return this._nodes[this._hashFn(e)]}isEmpty(){for(const e in this._nodes)return!1;return!0}toString(){let e=[];return i.forEach(this._nodes,t=>{e.push(`${t.key}, (incoming)[${Object.keys(t.value.incoming).join(", ")}], (outgoing)[${Object.keys(t.value.outgoing).join(",")}]`)}),e.join("\n")}}t.Graph=r}),define(e[8],t([0,1]),function(e,t){"use strict";function n(e,t,n,i){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[r.DI_TARGET]=t)}function i(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,i,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,r,!1)};return t.toString=(()=>e),r.serviceIds.set(e,t),
t}Object.defineProperty(t,"__esModule",{value:!0});var r;!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]||[]}}(r=t._util||(t._util={})),t.IInstantiationService=i("instantiationService"),t.createDecorator=i,t.optional=function(e){return function(t,i,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,r,!0)}}}),define(e[74],t([0,1,8]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IHistoryMainService=n.createDecorator("historyMainService"),t.isRecentWorkspace=function(e){return!!e.workspace},t.isRecentFolder=function(e){return!!e.folderUri},t.isRecentFile=function(e){return!!e.fileUri}}),define(e[36],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){const n=this._entries.get(e)
;return this._entries.set(e,t),n}forEach(e){this._entries.forEach((t,n)=>e(n,t))}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=n}),define(e[76],t([0,1,9,72,71,8,36,10]),function(e,t,n,i,r,s,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const c="function"==typeof Proxy;class l{constructor(e=new o.ServiceCollection,t=!1,n){this._services=e,this._strict=t,this._parent=n,this._services.set(s.IInstantiationService,this)}createChild(e){return new l(e,this._strict,this)}invokeFunction(e,...t){let i=h.traceInvocation(e),r=!1;try{const o={get:(e,t)=>{if(r)throw n.illegalState("service accessor is only valid during the invocation of its target method");const o=this._getOrCreateServiceInstance(e,i);if(!o&&t!==s.optional)throw new Error(`[invokeFunction] unknown service '${e}'`);return o}};return e.apply(void 0,[o,...t])}finally{r=!0,i.stop()}}createInstance(e,...t){let n,i;return e instanceof r.SyncDescriptor?(n=h.traceCreation(e.ctor),
i=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=h.traceCreation(e),i=this._createInstance(e,t,n)),n.stop(),i}_createInstance(e,t=[],n){let i=s._util.getServiceDependencies(e).sort((e,t)=>e.index-t.index),r=[];for(const t of i){let i=this._getOrCreateServiceInstance(t.id,n);if(!i&&this._strict&&!t.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);r.push(i)}let o=i.length>0?i[0].index:t.length;if(t.length!==o){console.warn(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);let n=o-t.length;t=n>0?t.concat(new Array(n)):t.slice(0,o)}return new e(...[...t,...r])}_setServiceInstance(e,t){if(this._services.get(e)instanceof r.SyncDescriptor)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e)
;return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let n=this._getServiceInstanceOrDescriptor(e);return n instanceof r.SyncDescriptor?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_createAndCacheServiceInstance(e,t,n){function o(){const e=new Error("[createInstance] cyclic dependency between services");throw e.message=a.toString(),e}const a=new i.Graph(e=>e.id.toString());let c=0;const l=[{id:e,desc:t,_trace:n}];for(;l.length;){const t=l.pop();a.lookupOrInsertNode(t),c++>100&&o();let n=s._util.getServiceDependencies(t.desc.ctor);for(let i of n){let n=this._getServiceInstanceOrDescriptor(i.id);if(n||i.optional||console.warn(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`),n instanceof r.SyncDescriptor){const e={id:i.id,desc:n,_trace:t._trace.branch(i.id,!0)};a.insertEdge(t,e),l.push(e)}}}for(;;){let e=a.roots();if(0===e.length){a.isEmpty()||o();break}for(let{data:t}of e){
const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e),a.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,n=[],i,s){if(this._services.get(e)instanceof r.SyncDescriptor)return this._createServiceInstance(t,n,i,s);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,s);throw new Error("illegalState - creating UNKNOWN service instance")}_createServiceInstance(e,t=[],n,i){if(n&&c){const n=new a.IdleValue(()=>this._createInstance(e,t,i));return new Proxy(Object.create(null),{get:(e,t)=>n.getValue()[t],set:(e,t,i)=>(n.getValue()[t]=i,!0)})}return this._createInstance(e,t,i)}}t.InstantiationService=l;var u;!function(e){e[e.Creation=0]="Creation",e[e.Invocation=1]="Invocation",e[e.Branch=2]="Branch"}(u||(u={}));class h{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return h._None}
static traceCreation(e){return h._None}branch(e,t){let n=new h(2,e.toString());return this._dep.push([e,t,n]),n}stop(){function e(t,i){let r=[],s=new Array(t+1).join("\t");for(const[o,a,c]of i._dep)if(a&&c){n=!0,r.push(`${s}CREATES -> ${o}`);let i=e(t+1,c);i&&r.push(i)}else r.push(`${s}uses -> ${o}`);return r.join("\n")}let t=Date.now()-this._start;h._totals+=t;let n=!1,i=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,`${e(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${h._totals.toFixed(2)}ms)`];(t>2||n)&&console.log(i.join("\n"))}}h._None=new class extends h{constructor(){super(-1,null)}stop(){}branch(){return this}},h._totals=0}),define(e[37],t([0,1,8,51,4]),function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IMainProcessService=n.createDecorator("mainProcessService");class s extends r.Disposable{constructor(e){super(),this.mainProcessConnection=this._register(new i.Client(`window:${e}`))}getChannel(e){return this.mainProcessConnection.getChannel(e)}
registerChannel(e,t){this.mainProcessConnection.registerChannel(e,t)}}t.MainProcessService=s}),define(e[15],t([0,1,8,4,2,3]),function(e,t,n,i,r,s){"use strict";function o(){return(new Date).toISOString()}Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=n.createDecorator("logService");var a;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(a=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=a.Info;class c extends i.Disposable{constructor(){super(...arguments),this.level=t.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new s.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}t.AbstractLogService=c;class l extends c{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e),this.useColors=!r.isWindows}trace(e,...t){
this.getLevel()<=a.Trace&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}debug(e,...t){this.getLevel()<=a.Debug&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}info(e,...t){this.getLevel()<=a.Info&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}warn(e,...t){this.getLevel()<=a.Warning&&(this.useColors?console.warn(`[93m[main ${o()}][0m`,e,...t):console.warn(`[main ${o()}]`,e,...t))}error(e,...t){this.getLevel()<=a.Error&&(this.useColors?console.error(`[91m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}critical(e,...t){this.getLevel()<=a.Critical&&(this.useColors?console.error(`[90m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}dispose(){}}t.ConsoleLogMainService=l;class u extends c{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e)}trace(e,...t){
this.getLevel()<=a.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=a.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=a.Info&&console.log("%c INFO","color: #33f",e,...t)}warn(e,...t){this.getLevel()<=a.Warning&&console.log("%c WARN","color: #993",e,...t)}error(e,...t){this.getLevel()<=a.Error&&console.log("%c  ERR","color: #f33",e,...t)}critical(e,...t){this.getLevel()<=a.Critical&&console.log("%cCRITI","background: #f33; color: white",e,...t)}dispose(){}}t.ConsoleLogService=u;class h extends c{constructor(e){super(),this.logServices=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.logServices)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const n of this.logServices)n.trace(e,...t)}debug(e,...t){for(const n of this.logServices)n.debug(e,...t)}info(e,...t){for(const n of this.logServices)n.info(e,...t)}warn(e,...t){for(const n of this.logServices)n.warn(e,...t)}error(e,...t){
for(const n of this.logServices)n.error(e,...t)}critical(e,...t){for(const n of this.logServices)n.critical(e,...t)}dispose(){for(const e of this.logServices)e.dispose()}}t.MultiplexLogService=h;class d extends i.Disposable{constructor(e){super(),this.logService=e,this._register(e)}get onDidChangeLogLevel(){return this.logService.onDidChangeLogLevel}setLevel(e){this.logService.setLevel(e)}getLevel(){return this.logService.getLevel()}trace(e,...t){this.logService.trace(e,...t)}debug(e,...t){this.logService.debug(e,...t)}info(e,...t){this.logService.info(e,...t)}warn(e,...t){this.logService.warn(e,...t)}error(e,...t){this.logService.error(e,...t)}critical(e,...t){this.logService.critical(e,...t)}}t.DelegatedLogService=d;class f{constructor(){this.onDidChangeLogLevel=(new s.Emitter).event}setLevel(e){}getLevel(){return a.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}}t.NullLogService=f,t.getLogLevel=function(e){if(e.verbose)return a.Trace
;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return a.Trace;case"debug":return a.Debug;case"info":return a.Info;case"warn":return a.Warning;case"error":return a.Error;case"critical":return a.Critical;case"off":return a.Off}return t.DEFAULT_LOG_LEVEL}}),define(e[79],t([0,1,15,3]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.service=e,this.onDidChangeLogLevel=i.Event.buffer(e.onDidChangeLogLevel,!0)}listen(e,t){switch(t){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error(`Event not found: ${t}`)}call(e,t,n){switch(t){case"setLevel":return this.service.setLevel(n),Promise.resolve()}throw new Error(`Call not found: ${t}`)}}t.LogLevelSetterChannel=r;class s{constructor(e){this.channel=e}get onDidChangeLogLevel(){return this.channel.listen("onDidChangeLogLevel")}setLevel(e){this.channel.call("setLevel",e)}}t.LogLevelSetterChannelClient=s;class o extends n.DelegatedLogService{constructor(e,t){
super(t),this.master=e,this._register(e.onDidChangeLogLevel(e=>t.setLevel(e)))}setLevel(e){this.master.setLevel(e)}}t.FollowerLogService=o}),define(e[80],t([0,1,6,15]),function(e,t,i,r){"use strict";function s(e,t,n){switch(t){case r.LogLevel.Trace:return e.trace(n);case r.LogLevel.Debug:return e.debug(n);case r.LogLevel.Info:return e.info(n);case r.LogLevel.Warning:return e.warn(n);case r.LogLevel.Error:return e.error(n);case r.LogLevel.Critical:return e.critical(n);default:throw new Error("Invalid log level")}}Object.defineProperty(t,"__esModule",{value:!0}),t.createRotatingLogger=function(t,n,i,r){return e.__$__nodeRequire("spdlog").createRotatingLogger(t,n,i,r)};class o extends r.AbstractLogService{constructor(e,t,n){super(),this.name=e,this.logsFolder=t,this.buffer=[],this._loggerCreationPromise=void 0,this.setLevel(n),this._createSpdLogLogger(),this._register(this.onDidChangeLogLevel(e=>{this._logger&&this._logger.setLevel(e)}))}_createSpdLogLogger(){
return this._loggerCreationPromise||(this._loggerCreationPromise=function(t,r){return n(this,void 0,void 0,function*(){try{const n=yield new Promise((t,n)=>{e(["spdlog"],t,n)});n.setAsyncMode(8192,500);const s=i.join(r,`${t}.log`);return n.createRotatingLoggerAsync(t,s,5242880,6)}catch(e){console.error(e)}return null})}(this.name,this.logsFolder).then(e=>{if(e){this._logger=e,this._logger.setLevel(this.getLevel());for(const{level:e,message:t}of this.buffer)s(this._logger,e,t);this.buffer=[]}})),this._loggerCreationPromise}_log(e,t){this._logger?s(this._logger,e,t):this.getLevel()<=e&&this.buffer.push({level:e,message:t})}trace(){this.getLevel()<=r.LogLevel.Trace&&this._log(r.LogLevel.Trace,this.format(arguments))}debug(){this.getLevel()<=r.LogLevel.Debug&&this._log(r.LogLevel.Debug,this.format(arguments))}info(){this.getLevel()<=r.LogLevel.Info&&this._log(r.LogLevel.Info,this.format(arguments))}warn(){this.getLevel()<=r.LogLevel.Warning&&this._log(r.LogLevel.Warning,this.format(arguments))}error(){
if(this.getLevel()<=r.LogLevel.Error){const e=arguments[0];if(e instanceof Error){const t=Array.prototype.slice.call(arguments);t[0]=e.stack,this._log(r.LogLevel.Error,this.format(t))}else this._log(r.LogLevel.Error,this.format(arguments))}}critical(){this.getLevel()<=r.LogLevel.Critical&&this._log(r.LogLevel.Critical,this.format(arguments))}dispose(){this._logger?this.disposeLogger():this._loggerCreationPromise&&this._loggerCreationPromise.then(()=>this.disposeLogger()),this._loggerCreationPromise=void 0}disposeLogger(){this._logger&&(this._logger.drop(),this._logger=void 0)}format(e){let t="";for(let n=0;n<e.length;n++){let i=e[n];if("object"==typeof i)try{i=JSON.stringify(i)}catch(e){}t+=(n>0?" ":"")+i}return t}}t.SpdLogService=o}),define(e[39],t([0,1,6,17]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n.dirname(i.getPathFromAmdModule(e,"")),s=n.join(r,"package.json");t.default=e.__$__nodeRequire(s)}),define(e[40],t([0,1,6,17]),function(e,t,n,i){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});const r=n.dirname(i.getPathFromAmdModule(e,"")),s=n.join(r,"product.json"),o=e.__$__nodeRequire(s);process.env.VSCODE_DEV&&(o.nameShort+=" Dev",o.nameLong+=" Dev",o.dataFolderName+="-dev"),t.default=o}),define(e[83],t([0,1,97,44,16,6,30,39,40,56,2,17,7]),function(e,t,n,r,s,o,a,c,l,u,h,d,f){"use strict";function p(e,t){return h.isWindows?function(e,t){return`\\\\.\\pipe\\${n.createHash("md5").update(e).digest("hex")}-${c.default.version}-${t}-sock`}(e,t):function(e,t){const i=process.env.VSCODE_PORTABLE;if(y&&!i){const i=n.createHash("md5").update(e).digest("hex").substr(0,8);return o.join(y,`vscode-${i}-${c.default.version}-${t}.sock`)}return o.join(e,`${c.default.version}-${t}.sock`)}(e,t)}function g(e,t){return v(e["inspect-extensions"],e["inspect-brk-extensions"],5870,t,e.debugId)}function m(e,t){return v(e["inspect-search"],e["inspect-brk-search"],5876,t)}function v(e,t,n,i,r){const s=t||e,o=Number(s)||(i?null:n);return{port:o,break:!!o&&Boolean(!!t),
debugId:r}}function _(e,t){if(!e)return;const n=o.resolve(e);return o.normalize(e)===n?n:o.resolve(t.env.VSCODE_CWD||t.cwd(),e)}function b(e,t){return _(e["user-data-dir"],t)||o.resolve(r.getDefaultUserDataPath(t.platform))}Object.defineProperty(t,"__esModule",{value:!0});const y=process.env.XDG_RUNTIME_DIR;class w{constructor(e,t){if(this._args=e,this._execPath=t,!process.env.VSCODE_LOGS){const e=u.toLocalISOString(new Date).replace(/-|:|\.\d+Z$/g,"");process.env.VSCODE_LOGS=o.join(this.userDataPath,"logs",e)}this.logsPath=process.env.VSCODE_LOGS}get args(){return this._args}get appRoot(){return o.dirname(d.getPathFromAmdModule(e,""))}get execPath(){return this._execPath}get cliPath(){return function(e,t,n){return h.isWindows?n?o.join(o.dirname(e),"bin",`${l.default.applicationName}.cmd`):o.join(t,"scripts","code-cli.bat"):h.isLinux?n?o.join(o.dirname(e),"bin",`${l.default.applicationName}`):o.join(t,"scripts","code-cli.sh"):n?o.join(t,"bin","code"):o.join(t,"scripts","code-cli.sh")
}(this.execPath,this.appRoot,this.isBuilt)}get userHome(){return s.homedir()}get userDataPath(){const e=process.env.VSCODE_PORTABLE;return e?o.join(e,"user-data"):b(this._args,process)}get appNameLong(){return l.default.nameLong}get appQuality(){return l.default.quality}get appSettingsHome(){return o.join(this.userDataPath,"User")}get appSettingsPath(){return o.join(this.appSettingsHome,"settings.json")}get machineSettingsHome(){return o.join(this.userDataPath,"Machine")}get machineSettingsPath(){return o.join(this.machineSettingsHome,"settings.json")}get globalStorageHome(){return o.join(this.appSettingsHome,"globalStorage")}get workspaceStorageHome(){return o.join(this.appSettingsHome,"workspaceStorage")}get settingsSearchBuildId(){return l.default.settingsSearchBuildId}get settingsSearchUrl(){return l.default.settingsSearchUrl}get appKeybindingsPath(){return o.join(this.appSettingsHome,"keybindings.json")}get isExtensionDevelopment(){return!!this._args.extensionDevelopmentPath}get backupHome(){
return o.join(this.userDataPath,"Backups")}get backupWorkspacesPath(){return o.join(this.backupHome,"workspaces.json")}get untitledWorkspacesHome(){return f.URI.file(o.join(this.userDataPath,"Workspaces"))}get installSourcePath(){return o.join(this.userDataPath,"installSource")}get builtinExtensionsPath(){const t=_(this._args["builtin-extensions-dir"],process);return t||o.normalize(o.join(d.getPathFromAmdModule(e,""),"..","extensions"))}get extensionsPath(){const e=_(this._args["extensions-dir"],process);if(e)return e;const t=process.env.VSCODE_EXTENSIONS;if(t)return t;const n=process.env.VSCODE_PORTABLE;return n?o.join(n,"extensions"):o.join(this.userHome,l.default.dataFolderName,"extensions")}get extensionDevelopmentLocationURI(){const e=this._args.extensionDevelopmentPath;return Array.isArray(e)?e.map(e=>/^[^:/?#]+?:\/\//.test(e)?f.URI.parse(e):f.URI.file(o.normalize(e))):e?/^[^:/?#]+?:\/\//.test(e)?[f.URI.parse(e)]:[f.URI.file(o.normalize(e))]:void 0}get extensionTestsLocationURI(){
const e=this._args.extensionTestsPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?f.URI.parse(e):f.URI.file(o.normalize(e))}get disableExtensions(){if(this._args["disable-extensions"])return!0;const e=this._args["disable-extension"];if(e){if("string"==typeof e)return[e];if(Array.isArray(e)&&e.length>0)return e}return!1}get skipGettingStarted(){return!!this._args["skip-getting-started"]}get skipReleaseNotes(){return!!this._args["skip-release-notes"]}get skipAddToRecentlyOpened(){return!!this._args["skip-add-to-recently-opened"]}get debugExtensionHost(){return g(this._args,this.isBuilt)}get debugSearch(){return m(this._args,this.isBuilt)}get isBuilt(){return!process.env.VSCODE_DEV}get verbose(){return!!this._args.verbose}get log(){return this._args.log}get wait(){return!!this._args.wait}get logExtensionHostCommunication(){return!!this._args.logExtensionHostCommunication}get status(){return!!this._args.status}get mainIPCHandle(){return p(this.userDataPath,"main")}get sharedIPCHandle(){
return p(this.userDataPath,"shared")}get nodeCachedDataDir(){return process.env.VSCODE_NODE_CACHED_DATA_DIR||void 0}get disableUpdates(){return!!this._args["disable-updates"]}get disableCrashReporter(){return!!this._args["disable-crash-reporter"]}get driverHandle(){return this._args.driver}get driverVerbose(){return!!this._args["driver-verbose"]}}i([a.memoize],w.prototype,"appRoot",null),i([a.memoize],w.prototype,"cliPath",null),i([a.memoize],w.prototype,"userHome",null),i([a.memoize],w.prototype,"userDataPath",null),i([a.memoize],w.prototype,"appSettingsHome",null),i([a.memoize],w.prototype,"appSettingsPath",null),i([a.memoize],w.prototype,"machineSettingsHome",null),i([a.memoize],w.prototype,"machineSettingsPath",null),i([a.memoize],w.prototype,"globalStorageHome",null),i([a.memoize],w.prototype,"workspaceStorageHome",null),i([a.memoize],w.prototype,"settingsSearchBuildId",null),i([a.memoize],w.prototype,"settingsSearchUrl",null),i([a.memoize],w.prototype,"appKeybindingsPath",null),
i([a.memoize],w.prototype,"isExtensionDevelopment",null),i([a.memoize],w.prototype,"backupHome",null),i([a.memoize],w.prototype,"backupWorkspacesPath",null),i([a.memoize],w.prototype,"untitledWorkspacesHome",null),i([a.memoize],w.prototype,"installSourcePath",null),i([a.memoize],w.prototype,"builtinExtensionsPath",null),i([a.memoize],w.prototype,"extensionsPath",null),i([a.memoize],w.prototype,"extensionDevelopmentLocationURI",null),i([a.memoize],w.prototype,"extensionTestsLocationURI",null),i([a.memoize],w.prototype,"debugExtensionHost",null),i([a.memoize],w.prototype,"debugSearch",null),i([a.memoize],w.prototype,"mainIPCHandle",null),i([a.memoize],w.prototype,"sharedIPCHandle",null),i([a.memoize],w.prototype,"nodeCachedDataDir",null),t.EnvironmentService=w,t.parseExtensionHostPort=g,t.parseSearchPort=m,t.parseDebugPort=v,t.parseUserDataDir=b}),define(e[23],t([0,1,11,82]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this.data={}}add(e,t){
i.ok(n.isString(e)),i.ok(n.isObject(t)),i.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t}knows(e){return this.data.hasOwnProperty(e)}as(e){return this.data[e]||null}}t.Registry=new r}),define(e[85],t([0,1,23,3]),function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};class r{constructor(){this._onDidChangeSchema=new i.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}registerSchema(e,t){this.schemasById[function(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}getSchemaContributions(){return{schemas:this.schemasById}}}const s=new r;n.Registry.add(t.Extensions.JSONContribution,s)}),define(e[42],t([0,1,66,3,23,11,5,85]),function(e,t,n,i,r,s,o,a){"use strict";function c(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1
;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function l(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize(3,null,e):void 0!==g.getConfigurationProperties()[e]?n.localize(4,null,e):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={Configuration:"base.contributions.configuration"};!function(e){e[e.APPLICATION=1]="APPLICATION",e[e.MACHINE=2]="MACHINE",e[e.WINDOW=3]="WINDOW",e[e.RESOURCE=4]="RESOURCE"}(t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.machineSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";const u=r.Registry.as(a.Extensions.JSONContribution);class h{constructor(){this.overrideIdentifiers=[],
this._onDidSchemaChange=new i.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidUpdateConfiguration=new i.Emitter,this.onDidUpdateConfiguration=this._onDidUpdateConfiguration.event,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:n.localize(0,null),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),u.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=[];e.forEach(e=>{n.push(...this.validateAndRegisterProperties(e,t)),this.configurationContributors.push(e),this.registerJSONConfiguration(e),this.updateSchemaForOverrideSettingsConfiguration(e)}),
this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}deregisterConfigurations(e){const n=[],i=e=>{if(e.properties)for(const i in e.properties)switch(n.push(i),delete this.configurationProperties[i],delete this.editorConfigurationSchema.properties[i],delete t.allSettings.properties[i],e.properties[i].scope){case 1:delete t.applicationSettings.properties[i];break;case 2:delete t.machineSettings.properties[i];break;case 3:delete t.windowSettings.properties[i];break;case 4:delete t.resourceSettings.properties[i]}e.allOf&&e.allOf.forEach(e=>i(e))};for(const t of e){i(t);const e=this.configurationContributors.indexOf(t);-1!==e&&this.configurationContributors.splice(e,1)}u.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}registerDefaultConfigurations(e){const i=[];for(const r of e)for(const e in r.defaults){const s=r.defaults[e];if(t.OVERRIDE_PROPERTY_PATTERN.test(e)&&"object"==typeof s){const r={
type:"object",default:s,description:n.localize(1,null,e),$ref:t.editorConfigurationSchemaId};t.allSettings.properties[e]=r,this.defaultOverridesConfigurationNode.properties[e]=r,this.configurationProperties[e]=r,i.push(e)}}this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)}deregisterDefaultConfigurations(e){const n=[];for(const i of e)for(const e in i.defaults)n.push(e),delete t.allSettings.properties[e],delete this.defaultOverridesConfigurationNode.properties[e],delete this.configurationProperties[e];this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}notifyConfigurationSchemaUpdated(...e){this._onDidSchemaChange.fire()}registerOverrideIdentifiers(e){this.overrideIdentifiers.push(...e),this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(e,n=!0,i=3,r=!1){i=s.isUndefinedOrNull(e.scope)?i:e.scope,r=e.overridable||r;let o=[],a=e.properties;if(a)for(let e in a){let u;if(n&&(u=l(e))){console.warn(u),delete a[e];continue}let h=a[e],d=h.default
;s.isUndefined(d)&&(h.default=c(h.type)),r&&(h.overridable=!0),t.OVERRIDE_PROPERTY_PATTERN.test(e)?h.scope=void 0:h.scope=s.isUndefinedOrNull(h.scope)?i:h.scope,!a[e].hasOwnProperty("included")||a[e].included?(this.configurationProperties[e]=a[e],o.push(e)):(this.excludedConfigurationProperties[e]=a[e],delete a[e])}let u=e.allOf;if(u)for(let e of u)o.push(...this.validateAndRegisterProperties(e,n,i,r));return o}getConfigurations(){return this.configurationContributors}getConfigurationProperties(){return this.configurationProperties}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}registerJSONConfiguration(e){function n(e){let i=e.properties;if(i)for(const e in i)switch(t.allSettings.properties[e]=i[e],i[e].scope){case 1:t.applicationSettings.properties[e]=i[e];break;case 2:t.machineSettings.properties[e]=i[e];break;case 3:t.windowSettings.properties[e]=i[e];break;case 4:t.resourceSettings.properties[e]=i[e]}let r=e.allOf;r&&r.forEach(n)}n(e)}
updateSchemaForOverrideSettingsConfiguration(e){e.id!==d&&(this.update(e),u.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema))}updateOverridePropertyPatternKey(){let e=t.allSettings.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:n.localize(2,null),errorMessage:"Unknown Identifier. Use language identifiers",$ref:t.editorConfigurationSchemaId}),delete t.allSettings.patternProperties[this.overridePropertyPattern],delete t.applicationSettings.patternProperties[this.overridePropertyPattern],delete t.machineSettings.patternProperties[this.overridePropertyPattern],delete t.windowSettings.patternProperties[this.overridePropertyPattern],delete t.resourceSettings.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),t.allSettings.patternProperties[this.overridePropertyPattern]=e,t.applicationSettings.patternProperties[this.overridePropertyPattern]=e,t.machineSettings.patternProperties[this.overridePropertyPattern]=e,
t.windowSettings.patternProperties[this.overridePropertyPattern]=e,t.resourceSettings.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()}update(e){let t=e.properties;if(t)for(let e in t)t[e].overridable&&(this.editorConfigurationSchema.properties[e]=this.getConfigurationProperties()[e]);let n=e.allOf;n&&n.forEach(e=>this.update(e))}computeOverridePropertyPattern(){this.overridePropertyPattern=this.overrideIdentifiers.length?p.replace("${0}",this.overrideIdentifiers.map(e=>o.createRegExp(e,!1).source).join("|")):f}}const d="override",f="\\[.*\\]$",p="\\[(${0})\\]$";t.OVERRIDE_PROPERTY_PATTERN=new RegExp(f),t.getDefaultValue=c;const g=new h;r.Registry.add(t.Extensions.Configuration,g),t.validateProperty=l,t.getScopes=function(){const e={},t=g.getConfigurationProperties();for(const n of Object.keys(t))e[n]=t[n].scope;return e.launch=4,e.task=4,e}}),define(e[31],t([0,1,12,11,7,23,8,42]),function(e,t,n,i,r,s,o,a){"use strict";function c(e,t){const n=Object.create(null)
;for(let i in e)l(n,i,e[i],t);return n}function l(e,t,n,i){const r=t.split("."),s=r.pop();let o=e;for(let e=0;e<r.length;e++){let n=r[e],s=o[n];switch(typeof s){case"undefined":s=o[n]=Object.create(null);break;case"object":break;default:return void i(`Ignoring ${t} as ${r.slice(0,e+1).join(".")} is ${JSON.stringify(s)}`)}o=s}"object"==typeof o?o[s]=n:i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(o)}`)}function u(e,t){const n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){const i=e[n];"object"!=typeof i||Array.isArray(i)||(u(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function h(e,t,n){const i=function(e,t){let n=e;for(const e of t){if("object"!=typeof n||null===n)return;n=n[e]}return n}(e,t.split("."));return void 0===i?n:i}function d(e,t,n){Object.keys(t).forEach(r=>{r in e?i.isObject(e[r])&&i.isObject(t[r])?d(e[r],t[r],n):n&&(e[r]=t[r]):e[r]=t[r]})}function f(e){return e.substring(1,e.length-1)}Object.defineProperty(t,"__esModule",{value:!0}),
t.IConfigurationService=o.createDecorator("configurationService"),t.isConfigurationOverrides=function(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof r.URI)};!function(e){e[e.USER=1]="USER",e[e.USER_LOCAL=2]="USER_LOCAL",e[e.USER_REMOTE=3]="USER_REMOTE",e[e.WORKSPACE=4]="WORKSPACE",e[e.WORKSPACE_FOLDER=5]="WORKSPACE_FOLDER",e[e.DEFAULT=6]="DEFAULT",e[e.MEMORY=7]="MEMORY"}(t.ConfigurationTarget||(t.ConfigurationTarget={})),t.ConfigurationTargetToString=function(e){switch(e){case 1:return"USER";case 2:return"USER_LOCAL";case 3:return"USER_REMOTE";case 4:return"WORKSPACE";case 5:return"WORKSPACE_FOLDER";case 6:return"DEFAULT";case 7:return"MEMORY"}},t.compare=function(e,t){const i=t.keys.filter(t=>-1===e.keys.indexOf(t)),r=e.keys.filter(e=>-1===t.keys.indexOf(e)),s=[];for(const i of e.keys){const r=h(e.contents,i),o=h(t.contents,i);n.equals(r,o)||s.push(i)}return{added:i,removed:r,updated:s}},t.toOverrides=function(e,t){
const n=[],i=s.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(const r of Object.keys(e))if(a.OVERRIDE_PROPERTY_PATTERN.test(r)){const s={};for(const t in e[r])i[t]&&i[t].overridable&&(s[t]=e[r][t]);n.push({identifiers:[f(r).trim()],contents:c(s,t)})}return n},t.toValuesTree=c,t.addToValueTree=l,t.removeFromValueTree=function(e,t){u(e,t.split("."))},t.getConfigurationValue=h,t.merge=d,t.getConfigurationKeys=function(){const e=s.Registry.as(a.Extensions.Configuration).getConfigurationProperties();return Object.keys(e)},t.getDefaultValues=function(){const e=Object.create(null),t=s.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(let n in t)l(e,n,t[n].default,e=>console.error(`Conflict in default settings: ${e}`));return e},t.overrideIdentifierFromKey=f,t.keyFromOverrideIdentifier=function(e){return`[${e}]`},t.getMigratedSettingValue=function(e,t,n){const i=e.inspect(t),r=e.inspect(n)
;return void 0!==i.user||void 0!==i.workspace||void 0!==i.workspaceFolder?i.value:void 0!==r.user||void 0!==r.workspace||void 0!==r.workspaceFolder?r.value:i.default}}),define(e[88],t([0,1,14]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REMOTE_HOST_SCHEME=n.Schemas.vscodeRemote,t.getRemoteAuthority=function(e){return e.scheme===t.REMOTE_HOST_SCHEME?e.authority:void 0}});var r=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};define(e[89],t([0,1,67,5,8,31,42,4,12,23]),function(e,t,s,o,a,c,l,u,h,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let f=class{constructor(e,t){this._configurationService=t,this._disposables=[],this._cleanupPatterns=[],this._appender=e.appender,this._commonProperties=e.commonProperties||Promise.resolve({}),this._piiPaths=e.piiPaths||[],this._userOptIn=!0,this._enabled=!0,this._cleanupPatterns=[/file:\/\/\/.*?\/resources\/app\//gi]
;for(let e of this._piiPaths)this._cleanupPatterns.push(new RegExp(o.escapeRegExpCharacters(e),"gi"));this._configurationService&&(this._updateUserOptIn(),this._configurationService.onDidChangeConfiguration(this._updateUserOptIn,this,this._disposables),this.publicLog("optInStatus",{optIn:this._userOptIn}),this._commonProperties.then(e=>{const t=/^[a-f0-9]+$/i.test(e["common.machineId"]);this.publicLog("machineIdFallback",{usingFallbackGuid:!t})}))}setEnabled(e){this._enabled=e}_updateUserOptIn(){const e=this._configurationService.getValue(p);this._userOptIn=e?e.enableTelemetry:this._userOptIn}get isOptedIn(){return this._userOptIn&&this._enabled}getTelemetryInfo(){return n(this,void 0,void 0,function*(){const e=yield this._commonProperties;return{sessionId:e.sessionID,instanceId:e["common.instanceId"],machineId:e["common.machineId"]}})}dispose(){this._disposables=u.dispose(this._disposables)}publicLog(e,t,n){return this.isOptedIn?this._commonProperties.then(i=>{t=h.mixin(t,i),t=h.cloneAndChange(t,e=>{
if("string"==typeof e)return this._cleanupInfo(e,n)}),this._appender.log(e,t)},e=>{console.error(e)}):Promise.resolve(void 0)}_cleanupInfo(e,t){let n=e;if(t){const t=[];for(let n of this._cleanupPatterns)for(;;){const i=n.exec(e);if(!i)break;t.push([i.index,n.lastIndex])}const i=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,r=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let s=0;for(n="";;){const o=r.exec(e);if(!o)break;!i.test(o[0])&&t.every(([e,t])=>o.index<e||o.index>=t)&&(n+=e.substring(s,o.index)+"<REDACTED: user-file-path>",s=r.lastIndex)}s<e.length&&(n+=e.substr(s))}for(let e of this._cleanupPatterns)n=n.replace(e,"");return n}};f.IDLE_START_EVENT_NAME="UserIdleStart",f.IDLE_STOP_EVENT_NAME="UserIdleStop",f=i([r(1,a.optional(c.IConfigurationService))],f),t.TelemetryService=f;const p="telemetry";d.Registry.as(l.Extensions.Configuration).registerConfiguration({id:p,order:110,type:"object",title:s.localize(0,null),properties:{"telemetry.enableTelemetry":{
type:"boolean",description:s.localize(1,null),default:!0,tags:["usesOnlineServices"]}}})}),define(e[90],t([0,1,31,15]),function(e,t,n,s){"use strict";function o(e,t){return t.onDidChangeConfiguration(t=>{6!==t.source&&(e.publicLog("updateConfiguration",{configurationSource:n.ConfigurationTargetToString(t.source),configurationKeys:function(e){if(!e)return[];const t=[];return a(t,"",e),t}(t.sourceConfig)}),e.publicLog("updateConfigurationValues",{configurationSource:n.ConfigurationTargetToString(t.source),configurationValues:function(e,t){if(!e)return[];return t.reduce((t,n)=>{const i=n.split(".").reduce((e,t)=>e&&"object"==typeof e?e[t]:void 0,e);return void 0!==i&&t.push({[n]:i}),t},[])}(t.sourceConfig,l)}))})}function a(e,t,n){n&&"object"==typeof n&&!Array.isArray(n)?Object.keys(n).forEach(i=>a(e,t?`${t}.${i}`:i,n[i])):e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryService=new class{publicLog(e,t){return Promise.resolve(void 0)}setEnabled(){}getTelemetryInfo(){
return Promise.resolve({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})}},t.combinedAppender=function(...e){return{log:(t,n)=>e.forEach(e=>e.log(t,n)),dispose:()=>Promise.all(e.map(e=>e.dispose()))}},t.NullAppender={log:()=>null,dispose:()=>Promise.resolve(null)};let c=class{constructor(e){this._logService=e,this.commonPropertiesRegex=/^sessionID$|^version$|^timestamp$|^commitHash$|^common\./}dispose(){return Promise.resolve(void 0)}log(e,t){const n={};Object.keys(t).forEach(e=>{this.commonPropertiesRegex.test(e)||(n[e]=t[e])}),this._logService.trace(`telemetry/${e}`,n)}};c=i([r(0,s.ILogService)],c),t.LogAppender=c
;const l=["editor.fontFamily","editor.fontWeight","editor.fontSize","editor.lineHeight","editor.letterSpacing","editor.lineNumbers","editor.rulers","editor.wordSeparators","editor.tabSize","editor.indentSize","editor.insertSpaces","editor.detectIndentation","editor.roundedSelection","editor.scrollBeyondLastLine","editor.minimap.enabled","editor.minimap.side","editor.minimap.renderCharacters","editor.minimap.maxColumn","editor.find.seedSearchStringFromSelection","editor.find.autoFindInSelection","editor.wordWrap","editor.wordWrapColumn","editor.wrappingIndent","editor.mouseWheelScrollSensitivity","editor.multiCursorModifier","editor.quickSuggestions","editor.quickSuggestionsDelay","editor.parameterHints.enabled","editor.parameterHints.cycle","editor.autoClosingBrackets","editor.autoClosingQuotes","editor.autoSurround","editor.autoIndent","editor.formatOnType","editor.formatOnPaste","editor.suggestOnTriggerCharacters","editor.acceptSuggestionOnEnter","editor.acceptSuggestionOnCommitCharacter","editor.snippetSuggestions","editor.emptySelectionClipboard","editor.wordBasedSuggestions","editor.suggestSelection","editor.suggestFontSize","editor.suggestLineHeight","editor.tabCompletion","editor.selectionHighlight","editor.occurrencesHighlight","editor.overviewRulerLanes","editor.overviewRulerBorder","editor.cursorBlinking","editor.cursorSmoothCaretAnimation","editor.cursorStyle","editor.mouseWheelZoom","editor.fontLigatures","editor.hideCursorInOverviewRuler","editor.renderWhitespace","editor.renderControlCharacters","editor.renderIndentGuides","editor.renderLineHighlight","editor.codeLens","editor.folding","editor.showFoldingControls","editor.matchBrackets","editor.glyphMargin","editor.useTabStops","editor.trimAutoWhitespace","editor.stablePeek","editor.dragAndDrop","editor.formatOnSave","editor.colorDecorators","breadcrumbs.enabled","breadcrumbs.filePath","breadcrumbs.symbolPath","breadcrumbs.symbolSortOrder","breadcrumbs.useQuickPick","explorer.openEditors.visible","extensions.autoUpdate","files.associations","files.autoGuessEncoding","files.autoSave","files.autoSaveDelay","files.encoding","files.eol","files.hotExit","files.trimTrailingWhitespace","git.confirmSync","git.enabled","http.proxyStrictSSL","javascript.validate.enable","php.builtInCompletions.enable","php.validate.enable","php.validate.run","terminal.integrated.fontFamily","window.openFilesInNewWindow","window.restoreWindows","window.zoomLevel","workbench.editor.enablePreview","workbench.editor.enablePreviewFromQuickOpen","workbench.editor.showTabs","workbench.editor.highlightModifiedTabs","workbench.editor.swipeToNavigate","workbench.sideBar.location","workbench.startupEditor","workbench.statusBar.visible","workbench.welcome.enabled"]
;t.configurationTelemetry=o,t.keybindingsTelemetry=function(e,t){return t.onDidUpdateKeybindings(t=>{2===t.source&&t.keybindings&&e.publicLog("updateKeybindings",{bindings:t.keybindings.map(e=>({key:e.key,command:e.command,when:e.when,args:!!e.args||void 0}))})})}}),define(e[91],t([0,1,2,16,25,45]),function(e,t,i,r,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCommonProperties=function(e,t,a,c,l){return n(this,void 0,void 0,function*(){const n=Object.create(null);n["common.machineId"]=a,n.sessionID=s.generateUuid()+Date.now(),n.commitHash=e,n.version=t,n["common.platformVersion"]=(r.release()||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),n["common.platform"]=i.PlatformToString(i.platform),n["common.nodePlatform"]=process.platform,n["common.nodeArch"]=process.arch,n["common.product"]=l||"desktop";let u=0;const h=Date.now();Object.defineProperties(n,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-h,enumerable:!0},
"common.sequence":{get:()=>u++,enumerable:!0}}),"linux"===process.platform&&process.env.SNAP&&process.env.SNAP_REVISION&&(n["common.snap"]="true");try{const e=yield o.readFile(c,"utf8");n["common.source"]=e.slice(0,30)}catch(e){}return n})}}),define(e[92],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e){this.appender=e}listen(e,t){throw new Error(`Event not found: ${t}`)}call(e,t,{eventName:n,data:i}){return this.appender.log(n,i),Promise.resolve(null)}}t.TelemetryAppenderChannel=n;class i{constructor(e){this.channel=e}log(e,t){return this.channel.call("log",{eventName:e,data:t}).then(void 0,e=>`Failed to log telemetry: ${console.warn(e)}`),Promise.resolve(null)}dispose(){}}t.TelemetryAppenderClient=i}),define(e[93],t([0,1,8,3,2,4,10]),function(e,t,s,o,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWindowsService=s.createDecorator("windowsService"),t.IWindowService=s.createDecorator("windowService"),
t.isWorkspaceToOpen=function(e){return!!e.workspaceUri},t.isFolderToOpen=function(e){return!!e.folderUri},t.isFileToOpen=function(e){return!!e.fileUri},t.getTitleBarStyle=function(e,t,n=t.isExtensionDevelopment){const i=e.getValue("window"),r=!t.isBuilt||n;if(a.isMacintosh&&r)return"native";if(i){if(a.isMacintosh&&!0===i.nativeTabs)return"native";if(a.isMacintosh&&!1===i.nativeFullScreen)return"native";const e=i.titleBarStyle;if("native"===e||"custom"===e)return e}return a.isLinux?"native":"custom"};!function(e){e[e.CLI=0]="CLI",e[e.DOCK=1]="DOCK",e[e.MENU=2]="MENU",e[e.DIALOG=3]="DIALOG",e[e.DESKTOP=4]="DESKTOP",e[e.API=5]="API"}(t.OpenContext||(t.OpenContext={}));!function(e){e[e.NONE=0]="NONE",e[e.LOADING=1]="LOADING",e[e.NAVIGATING=2]="NAVIGATING",e[e.READY=3]="READY"}(t.ReadyState||(t.ReadyState={}));let u=class{constructor(e){this.disposables=[];o.Event.latch(o.Event.any(e.onWindowOpen,e.onWindowFocus))(this.setActiveWindow,this,this.disposables),
this.firstActiveWindowIdPromise=l.createCancelablePromise(t=>e.getActiveWindowId()),this.firstActiveWindowIdPromise.then(e=>this.activeWindowId="number"==typeof this.activeWindowId?this.activeWindowId:e).finally(this.firstActiveWindowIdPromise=void 0)}setActiveWindow(e){this.firstActiveWindowIdPromise&&(this.firstActiveWindowIdPromise.cancel(),this.firstActiveWindowIdPromise=void 0),this.activeWindowId=e}getActiveClientId(){return n(this,void 0,void 0,function*(){return`window:${this.firstActiveWindowIdPromise?yield this.firstActiveWindowIdPromise:this.activeWindowId}`})}dispose(){this.disposables=c.dispose(this.disposables)}};u=i([r(0,t.IWindowsService)],u),t.ActiveWindowManager=u}),define(e[94],t([0,1,8,68,7,2,6,38,64,26,14,84,20,88]),function(e,t,n,i,r,s,o,a,c,l,u,h,d,f){"use strict";function p(e){return g(e)||m(e)}function g(e){return e&&"object"==typeof e&&"string"==typeof e.path&&(!e.name||"string"==typeof e.name)}function m(e){
return e&&"object"==typeof e&&"string"==typeof e.uri&&(!e.name||"string"==typeof e.name)}function v(e){return e instanceof r.URI}function _(e,t,n,i=!s.isWindows){if(e.scheme!==n.scheme)return{name:t,uri:e.toString(!0)};let r;if(a.isEqualOrParent(e,n))r=a.relativePath(n,e)||".",s.isWindows&&e.scheme===u.Schemas.file&&!i&&(r=r.replace(/\//g,"\\"));else if(e.scheme===u.Schemas.file)r=e.fsPath,s.isWindows&&(r=h.normalizeDriveLetter(r),i&&(r=d.toSlashes(r)));else{if(!a.isEqualAuthority(e.authority,n.authority))return{name:t,uri:e.toString(!0)};r=e.path}return{name:t,path:r}}function b(e,t,n){let i=function(e,t){let n=l.parse(t);Array.isArray(n.folders)&&(n.folders=n.folders.filter(e=>p(e)));if(!Array.isArray(n.folders))throw new Error(`${e} looks like an invalid workspace file.`);return n}(t,e);const o=a.dirname(t),u=a.dirname(n),h=[],d=y(i.folders);for(const e of i.folders){let t=g(e)?a.resolvePath(o,e.path):r.URI.parse(e.uri);h.push(_(t,e.name,u,d))}const m={insertSpaces:!1,tabSize:4,
eol:s.isLinux||s.isMacintosh?"\n":"\r\n"},v=c.setProperty(e,["folders"],h,m);let b=c.applyEdits(e,v);return i.remoteAuthority===f.getRemoteAuthority(n)&&(b=c.applyEdits(b,c.removeProperty(b,["remoteAuthority"],m))),b}function y(e){if(s.isWindows){for(const t of e)if(g(t)&&t.path.indexOf(E)>=0)return!0;return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspacesMainService=n.createDecorator("workspacesMainService"),t.IWorkspacesService=n.createDecorator("workspacesService"),t.WORKSPACE_EXTENSION="code-workspace",t.WORKSPACE_FILTER=[{name:i.localize(0,null),extensions:[t.WORKSPACE_EXTENSION]}],t.UNTITLED_WORKSPACE_NAME="workspace.json",t.reviveWorkspaceIdentifier=function(e){return{id:e.id,configPath:r.URI.revive(e.configPath)}},t.isStoredWorkspaceFolder=p,t.isRawFileWorkspaceFolder=g,t.isRawUriWorkspaceFolder=m,t.isSingleFolderWorkspaceIdentifier=v,t.isWorkspaceIdentifier=function(e){const t=e;return t&&"string"==typeof t.id&&t.configPath instanceof r.URI},
t.toWorkspaceIdentifier=function(e){return e.configuration?{configPath:e.configuration,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0},t.isSingleFolderWorkspaceInitializationPayload=function(e){return v(e.folder)};const w="."+t.WORKSPACE_EXTENSION;t.hasWorkspaceFileExtension=function(e){return("string"==typeof e?o.extname(e):a.extname(e))===w};const E="/";t.getStoredWorkspaceFolder=_,t.rewriteWorkspaceFileForNewLocation=b,t.useSlashForPath=y}),define(e[95],t([0,1,94,74,7,37]),function(e,t,s,o,a,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let l=class{constructor(e){this.channel=e.getChannel("windows")}get onWindowOpen(){return this.channel.listen("onWindowOpen")}get onWindowFocus(){return this.channel.listen("onWindowFocus")}get onWindowBlur(){return this.channel.listen("onWindowBlur")}get onWindowMaximize(){return this.channel.listen("onWindowMaximize")}get onWindowUnmaximize(){return this.channel.listen("onWindowUnmaximize")}get onRecentlyOpenedChange(){
return this.channel.listen("onRecentlyOpenedChange")}pickFileFolderAndOpen(e){return this.channel.call("pickFileFolderAndOpen",e)}pickFileAndOpen(e){return this.channel.call("pickFileAndOpen",e)}pickFolderAndOpen(e){return this.channel.call("pickFolderAndOpen",e)}pickWorkspaceAndOpen(e){return this.channel.call("pickWorkspaceAndOpen",e)}showMessageBox(e,t){return this.channel.call("showMessageBox",[e,t])}showSaveDialog(e,t){return this.channel.call("showSaveDialog",[e,t])}showOpenDialog(e,t){return this.channel.call("showOpenDialog",[e,t])}reloadWindow(e,t){return this.channel.call("reloadWindow",[e,t])}openDevTools(e,t){return this.channel.call("openDevTools",[e,t])}toggleDevTools(e){return this.channel.call("toggleDevTools",e)}closeWorkspace(e){return this.channel.call("closeWorkspace",e)}enterWorkspace(e,t){return n(this,void 0,void 0,function*(){const n=yield this.channel.call("enterWorkspace",[e,t]);return n&&(n.workspace=s.reviveWorkspaceIdentifier(n.workspace)),n})}toggleFullScreen(e){
return this.channel.call("toggleFullScreen",e)}setRepresentedFilename(e,t){return this.channel.call("setRepresentedFilename",[e,t])}addRecentlyOpened(e){return this.channel.call("addRecentlyOpened",e)}removeFromRecentlyOpened(e){return this.channel.call("removeFromRecentlyOpened",e)}clearRecentlyOpened(){return this.channel.call("clearRecentlyOpened")}getRecentlyOpened(e){return n(this,void 0,void 0,function*(){const t=yield this.channel.call("getRecentlyOpened",e);return t.workspaces.forEach(e=>o.isRecentWorkspace(e)?e.workspace=s.reviveWorkspaceIdentifier(e.workspace):e.folderUri=a.URI.revive(e.folderUri)),t.files.forEach(e=>e.fileUri=a.URI.revive(e.fileUri)),t})}newWindowTab(){return this.channel.call("newWindowTab")}showPreviousWindowTab(){return this.channel.call("showPreviousWindowTab")}showNextWindowTab(){return this.channel.call("showNextWindowTab")}moveWindowTabToNewWindow(){return this.channel.call("moveWindowTabToNewWindow")}mergeAllWindowTabs(){return this.channel.call("mergeAllWindowTabs")}
toggleWindowTabsBar(){return this.channel.call("toggleWindowTabsBar")}focusWindow(e){return this.channel.call("focusWindow",e)}closeWindow(e){return this.channel.call("closeWindow",e)}isFocused(e){return this.channel.call("isFocused",e)}isMaximized(e){return this.channel.call("isMaximized",e)}maximizeWindow(e){return this.channel.call("maximizeWindow",e)}unmaximizeWindow(e){return this.channel.call("unmaximizeWindow",e)}minimizeWindow(e){return this.channel.call("minimizeWindow",e)}onWindowTitleDoubleClick(e){return this.channel.call("onWindowTitleDoubleClick",e)}setDocumentEdited(e,t){return this.channel.call("setDocumentEdited",[e,t])}quit(){return this.channel.call("quit")}relaunch(e){return this.channel.call("relaunch",[e])}whenSharedProcessReady(){return this.channel.call("whenSharedProcessReady")}toggleSharedProcess(){return this.channel.call("toggleSharedProcess")}openWindow(e,t,n){return this.channel.call("openWindow",[e,t,n])}openNewWindow(e){return this.channel.call("openNewWindow",e)}getWindows(){
return n(this,void 0,void 0,function*(){const e=yield this.channel.call("getWindows");for(const t of e)t.folderUri&&(t.folderUri=a.URI.revive(t.folderUri)),t.workspace&&(t.workspace=s.reviveWorkspaceIdentifier(t.workspace));return e})}getWindowCount(){return this.channel.call("getWindowCount")}log(e,...t){return this.channel.call("log",[e,t])}showItemInFolder(e){return this.channel.call("showItemInFolder",e)}getActiveWindowId(){return this.channel.call("getActiveWindowId")}openExternal(e){return this.channel.call("openExternal",e)}startCrashReporter(e){return this.channel.call("startCrashReporter",e)}updateTouchBar(e,t){return this.channel.call("updateTouchBar",[e,t])}openAboutDialog(){return this.channel.call("openAboutDialog")}resolveProxy(e,t){return Promise.resolve(this.channel.call("resolveProxy",[e,t]))}};l=i([r(0,c.IMainProcessService)],l),t.WindowsService=l}),
define(e[102],t([0,1,52,13,24,41,21,5,40,39,16,30,2,4,18,53,36,93,90,89,92,76,91,95,37,83,70,65,79,15,60,54,57,11,43,80,61]),function(e,t,r,s,o,a,c,l,u,h,d,f,p,g,m,v,_,b,y,w,E,C,S,k,A,x,P,I,T,L,O,D,R,M,U,N){"use strict";function F(e){e&&e.classList.add("hidden")}function B(e){e&&e.classList.remove("hidden")}Object.defineProperty(t,"__esModule",{value:!0});t.startup=function(e){document.body.innerHTML=I.default();const t=new $(e);t.render(),document.body.style.display="block",t.setInitialFocus()};class $ extends g.Disposable{constructor(e){super(),this.numberOfSearchResultsDisplayed=0,this.receivedSystemInfo=!1,this.receivedPerformanceInfo=!1,this.shouldQueueSearch=!1,this.hasBeenSubmitted=!1,this.initServices(e);const t="linux"===process.platform&&process.env.SNAP&&process.env.SNAP_REVISION;this.issueReporterModel=new P.IssueReporterModel({issueType:e.data.issueType||0,versionInfo:{
vscodeVersion:`${h.default.name} ${h.default.version} (${u.default.commit||"Commit unknown"}, ${u.default.date||"Date unknown"})`,os:`${d.type()} ${d.arch()} ${d.release()}${t?" snap":""}`},extensionsDisabled:!!this.environmentService.disableExtensions,fileOnExtension:!!e.data.extensionId||void 0,selectedExtension:e.data.extensionId?e.data.enabledExtensions.filter(t=>t.id===e.data.extensionId)[0]:void 0});const n=this.getElementById("issue-reporter");n&&(this.previewButton=new R.Button(n)),r.ipcRenderer.on("vscode:issuePerformanceInfoResponse",(e,t)=>{this.logService.trace("issueReporter: Received performance data"),this.issueReporterModel.update(t),this.receivedPerformanceInfo=!0;const n=this.issueReporterModel.getData();this.updateProcessInfo(n),this.updateWorkspaceInfo(n),this.updatePreviewButtonState()}),r.ipcRenderer.on("vscode:issueSystemInfoResponse",(e,t)=>{this.logService.trace("issueReporter: Received system data"),this.issueReporterModel.update({systemInfo:t}),this.receivedSystemInfo=!0,
this.updateSystemInfo(this.issueReporterModel.getData()),this.updatePreviewButtonState()}),r.ipcRenderer.send("vscode:issueSystemInfoRequest"),1===e.data.issueType&&r.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),this.logService.trace("issueReporter: Sent data requests"),"en"!==window.document.documentElement.lang&&B(this.getElementById("english")),this.setUpTypes(),this.setEventHandlers(),this.applyZoom(e.data.zoomLevel),this.applyStyles(e.data.styles),this.handleExtensionData(e.data.enabledExtensions),3===e.data.issueType&&this.handleSettingsSearchData(e.data)}render(){this.renderBlocks()}setInitialFocus(){const{fileOnExtension:e}=this.issueReporterModel.getData();if(e){const e=document.getElementById("issue-title");e&&e.focus()}else{const e=document.getElementById("issue-type");e&&e.focus()}}applyZoom(e){r.webFrame.setZoomLevel(e),c.setZoomFactor(r.webFrame.getZoomFactor()),c.setZoomLevel(r.webFrame.getZoomLevel(),!1)}applyStyles(e){const t=document.createElement("style"),n=[]
;e.inputBackground&&n.push(`input[type="text"], textarea, select, .issues-container > .issue > .issue-state, .block-info { background-color: ${e.inputBackground}; }`),e.inputBorder?n.push(`input[type="text"], textarea, select { border: 1px solid ${e.inputBorder}; }`):n.push('input[type="text"], textarea, select { border: 1px solid transparent; }'),e.inputForeground&&n.push(`input[type="text"], textarea, select, .issues-container > .issue > .issue-state, .block-info { color: ${e.inputForeground}; }`),e.inputErrorBorder&&(n.push(`.invalid-input, .invalid-input:focus { border: 1px solid ${e.inputErrorBorder} !important; }`),n.push(`.validation-error, .required-input { color: ${e.inputErrorBorder}; }`)),e.inputActiveBorder&&n.push(`input[type='text']:focus, textarea:focus, select:focus, summary:focus, button:focus, a:focus, .workbenchCommand:focus  { border: 1px solid ${e.inputActiveBorder}; outline-style: none; }`),e.textLinkColor&&n.push(`a, .workbenchCommand { color: ${e.textLinkColor}; }`),
e.textLinkColor&&n.push(`a { color: ${e.textLinkColor}; }`),e.textLinkActiveForeground&&n.push(`a:hover, .workbenchCommand:hover { color: ${e.textLinkActiveForeground}; }`),e.sliderBackgroundColor&&n.push(`::-webkit-scrollbar-thumb { background-color: ${e.sliderBackgroundColor}; }`),e.sliderActiveColor&&n.push(`::-webkit-scrollbar-thumb:active { background-color: ${e.sliderActiveColor}; }`),e.sliderHoverColor&&n.push(`::--webkit-scrollbar-thumb:hover { background-color: ${e.sliderHoverColor}; }`),e.buttonBackground&&n.push(`.monaco-text-button { background-color: ${e.buttonBackground} !important; }`),e.buttonForeground&&n.push(`.monaco-text-button { color: ${e.buttonForeground} !important; }`),e.buttonHoverBackground&&n.push(`.monaco-text-button:hover, .monaco-text-button:focus { background-color: ${e.buttonHoverBackground} !important; }`),t.innerHTML=n.join("\n"),document.head.appendChild(t),document.body.style.color=M.withUndefinedAsNull(e.color)}handleExtensionData(e){
const{nonThemes:t,themes:n}=a.groupBy(e,e=>e.isTheme?"themes":"nonThemes"),i=n&&n.length;this.issueReporterModel.update({numberOfThemeExtesions:i,enabledNonThemeExtesions:t,allExtensions:e}),this.updateExtensionTable(t,i),(this.environmentService.disableExtensions||0===e.length)&&(this.getElementById("disableExtensions").disabled=!0),this.updateExtensionSelector(e)}handleSettingsSearchData(e){this.issueReporterModel.update({actualSearchResults:e.actualSearchResults,query:e.query,filterResultCount:e.filterResultCount}),this.updateSearchedExtensionTable(e.enabledExtensions),this.updateSettingsSearchDetails(e)}updateSettingsSearchDetails(e){const t=document.querySelector(".block-settingsSearchResults .block-info");if(t){const n=`\n\t\t\t<div class='block-settingsSearchResults-details'>\n\t\t\t\t<div>Query: "${e.query}"</div>\n\t\t\t\t<div>Literal match count: ${e.filterResultCount}</div>\n\t\t\t</div>\n\t\t\t`
;let i="\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Setting</th>\n\t\t\t\t\t<th>Extension</th>\n\t\t\t\t\t<th>Score</th>\n\t\t\t\t</tr>";e.actualSearchResults.forEach(e=>{i+=`\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>${e.key}</td>\n\t\t\t\t\t\t\t<td>${e.extensionId}</td>\n\t\t\t\t\t\t\t<td>${String(e.score).slice(0,5)}</td>\n\t\t\t\t\t\t</tr>`}),t.innerHTML=`${n}<table>${i}</table>`}}initServices(e){const t=new _.ServiceCollection,n=new A.MainProcessService(e.windowId);t.set(A.IMainProcessService,n),t.set(b.IWindowsService,new k.WindowsService(n)),this.environmentService=new x.EnvironmentService(e,e.execPath);const i=new N.SpdLogService(`issuereporter${e.windowId}`,this.environmentService.logsPath,L.getLogLevel(this.environmentService)),r=new T.LogLevelSetterChannelClient(n.getChannel("loglevel"));this.logService=new T.FollowerLogService(r,i);const s=t.get(b.IWindowsService).whenSharedProcessReady().then(()=>v.connect(this.environmentService.sharedIPCHandle,`window:${e.windowId}`)),o=new C.InstantiationService(t,!0)
;if(this.environmentService.isExtensionDevelopment||this.environmentService.args["disable-telemetry"]||!u.default.enableTelemetry)this.telemetryService=y.NullTelemetryService;else{const t=m.getDelayedChannel(s.then(e=>e.getChannel("telemetryAppender"))),n={appender:y.combinedAppender(new E.TelemetryAppenderClient(t),new y.LogAppender(i)),commonProperties:S.resolveCommonProperties(u.default.commit||"Commit unknown",h.default.version,e.machineId,this.environmentService.installSourcePath),piiPaths:[this.environmentService.appRoot,this.environmentService.extensionsPath]},r=o.createInstance(w.TelemetryService,n);this._register(r),this.telemetryService=r}}setEventHandlers(){function e(e){r.ipcRenderer.send("vscode:workbenchCommand",{id:e,from:"issueReporter"})}this.addEventListener("issue-type","change",e=>{const t=parseInt(e.target.value);this.issueReporterModel.update({issueType:t}),1!==t||this.receivedPerformanceInfo||r.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),this.updatePreviewButtonState(),
this.setSourceOptions(),this.render()}),["includeSystemInfo","includeProcessInfo","includeWorkspaceInfo","includeExtensions","includeSearchedExtensions","includeSettingsSearchDetails"].forEach(e=>{this.addEventListener(e,"click",t=>{t.stopPropagation(),this.issueReporterModel.update({[e]:!this.issueReporterModel.getData()[e]})})});const t=document.getElementsByClassName("showInfo");for(let e=0;e<t.length;e++){t.item(e).addEventListener("click",e=>{e.preventDefault();const t=e.target;if(t){const e=t.parentElement&&t.parentElement.parentElement,n=e&&e.lastElementChild;n&&n.classList.contains("hidden")?(B(n),t.textContent=s.localize(0,null)):(F(n),t.textContent=s.localize(1,null))}})}this.addEventListener("issue-source","change",e=>{const t=e.target.value,n=this.getElementById("problem-source-help-text");if(""===t)return this.issueReporterModel.update({fileOnExtension:void 0}),B(n),this.clearSearchResults(),void this.render();F(n);const i=JSON.parse(t);this.issueReporterModel.update({fileOnExtension:i}),
this.render();const r=this.getElementById("issue-title").value;if(i)this.searchExtensionIssues(r);else{const e=this.issueReporterModel.getData().issueDescription;this.searchVSCodeIssues(r,e)}}),this.addEventListener("description","input",e=>{const t=e.target.value;if(this.issueReporterModel.update({issueDescription:t}),!1===this.issueReporterModel.fileOnExtension()){const e=this.getElementById("issue-title").value;this.searchVSCodeIssues(e,t)}}),this.addEventListener("issue-title","input",e=>{const t=e.target.value,n=this.getElementById("issue-title-length-validation-error");t&&this.getIssueUrlWithTitle(t).length>2045?B(n):F(n);const i=this.issueReporterModel.fileOnExtension();if(void 0!==i)if(i)this.searchExtensionIssues(t);else{const e=this.issueReporterModel.getData().issueDescription;this.searchVSCodeIssues(t,e)}}),this.previewButton.onDidClick(()=>this.createIssue()),this.addEventListener("disableExtensions","click",()=>{e("workbench.action.reloadWindowWithExtensionsDisabled")}),
this.addEventListener("disableExtensions","keydown",t=>{t.stopPropagation(),13!==t.keyCode&&32!==t.keyCode||(e("workbench.extensions.action.disableAll"),e("workbench.action.reloadWindow"))}),document.onkeydown=(e=>n(this,void 0,void 0,function*(){const t=p.isMacintosh?e.metaKey:e.ctrlKey;if(t&&13===e.keyCode&&(yield this.createIssue())&&r.ipcRenderer.send("vscode:closeIssueReporter"),t&&87===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.getElementById("issue-title").value,{issueDescription:n}=this.issueReporterModel.getData();this.hasBeenSubmitted||!t&&!n?r.ipcRenderer.send("vscode:closeIssueReporter"):r.ipcRenderer.send("vscode:issueReporterConfirmClose")}t&&187===e.keyCode&&this.applyZoom(r.webFrame.getZoomLevel()+1),t&&189===e.keyCode&&this.applyZoom(r.webFrame.getZoomLevel()-1),p.isMacintosh&&t&&65===e.keyCode&&e.target&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)&&e.target.select()}))}updatePreviewButtonState(){
this.isPreviewEnabled()?(this.previewButton.label=s.localize(2,null),this.previewButton.enabled=!0):(this.previewButton.enabled=!1,this.previewButton.label=s.localize(3,null))}isPreviewEnabled(){const e=this.issueReporterModel.getData().issueType;return!(0!==e||!this.receivedSystemInfo)||(!(1!==e||!this.receivedSystemInfo||!this.receivedPerformanceInfo)||(2===e||3===e))}getExtensionRepositoryUrl(){const e=this.issueReporterModel.getData().selectedExtension;return e&&e.repositoryUrl}getExtensionBugsUrl(){const e=this.issueReporterModel.getData().selectedExtension;return e&&e.bugsUrl}searchVSCodeIssues(e,t){e?this.searchDuplicates(e,t):this.clearSearchResults()}searchExtensionIssues(e){const t=this.getExtensionGitHubUrl();if(e){const n=/^https?:\/\/github\.com\/(.*)/.exec(t);if(n&&n.length){const t=n[1];return this.searchGitHub(t,e)}if(this.issueReporterModel.getData().selectedExtension)return this.clearSearchResults(),this.displaySearchResults([])}this.clearSearchResults()}clearSearchResults(){
this.getElementById("similar-issues").innerHTML="",this.numberOfSearchResultsDisplayed=0}searchGitHub(e,t){const n=`is:issue+repo:${e}+${t}`,i=this.getElementById("similar-issues");window.fetch(`https://api.github.com/search/issues?q=${n}`).then(n=>{n.json().then(r=>{if(i.innerHTML="",r&&r.items)this.displaySearchResults(r.items);else{const r=o.$("div.list-title");r.textContent=s.localize(4,null),i.appendChild(r);const a=n.headers.get("X-RateLimit-Reset"),c=a?parseInt(a)-Math.floor(Date.now()/1e3):1;this.shouldQueueSearch&&(this.shouldQueueSearch=!1,setTimeout(()=>{this.searchGitHub(e,t),this.shouldQueueSearch=!0},1e3*c))}}).catch(e=>{this.logSearchError(e)})}).catch(e=>{this.logSearchError(e)})}searchDuplicates(e,t){const n={method:"POST",body:JSON.stringify({title:e,body:t}),headers:new Headers({"Content-Type":"application/json"})};window.fetch("https://vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates",n).then(e=>{e.json().then(e=>{if(this.clearSearchResults(),
!e||!e.candidates)throw new Error("Unexpected response, no candidates property");this.displaySearchResults(e.candidates)}).catch(e=>{this.logSearchError(e)})}).catch(e=>{this.logSearchError(e)})}displaySearchResults(e){const t=this.getElementById("similar-issues");if(e.length){const n=o.$("div.issues-container"),i=o.$("div.list-title");i.textContent=s.localize(5,null),this.numberOfSearchResultsDisplayed=e.length<5?e.length:5;for(let t=0;t<this.numberOfSearchResultsDisplayed;t++){const i=e[t],r=o.$("a.issue-link",{href:i.html_url});r.textContent=i.title,r.title=i.title,r.addEventListener("click",e=>this.openLink(e)),r.addEventListener("auxclick",e=>this.openLink(e));let a,c;if(i.state){a=o.$("span.issue-state");const e=o.$("span.issue-icon");new O.OcticonLabel(e).text="open"===i.state?"$(issue-opened)":"$(issue-closed)";const t=o.$("span.issue-state.label");t.textContent="open"===i.state?s.localize(6,null):s.localize(7,null),a.title="open"===i.state?s.localize(8,null):s.localize(9,null),a.appendChild(e),
a.appendChild(t),c=o.$("div.issue",{},a,r)}else c=o.$("div.issue",{},r);n.appendChild(c)}t.appendChild(i),t.appendChild(n)}else{const e=o.$("div.list-title");e.textContent=s.localize(10,null),t.appendChild(e)}}logSearchError(e){this.logService.warn("issueReporter#search ",e.message),this.telemetryService.publicLog("issueReporterSearchError",{message:e.message})}setUpTypes(){const e=(e,t)=>`<option value="${e.valueOf()}">${l.escape(t)}</option>`,t=this.getElementById("issue-type"),{issueType:n}=this.issueReporterModel.getData();3===n?(t.innerHTML=e(3,s.localize(11,null)),t.disabled=!0):t.innerHTML=[e(0,s.localize(12,null)),e(2,s.localize(13,null)),e(1,s.localize(14,null))].join("\n"),t.value=n.toString(),this.setSourceOptions()}makeOption(e,t,n){const i=document.createElement("option");return i.disabled=n,i.value=e,i.textContent=t,i}setSourceOptions(){const e=this.getElementById("issue-source"),{issueType:t,fileOnExtension:n}=this.issueReporterModel.getData();let i=e.selectedIndex
;-1===i&&void 0!==n&&(i=n?2:1),e.innerHTML="",2===t?e.append(...[this.makeOption("",s.localize(15,null),!0),this.makeOption("false",s.localize(16,null),!1),this.makeOption("true",s.localize(17,null),!1)]):e.append(...[this.makeOption("",s.localize(18,null),!0),this.makeOption("false",s.localize(19,null),!1),this.makeOption("true",s.localize(20,null),!1),this.makeOption("",s.localize(21,null),!1)]),-1!==i&&i<e.options.length?e.selectedIndex=i:(e.selectedIndex=0,F(this.getElementById("problem-source-help-text")))}renderBlocks(){
const{issueType:e,fileOnExtension:t}=this.issueReporterModel.getData(),n=this.getElementById("block-container"),i=document.querySelector(".block-system"),r=document.querySelector(".block-process"),o=document.querySelector(".block-workspace"),a=document.querySelector(".block-extensions"),c=document.querySelector(".block-searchedExtensions"),l=document.querySelector(".block-settingsSearchResults"),u=this.getElementById("problem-source"),h=this.getElementById("issue-description-label"),d=this.getElementById("issue-description-subtitle"),f=this.getElementById("extension-selection");F(n),F(i),F(r),F(o),F(a),F(c),F(l),F(u),F(f),0===e?(B(n),B(i),B(u),B(t?f:a),h.innerHTML=`${s.localize(22,null)} <span class="required-input">*</span>`,d.innerHTML=s.localize(23,null)):1===e?(B(n),B(i),B(r),B(o),B(u),B(t?f:a),h.innerHTML=`${s.localize(24,null)} <span class="required-input">*</span>`,d.innerHTML=s.localize(25,null)):2===e?(h.innerHTML=`${s.localize(26,null)} <span class="required-input">*</span>`,
d.innerHTML=s.localize(27,null),B(u),t&&B(f)):3===e&&(B(n),B(c),B(l),h.innerHTML=`${s.localize(28,null)} <span class="required-input">*</span>`,d.innerHTML=s.localize(29,null))}validateInput(e){const t=this.getElementById(e);return t.value?(t.classList.remove("invalid-input"),!0):(t.classList.add("invalid-input"),!1)}validateInputs(){let e=!0;return["issue-title","description","issue-source"].forEach(t=>{e=this.validateInput(t)&&e}),this.issueReporterModel.fileOnExtension()&&(e=this.validateInput("extension-selector")&&e),e}createIssue(){return n(this,void 0,void 0,function*(){if(!this.validateInputs()){const e=document.getElementsByClassName("invalid-input");return e.length&&e[0].focus(),this.addEventListener("issue-title","input",e=>{this.validateInput("issue-title")}),this.addEventListener("description","input",e=>{this.validateInput("description")}),this.addEventListener("issue-source","change",e=>{this.validateInput("issue-source")}),
this.issueReporterModel.fileOnExtension()&&this.addEventListener("extension-selector","change",e=>{this.validateInput("extension-selector")}),!1}this.telemetryService.publicLog("issueReporterSubmit",{issueType:this.issueReporterModel.getData().issueType,numSimilarIssuesDisplayed:this.numberOfSearchResultsDisplayed}),this.hasBeenSubmitted=!0;const e=this.getIssueUrlWithTitle(this.getElementById("issue-title").value),t=this.issueReporterModel.serialize();let n=e+`&body=${encodeURIComponent(t)}`;if(n.length>2045)try{n=yield this.writeToClipboard(e,t)}catch(e){return!1}return r.ipcRenderer.send("vscode:openExternal",n),!0})}writeToClipboard(e,t){return n(this,void 0,void 0,function*(){return new Promise((n,i)=>{r.ipcRenderer.once("vscode:issueReporterClipboardResponse",(o,a)=>{a?(r.clipboard.writeText(t),n(e+`&body=${encodeURIComponent(s.localize(30,null))}`)):i()}),r.ipcRenderer.send("vscode:issueReporterClipboard")})})}getExtensionGitHubUrl(){let e=""
;const t=this.getExtensionBugsUrl(),n=this.getExtensionRepositoryUrl();return t&&t.match(/^https?:\/\/github\.com\/(.*)/)?e=D.normalizeGitHubUrl(t):n&&n.match(/^https?:\/\/github\.com\/(.*)/)&&(e=D.normalizeGitHubUrl(n)),e}getIssueUrlWithTitle(e){let t=u.default.reportIssueUrl;if(this.issueReporterModel.fileOnExtension()){const e=this.getExtensionGitHubUrl();e&&(t=e+"/issues/new")}return`${t}${-1===u.default.reportIssueUrl.indexOf("?")?"?":"&"}title=${encodeURIComponent(e)}`}updateSystemInfo(e){const t=document.querySelector(".block-system .block-info");if(t){const n=e.systemInfo
;let i=`\n\t\t\t<table>\n\t\t\t\t<tr><td>CPUs</td><td>${n.cpus}</td></tr>\n\t\t\t\t<tr><td>GPU Status</td><td>${Object.keys(n.gpuStatus).map(e=>`${e}: ${n.gpuStatus[e]}`).join("<br>")}</td></tr>\n\t\t\t\t<tr><td>Load (avg)</td><td>${n.load}</td></tr>\n\t\t\t\t<tr><td>Memory (System)</td><td>${n.memory}</td></tr>\n\t\t\t\t<tr><td>Process Argv</td><td>${n.processArgs}</td></tr>\n\t\t\t\t<tr><td>Screen Reader</td><td>${n.screenReader}</td></tr>\n\t\t\t\t<tr><td>VM</td><td>${n.vmHint}</td></tr>\n\t\t\t</table>`;n.remoteData.forEach(e=>{
U.isRemoteDiagnosticError(e)?i+=`\n\t\t\t\t\t<hr>\n\t\t\t\t\t<table>\n\t\t\t\t\t\t<tr><td>Remote</td><td>${e.hostName}</td></tr>\n\t\t\t\t\t\t<tr><td></td><td>${e.errorMessage}</td></tr>\n\t\t\t\t\t</table>`:i+=`\n\t\t\t\t\t<hr>\n\t\t\t\t\t<table>\n\t\t\t\t\t\t<tr><td>Remote</td><td>${e.hostName}</td></tr>\n\t\t\t\t\t\t<tr><td>OS</td><td>${e.machineInfo.os}</td></tr>\n\t\t\t\t\t\t<tr><td>CPUs</td><td>${e.machineInfo.cpus}</td></tr>\n\t\t\t\t\t\t<tr><td>Memory (System)</td><td>${e.machineInfo.memory}</td></tr>\n\t\t\t\t\t\t<tr><td>VM</td><td>${e.machineInfo.vmHint}</td></tr>\n\t\t\t\t\t</table>`}),t.innerHTML=i}}updateExtensionSelector(e){const t=e.map(e=>({name:e.displayName||e.name||"",id:e.id}));t.sort((e,t)=>{const n=e.name.toLowerCase(),i=t.name.toLowerCase();return n>i?1:n<i?-1:0});const n=this.getElementById("extension-selector");if(n){const{selectedExtension:e}=this.issueReporterModel.getData();n.innerHTML="<option></option>"+t.map(t=>((e,t)=>{const n=t&&e.id===t.id
;return`<option value="${e.id}" ${n?"selected":""}>${l.escape(e.name)}</option>`})(t,e)).join("\n"),this.addEventListener("extension-selector","change",e=>{const t=e.target.value,n=this.issueReporterModel.getData().allExtensions.filter(e=>e.id===t);if(n.length){this.issueReporterModel.update({selectedExtension:n[0]});const e=this.getElementById("issue-title").value;this.searchExtensionIssues(e)}else this.issueReporterModel.update({selectedExtension:void 0}),this.clearSearchResults()})}}updateProcessInfo(e){const t=document.querySelector(".block-process .block-info");t&&(t.innerHTML=`<code>${e.processInfo}</code>`)}updateWorkspaceInfo(e){document.querySelector(".block-workspace .block-info code").textContent="\n"+e.workspaceInfo}updateExtensionTable(e,t){const n=document.querySelector(".block-extensions .block-info");if(n){if(this.environmentService.disableExtensions)return void(n.innerHTML=s.localize(31,null));const i=t?`\n(${t} theme extensions excluded)`:""
;if(!(e=e||[]).length)return void(n.innerHTML="Extensions: none"+i);const r=this.getExtensionTableHtml(e);n.innerHTML=`<table>${r}</table>${i}`}}updateSearchedExtensionTable(e){const t=document.querySelector(".block-searchedExtensions .block-info");if(t){if(!e.length)return void(t.innerHTML="Extensions: none");const n=this.getExtensionTableHtml(e);t.innerHTML=`<table>${n}</table>`}}getExtensionTableHtml(e){let t="\n\t\t\t<tr>\n\t\t\t\t<th>Extension</th>\n\t\t\t\t<th>Author (truncated)</th>\n\t\t\t\t<th>Version</th>\n\t\t\t</tr>";return t+=e.map(e=>`\n\t\t\t\t<tr>\n\t\t\t\t\t<td>${e.name}</td>\n\t\t\t\t\t<td>${e.publisher.substr(0,3)}</td>\n\t\t\t\t\t<td>${e.version}</td>\n\t\t\t\t</tr>`).join("")}openLink(e){e.preventDefault(),e.stopPropagation(),e.which<3&&(r.shell.openExternal(e.target.href),this.telemetryService.publicLog("issueReporterViewSimilarIssue"))}getElementById(e){const t=document.getElementById(e);if(t)return t;{const t=new Error(`${e} not found.`);return this.logService.error(t),
void this.telemetryService.publicLog("issueReporterGetElementError",{message:t.message})}}addEventListener(e,t,n){const i=this.getElementById(e);i&&i.addEventListener(t,n)}}i([f.debounce(300)],$.prototype,"searchGitHub",null),i([f.debounce(300)],$.prototype,"searchDuplicates",null),t.IssueReporter=$})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/553cfb2c2205db5f15f3ee8395bbd5cf066d357d/core/vs/code/electron-browser/issue/issueReporterMain.js.map
