/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["exports","require","vs/base/common/event","vs/base/common/platform","vs/base/common/path","vs/base/common/strings","vs/base/common/lifecycle","vs/base/common/uri","vs/base/common/errors","vs/platform/instantiation/common/instantiation","vs/base/common/async","vs/base/common/types","vs/platform/log/common/log","vs/platform/registry/common/platform","vs/nls!vs/code/electron-browser/issue/issueReporterMain","vs/base/common/amd","vs/base/common/objects","vs/base/common/arrays","vs/base/browser/browser","os","vs/base/parts/ipc/node/ipc","vs/base/common/extpath","vs/base/browser/dom","vs/base/common/decorators","vs/base/common/map","vs/base/common/json","vs/nls","vs/base/common/uuid","vs/css!vs/code/electron-browser/issue/issueReporterMain","vs/base/common/network","vs/platform/instantiation/common/serviceCollection","vs/base/common/cancellation","fs","vs/base/common/resources","vs/base/common/glob","vs/base/common/iterator","vs/base/common/collections","vs/base/common/functional","vs/platform/product/node/package","vs/platform/product/node/product","vs/base/browser/keyboardEvent","vs/platform/configuration/common/configurationRegistry","vs/platform/configuration/common/configuration","vs/base/node/paths","vs/base/node/stream","vs/base/browser/event","vs/base/node/encoding","vs/base/common/date","vs/base/node/extfs","vs/base/node/pfs","vs/base/common/jsonFormatter","vs/base/common/jsonEdit","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/issueReporterModel","vs/code/electron-browser/issue/issueReporterUtil","vs/css!vs/base/browser/ui/button/button","vs/base/common/keyCodes","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/assert","vs/base/common/linkedList","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/platform/instantiation/common/descriptors","vs/platform/instantiation/common/graph","vs/base/browser/mouseEvent","vs/base/browser/iframe","vs/platform/instantiation/common/instantiationService","vs/base/common/mime","vs/platform/log/node/logIpc","vs/platform/log/node/spdlogService","vs/base/common/normalization","vs/base/browser/touch","vs/platform/environment/node/environmentService","vs/base/common/labels","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/base/common/color","vs/base/node/flow","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/node/windowsIpc","crypto","vs/code/electron-browser/issue/issueReporterMain","stream","net","assert","iconv-lite","child_process"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[75],t([1,0]),function(e,t){"use strict";function n(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return i=!0,null}catch(e){return i=!0,null}return e.parent}function r(e,t){let n,r=e.document.getElementsByTagName("iframe");for(let e=0,i=r.length;e<i;e++)if((n=r[e]).contentWindow===t)return n;return null}Object.defineProperty(t,"__esModule",{value:!0});let i=!1,s=null;class o{static getSameOriginWindowChain(){if(!s){s=[];let e,t=window;do{(e=n(t))?s.push({window:t,iframeElement:r(e,t)}):s.push({window:t,iframeElement:null}),t=e}while(t)}return s.slice(0)}static hasDifferentOriginAncestor(){return s||this.getSameOriginWindowChain(),i}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0,i=this.getSameOriginWindowChain();for(const e of i){if(e.window===t)break;if(!e.iframeElement)break
;let i=e.iframeElement.getBoundingClientRect();n+=i.top,r+=i.left}return{top:n,left:r}}}t.IframeUtils=o}),define(e[66],t([1,0]),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[36],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=Object.prototype.hasOwnProperty;t.values=function(e){const t=[];for(let r in e)n.call(e,r)&&t.push(e[r]);return t},t.size=function(e){let t=0;for(let r in e)n.call(e,r)&&(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 r in e)if(n.call(e,r)&&!1===t({key:r,value:e[r]},function(){delete e[r]}))return},t.groupBy=function(e,t){const n=Object.create(null);for(const r of e){const e=t(r);let i=n[e];i||(i=n[e]=[]),i.push(r)}return n},t.fromMap=function(e){const t=Object.create(null);return e&&e.forEach((e,n)=>{t[n]=e}),t}}),define(e[85],t([1,0]),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 r{constructor(e,t,r,i=1){this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,r)),this.a=n(Math.max(Math.min(1,i),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=r;class i{constructor(e,t,r,i){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,r),0),3),this.a=n(Math.max(Math.min(1,i),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,r=e.b/255,s=e.a,o=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,c=0;const u=(a+o)/2,h=o-a;if(h>0){switch(c=Math.min(u<=.5?h/(2*u):h/(2-2*u),1),o){case t:l=(n-r)/h+(n<r?6:0);break;case n:l=(r-t)/h+2;break;case r:l=(t-n)/h+4}l*=60,l=Math.round(l)}return new i(l,c,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,l,c;if(0===n)a=l=c=s;else{const e=s<.5?s*(1+n):s+n-s*n,r=2*s-e;a=i._hue2rgb(r,e,t+1/3),l=i._hue2rgb(r,e,t),c=i._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*c),o)}}t.HSLA=i;class s{constructor(e,t,r,i){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,r),0),3),this.a=n(Math.max(Math.min(1,i),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,r=e.b/255,i=Math.max(t,n,r),o=i-Math.min(t,n,r),a=0===i?0:o/i;let l;return l=0===o?0:i===t?((n-r)/o%6+6)%6:i===n?(r-t)/o+2:(t-n)/o+4,new s(Math.round(60*l),a,i,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:s}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),l=i-o;let[c,u,h]=[0,0,0];return t<60?(c=o,u=a):t<120?(c=a,u=o):t<180?(u=o,h=a):t<240?(u=a,h=o):t<300?(c=a,h=o):t<360&&(c=o,h=a),c=Math.round(255*(c+l)),
u=Math.round(255*(u+l)),h=Math.round(255*(h+l)),new r(c,u,h,s)}}t.HSVA=s;class o{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof i)this._hsla=e,this.rgba=i.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:i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&i.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 i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new o(new i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:s}=this.rgba;return new o(new r(t,n,i,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new o(new r(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,i=t.a;let s=n+i*(1-n);if(s<1e-6)return o.transparent;const a=this.rgba.r*n/s+t.r*i*(1-n)/s,l=this.rgba.g*n/s+t.g*i*(1-n)/s,c=this.rgba.b*n/s+t.b*i*(1-n)/s;return new o(new r(a,l,c,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 r(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 r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}}o.white=new o(new r(255,255,255,1)),o.black=new o(new r(0,0,0,1)),o.red=new o(new r(255,0,0,1)),o.blue=new o(new r(0,0,255,1)),o.green=new o(new r(0,255,0,1)),o.cyan=new o(new r(0,255,255,1)),o.lightgrey=new o(new r(211,211,211,1)),o.transparent=new o(new r(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 i(e){switch(e){case 48:return 0;case 49:
return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){
return r&&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*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,s,o,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),o=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,s,o,a/255))}if(4===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3));return new e(new r(16*n+n,16*s+s,16*o+o))}if(5===n){const n=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),o=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(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[23],t([1,0]),function(e,t){"use strict";function n(e){return(t,n,r)=>{let i=null,s=null;if("function"==typeof r.value?(i="value",s=r.value):"function"==typeof r.get&&(i="get",s=r.get),!s)throw new Error("not supported");r[i]=e(s,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=n,t.memoize=function(e,t,n){let r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");const s=`$memoize$${t}`;n[r]=function(...e){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)}),this[s]}},t.debounce=function(e,t,r){return n((n,i)=>{const s=`$debounce$${i}`,o=`$debounce$result$${i}`;return function(...i){this[o]||(this[o]=r?r():void 0),clearTimeout(this[s]),
t&&(this[o]=t(this[o],...i),i=[this[o]]),this[s]=setTimeout(()=>{n.apply(this,i),this[o]=r?r():void 0},e)}})}}),define(e[8],t([1,0]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===i&&e.message===i}Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=r,t.errorHandler=new r,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},
t.onUnexpectedError=function(e){n(e)||t.errorHandler.onUnexpectedError(e)},t.onUnexpectedExternalError=function(e){n(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e};const i="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){let e=new Error(i);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")},t.readonly=function(e){return e?new Error(`readonly property '${e} cannot be changed'`):new Error("readonly property cannot be changed")},t.disposed=function(e){const t=new Error(`${e} has been disposed`);return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}})
;var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,a)}l((r=r.apply(e,t||[])).next())})};define(e[17],t([1,0,8]),function(e,t,r){"use strict";function i(e,t){let n=0,r=e.length;if(0===r)return 0;for(;n<r;){let i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function s(e,t){return o(e,t,0,e.length-1,[]),e}function o(e,t,n,r,i){if(r<=n)return;let s=n+(r-n)/2|0;o(e,t,n,s,i),o(e,t,s+1,r,i),t(e[s],e[s+1])<=0||function(e,t,n,r,i,s){let o=n,a=r+1;for(let t=n;t<=i;t++)s[t]=e[t];for(let l=n;l<=i;l++)o>r?e[l]=s[a++]:a>i?e[l]=s[o++]:t(s[a],s[o])<0?e[l]=s[a++]:e[l]=s[o++]}(e,t,n,s,r,i)}function a(e,t,n){function r(e,t,n){if(0===t&&0===n.length)return;const r=i[i.length-1];r&&r.start+r.deleteCount===e?(r.deleteCount+=t,r.toInsert.push(...n)):i.push({start:e,deleteCount:t,toInsert:n})}const i=[];let s=0,o=0;for(;;){
if(s===e.length){r(s,0,t.slice(o));break}if(o===t.length){r(s,e.length-s,[]);break}const i=e[s],a=t[o],l=n(i,a);0===l?(s+=1,o+=1):l<0?(r(s,1,[]),s+=1):l>0&&(r(s,0,[a]),o+=1)}return i}function l(e,t,n,r,s){for(const o=n.length;r<s;r++){const s=e[r];if(t(s,n[o-1])<0){n.pop();const e=i(n,e=>t(s,e)<0);n.splice(e,0,s)}}}function c(e,t){for(let n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t=0){return e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},t.binarySearch=function(e,t,n){let r=0,i=e.length-1;for(;r<=i;){let s=(r+i)/2|0,o=n(e[s],t);if(o<0)r=s+1;else{if(!(o>0))return s;i=s-1}}return-(r+1)},t.findFirstInSorted=i,t.mergeSort=s,t.groupBy=function(e,t){const n=[];let r=void 0
;for(const i of s(e.slice(0),t))r&&0===t(r[0],i)?r.push(i):(r=[i],n.push(r));return n},t.sortedDiff=a,t.delta=function(e,t,n){const r=a(e,t,n),i=[],s=[];for(const t of r)i.push(...e.slice(t.start,t.start+t.deleteCount)),s.push(...t.toInsert);return{removed:i,added:s}},t.top=function(e,t,n){if(0===n)return[];const r=e.slice(0,n).sort(t);return l(e,t,r,n,e.length),r},t.topAsync=function(e,t,i,s,o){return 0===i?Promise.resolve([]):new Promise((a,c)=>{(()=>n(this,void 0,void 0,function*(){const n=e.length,a=e.slice(0,i).sort(t);for(let c=i,u=Math.min(i+s,n);c<n;c=u,u=Math.min(u+s,n)){if(c>i&&(yield new Promise(e=>setTimeout(e))),o&&o.isCancellationRequested)throw r.canceled();l(e,t,a,c,u)}return a}))().then(a,c)})},t.coalesce=function(e){return e?e.filter(e=>!!e):e},t.coalesceInPlace=function(e){if(!e)return;let t=0;for(let n=0;n<e.length;n++)e[n]&&(e[t]=e[n],t+=1);e.length=t},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},
t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.distinct=function(e,t){if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.uniqueFilter=function(e){const t=Object.create(null);return n=>{const r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.firstIndex=c,t.first=function(e,t,n=null){const r=c(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n=((e,t)=>e===t)){let r=0;for(let i=0,s=Math.min(e.length,t.length);i<s&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){return[].concat(...e)},t.range=function(e,t){let n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);const r=[];if(n<=t)for(let e=n;e<t;e++)r.push(e);else for(let e=n;e>t;e--)r.push(e);return r},t.fill=function(e,t,n=[]){for(let r=0;r<e;r++)n[r]=t;return n},t.index=function(e,t,n=(e=>e)){return e.reduce((e,r)=>{const i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),()=>{const n=e.indexOf(t)
;n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){const r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)},t.shuffle=function(e,t){let n;if("number"==typeof t){let e=t;n=(()=>{const t=179426549*Math.sin(e++);return t-Math.floor(t)})}else n=Math.random;for(let t=e.length-1;t>0;t-=1){let r=Math.floor(n()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}},t.pushToStart=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},t.pushToEnd=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))},t.find=function(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r,n,e))return r}},t.mapArrayOrNot=function(e,t){return Array.isArray(e)?e.map(t):t(e)}}),define(e[37],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let n,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}}),define(e[35],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0};var n;!function(e){
function n(e,t){for(let n=e.next();!n.done;n=e.next())t(n.value)}const r={next:()=>t.FIN};e.empty=function(){return r},e.fromArray=function(e,n=0,r=e.length){return{next:()=>n>=r?t.FIN:{done:!1,value:e[n++]}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,n){return{next(){const r=e.next();return r.done?t.FIN:{done:!1,value:n(r.value)}}}},e.filter=function(e,n){return{next(){for(;;){const r=e.next();if(r.done)return t.FIN;if(n(r.value))return{done:!1,value:r.value}}}}},e.forEach=n,e.collect=function(e){const t=[];return n(e,e=>t.push(e)),t}}(n=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?n.fromArray(e):e};class r{constructor(e,t=0,n=e.length,r=t-1){this.items=e,this.start=t,this.end=n,this.index=r}first(){return this.index=this.start,this.current()}next(){return this.index=Math.min(this.index+1,this.end),this.current()}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}}
t.ArrayIterator=r;class i extends r{constructor(e,t=0,n=e.length,r=t-1){super(e,t,n,r)}current(){return super.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}parent(){return null}}t.ArrayNavigator=i;class s{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=s;class o extends s{constructor(e,t){super(e,t),this.navigator=e}current(){return this.fn(this.navigator.current())}previous(){return this.fn(this.navigator.previous())}parent(){return this.fn(this.navigator.parent())}first(){return this.fn(this.navigator.first())}last(){return this.fn(this.navigator.last())}next(){return this.fn(this.navigator.next())}}t.MappedNavigator=o}),define(e[25],t([1,0]),function(e,t){"use strict";function n(e,t=!1){function n(t){let n=0,r=0;for(;n<t;){let t=e.charCodeAt(a)
;if(t>=48&&t<=57)r=16*r+t-48;else if(t>=65&&t<=70)r=16*r+t-65+10;else{if(!(t>=97&&t<=102))break;r=16*r+t-97+10}a++,n++}return n<t&&(r=-1),r}function o(){if(c="",d=0,u=a,a>=l)return u=l,h=17;let t=e.charCodeAt(a);if(r(t)){do{a++,c+=String.fromCharCode(t),t=e.charCodeAt(a)}while(r(t));return h=15}if(i(t))return a++,c+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,c+="\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++,c=function(){let t="",r=a;for(;;){if(a>=l){t+=e.substring(r,a),d=2;break}let s=e.charCodeAt(a);if(34===s){t+=e.substring(r,a),a++;break}if(92!==s){if(s>=0&&s<=31){if(i(s)){t+=e.substring(r,a),d=2;break}d=6}a++}else{if(t+=e.substring(r,a),++a>=l){d=2;break}switch(r=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:let r=n(4);r>=0?t+=String.fromCharCode(r):d=4;break;default:d=5}r=a}}return t}(),h=10;case 47:let o=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<l&&!i(e.charCodeAt(a));)a++;return c=e.substring(o,a),h=12}if(42===e.charCodeAt(a+1)){a+=2;let t=l-1,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),c=e.substring(o,a),h=13}return c+=String.fromCharCode(t),a++,h=16;case 45:if(c+=String.fromCharCode(t),++a===l||!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 c+=function(){let 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<l&&function(e){if(r(e)||i(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(c=e.substring(u,a)){case"true":return h=8;case"false":return h=9;case"null":return h=7}return h=16}return c+=String.fromCharCode(t),a++,h=16}}let a=0,l=e.length,c="",u=0,h=16,d=0;return{setPosition:function(e){a=e,c="",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:()=>c,getTokenOffset:()=>u,getTokenLength:()=>a-u,getTokenError:()=>d}}function r(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 i(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[];let t=o(e.parent);if("property"===e.parent.type){
let n=e.parent.children[0].value;t.push(n)}else if("array"===e.parent.type){let 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":let t=Object.create(null);for(let n of e.children){let 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 l(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function c(e,t,n=!1){if(l(e,t,n)){let r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){let i=c(r[e],t,n);if(i)return i}return e}}function u(e,t,r=d.DEFAULT){function i(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(;;){let 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):_();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 l(e){let t=h.getTokenValue();return e?b(t):p(t),o(),!0}function c(){return 10!==h.getToken()?(a(3,[],[2,5]),!1):(l(!1),6===h.getToken()?(y(":"),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,[],[]),y(","),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,[],[]),y(","),o(),2===h.getToken()&&C)break}else e&&a(6,[],[]);c()||a(4,[],[2,5]),e=!0}return g(),2!==h.getToken()?a(7,[2],[]):o(),!0}();case 10:return l(!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)}b(e);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return o(),!0}()}}let h=n(e,!1),f=i(t.onObjectBegin),p=s(t.onObjectProperty),g=i(t.onObjectEnd),m=i(t.onArrayBegin),v=i(t.onArrayEnd),b=s(t.onLiteralValue),y=s(t.onSeparator),_=i(t.onComment),w=s(t.onError),E=r&&r.disallowComments,C=r&&r.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,r){o.value=e,o.offset=t,o.length=n,o.type=r,o.colonOffset=void 0,s=o}let r=[],i=new Object,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 i;s=void 0,a=t>e,r.push("")},onObjectProperty:(e,s,o)=>{if(t<s)throw i;if(n(e,s,o,"property"),r[r.length-1]=e,t<=s+o)throw i},onObjectEnd:(e,n)=>{if(t<=e)throw i;s=void 0,r.pop()},onArrayBegin:(e,n)=>{if(t<=e)throw i;s=void 0,r.push(0)},onArrayEnd:(e,n)=>{if(t<=e)throw i;s=void 0,r.pop()},
onLiteralValue:(e,r,s)=>{if(t<r)throw i;if(n(e,r,s,h(e)),t<=r+s)throw i},onSeparator:(e,n,o)=>{if(t<=n)throw i;if(":"===e&&s&&"property"===s.type)s.colonOffset=n,a=!1,s=void 0;else if(","===e){let e=r[r.length-1];"number"==typeof e?r[r.length-1]=e+1:(a=!0,r[r.length-1]=""),s=void 0}}})}catch(e){if(e!==i)throw e}return{path:r,previousNode:s,isAtPropertyKey:a,matches:e=>{let t=0;for(let n=0;t<e.length&&n<r.length;n++)if(e[t]===r[n]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}},t.parse=function(e,t=[],n=d.DEFAULT){function r(e){Array.isArray(s)?s.push(e):i&&(s[i]=e)}let i=null,s=[],o=[];return u(e,{onObjectBegin:()=>{let e={};r(e),o.push(s),s=e,i=null},onObjectProperty:e=>{i=e},onObjectEnd:()=>{s=o.pop()},onArrayBegin:()=>{let e=[];r(e),o.push(s),s=e,i=null},onArrayEnd:()=>{s=o.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),s[0]},t.parseTree=function(e,t=[],n=d.DEFAULT){function r(e){"property"===s.type&&(s.length=e-s.offset,s=s.parent)}function i(e){
return s.children.push(e),e}let s={type:"array",offset:-1,length:-1,children:[],parent:void 0};u(e,{onObjectBegin:e=>{s=i({type:"object",offset:e,length:-1,parent:s,children:[]})},onObjectProperty:(e,t,n)=>{(s=i({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,r(e+t)},onArrayBegin:(e,t)=>{s=i({type:"array",offset:e,length:-1,parent:s,children:[]})},onArrayEnd:(e,t)=>{s.length=e+t-s.offset,s=s.parent,r(e+t)},onLiteralValue:(e,t,n)=>{i({type:h(e),offset:t,length:n,parent:s,value:e}),r(t+n)},onSeparator:(e,t,n)=>{"property"===s.type&&(":"===e?s.colonOffset=t:","===e&&r(t))},onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n);let 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 r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e){n=r.children[1],t=!0;break}if(!t)return}else{let 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=l,t.findNodeAtOffset=c,t.visit=u,t.stripComments=function(e,t){let r,i,s=n(e),o=[],a=0;do{switch(i=s.getPosition(),r=s.scan()){case 12:case 13:case 17:a!==i&&o.push(e.substring(a,i)),void 0!==t&&o.push(s.getTokenValue().replace(/[^\r\n]/g,t)),a=s.getPosition()}}while(17!==r);return o.join("")}}),define(e[50],t([1,0,25]),function(e,t,n){"use strict";function r(e,t,r){function o(){return g+i(p,c+v)}function a(){let e=b.scan();for(m=!1;15===e||14===e;)m=m||14===e,e=b.scan();return y=16===e||0!==b.getTokenError(),e}function l(t,n,r){!y&&n<f&&r>d&&e.substring(n,r)!==t&&_.push({offset:n,length:r-n,content:t})}let c,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),c=function(e,t){let n=0,r=0,i=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(" "===t)r++;else{if("\t"!==t)break;r+=i}n++}return Math.floor(r/i)}(u,r)}else u=e,c=0,h=0,d=0,f=e.length;let p,g=function(e,t){for(let e=0;e<t.length;e++){let 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"}(r,e),m=!1,v=0;p=r.insertSpaces?i(" ",r.tabSize||4):"\t";let b=n.createScanner(u,!1),y=!1,_=[],w=a();if(17!==w){let e=b.getTokenOffset()+h;l(i(p,c),h,e)}for(;17!==w;){let e=b.getTokenOffset()+b.getTokenLength()+h,t=a(),n="";for(;!m&&(12===t||13===t);){l(" ",e,b.getTokenOffset()+h),e=b.getTokenOffset()+b.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&&(y=!0)
;break;case 16:y=!0}!m||12!==t&&13!==t||(n=o())}l(n,e,b.getTokenOffset()+h),w=t}return _}function i(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function s(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.format=r,t.isEOL=s}),define(e[51],t([1,0,25,50]),function(e,t,n,r){"use strict";function i(e,t,r,i,o){let a=t.slice(),l=n.parseTree(e,[]),c=void 0,u=void 0;for(;a.length>0&&(u=a.pop(),void 0===(c=n.findNodeAtLocation(l,a))&&void 0!==r);)r="string"==typeof u?{[u]:r}:[r];if(c){if("object"===c.type&&"string"==typeof u&&Array.isArray(c.children)){let t=n.findNodeAtLocation(c,[u]);if(void 0!==t){if(void 0===r){if(!t.parent)throw new Error("Malformed AST");let n,r=c.children.indexOf(t.parent),o=t.parent.offset+t.parent.length;if(r>0){let e=c.children[r-1];n=e.offset+e.length}else if(n=c.offset+1,c.children.length>1){o=c.children[1].offset}return s(e,{offset:n,length:o-n,content:""},i)}return s(e,{offset:t.offset,length:t.length,content:JSON.stringify(r)},i)}{
if(void 0===r)return[];let t,n=`${JSON.stringify(u)}: ${JSON.stringify(r)}`,a=o?o(c.children.map(e=>e.children[0].value)):c.children.length;if(a>0){let e=c.children[a-1];t={offset:e.offset+e.length,length:0,content:","+n}}else t=0===c.children.length?{offset:c.offset+1,length:0,content:n}:{offset:c.offset+1,length:0,content:n+","};return s(e,t,i)}}if("array"===c.type&&"number"==typeof u&&Array.isArray(c.children)){if(-1===u){let t,n=`${JSON.stringify(r)}`;if(0===c.children.length)t={offset:c.offset+1,length:0,content:n};else{let e=c.children[c.children.length-1];t={offset:e.offset+e.length,length:0,content:","+n}}return s(e,t,i)}if(void 0===r&&c.children.length>=0){let t,n=u,r=c.children[n];if(1===c.children.length)t={offset:c.offset+1,length:c.length-2,content:""};else if(c.children.length-1===n){let e=c.children[n-1],r=e.offset+e.length;t={offset:r,length:c.offset+c.length-2-r,content:""}}else t={offset:r.offset,length:c.children[n+1].offset-r.offset,content:""};return s(e,t,i)}
throw new Error("Array modification not supported yet")}throw new Error(`Can not add ${"number"!=typeof u?"index":"property"} to parent of type ${c.type}`)}if(void 0===r)throw new Error("Can not delete in empty document");return s(e,{offset:l?l.offset:0,length:l?l.length:0,content:JSON.stringify(r)},i)}function s(e,t,n){let i=o(e,t),s=t.offset,a=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;s>0&&!r.isEOL(i,s-1);)s--;for(;a<i.length&&!r.isEOL(i,a);)a++}let l=r.format(i,{offset:s,length:a-s},n);for(let e=l.length-1;e>=0;e--){let t=l[e];i=o(i,t),s=Math.min(s,t.offset),a=Math.max(a,t.offset+t.length),a+=t.content.length-t.length}return[{offset:s,length:e.length-(i.length-a)-s,content:i.substring(s,a)}]}function o(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 i(e,t,void 0,n)},t.setProperty=i,t.applyEdit=o,t.isWS=function(e,t){return-1!=="\r\n \t".indexOf(e.charAt(t))}}),
define(e[59],t([1,0,8]),function(e,t,n){"use strict";function r(e,t){const n=!!(2048&e),r=!!(256&e);return new c(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",
e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",
e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",
e[e.MAX_VALUE=112]="MAX_VALUE"}(t.KeyCode||(t.KeyCode={}));class i{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const s=new i,o=new i,a=new i;!function(){function e(e,t,n=t,r=n){s.define(e,t),o.define(e,n),a.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),
e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),
e(108,"NumPad_Divide")}();!function(e){e.toString=function(e){return s.keyCodeToStr(e)},e.fromString=function(e){return s.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return a.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||a.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={}));var l;!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl",e[e.KeyCode=255]="KeyCode"}(l||(l={}));!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl"}(t.KeyMod||(t.KeyMod={})),t.KeyChord=function(e,t){return(e|(65535&t)<<16>>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;const n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new u(0!==i?[r(n,t),r(i,t)]:[r(n,t)])},t.createSimpleKeybinding=r;class c{constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(e){
return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}getHashCode(){return`${this.ctrlKey?"1":"0"}${this.shiftKey?"1":"0"}${this.altKey?"1":"0"}${this.metaKey?"1":"0"}${this.keyCode}`}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new u([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}t.SimpleKeybinding=c;class u{constructor(e){if(0===e.length)throw n.illegalArgument("parts");this.parts=e}getHashCode(){let e="";for(let t=0,n=this.parts.length;t<n;t++)0!==t&&(e+=";"),e+=this.parts[t].getHashCode();return e}equals(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(let t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0}}t.ChordKeybinding=u;class h{constructor(e,t,n,r,i,s){
this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=s}}t.ResolvedKeybindingPart=h;class d{}t.ResolvedKeybinding=d}),define(e[6],t([1,0,37]),function(e,t,n){"use strict";function r(e,...t){if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return r(e),r(t),[];if(e)return e.dispose(),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=r,t.combinedDisposable=function(e){return{dispose:()=>r(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class i{constructor(){this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}get toDispose(){return this._toDispose}dispose(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=r(this._toDispose)}_register(e){return this._lifecycle_disposable_isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.push(e),e}}i.None=Object.freeze({
dispose(){}}),t.Disposable=i;class s{constructor(){this.references=Object.create(null)}acquire(e){let t=this.references[e];t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});const{object:r}=t,i=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:r,dispose:i}}}t.ReferenceCollection=s;class o{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=o}),define(e[67],t([1,0,35]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.element=e}}class i{constructor(){this._size=0}get size(){return this._size}isEmpty(){return!this._first}clear(){this._first=void 0,this._last=void 0,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first)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}else this._first=n,this._last=n
;return this._size+=1,this._remove.bind(this,n)}shift(){if(this._first){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last){const e=this._last.element;return this._remove(this._last),e}}_remove(e){let t=this._first;for(;t instanceof r;){if(t===e){if(t.prev&&t.next){let e=t.prev;e.next=t.next,t.next.prev=e}else t.prev||t.next?t.next?t.prev||(this._first=this._first.next,this._first.prev=void 0):(this._last=this._last.prev,this._last.next=void 0):(this._first=void 0,this._last=void 0);this._size-=1;break}t=t.next}}iterator(){let e,t=this._first;return{next:()=>t?(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e):n.FIN}}toArray(){let e=[];for(let t=this._first;t instanceof r;t=t.next)e.push(t.element);return e}}t.LinkedList=i}),define(e[2],t([1,0,8,37,6,67]),function(e,t,r,i,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a;!function(e){function t(e){return(t,n=null,r)=>{let i,s=!1;return i=e(e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)
},null,r),s&&i.dispose(),i}}function n(e,t){return a((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function r(e,t){return a((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function i(e,t){return a((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i))}function o(e,t,r){let i=r;return n(e,e=>i=t(i,e))}function a(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e){let t,n=!0;return i(e,e=>{let r=n||e!==t;return n=!1,t=e,r})}const c={dispose(){}};e.None=function(){return c},e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>s.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=a,e.debounce=function(e,t,n=100,r=!1,i){let s,o=void 0,a=void 0,l=0;const c=new u({leakWarningThreshold:i,onFirstListenerAdd(){s=e(e=>{l++,o=t(o,e),r&&!a&&c.fire(o),clearTimeout(a),a=setTimeout(()=>{let e=o;o=void 0,a=void 0,(!r||l>1)&&c.fire(e),l=0},n)})},onLastListenerRemove(){s.dispose()}})
;return c.event},e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=l,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):o.fire(e)});const s=()=>{r&&r.forEach(e=>o.fire(e)),r=null},o=new u({onFirstListenerAdd(){i||(i=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(s):s())},onLastListenerRemove(){i&&i.dispose(),i=null}});return o.event},e.echo=function(e,t=!1,n=[]){n=n.slice(),e(e=>{n.push(e),i.fire(e)});const r=(e,t)=>n.forEach(n=>e.call(t,n)),i=new u({onListenerDidAdd(e,n,i){t?setTimeout(()=>r(n,i)):r(n,i)}});return i.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(r(this.event,e))}filter(e){return new h(i(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(l(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){
const r=(...e)=>i.fire(n(...e)),i=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromPromise=function(e){const t=new u;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(a=t.Event||(t.Event={}));let l=-1;t.setGlobalLeakWarningThreshold=function(e){let t=l;return l=e,{dispose(){l=t}}};class c{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=l;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);let n=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(n)||0;if(this._stacks.set(n,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;let n,r=0;this._stacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),
console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${r}):`),console.warn(n)}return()=>{let e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=l>0?new c(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=((e,t,n)=>{this._listeners||(this._listeners=new o.LinkedList);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const i=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);let s;this._leakageMon&&(s=this._leakageMon.check(this._listeners.size));let a;return a={dispose:()=>{if(s&&s(),a.dispose=u._noop,!this._disposed&&(i(),this._options&&this._options.onLastListenerRemove)){
this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(a),a})),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e)}}}}dispose(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}u._noop=function(){},t.Emitter=u;class h 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()){let t=[];this._asyncDeliveryQueue.push([n.value,e(t,"function"==typeof n.value?n.value:n.value[0]),t])}
for(;this._asyncDeliveryQueue.length>0;){const[e,t,n]=this._asyncDeliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e);continue}Object.freeze(n),yield Promise.all(n)}}})}}t.AsyncEmitter=h;class d{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return s.toDisposable(i.once(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}t.EventMultiplexer=d;class f{
constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(e=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(n,e)):t.call(n,e)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}t.EventBufferer=f;class p{constructor(){this.listening=!1,this.inputEvent=a.None,this.inputEventListener=s.Disposable.None,this.emitter=new u({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}t.Relay=p}),define(e[18],t([1,0,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this._zoomLevel=0,
this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=0,this._onDidChangeFullscreen=new n.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))}getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}}r.INSTANCE=new r,
t.setZoomLevel=function(e,t){r.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return r.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return r.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return r.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){r.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return r.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){r.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return r.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=r.INSTANCE.onDidChangeFullscreen;const i=navigator.userAgent;t.isIE=i.indexOf("Trident")>=0,t.isEdge=i.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=i.indexOf("Opera")>=0,t.isFirefox=i.indexOf("Firefox")>=0,t.isWebKit=i.indexOf("AppleWebKit")>=0,t.isChrome=i.indexOf("Chrome")>=0,t.isSafari=!t.isChrome&&i.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,
t.isIPad=i.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&i.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){let e=i.indexOf("Edge/"),t=parseInt(i.substring(e+5,i.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}}),define(e[45],t([1,0,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=((e,t,r)=>{const i=e=>s.fire(e),s=new n.Emitter({onFirstListenerAdd:()=>{e.addEventListener(t,i,r)},onLastListenerRemove:()=>{e.removeEventListener(t,i,r)}});return s.event}),t.stop=function(e){return n.Event.map(e,e=>(e.preventDefault(),e.stopPropagation(),e))}}),define(e[31],t([1,0,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var i;!function(e){e.isCancellationToken=function(t){
return t===e.None||t===e.Cancelled||t instanceof s||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(i=t.CancellationToken||(t.CancellationToken={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class o{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled}dispose(){
this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}}t.CancellationTokenSource=o}),define(e[10],t([1,0,31,8,2,6]),function(e,t,n,r,i,s){"use strict";function o(e){return e&&"function"==typeof e.then}function a(e){const t=new n.CancellationTokenSource,i=e(t.token),s=new Promise((e,n)=>{t.token.onCancellationRequested(()=>{n(r.canceled())}),Promise.resolve(i).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),n(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())})}):a(t=>l(e,t))}function c(e){function t(s){void 0!==s&&null!==s&&n.push(s);const o=r<i?e[r++]():null;return o?o.then(t):Promise.resolve(n)}const n=[];let r=0;const i=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=o,t.createCancelablePromise=a,
t.asPromise=function(e){return new Promise((t,n)=>{let r=e();o(r)?r.then(t,n):t(r)})};class u{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=u;class h{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=h;class d{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=d;class f{constructor(e){this.delayer=new d(e),this.throttler=new u}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=f;class p{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,
this._completePromise(!0)}wait(){return this._promise}}t.Barrier=p,t.timeout=l,t.disposableTimeout=function(e,t=0){const n=setTimeout(e,t);return s.toDisposable(()=>clearTimeout(n))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=c,t.first=function(e,t=(e=>!!e),n=null){let r=0;const i=e.length,s=()=>{if(r>=i)return Promise.resolve(n);const o=e[r++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):s())};return s()};class g{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new i.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),
t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=g;class m extends g{constructor(){super(1)}}t.Queue=m;class v{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new m;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=v;class b extends s.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 s.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 _{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=_;class w extends _{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=w,t.nfcall=function(e,...t){return new Promise((n,r)=>e(...t,(e,t)=>e?r(e):n(t)))},
t.ninvoke=function(e,t,...n){return new Promise((r,i)=>t.call(e,...n,(e,t)=>e?i(e):r(t)))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){let e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{let n=setTimeout(()=>t(e)),r=!1;return{dispose(){r||(r=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{let n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(n))}}})}();class E{constructor(e){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=E}),define(e[29],t([1,0]),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"}(t.Schemas||(t.Schemas={}))}),define(e[3],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE_DEFAULT="en";let n=!1,r=!1,i=!1,s=!1,o=!1,a=void 0,l=t.LANGUAGE_DEFAULT,c=void 0;const u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){n="win32"===process.platform,r="darwin"===process.platform,i="linux"===process.platform,a=t.LANGUAGE_DEFAULT,l=t.LANGUAGE_DEFAULT;const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),r=n.availableLanguages["*"];a=n.locale,l=r||t.LANGUAGE_DEFAULT,c=n._translationsConfigFile}catch(e){}s=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,r=e.indexOf("Macintosh")>=0,i=e.indexOf("Linux")>=0,o=!0,
l=a=navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};let h=0;s&&(r?h=1:n?h=3:i&&(h=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=s,t.isWeb=o,t.platform=h,t.isRootUser=function(){return s&&!n&&0===process.getuid()},t.language=l,t.locale=a,t.translationsConfigFile=c;const d="object"==typeof self?self:"object"==typeof global?global:{};t.globals=d;let f=null;t.setImmediate=function(e){return null===f&&(f=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),f(e)};!function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=r?2:n?1:3}),
define(e[40],t([1,0,18,59,3]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let s=new Array(230),o=new Array(112);!function(){function e(e,t){s[e]=t,o[t]=e}for(let e=0;e<o.length;e++)o[e]=-1;e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),
e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),n.isIE?e(91,57):n.isFirefox?(e(59,80),e(107,81),e(109,83),i.isMacintosh&&e(224,57)):n.isWebKit&&(e(91,57),i.isMacintosh?e(93,57):e(92,57))}(),t.getCodeForKeyCode=function(e){return o[e]};const a=i.isMacintosh?256:2048,l=i.isMacintosh?2048:256;class c{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return r.KeyCodeUtils.fromString(t)}return s[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,
this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}t.StandardKeyboardEvent=c}),define(e[74],t([1,0,18,75,3]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});class s{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=r.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}}t.StandardMouseEvent=s;class o extends s{constructor(e){super(e),this.dataTransfer=e.dataTransfer}}t.DragMouseEvent=o;class a{constructor(e,t=0,r=0){
if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t,e){let t=e,r=e;void 0!==t.wheelDeltaY?this.deltaY=t.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS&&(this.deltaY=-r.detail/3),void 0!==t.wheelDeltaX?n.isSafari&&i.isWindows?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120:void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}}t.StandardWheelEvent=a}),define(e[22],t([1,0,18,45,40,74,10,8,2,6,3,17]),function(e,t,n,r,i,s,o,a,l,c,u,h){"use strict";function d(e,t,n,r){return new k(e,t,n,r)}function f(e){return document.defaultView.getComputedStyle(e,null)}function p(e,t,n){let r=f(e),i="0"
;return r&&(i=r.getPropertyValue?r.getPropertyValue(t):r.getAttribute(n)),T(e,i)}function g(e){let t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;let i=f(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=L.getBorderLeftWidth(e),n+=L.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function m(e){let t=L.getMarginLeft(e)+L.getMarginRight(e);return e.offsetWidth+t}function v(e){let t=L.getMarginLeft(e)+L.getMarginRight(e);return e.scrollWidth+t}function b(e,t){let n=t.map(t=>Math.max(v(t),m(t))+function(e,t){if(null===e)return 0;let n=g(e),r=g(t);return n.left-r.left}(t,e)||0);return Math.max(...n)}function y(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function _(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}function w(){return D||(D=_()),D}
function E(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 C=new class{_findClassName(e,t){let n=e.className;if(!n)return void(this._lastStart=-1);t=t.trim();let r=n.length,i=t.length;if(0===i)return void(this._lastStart=-1);if(r<i)return void(this._lastStart=-1);if(n===t)return this._lastStart=0,void(this._lastEnd=r);let s,o=-1;for(;(o=n.indexOf(t,o+1))>=0;){if(s=o+i,(0===o||32===n.charCodeAt(o-1))&&32===n.charCodeAt(s))return this._lastStart=o,void(this._lastEnd=s+1)
;if(o>0&&32===n.charCodeAt(o-1)&&s===r)return this._lastStart=o-1,void(this._lastEnd=s);if(0===o&&s===r)return this._lastStart=0,void(this._lastEnd=s)}this._lastStart=-1}hasClass(e,t){return this._findClassName(e,t),-1!==this._lastStart}addClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.addClass(e,t)))}addClass(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t}removeClass(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))}removeClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.removeClass(e,t)))}toggleClass(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)}},S=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)}},x=n.isIE?C:S;t.hasClass=x.hasClass.bind(x),t.addClass=x.addClass.bind(x),t.addClasses=x.addClasses.bind(x),t.removeClass=x.removeClass.bind(x),t.removeClasses=x.removeClasses.bind(x),t.toggleClass=x.toggleClass.bind(x);class k{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._useCapture=r||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)}}t.addDisposableListener=d,t.addStandardDisposableListener=function(e,t,n,r){let o=n;return"click"===t||"mousedown"===t?o=function(e){return function(t){return e(new s.StandardMouseEvent(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){
return function(t){return e(new i.StandardKeyboardEvent(t))}}(n)),d(e,t,o,r)},t.addDisposableNonBubblingMouseOutListener=function(e,t){return d(e,"mouseout",n=>{let r=n.relatedTarget||n.target;for(;r&&r!==e;)r=r.parentNode;r!==e&&t(n)})};let A=null;class O{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){a.onUnexpectedError(e)}}static sort(e,t){return t.priority-e.priority}}!function(){let e=[],n=null,r=!1,i=!1;t.scheduleAtNextAnimationFrame=((t,s=0)=>{let o=new O(t,s);return e.push(o),r||(r=!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(r=!1,n=e,e=[],i=!0;n.length>0;)n.sort(O.sort),n.shift().execute();i=!1})),o}),t.runAtThisOrScheduleAtNextAnimationFrame=((e,r)=>{if(i){let t=new O(e,r);return n.push(t),t}
return t.scheduleAtNextAnimationFrame(e,r)})}(),t.measure=function(e){return t.scheduleAtNextAnimationFrame(e,1e4)},t.modify=function(e){return t.scheduleAtNextAnimationFrame(e,-1e4)};class P extends c.Disposable{constructor(e,t,n,r=function(e,t){return t},i=16){super();let s=null,a=0,l=this._register(new o.TimeoutTimer),c=()=>{a=(new Date).getTime(),n(s),s=null};this._register(d(e,t,e=>{s=r(s,e);let t=(new Date).getTime()-a;t>=i?(l.cancel(),c()):l.setIfNotSet(c,i-t)}))}}t.addDisposableThrottledListener=function(e,t,n,r,i){return new P(e,t,n,r,i)},t.getComputedStyle=f;const T=function(e,t){return parseFloat(t)||0};t.getClientArea=function(e){if(e!==document.body)return new I(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new I(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new I(document.body.clientWidth,document.body.clientHeight)
;if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new I(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};const L={getBorderLeftWidth:function(e){return p(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return p(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return p(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return p(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return p(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return p(e,"padding-right","paddingRight")},getPaddingTop:function(e){return p(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return p(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return p(e,"margin-left","marginLeft")},getMarginTop:function(e){return p(e,"margin-top","marginTop")},
getMarginRight:function(e){return p(e,"margin-right","marginRight")},getMarginBottom:function(e){return p(e,"margin-bottom","marginBottom")},__commaSentinel:!1};class I{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=I,t.getTopLeftOffset=g,t.size=function(e,t,n){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof n&&(e.style.height=`${n}px`)},t.position=function(e,t,n,r,i,s="absolute"){"number"==typeof t&&(e.style.top=`${t}px`),"number"==typeof n&&(e.style.right=`${n}px`),"number"==typeof r&&(e.style.bottom=`${r}px`),"number"==typeof i&&(e.style.left=`${i}px`),e.style.position=s},t.getDomNodePagePosition=function(e){let n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}},t.StandardWindow=new class{get scrollX(){
return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}},t.getTotalWidth=m,t.getContentWidth=function(e){let t=L.getBorderLeftWidth(e)+L.getBorderRightWidth(e),n=L.getPaddingLeft(e)+L.getPaddingRight(e);return e.offsetWidth-t-n},t.getTotalScrollWidth=v,t.getContentHeight=function(e){let t=L.getBorderTopWidth(e)+L.getBorderBottomWidth(e),n=L.getPaddingTop(e)+L.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){let t=L.getMarginTop(e)+L.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=b,t.isAncestor=y,t.findParentWithClass=function(e,n,r){for(;e;){if(t.hasClass(e,n))return e;if(r)if("string"==typeof r){if(t.hasClass(e,r))return null}else if(e===r)return null;e=e.parentNode}return null},t.createStyleSheet=_;let D=null;t.createCSSRule=function(e,t,n=w()){
n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t=w()){if(!t)return;let n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[];for(let t=0;t<n.length;t++)-1!==n[t].selectorText.indexOf(e)&&r.push(t);for(let e=r.length-1;e>=0;e--)t.sheet.deleteRule(r[e])},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",
BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:n.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode};class R{constructor(e){this._onDidFocus=new l.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new l.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[]
;let n=y(document.activeElement,e),i=!1;r.domEvent(e,t.EventType.FOCUS,!0)(()=>{i=!1,n||(n=!0,this._onDidFocus.fire())},null,this.disposables),r.domEvent(e,t.EventType.BLUR,!0)(()=>{n&&(i=!0,window.setTimeout(()=>{i&&(i=!1,n=!1,this._onDidBlur.fire())},0))},null,this.disposables)}dispose(){this.disposables=c.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()}}t.trackFocus=function(e){return new R(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 M=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=function(e,t,...n){let r=M.exec(e);if(!r)throw new Error("Bad use of emmet");let i=document.createElement(r[1]||"div");return r[3]&&(i.id=r[3]),r[4]&&(i.className=r[4].replace(/\./g," ").trim()),t=t||{},Object.keys(t).forEach(e=>{const n=t[e];/^on\w+$/.test(e)?i[e]=n:"selected"===e?n&&i.setAttribute(e,"true"):i.setAttribute(e,n)}),h.coalesce(n).forEach(e=>{
e instanceof Node?i.appendChild(e):i.appendChild(document.createTextNode(e))}),i},t.join=function(e,t){const n=[];return e.forEach((e,r)=>{r>0&&(t instanceof Node?n.push(t.cloneNode()):n.push(document.createTextNode(t))),n.push(e)}),n},t.show=function(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")},t.hide=function(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")},t.removeTabIndexAndUpdateFocus=E,t.getElementsByTagName=function(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)},t.finalHandler=function(e){return t=>{t.preventDefault(),t.stopPropagation(),e(t)}},t.domContentLoaded=function(){return new Promise(e=>{"complete"===document.readyState||document&&null!==document.body?u.setImmediate(e):window.addEventListener("DOMContentLoaded",e,!1)})},t.computeScreenAwareSize=function(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio},t.windowOpenNoOpener=function(e){
if(u.isNative||n.isEdgeWebView)window.open(e);else{let t=window.open();t&&(t.opener=null,t.location.href=e)}},t.animate=function(e){const n=()=>{e(),r=t.scheduleAtNextAnimationFrame(n)};let r=t.scheduleAtNextAnimationFrame(n);return c.toDisposable(()=>r.dispose())}});var r=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o};define(e[81],t([1,0,17,6,22,23]),function(e,t,n,i,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 l extends i.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){l.isTouchDevice()&&(l.INSTANCE||(l.INSTANCE=new l),l.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,r=e.targetTouches.length;n<r;n++){let r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};let i=this.newGestureEvent(a.Start,r.target)
;i.pageX=r.pageX,i.pageY=r.pageY,this.dispatchEvent(i)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),r=Object.keys(this.activeTouches).length;for(let i=0,s=e.changedTouches.length;i<s;i++){let s=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("move of an UNKNOWN touch",s);continue}let o=this.activeTouches[s.identifier],c=Date.now()-o.initialTimeStamp;if(c<l.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(c>=l.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===r){
let e=n.tail(o.rollingPageX),r=n.tail(o.rollingPageY),i=n.tail(o.rollingTimestamps)-o.rollingTimestamps[0],s=e-o.rollingPageX[0],a=r-o.rollingPageY[0];const l=this.targets.filter(e=>o.initialTarget instanceof Node&&e.contains(o.initialTarget));this.inertia(l,t,Math.abs(s)/i,s>0?1:-1,e,Math.abs(a)/i,a>0?1:-1,r)}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,r,i,o,c,u){this.handle=s.scheduleAtNextAnimationFrame(()=>{let s=Date.now(),h=s-t,d=0,f=0,p=!0;n+=l.SCROLL_FRICTION*h,o+=l.SCROLL_FRICTION*h,n>0&&(p=!1,d=r*n*h),o>0&&(p=!1,f=c*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,r,i+d,o,c,u+f)})}onTouchMove(e){let t=Date.now();for(let r=0,i=e.changedTouches.length;r<i;r++){let i=e.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(i.identifier))){console.warn("end of an UNKNOWN touch",i);continue}let s=this.activeTouches[i.identifier],o=this.newGestureEvent(a.Change,s.initialTarget);o.translationX=i.pageX-n.tail(s.rollingPageX),o.translationY=i.pageY-n.tail(s.rollingPageY),o.pageX=i.pageX,o.pageY=i.pageY,this.dispatchEvent(o),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(i.pageX),s.rollingPageY.push(i.pageY),s.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}l.SCROLL_FRICTION=-.005,l.HOLD_DELAY=700,r([o.memoize],l,"isTouchDevice",null),t.Gesture=l}),define(e[4],t([1,0,3]),function(e,t,n){"use strict";function r(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function i(e){
return e===p||e===g}function s(e){return e===p}function o(e){return e>=c&&e<=h||e>=u&&e<=d}function a(e,t,n,r){let i,s="",o=0,a=-1,l=0;for(let c=0;c<=e.length;++c){if(c<e.length)i=e.charCodeAt(c);else{if(r(i))break;i=p}if(r(i)){if(a===c-1||1===l);else if(a!==c-1&&2===l){if(s.length<2||2!==o||s.charCodeAt(s.length-1)!==f||s.charCodeAt(s.length-2)!==f){if(s.length>2){const e=s.lastIndexOf(n);-1===e?(s="",o=0):o=(s=s.slice(0,e)).length-1-s.lastIndexOf(n),a=c,l=0;continue}if(2===s.length||1===s.length){s="",o=0,a=c,l=0;continue}}t&&(s.length>0?s+=`${n}..`:s="..",o=2)}else s.length>0?s+=n+e.slice(a+1,c):s=e.slice(a+1,c),o=c-a-1;a=c,l=0}else i===f&&-1!==l?++l:l=-1}return s}function l(e,t){const n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}const c=65,u=97,h=90,d=122,f=46,p=47,g=92,m="undefined"==typeof process?{cwd:()=>"/",env:{},get platform(){return n.isWindows?"win32":"posix"}}:process;class v extends Error{constructor(e,t,n){let r
;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";let i;i=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${r} of type ${t}`,super(i+=`. Received type ${typeof n}`)}}const b={resolve(...e){let t="",n="",s=!1;for(let a=e.length-1;a>=-1;a--){let l;if(a>=0?l=e[a]:t?void 0!==(l=m.env["="+t]||m.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=m.cwd(),r(l,"path"),0===l.length)continue;let c=l.length,u=0,h="",d=!1;const f=l.charCodeAt(0);if(c>1)if(i(f))if(d=!0,i(l.charCodeAt(1))){let e=2,t=e;for(;e<c&&!i(l.charCodeAt(e));++e);if(e<c&&e!==t){const n=l.slice(t,e);for(t=e;e<c&&i(l.charCodeAt(e));++e);if(e<c&&e!==t){for(t=e;e<c&&!i(l.charCodeAt(e));++e);e===c?(h="\\\\"+n+"\\"+l.slice(t),u=e):e!==t&&(h="\\\\"+n+"\\"+l.slice(t,e),u=e)}}}else u=1;else o(f)&&58===l.charCodeAt(1)&&(h=l.slice(0,2),u=2,c>2&&i(l.charCodeAt(2))&&(d=!0,u=3));else i(f)&&(u=1,d=!0)
;if(!(h.length>0&&t.length>0&&h.toLowerCase()!==t.toLowerCase())&&(0===t.length&&h.length>0&&(t=h),s||(n=l.slice(u)+"\\"+n,s=d),t.length>0&&s))break}return n=a(n,!s,"\\",i),t+(s?"\\":"")+n||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let n,s=0,l=!1;const c=e.charCodeAt(0);if(t>1)if(i(c))if(l=!0,i(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==o){const a=e.slice(o,r);for(o=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==o){for(o=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return"\\\\"+a+"\\"+e.slice(o)+"\\";r!==o&&(n="\\\\"+a+"\\"+e.slice(o,r),s=r)}}}else s=1;else o(c)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),s=2,t>2&&i(e.charCodeAt(2))&&(l=!0,s=3));else if(i(c))return"\\";let u;return 0!==(u=s<t?a(e.slice(s),!l,"\\",i):"").length||l||(u="."),u.length>0&&i(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?l?u.length>0?"\\"+u:"\\":u.length>0?u:"":l?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){r(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0)
;return!!i(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&i(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){let s=e[i];r(s,"path"),s.length>0&&(void 0===t?t=n=s:t+="\\"+s)}if(void 0===t)return".";let s=!0,o=0;if(i(n.charCodeAt(0))){++o;const e=n.length;e>1&&i(n.charCodeAt(1))&&(++o,e>2&&(i(n.charCodeAt(2))?++o:s=!1))}if(s){for(;o<t.length&&i(t.charCodeAt(o));++o);o>=2&&(t="\\"+t.slice(o))}return b.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";let n=b.resolve(e),i=b.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===g;++s);let o=e.length;for(;o-1>s&&e.charCodeAt(o-1)===g;--o);let a=o-s,l=0;for(;l<t.length&&t.charCodeAt(l)===g;++l);let c=t.length;for(;c-1>l&&t.charCodeAt(c-1)===g;--c);let u=c-l,h=a<u?a:u,d=-1,f=0;for(;f<=h;++f){if(f===h){if(u>h){if(t.charCodeAt(l+f)===g)return i.slice(l+f+1);if(2===f)return i.slice(l+f)}a>h&&(e.charCodeAt(s+f)===g?d=f:2===f&&(d=3));break}
let n=e.charCodeAt(s+f);if(n!==t.charCodeAt(l+f))break;n===g&&(d=f)}if(f!==h&&-1===d)return i;let p="";for(-1===d&&(d=0),f=s+d+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==g||(0===p.length?p+="..":p+="\\..");return p.length>0?p+i.slice(l+d,c):(l+=d,i.charCodeAt(l)===g&&++l,i.slice(l,c))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=b.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===g){if(t.charCodeAt(1)===g){const e=t.charCodeAt(2);if(63!==e&&e!==f)return"\\\\?\\UNC\\"+t.slice(2)}}else if(o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===g)return"\\\\?\\"+t;return e},dirname(e){r(e,"path");const t=e.length;if(0===t)return".";let n=-1,s=-1,a=!0,l=0;const c=e.charCodeAt(0);if(t>1)if(i(c)){if(n=l=1,i(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==s){for(s=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==s){for(s=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return e;r!==s&&(n=l=r+1)}}}}else o(c)&&58===e.charCodeAt(1)&&(n=l=2,
t>2&&i(e.charCodeAt(2))&&(n=l=3));else if(i(c))return e;for(let n=t-1;n>=l;--n)if(i(e.charCodeAt(n))){if(!a){s=n;break}}else a=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,s=0,a=-1,l=!0;if(e.length>=2){o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(s=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let r=t.length-1,o=-1;for(n=e.length-1;n>=s;--n){const c=e.charCodeAt(n);if(i(c)){if(!l){s=n+1;break}}else-1===o&&(l=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=o))}return s===a?a=o:-1===a&&(a=e.length),e.slice(s,a)}for(n=e.length-1;n>=s;--n)if(i(e.charCodeAt(n))){if(!l){s=n+1;break}}else-1===a&&(l=!1,a=n+1);return-1===a?"":e.slice(s,a)},extname(e){r(e,"path");let t=0,n=-1,s=0,a=-1,l=!0,c=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=s=2);for(let r=e.length-1;r>=t;--r){const t=e.charCodeAt(r);if(i(t)){if(!l){s=r+1;break}}else-1===a&&(l=!1,a=r+1),
t===f?-1===n?n=r:1!==c&&(c=1):-1!==n&&(c=-1)}return-1===n||-1===a||0===c||1===c&&n===a-1&&n===s+1?"":e.slice(n,a)},format(e){if(null===e||"object"!=typeof e)throw new v("pathObject","Object",e);return l("\\",e)},parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n=e.length,s=0,a=e.charCodeAt(0);if(n>1){if(i(a)){if(s=1,i(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!i(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&i(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&!i(e.charCodeAt(t));++t);t===n?s=t:t!==r&&(s=t+1)}}}}else if(o(a)&&58===e.charCodeAt(1)){if(s=2,!(n>2))return t.root=t.dir=e,t;if(i(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;s=3}}}else if(i(a))return t.root=t.dir=e,t;s>0&&(t.root=e.slice(0,s));let l=-1,c=s,u=-1,h=!0,d=e.length-1,p=0;for(;d>=s;--d)if(a=e.charCodeAt(d),i(a)){if(!h){c=d+1;break}}else-1===u&&(h=!1,u=d+1),a===f?-1===l?l=d:1!==p&&(p=1):-1!==l&&(p=-1)
;return-1===l||-1===u||0===p||1===p&&l===u-1&&l===c+1?-1!==u&&(t.base=t.name=e.slice(c,u)):(t.name=e.slice(c,l),t.base=e.slice(c,u),t.ext=e.slice(l,u)),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){let s;r(s=i>=0?e[i]:m.cwd(),"path"),0!==s.length&&(t=s+"/"+t,n=s.charCodeAt(0)===p)}return t=a(t,!n,"/",s),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(r(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=>(r(e,"path"),e.length>0&&e.charCodeAt(0)===p),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){let e=arguments[n];r(e,"path"),e.length>0&&(void 0===t?t=e:t+="/"+e)}return void 0===t?".":y.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";if(e=y.resolve(e),t=y.resolve(t),e===t)return"";let n=1
;for(;n<e.length&&e.charCodeAt(n)===p;++n);let i=e.length,s=i-n,o=1;for(;o<t.length&&t.charCodeAt(o)===p;++o);let a=t.length-o,l=s<a?s:a,c=-1,u=0;for(;u<=l;++u){if(u===l){if(a>l){if(t.charCodeAt(o+u)===p)return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else s>l&&(e.charCodeAt(n+u)===p?c=u:0===u&&(c=0));break}let r=e.charCodeAt(n+u);if(r!==t.charCodeAt(o+u))break;r===p&&(c=u)}let h="";for(u=n+c+1;u<=i;++u)u!==i&&e.charCodeAt(u)!==p||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+c):(o+=c,t.charCodeAt(o)===p&&++o,t.slice(o))},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,i=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let r=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n)
;if(l===p){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(s=n):(r=-1,s=a))}return i===s?s=a:-1===s&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1);return-1===s?"":e.slice(i,s)},extname(e){r(e,"path");let t=-1,n=0,i=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==p)-1===i&&(s=!1,i=r+1),a===f?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){n=r+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format(e){if(null===e||"object"!=typeof e)throw new v("pathObject","Object",e);return l("/",e)},parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n,i=e.charCodeAt(0)===p;i?(t.root="/",n=1):n=0;let s=-1,o=0,a=-1,l=!0,c=e.length-1,u=0;for(;c>=n;--c){const t=e.charCodeAt(c);if(t!==p)-1===a&&(l=!1,a=c+1),t===f?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);else if(!l){o=c+1;break}}
return-1===s||-1===a||0===u||1===u&&s===a-1&&s===o+1?-1!==a&&(t.base=t.name=0===o&&i?e.slice(1,a):e.slice(o,a)):(0===o&&i?(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):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=b.win32=b,y.posix=b.posix=y;return"win32"===m.platform?b:y}),define(e[5],t([1,0]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;let n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;let n=t.length,r=e.length;if(0===n||0===r)return e;let i=r,s=-1;for(;;){if(-1===(s=e.lastIndexOf(t,i-1))||s+n!==i)break;if(0===s)return"";i=s}return e.substring(0,i)}function s(e,t){return e<t?-1:e>t?1:0}function o(e){return e>=97&&e<=122}function a(e){return e>=65&&e<=90}function l(e){return o(e)||a(e)}function c(e,t,n=e.length){
if("string"!=typeof e||"string"!=typeof t)return!1;for(let r=0;r<n;r++){const n=e.charCodeAt(r),i=t.charCodeAt(r);if(n!==i)if(l(n)&&l(i)){let e=Math.abs(n-i);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(i).toLowerCase())return!1}return!0}function u(e,t,n,r,i,s){for(;t<n&&i<s;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function h(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n="0"){let r=""+e,i=[r];for(let e=r.length;e<t;e++)i.push(n);return i.reverse().join("")};const f=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(f,function(e,n){let r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})},t.escape=function(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"&lt;"
;case">":return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t=" "){return i(r(e,t),t)},t.ltrim=r,t.rtrim=i,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){let n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),new RegExp(e,i)},t.regExpLeadsToEndlessLoop=function(e){
return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,n=e.length;t<n;t++){let n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1},t.getLeadingWhitespace=function(e,t=0,n=e.length){for(let r=t;r<n;r++){let n=e.charCodeAt(r);if(32!==n&&9!==n)return e.substring(t,r)}return e.substring(t,n)},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let n=t;n>=0;n--){let t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1},t.compare=s,t.compareIgnoreCase=function(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.charCodeAt(r),i=t.charCodeAt(r);if(n===i)continue;a(n)&&(n+=32),a(i)&&(i+=32);const l=n-i;if(0!==l)return o(n)&&o(i)?l:s(e.toLowerCase(),t.toLowerCase())}
return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=a,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&c(e,t,n)},t.commonPrefixLength=function(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r},t.commonSuffixLength=function(e,t){let n,r=Math.min(e.length,t.length),i=e.length-1,s=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(s-n))return n;return r},t.overlap=function(e,t){let n=e.length,r=t.length,i=n-r;if(0===i)return e===t?n:0;for(i<0&&(r+=i,i=0);i<n&&r>0;){if(u(e,i,n,t,0,r))return r;r-=1,i+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343}
;const 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 r=/\b/g
;let i=0;for(;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};const v=/\x1B\x5B[12]?K/g,b=/\x1b\[\d+m/g,y=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(b,"")).replace(y,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};{const e=/[\u0300-\u036f]/g;return function(n){return n.normalize("NFD").replace(e,t.empty)}}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n},t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;const n=t.length,r=e.toLowerCase();let i=0,s=-1;for(;i<n;){let e=r.indexOf(t[i],s+1);if(e<0)return!1;s=e,i++}return!0},t.containsUppercaseCharacter=function(e,t=!1){
return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.getNLines=function(e,t=1){if(0===t)return"";let n=-1;do{n=e.indexOf("\n",n+1),t--}while(t>0&&n>=0);return n>=0?e.substr(0,n):e}}),define(e[47],t([1,0,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[21],t([1,0,3,5,4]),function(e,t,n,r,i){"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,"/")},t.getRoot=function(e,t="/"){if(!e)return"";let n=e.length;const r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let r=3,i=r
;for(;r<n&&!s(e.charCodeAt(r));r++);if(i!==r&&!s(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(s(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(o(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let i=e.indexOf("://");if(-1!==i)for(i+=3;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+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 r=2,i=r;for(;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};const a=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,l=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(a.lastIndex=0,a.test(e)||n.isWindows&&l.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,n){const i=e===t
;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,n,s=i.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!r.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}),define(e[11],t([1,0]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==c.number||e.constructor!==Array)}function r(e){return typeof e===c.string||e instanceof String}function i(e){return!(typeof e!==c.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return typeof e===c.undefined}function o(e){return s(e)||null===e}function a(e){return typeof e===c.function}function l(e,t){if(r(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 c={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(e=>r(e))},t.isObject=i,t.isNumber=function(e){return(typeof e===c.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(!i(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 r=0;r<n;r++)l(e[r],t[r])},t.validateConstraint=l,t.create=function(e,...t){
if(function(e){return"function"==typeof e&&e.hasOwnProperty("prototype")&&!e.hasOwnProperty("arguments")}(e))return new e(...t);{let n=Object.create(e.prototype);return e.apply(n,t),n}},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}}),define(e[16],t([1,0,11]),function(e,t,n){"use strict";function r(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]=r(e[n]):t[n]=e[n]}),t}function i(e,t,r){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(i(s,t,r));return n}if(n.isObject(e)){if(r.has(e))throw new Error("Cannot clone recursive data-structure");r.add(e);const n={};for(let s in e)a.call(e,s)&&(n[s]=i(e[s],t,r));return r.delete(e),n}return e}function s(e,t,r=!0){
return n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(i=>{i in e?r&&(n.isObject(e[i])&&n.isObject(t[i])?s(e[i],t[i],r):e[i]=t[i]):e[i]=t[i]}),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,r;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 i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!o(i,s))return!1;for(n=0;n<i.length;n++)if(!o(e[i[n]],t[i[n]]))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=r,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){let e=t.shift();Object.freeze(e);for(const n in e)if(a.call(e,n)){let r=e[n];"object"!=typeof r||Object.isFrozen(r)||t.push(r)}}return e};const a=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return i(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.createKeywordMatcher=function(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));const n=function(e){const t={};for(const n of e)t[n]=!0;return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}},t.safeStringify=function(e){const t=[];return JSON.stringify(e,(e,r)=>{if(n.isObject(r)||Array.isArray(r)){if(-1!==t.indexOf(r))return"[Circular]";t.push(r)}return r})},t.getOrDefault=function(e,t,n){const r=t(e);return void 0===r?n:r},t.distinct=function(e,t){const n=Object.create(null);return e&&t?(Object.keys(t).forEach(r=>{const i=e[r],s=t[r];o(i,s)||(n[r]=s)}),n):n}}),define(e[7],t([1,0,3]),function(e,t,n){"use strict";function r(e,t){let n=void 0,r=-1;for(let i=0;i<e.length;i++){let s=e.charCodeAt(i)
;if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));let t=p[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function i(e){let t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){const n=t?function(e){let t=void 0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=p[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:r;let i="",{scheme:s,authority:o,path:a,query:l,fragment:c}=e;if(s&&(i+=s,i+=":"),
(o||"file"===s)&&(i+=u,i+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,e),!1),i+=o.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){let 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)){let e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}i+=n(a,!0)}return l&&(i+="?",i+=n(l,!1)),c&&(i+="#",i+=t?c:r(c,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//;let c=!0;t.setUriThrowOnMissingScheme=function(e){const t=c;return c=e,t};const u="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){
return e instanceof d||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}constructor(e,t,n,r,i,s){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||"",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||""),this.query=r||"",this.fragment=i||"",function(e,t){if(!e.scheme){if(t||c)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);console.warn(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)}
if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!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(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}get fsPath(){return i(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===r?r=this.path:null===r&&(r=""),void 0===i?i=this.query:null===i&&(i=""),void 0===s?s=this.fragment:null===s&&(s=""),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new f(t,n,r,i,s)}static parse(e,t=!1){const n=h.exec(e)
;return n?new f(n[2]||"",decodeURIComponent(n[4]||""),decodeURIComponent(n[5]||""),decodeURIComponent(n[7]||""),decodeURIComponent(n[9]||""),t):new f("","","","","")}static file(e){let t="";if(n.isWindows&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){let n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new f("file",t,e,"","")}static from(e){return new f(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 d)return e;{let t=new f(e);return t._fsPath=e.fsPath,t._formatted=e.external,t}}return e}}t.URI=d;class f extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=i(this)),this._fsPath}toString(e=!1){return e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),
this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"}}),define(e[15],t([1,0,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[24],t([1,0,7,35]),function(e,t,n,r){"use strict";function i(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=i,t.keys=s,t.getOrSet=function(e,t,n){let r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r},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,r]of e)t.set(n,r);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,n=e.length,r=this._from;for(;t<n&&r<this._to;){let n=e.charCodeAt(t)-this._value.charCodeAt(r)
;if(0!==n)return n;t+=1,r+=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 l{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class c{constructor(e){this._iter=e}static forPaths(){return new c(new a)}static forStrings(){return new c(new o)}clear(){this._root=void 0}set(e,t){let n,r=this._iter.reset(e);for(this._root||(this._root=new l,this._root.segment=r.value()),n=this._root;;){let e=r.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=r.value()),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new l,n.mid.segment=r.value()),n=n.mid}}const i=n.value;return n.value=t,n.key=e,i}get(e){let t=this._iter.reset(e),n=this._root;for(;n;){let 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){let t=this._iter.reset(e),n=[],r=this._root;for(;r;){
let e=t.cmp(r.segment);if(e>0)n.push([1,r]),r=r.left;else if(e<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;n.length>0&&r.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}r=t}break}t.next(),n.push([0,r]),r=r.mid}}}findSubstr(e){let t=this._iter.reset(e),n=this._root,r=void 0;for(;n;){let 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(),r=n.value||r,n=n.mid}}return n&&n.value||r}findSuperstr(e){let t=this._iter.reset(e),n=this._root;for(;n;){let 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,i;return{next:()=>(i||(i=[],n=0,this._forEach(e,e=>i.push(e))),n>=i.length?r.FIN:(t?t.value=i[n++]:t={done:!1,value:i[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=c;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 i(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 r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),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(){let e=[],t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){let e=[],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[34],t([1,0,17,5,21,4,24,10]),function(e,t,n,r,i,s,o,a){"use strict";function l(e){
switch(e){case 0:return"";case 1:return`${E}*?`;default:return`(?:${w}|${E}+${w}|${w}${E}+)*?`}}function c(e,t){if(!e)return[];let n=[],r=!1,i=!1,s="";for(const o of e){switch(o){case t:if(!r&&!i){n.push(s),s="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}s+=o}return s&&n.push(s),n}function u(e){if(!e)return"";let t="",n=c(e,_);if(n.every(e=>e===y))t=".*";else{let e=!1;n.forEach((i,s)=>{if(i===y)return void(e||(t+=l(2),e=!0));let o=!1,a="",h=!1,d="";for(const e of i)if("}"!==e&&o)a+=e;else if(!h||"]"===e&&d)switch(e){case"{":o=!0;continue;case"[":h=!0;continue;case"}":let n=`(?:${c(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+=l(1);continue;default:t+=r.escapeRegExpCharacters(e)}else{let t;d+=t="-"===e?e:"^"!==e&&"!"!==e||d?e===_?"":r.escapeRegExpCharacters(e):"^"}s<n.length-1&&(n[s+1]!==y||s+2<n.length)&&(t+=w),e=!1})}return t}function h(e,t){if(!e)return I;let i
;i="string"!=typeof e?e.pattern:e;const s=`${i=i.trim()}_${!!t.trimForExclusions}`;let o=T.get(s);if(o)return d(o,e);let a;if(S.test(i)){const e=i.substr(4);o=function(t,n){return"string"==typeof t&&r.endsWith(t,e)?i:null}}else o=(a=x.exec(f(i,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,s=function(s,o){return"string"!=typeof s?null:o?o===e?t:null:s===e||r.endsWith(s,n)||r.endsWith(s,i)?t:null},o=[e];return s.basenames=o,s.patterns=[t],s.allBasenames=o,s}(a[1],i):(t.trimForExclusions?A:k).test(i)?function(e,t){const r=b(e.slice(1,-1).split(",").map(e=>h(e,t)).filter(e=>e!==I),e),i=r.length;if(!i)return I;if(1===i)return r[0];const s=function(t,n){for(let i=0,s=r.length;i<s;i++)if(r[i](t,n))return e;return null},o=n.first(r,e=>!!e.allBasenames);o&&(s.allBasenames=o.allBasenames);const a=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(s.allPaths=a);return s}(i,t):(a=O.exec(f(i,t)))?p(a[1].substr(1),i,!0):(a=P.exec(f(i,t)))?p(a[1],i,!1):function(e){try{const t=new RegExp(`^${u(e)}$`)
;return function(n,r){return t.lastIndex=0,"string"==typeof n&&t.test(n)?e:null}}catch(e){return I}}(i);return T.set(s,o),d(o,e)}function d(e,t){return"string"==typeof t?e:function(n,r){return i.isEqualOrParent(n,t.base)?e(s.relative(t.base,n),r):null}}function f(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function p(e,t,n){const i=s.sep!==s.posix.sep?e.replace(C,s.sep):e,o=s.sep+i,a=n?function(e,n){return"string"!=typeof e||e!==i&&!r.endsWith(e,o)?null:t}:function(e,n){return"string"==typeof e&&e===i?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===I)return L;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const r=b(Object.getOwnPropertyNames(e).map(n=>(function(e,t,n){if(!1===t)return I;const r=h(e,n);if(r===I)return I;if("boolean"==typeof t)return r;if(t){const n=t.when
;if("string"==typeof n){const t=(t,i,s,o)=>{if(!o||!r(t,i))return null;const l=n.replace("$(basename)",s),c=o(l);return a.isThenable(c)?c.then(t=>t?e:null):c?e:null};return t.requiresSiblings=!0,t}}return r})(n,e[n],t)).filter(e=>e!==I)),i=r.length;if(!i)return I;if(!r.some(e=>!!e.requiresSiblings)){if(1===i)return r[0];const e=function(e,t){for(let n=0,i=r.length;n<i;n++){const i=r[n](e,t);if(i)return i}return null},t=n.first(r,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const s=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}const o=function(e,t,n){let i=void 0;for(let o=0,a=r.length;o<a;o++){const a=r[o];a.requiresSiblings&&n&&(t||(t=s.basename(e)),i||(i=t.substr(0,t.length-s.extname(e).length)));const l=a(e,t,i,n);if(l)return l}return null},l=n.first(r,e=>!!e.allBasenames);l&&(o.allBasenames=l.allBasenames);const c=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);c.length&&(o.allPaths=c);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 b(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const r=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let i;if(t){i=[];for(let e=0,n=r.length;e<n;e++)i.push(t)}else i=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=r.indexOf(t);return-1!==n?i[n]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;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 y="**",_="/",w="[/\\\\]",E="[^/\\\\]",C=/\//g;t.splitGlobAware=c
;const S=/^\*\*\/\*\.[\w\.-]+$/,x=/^\*\*\/([\w\.-]+)\/?$/,k=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,A=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,O=/^\*\*((\/[\w\.-]+)+)\/?$/,P=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,T=new o.LRUCache(1e4),L=function(){return!1},I=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.parseToAsync=function(e,t){const n=g(e,t);return(e,t,r)=>{const i=n(e,t,r);return a.isThenable(i)?i:Promise.resolve(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[77],t([1,0,4,5,17,34]),function(e,t,n,r,i,s){"use strict";function o(e,t=!1){const r=function(e){return{
id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(n.posix.sep)>=0}}(e);u.push(r),r.userConfigured?d.push(r):h.push(r),t&&!r.userConfigured&&u.forEach(e=>{e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn(`Overwriting extension <<${r.extension}>> to now point to mime <<${r.mime}>>`),r.filename&&e.filename===r.filename&&console.warn(`Overwriting filename <<${r.filename}>> to now point to mime <<${r.mime}>>`),r.filepattern&&e.filepattern===r.filepattern&&console.warn(`Overwriting filepattern <<${r.filepattern}>> to now point to mime <<${r.mime}>>`),
r.firstline&&e.firstline===r.firstline&&console.warn(`Overwriting firstline <<${r.firstline}>> to now point to mime <<${r.mime}>>`))})}function a(e,i){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();const s=n.basename(e),o=l(e,s,d);if(o)return[o,t.MIME_TEXT];const a=l(e,s,h);if(a)return[a,t.MIME_TEXT];if(i){const e=function(e){r.startsWithUTF8BOM(e)&&(e=e.substr(1));if(e.length>0)for(const t of u){if(!t.firstline)continue;const n=e.match(t.firstline);if(n&&n.length>0)return t.mime}return null}(i);if(e)return[e,t.MIME_TEXT]}return[t.MIME_UNKNOWN]}function l(e,t,n){let i=null,o=null,a=null;for(let l=n.length-1;l>=0;l--){const c=n[l];if(t===c.filenameLowercase){i=c;break}if(c.filepattern&&(!o||c.filepattern.length>o.filepattern.length)){const n=c.filepatternOnPath?e:t;s.match(c.filepatternLowercase,n)&&(o=c)}c.extension&&(!a||c.extension.length>a.extension.length)&&r.endsWith(t,c.extensionLowercase)&&(a=c)}return i?i.mime:o?o.mime:a?a.mime:null}function c(e){
return!e||("string"==typeof e?e===t.MIME_BINARY||e===t.MIME_TEXT||e===t.MIME_UNKNOWN:1===e.length&&c(e[0]))}Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_BINARY="application/octet-stream",t.MIME_UNKNOWN="application/unknown";let u=[],h=[],d=[];t.registerTextMime=o,t.clearTextMimes=function(e){e?(u=u.filter(e=>!e.userConfigured),d=[]):(u=[],h=[],d=[])},t.guessMimeTypes=a,t.isUnspecific=c,t.suggestFilename=function(e,t){const n=u.filter(t=>!t.userConfigured&&t.extension&&t.id===e).map(e=>e.extension),s=i.coalesce(n).filter(e=>r.startsWith(e,"."));return s.length>0?t+s[0]:n[0]||t};const f={".bmp":"image/bmp",".gif":"image/gif",".jpg":"image/jpg",".jpeg":"image/jpg",".jpe":"image/jpg",".png":"image/png",".tiff":"image/tiff",".tif":"image/tiff",".ico":"image/x-icon",".tga":"image/x-tga",".psd":"image/vnd.adobe.photoshop",".webp":"image/webp",".mid":"audio/midi",".midi":"audio/midi",".mp4a":"audio/mp4",".mpga":"audio/mpeg",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",
".mp3":"audio/mpeg",".m2a":"audio/mpeg",".m3a":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".spx":"audio/ogg",".aac":"audio/x-aac",".wav":"audio/x-wav",".wma":"audio/x-ms-wma",".mp4":"video/mp4",".mp4v":"video/mp4",".mpg4":"video/mp4",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpe":"video/mpeg",".m1v":"video/mpeg",".m2v":"video/mpeg",".ogv":"video/ogg",".qt":"video/quicktime",".mov":"video/quicktime",".webm":"video/webm",".mkv":"video/x-matroska",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".avi":"video/x-msvideo",".movie":"video/x-sgi-movie"};t.getMediaMime=function(e){const t=n.extname(e);return f[t.toLowerCase()]}}),define(e[80],t([1,0,24]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e;const i=r.get(e);if(i)return i;let s;return s=o.test(e)?e.normalize(n):e,r.set(e,s),s}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;const i=new n.LRUCache(1e4)
;t.normalizeNFC=function(e){return r(e,"NFC",i)};const s=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",s)};const o=/[^\u0000-\u0080]/}),define(e[33],t([1,0,21,4,7,5,29,3,34,24]),function(e,t,n,r,i,s,o,a,l,c){"use strict";function u(e){return!e||e.scheme!==o.Schemas.file||!a.isLinux}function h(e,t,r=u(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return n.isEqualOrParent(p(e),p(t),r);if(d(e.authority,t.authority))return n.isEqualOrParent(e.path,t.path,r,"/")}return!1}function d(e,t){return e===t||s.equalsIgnoreCase(e,t)}function f(e){return r.posix.basename(e.path)}function p(e){let t;const r=e.path;return t=e.authority&&r.length>1&&"file"===e.scheme?`//${e.authority}${r}`:a.isWindows&&47===r.charCodeAt(0)&&n.isWindowsDriveLetter(r.charCodeAt(1))&&58===r.charCodeAt(2)?r.substr(1):r,a.isWindows&&(t=t.replace(/\//g,"\\")),t}function g(e){if(e.scheme===o.Schemas.file){const t=p(e);return t.length>n.getRoot(t).length&&t[t.length-1]===r.sep}{let 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 i=r.relative(e.path,t.path);return a.isWindows?n.toSlashes(i):i}return r.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 r=e.path||"/",i=t.path||"/";return r===i||n&&s.equalsIgnoreCase(r||"/",i||"/")},t.basename=f,t.extname=function(e){return r.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return i.URI.file(r.dirname(p(e)));let t=r.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?i.URI.file(r.join(p(e),...t)).path:r.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?i.URI.file(r.normalize(p(e))).path:r.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){return g(e)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.relativePath=m,t.resolvePath=function(e,t){let n;return n=e.scheme===o.Schemas.file?i.URI.file(r.resolve(p(e),t)).path:r.posix.resolve(e.path,t),e.with({path:n})},t.distinctParents=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);e.some((e,n)=>n!==r&&h(i,t(e)))||n.push(e[r])}return n},
t.isMalformedFileUri=function(e){if(!e.scheme||a.isWindows&&e.scheme.match(/^[a-zA-Z]$/))return i.URI.file((e.scheme?e.scheme+":":"")+e.path)};!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,r]=e.split(":");t&&r&&n.set(t,r)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(t.DataUri||(t.DataUri={}));class v{constructor(e,t){this.expressionsByRoot=c.TernarySearchTree.forPaths(),this.globalExpression=l.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:l.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}),
define(e[83],t([1,0,7,4,5,29,3,33]),function(e,t,n,r,i,s,o,a){"use strict";function l(e){return!(!o.isWindows||!e||":"!==e[1])}function c(e){return l(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=`${i.rtrim(t,r.posix.sep)}${r.posix.sep}`,h={original:t,normalized:n}),(o.isLinux?i.startsWith(e,n):i.startsWithIgnoreCase(e,n))&&(e=`~/${e.substr(n.length)}`),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getPathLabel=function(e,t,h){if("string"==typeof e&&(e=n.URI.file(e)),h){const t=h.getWorkspaceFolder(e);if(t){const n=h.getWorkspace().folders.length>1;let s;if(s=a.isEqual(t.uri,e)?"":r.normalize(i.ltrim(e.path.substr(t.uri.path.length),r.posix.sep)),n){const e=t&&t.name?t.name:a.basename(t.uri);s=s?e+" • "+s:e}return s}}if(e.scheme!==s.Schemas.file&&e.scheme!==s.Schemas.untitled)return e.with({query:null,fragment:null}).toString(!0);if(l(e.fsPath))return r.normalize(c(e.fsPath));let d=r.normalize(e.fsPath)
;return!o.isWindows&&t&&(d=u(d,t.userHome)),d},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 l(t)?c(t):t},t.normalizeDriveLetter=c;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]=`.${r.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(r.sep)?(a=o.substr(0,o.indexOf(r.sep)+r.sep.length),o=o.substr(o.indexOf(r.sep)+r.sep.length)):0===o.indexOf(p)&&(a=o.substr(0,o.indexOf(p)+p.length),o=o.substr(o.indexOf(p)+p.length));const l=o.split(r.sep);for(let o=1;n&&o<=l.length;o++)for(let c=l.length-o;n&&c>=0;c--){n=!1;let u=l.slice(c,c+o).join(r.sep);for(let t=0;!n&&t<e.length;t++)if(t!==s&&e[t]&&e[t].indexOf(u)>-1){
const s=c+o===l.length,a=c>0&&e[t].indexOf(r.sep)>-1?r.sep+u:u,h=i.endsWith(e[t],a);n=!s||h}if(!n){let e="";(i.endsWith(l[0],":")||""!==a)&&(1===c&&(c=0,o++,u=l[0]+r.sep+u),c>0&&(e=l[0]+r.sep),e=a+e),c>0&&(e=e+d+r.sep),e+=u,c+o<l.length&&(e=e+r.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 r=!1,i="";for(const s of e)if("$"===s||r&&"{"===s)i&&n.push({value:i,type:g.TEXT}),i="",r=!0;else if("}"===s&&r){const e=t[i];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})}i="",r=!1}else i+=s;return i&&!r&&n.push({value:i,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){return o.isMacintosh?e.replace(/\(&&\w\)|&&/g,""):o.isWindows?e.replace(/&&|&/g,e=>"&"===e?"&&":"&"):e.replace(/&&/g,"_")},t.unmnemonicLabel=function(e){return e.replace(/&/g,"&&")}}),define(e[27],t([1,0]),function(e,t){"use strict";function n(){return new s}function r(e){return o.test(e)}Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e){this._value=e}asHex(){return this._value}}class s extends i{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=r,t.parse=function(e){if(!r(e))throw new Error("invalid uuid");return new i(e)},t.generateUuid=function(){return n().asHex()}}),define(e[86],t([1,0,98]),function(e,t,n){"use strict";function r(e,t,i){
if(n.ok(e,"Missing first parameter"),n.ok("function"==typeof t,"Second parameter must be a function that is called for each element"),n.ok("function"==typeof i,"Third parameter must be a function that is called on error and success"),"function"==typeof e)try{e((e,n)=>{e?i(e,null):r(n,t,i)})}catch(e){i(e,null)}else{let n=[],r=function(s){if(s<e.length)try{t(e[s],(e,t)=>{!0!==e&&!1!==e||(t=e,e=null),e?i(e,null):(t&&n.push(t),process.nextTick(()=>{r(s+1)}))},s,e.length)}catch(e){i(e,null)}else i(null,n)};r(0)}}function i(e){!function(e){n.ok(e.length>1,"Need at least one error handler and one function to process sequence"),e.forEach(e=>{n.ok("function"==typeof e)});let t=e.splice(0,1)[0],i=null;r(e,(e,t)=>{let n=function(e,n){!0!==e&&!1!==e||(n=e,e=null),e?t(e,null):(i=n,t(null,null))};try{e.call(n,i)}catch(e){t(e,null)}},(e,n)=>{e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}Object.defineProperty(t,"__esModule",{value:!0}),t.parallel=function(e,t,n){
let r=new Array(e.length),i=new Array(e.length),s=!1,o=0;if(0===e.length)return n(null,[]);e.forEach((a,l)=>{t(a,(t,a)=>{if(t?(s=!0,r[l]=null,i[l]=t):(r[l]=a,i[l]=null),++o===e.length)return n(s?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[43],t([1,0,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n.getPathFromAmdModule(e,"paths"),i=e.__$__nodeRequire(r);t.getAppDataPath=i.getAppDataPath,t.getDefaultUserDataPath=i.getDefaultUserDataPath}),define(e[44],t([1,0,32]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new Promise((r,i)=>{n.open(e,"r",null,(e,s)=>{function o(e,t,o){n.close(s,n=>n?i(n):e&&"EISDIR"===e.code?i(e):r({buffer:t,bytesRead:o}))}function a(){n.read(s,l,c,t-c,null,(e,n)=>e?o(e,null,0):0===n?o(null,l,c):(c+=n)===t?o(null,l,c):a())}if(e)return i(e);const l=Buffer.allocUnsafe(t);let c=0;a()})})},t.readToMatchingString=function(e,t,r,i){
return new Promise((s,o)=>n.open(e,"r",null,(a,l)=>{function c(e,t){n.close(l,n=>n?o(n):e&&"EISDIR"===e.code?o(e):s(t))}function u(){n.read(l,h,d,r,null,(n,r)=>{if(n)return c(n,null);if(0===r)return c(null,null);d+=r;const s=h.indexOf(t);return s>=0?c(null,h.toString("utf8").substr(0,s)):d>=i?c(new Error(`Could not find ${t} in first ${i} bytes of ${e}`),null):u()})}if(a)return o(a);let h=Buffer.allocUnsafe(i),d=0;u()}))}}),define(e[46],t([1,0,44,99,3,100,96]),function(e,t,n,r,i,s,o){"use strict";function a(e){return r.decodeStream(l(e))}function l(e){return e===t.UTF8_with_bom||null===e?t.UTF8:e}function c(e,n){if(!e||n<2)return null;const r=e.readUInt8(0),i=e.readUInt8(1);if(254===r&&255===i)return t.UTF16be;if(255===r&&254===i)return t.UTF16le;if(n<3)return null;const s=e.readUInt8(2);return 239===r&&187===i&&191===s?t.UTF8:null}function u(t){return new Promise((t,n)=>{e(["jschardet"],t,n)}).then(e=>{e.Constants.MINIMUM_THRESHOLD=f;const n=e.detect(t);if(!n||!n.encoding)return null
;const r=n.encoding.toLowerCase();return 0<=p.indexOf(r)?null:h(n.encoding)})}function h(e){const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return g[t]||t}function d({buffer:e,bytesRead:n},r){let i=c(e,n),s=!1;if(i!==t.UTF16be&&i!==t.UTF16le&&e){let r=!0,o=!0,a=!1;for(let t=0;t<n&&t<m;t++){const n=t%2==1,i=0===e.readInt8(t);if(i&&(a=!0),r&&(n&&!i||!n&&i)&&(r=!1),o&&(n&&i||!n&&!i)&&(o=!1),i&&!r&&!o)break}a&&(r?i=t.UTF16le:o?i=t.UTF16be:s=!0)}return r&&!s&&!i&&e?u(e.slice(0,n)).then(e=>({seemsBinary:!1,encoding:e})):{seemsBinary:s,encoding:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.toDecodeStream=function(e,n){return n.minBytesRequiredForDetection||(n.minBytesRequiredForDetection=n.guessEncoding?b:v),n.overwriteEncoding||(n.overwriteEncoding=(e=>e||t.UTF8)),new Promise((t,r)=>{e.on("error",r),e.pipe(new class extends o.Writable{constructor(){super(...arguments),this._buffer=[],this._bytesBuffered=0}_write(e,t,r){
Buffer.isBuffer(e)||r(new Error("data must be a buffer")),this._decodeStream?this._decodeStream.write(e,r):(this._buffer.push(e),this._bytesBuffered+=e.length,this._decodeStreamConstruction?this._decodeStreamConstruction.then(e=>r(),e=>r(e)):"number"==typeof n.minBytesRequiredForDetection&&this._bytesBuffered>=n.minBytesRequiredForDetection?this._startDecodeStream(r):r())}_startDecodeStream(e){this._decodeStreamConstruction=Promise.resolve(d({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},n.guessEncoding)).then(r=>{n.overwriteEncoding&&(r.encoding=n.overwriteEncoding(r.encoding)),this._decodeStream=a(r.encoding);for(const e of this._buffer)this._decodeStream.write(e);e(),t({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))}})})},t.bomLength=function(e){switch(e){case t.UTF8:return 3;case t.UTF16be:case t.UTF16le:return 2}return 0},t.decode=function(e,t){
return r.decode(e,l(t))},t.encode=function(e,t,n){return r.encode(e,l(t),n)},t.encodingExists=function(e){return r.encodingExists(l(e))},t.decodeStream=a,t.encodeStream=function(e,t){return r.encodeStream(l(e),t)},t.detectEncodingByBOMFromBuffer=c,t.detectEncodingByBOM=function(e){return n.readExactlyByFile(e,3).then(({buffer:e,bytesRead:t})=>c(e,t))};const f=.2,p=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=u;const g={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}};const m=512,v=512,b=4096;t.detectEncodingFromBuffer=d;const y={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){let n;const o=process.env.VSCODE_CLI_ENCODING;return o?(e&&console.log(`Found VSCODE_CLI_ENCODING variable: ${o}`),n=Promise.resolve(o)):n=i.isLinux||i.isMacintosh?new Promise(t=>{e&&console.log('Running "locale charmap" to detect terminal encoding...'),s.exec("locale charmap",(e,n,r)=>t(n))}):new Promise(t=>{e&&console.log('Running "chcp" to detect terminal encoding...'),s.exec("chcp",(e,n,r)=>{if(n){const e=Object.keys(y);for(const r of e)if(n.indexOf(r)>=0)return t(y[r])}return t(void 0)})}),n.then(n=>{if(e&&console.log(`Detected raw terminal encoding: ${n}`),!n||"utf-8"===n.toLowerCase()||n.toLowerCase()===t.UTF8)return t.UTF8;const i=h(n);return r.encodingExists(i)?i:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[48],t([1,0,32,4,10,80,3,5,27,46,86,6]),function(e,t,n,r,i,s,o,a,l,c,u,h){"use strict";function d(e){
return o.isMacintosh?n.readdirSync(e).map(e=>s.normalizeNFC(e)):n.readdirSync(e)}function f(e,t){return o.isMacintosh?n.readdir(e,(e,n)=>e?t(e,[]):t(null,n.map(e=>s.normalizeNFC(e)))):n.readdir(e,t)}function p(e,t,i,s){const o=s||Object.create(null);n.stat(e,(s,a)=>{if(s)return i(s);if(!a.isDirectory())return function(e,t,r,i){const s=n.createReadStream(e),o=n.createWriteStream(t,{mode:r});let a=!1;const l=e=>{a||(a=!0,e?i(e):n.chmod(t,r,i))};s.once("error",e=>l(e)),o.once("error",e=>l(e)),o.once("close",()=>l()),s.pipe(o)}(e,t,511&a.mode,i);if(o[e])return i(null);o[e]=!0;const l=function(){f(e,(n,s)=>{E(s,(n,i)=>{p(r.join(e,n),r.join(t,n),e=>i(e,[]),o)},i)})};g(t,511&a.mode).then(l,l)})}function g(e,t,s){const o=()=>i.nfcall(n.mkdir,e,t).then(void 0,t=>"ENOENT"===t.code?Promise.reject(t):i.nfcall(n.stat,e).then(t=>t.isDirectory()?null:Promise.reject(new Error(`'${e}' exists and is not a directory.`)),e=>Promise.reject(t)))
;return e===r.dirname(e)?Promise.resolve(!0):o().then(void 0,n=>s&&s.isCancellationRequested?Promise.resolve(!1):"ENOENT"===n.code?g(r.dirname(e),t).then(o):Promise.reject(n))}function m(e,t){if("\\"===e||"/"===e)return t(new Error("Will not delete root!"));n.exists(e,i=>{i?n.lstat(e,(i,s)=>{if(i||!s)t(i);else if(!s.isDirectory()||s.isSymbolicLink()){const r=s.mode;128&r?n.unlink(e,t):n.chmod(e,128|r,r=>{r?t(r):n.unlink(e,t)})}else f(e,(i,s)=>{if(i||!s)t(i);else if(0===s.length)n.rmdir(e,t);else{let i=null,o=s.length;s.forEach(s=>{m(r.join(e,s),r=>{o--,r&&(i=i||r),0===o&&(i?t(i):n.rmdir(e,t))})})}})}):t(null)})}function v(e){try{const t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(d(e).forEach(t=>v(r.join(e,t))),n.rmdirSync(e)):n.unlinkSync(e)}catch(e){if("ENOENT"===e.code)return;throw e}}function b(e,t,r,i){r=y(r),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,r,i){r.encoding&&(t=c.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!C)return n.writeFile(e,t,{mode:r.mode,flag:r.flag},i)
;n.open(e,"string"==typeof r.flag?r.flag:"r",r.mode,(e,r)=>{if(e)return i(e);n.writeFile(r,t,e=>{if(e)return n.close(r,()=>i(e));n.fdatasync(r,e=>(e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),C=!1),n.close(r,e=>i(e))))})})}(e,t,r,i):function(e,t,r,i){let s=!1;const o=e=>{s||(s=!0,e?u?(a.once("close",()=>i(e)),a.destroy()):i(e):i())},a=n.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});let l,u;a.once("open",e=>{l=e,u=!0,r.encoding&&(t=t.pipe(c.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(a)}),t.once("error",e=>o(e)),a.once("error",e=>o(e)),a.once("finish",()=>{C&&u?n.fdatasync(l,e=>{e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),C=!1),a.destroy()}):a.destroy()}),a.once("close",()=>o())}(e,t,r,i)}function y(e){if(!e)return{mode:438,flag:"w"};const t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),
"string"!=typeof t.flag&&(t.flag="w"),t}function _(e){const t=r.dirname(e);if(e===t)return e;const n=(r.basename(e)||e).toLowerCase();try{const e=d(t).filter(e=>e.toLowerCase()===n);if(1===e.length){const n=_(t);if(n)return r.join(n,e[0])}else if(e.length>1){const i=e.indexOf(n);if(i>=0){const n=_(t);if(n)return r.join(n,e[i])}}}catch(e){}return null}function w(e){return a.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});const E=u.loop;t.readdirSync=d,t.readdir=f,t.statLink=function(e,t){n.lstat(e,(r,i)=>{r||i.isSymbolicLink()?n.stat(e,(e,n)=>{if(e)return t(e,null);t(null,{stat:n,isSymbolicLink:i&&i.isSymbolicLink()})}):t(null,{stat:i,isSymbolicLink:!1})})},t.copy=p,t.mkdirp=g,t.del=function(e,t,i,s){n.exists(e,o=>{if(!o)return i(null);n.stat(e,(o,c)=>{if(o||!c)return i(o);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return m(e,i);const u=r.join(t,l.generateUuid());n.rename(e,u,t=>{if(t)return m(e,i);i(null),m(u,e=>{e&&console.error(e),s&&s(e)})})})})},
t.delSync=v,t.mv=function(e,t,r){function i(e){if(e)return r(e);n.stat(t,(e,i)=>e?r(e):i.isDirectory()?r(null):void n.open(t,"a",null,(e,t)=>{if(e)return r(e);n.futimes(t,i.atime,new Date,e=>{if(e)return r(e);n.close(t,r)})}))}if(e===t)return r(null);n.rename(e,t,n=>n?n&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||a.endsWith(e,".")?p(e,t,t=>{if(t)return r(t);m(e,i)}):r(n):i(null))};let C=!0;t.writeFileAndFlush=b,t.writeFileAndFlushSync=function(e,t,r){if((r=y(r)).encoding&&(t=c.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!C)return n.writeFileSync(e,t,{mode:r.mode,flag:r.flag});const i=n.openSync(e,"string"==typeof r.flag?r.flag:"r",r.mode);try{n.writeFileSync(i,t);try{n.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),C=!1}}finally{n.closeSync(i)}},t.realcaseSync=_,t.realpathSync=function(e){try{return n.realpathSync(e)}catch(t){const r=w(e);return n.accessSync(r,n.constants.R_OK),r}},t.realpath=function(e,t){
return n.realpath(e,(r,i)=>{if(!r)return t(null,i);const s=w(e);return n.access(s,n.constants.R_OK,e=>t(e,s))})},t.watch=function(e,t,r){try{const i=n.watch(e);return i.on("change",(e,n)=>{let r;n&&(r=n.toString(),o.isMacintosh&&(r=s.normalizeNFC(r))),t(e,r)}),i.on("error",(t,n)=>r(`Failed to watch ${e} for changes (${t}, ${n})`)),h.toDisposable(()=>{i.removeAllListeners(),i.close()})}catch(t){n.exists(e,n=>{n&&r(`Failed to watch ${e} for changes (${t.toString()})`)})}return h.Disposable.None},t.sanitizeFilePath=function(e,t){return o.isWindows&&a.endsWith(e,":")&&(e+=r.sep),r.isAbsolute(e)||(e=r.join(t,e)),e=r.normalize(e),o.isWindows?(e=a.rtrim(e,r.sep),a.endsWith(e,":")&&(e+=r.sep)):(e=a.rtrim(e,r.sep))||(e=r.sep),e}}),define(e[49],t([1,0,48,4,10,32,19,3,2]),function(e,t,n,r,i,s,o,a,l){"use strict";function c(e){return i.nfcall(n.readdir,e)}function u(e){return d(e).then(t=>t.isDirectory()&&!t.isSymbolicLink()?c(e).then(t=>Promise.all(t.map(t=>u(r.join(e,t))))).then(()=>f(e)):p(e),e=>{
if("ENOENT"!==e.code)return Promise.reject(e)})}function h(e){return i.nfcall(s.stat,e)}function d(e){return i.nfcall(s.lstat,e)}function f(e){return i.nfcall(s.rmdir,e)}function p(e){return i.nfcall(s.unlink,e)}function g(e,t,r){return function(e){let t=b[e];if(!t){t=new i.Queue,b[e]=t;l.Event.once(t.onFinished)(()=>{delete b[e],t.dispose()})}return t}(function(e){let t=e;(a.isWindows||a.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(()=>i.nfcall(n.writeFileAndFlush,e,t,r))}function m(e){return h(e).then(e=>e.isDirectory(),()=>!1)}function v(e,t=(y||(y=o.tmpdir()),y)){return i.nfcall(n.del,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=c,t.exists=function(e){return new Promise(t=>s.exists(e,t))},t.chmod=function(e,t){return i.nfcall(s.chmod,e,t)},t.mkdirp=n.mkdirp,t.rimraf=u,t.realpath=function(e){return i.nfcall(n.realpath,e)},t.stat=h,t.statLink=function(e){return i.nfcall(n.statLink,e)},t.lstat=d,t.rename=function(e,t){return i.nfcall(s.rename,e,t)},
t.renameIgnoreError=function(e,t){return new Promise(n=>{s.rename(e,t,()=>n())})},t.rmdir=f,t.unlink=p,t.symlink=function(e,t,n){return i.nfcall(s.symlink,e,t,n)},t.readlink=function(e){return i.nfcall(s.readlink,e)},t.truncate=function(e,t){return i.nfcall(s.truncate,e,t)},t.readFile=function(e,t){return i.nfcall(s.readFile,e,t)};const b=Object.create(null);t.writeFile=g,t.readDirsInDir=function(e){return c(e).then(t=>Promise.all(t.map(t=>m(r.join(e,t)))).then(e=>t.filter((t,n)=>e[n])))},t.dirExists=m,t.fileExists=function(e){return h(e).then(e=>e.isFile(),()=>!1)};let y=null;t.del=v,t.whenDeleted=function(e){return new Promise(t=>{let n=!1;const r=setInterval(()=>{n||(n=!0,s.exists(e,e=>{n=!1,e||(clearInterval(r),t(void 0))}))},1e3)})},t.copy=function(e,t){return i.nfcall(n.copy,e,t)}}),define(e[20],t([1,0,6,2,10,31,8]),function(e,t,r,i,s,o,a){"use strict";function l(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}function c(e){return e.read(4).readUInt32BE(0)}function u(e,t){
if(void 0===t)e.write(v.Undefined);else if("string"==typeof t){const n=Buffer.from(t);e.write(v.String),e.write(l(n.length)),e.write(n)}else if(Buffer.isBuffer(t))e.write(v.Buffer),e.write(l(t.length)),e.write(t);else if(Array.isArray(t)){e.write(v.Array),e.write(l(t.length));for(const n of t)u(e,n)}else{const n=Buffer.from(JSON.stringify(t));e.write(v.Object),e.write(l(n.length)),e.write(n)}}function h(e){switch(e.read(1).readUInt8(0)){case m.Undefined:return;case m.String:return e.read(c(e)).toString();case m.Buffer:return e.read(c(e));case m.Array:{const t=c(e),n=[];for(let r=0;r<t;r++)n.push(h(e));return n}case m.Object:return JSON.parse(e.read(c(e)).toString())}}function d(e){return{call:(t,n,r)=>e.then(e=>e.call(t,n,r)),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 f;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(f||(f={}));class p{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.length,t}}class g{constructor(){this.buffers=[]}get buffer(){return Buffer.concat(this.buffers)}write(e){this.buffers.push(e)}}var m;!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.Array=3]="Array",e[e.Object=4]="Object"}(m||(m={}));const v={Undefined:Buffer.alloc(1,m.Undefined),String:Buffer.alloc(1,m.String),Buffer:Buffer.alloc(1,m.Buffer),Array:Buffer.alloc(1,m.Array),Object:Buffer.alloc(1,m.Object)};class b{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 g;u(n,e),u(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onRawMessage(e){const t=new p(e),n=h(t),r=h(t),i=n[0];switch(i){case 100:return this.onPromise({type:i,id:n[1],channelName:n[2],name:n[3],arg:r});case 102:return this.onEventListen({type:i,id:n[1],channelName:n[2],name:n[3],arg:r});case 101:case 103:return this.disposeActiveRequest({type:i,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,r=t.listen(this.ctx,e.name,e.arg)(e=>this.sendResponse({id:n,data:e,type:204}));this.activeRequests.set(e.id,r)}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=b;class y{constructor(e){this.protocol=e,this.state=f.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,r,i)=>t.requestPromise(e,n,r,i),listen:(n,r)=>t.requestEvent(e,n,r)}}requestPromise(e,t,n,i=o.CancellationToken.None){const l=this.lastRequestId++,c={id:l,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(l,n=>{switch(n.type){case 201:this.handlers.delete(l),e(n.data);break;case 202:this.handlers.delete(l);const r=new Error(n.data.message);r.stack=n.data.stack,r.name=n.data.name,t(r);break;case 203:this.handlers.delete(l),t(n.data)}}),this.sendRequest(c)});const o=()=>{n?(n.cancel(),n=null):this.sendRequest({id:l,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 l=new i.Emitter({onFirstListenerAdd:()=>{(a=s.createCancelablePromise(e=>this.whenInitialized())).then(()=>{a=null,this.activeRequests.add(l),this.sendRequest(o)})},onLastListenerRemove:()=>{a?(a.cancel(),a=null):(this.activeRequests.delete(l),this.sendRequest({id:r,type:103}))}});return this.handlers.set(r,e=>l.fire(e.data)),l.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 g;u(n,e),u(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onBuffer(e){const t=new p(e),n=h(t),r=h(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:r
})}}onResponse(e){if(200===e.type)return this.state=f.Idle,void this._onDidInitialize.fire();const t=this.handlers.get(e.id);t&&t(e)}whenInitialized(){return this.state===f.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=y;class _{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 r=h(new p(n)),i=new b(e,r),s=new y(e);this.channels.forEach((e,t)=>i.registerChannel(t,e));const o={channelClient:s,ctx:r};this._connections.add(o),this._onDidChangeConnections.fire(o),t(()=>{i.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:(r,i,s)=>d(t.routeCall(n,r,i).then(t=>t.channelClient.getChannel(e))).call(r,i,s),listen:(r,i)=>d(t.routeEvent(n,r,i).then(t=>t.channelClient.getChannel(e))).listen(r,i)}}registerChannel(e,t){this.channels.set(e,t)}dispose(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()}}t.IPCServer=_;class w{constructor(e,t){const n=new g;u(n,t),e.send(n.buffer),this.channelClient=new y(e),this.channelServer=new b(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=w,t.getDelayedChannel=d,t.getNextTickChannel=function(e){let t=!1;return{call:(n,r,i)=>t?e.call(n,r,i):s.timeout(0).then(()=>t=!0).then(()=>e.call(n,r,i)),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 E{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=E}),define(e[52],t([1,0,6,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t){this.sender=e,this._onMessage=new r.Emitter,t(e=>this._onMessage.fire(Buffer.from(e,"base64")))}get onMessage(){return this._onMessage.event}send(e){try{this.sender.send("ipc:message",e.toString("base64"))}catch(e){}}dispose(){this.sender.send("ipc:disconnect",null),this.listener=n.dispose(this.listener)}}t.Protocol=i}),define(e[53],t([1,0,2,20,52,54]),function(e,t,n,r,i,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class o extends r.IPCClient{static createProtocol(){const e=n.Event.fromNodeEventEmitter(s.ipcRenderer,"ipc:message",(e,t)=>t)
;return s.ipcRenderer.send("ipc:hello"),new i.Protocol(s.ipcRenderer,e)}constructor(e){const t=o.createProtocol();super(t,e),this.protocol=t}dispose(){this.protocol.dispose()}}t.Client=o}),define(e[55],t([1,0,97,2,20,4,19,27,10]),function(e,t,n,r,i,s,o,a,l){"use strict";function c(e){let t,n=!1,i=!1,s=[];const o=()=>{if(!i){for(i=!0;n&&s.length>0;)t.fire(s.shift());i=!1}};return e(e=>{s.push(e),o()}),(t=new r.Emitter({onFirstListenerAdd:()=>{n=!0,process.nextTick(o)},onLastListenerRemove:()=>{n=!1}})).event}Object.defineProperty(t,"__esModule",{value:!0}),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 u{constructor(e,t){this._socket=e,this._onMessage=new r.Emitter,this.onMessage=this._onMessage.event,this._onClose=new r.Emitter,this.onClose=this._onClose.event,this._writeBuffer=new class{constructor(){this._data=[],this._totalLength=0}add(e,t){const n=0===this._totalLength
;return this._data.push(e,t),this._totalLength+=e.length+t.length,n}take(){const e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e}},this._isDisposed=!1,this._chunks=[];let n=0;const i={readHead:!0,bodyLen:-1},s=e=>{for(this._chunks.push(e),n+=e.length;n>0;){if(i.readHead){if(!(n>=u._headerLen))break;{const e=Buffer.concat(this._chunks);i.bodyLen=e.readUInt32BE(0),i.readHead=!1;const t=e.slice(u._headerLen);n=t.length,this._chunks=[t]}}if(!i.readHead){if(!(n>=i.bodyLen))break;{const e=Buffer.concat(this._chunks),t=e.slice(0,i.bodyLen),r=e.slice(i.bodyLen);if(n=r.length,this._chunks=[r],i.bodyLen=-1,i.readHead=!0,this._onMessage.fire(t),this._isDisposed)break}}}},o=()=>{if(t&&t.length>0){let e=t;t=void 0,s(e)}};this._firstChunkTimer=new l.TimeoutTimer,this._firstChunkTimer.setIfNotSet(()=>{o()},0),this._socketDataListener=(e=>{o(),s(e)}),e.on("data",this._socketDataListener),this._socketEndListener=(()=>{o()}),e.on("end",this._socketEndListener),
this._socketCloseListener=(()=>{this._onClose.fire()}),e.once("close",this._socketCloseListener)}dispose(){this._isDisposed=!0,this._firstChunkTimer.dispose(),this._socket.removeListener("data",this._socketDataListener),this._socket.removeListener("end",this._socketEndListener),this._socket.removeListener("close",this._socketCloseListener)}end(){this._socket.end()}getBuffer(){return Buffer.concat(this._chunks)}send(e){const t=Buffer.allocUnsafe(u._headerLen);t.writeUInt32BE(e.length,0,!0),this._writeSoon(t,e)}_writeSoon(e,t){this._writeBuffer.add(e,t)&&setImmediate(()=>{this._socket.destroyed||this._socket.write(this._writeBuffer.take())})}}u._headerLen=4,t.Protocol=u;class h extends i.IPCServer{static toClientConnectionEvent(e){const t=r.Event.fromNodeEventEmitter(e,"connection");return r.Event.map(t,e=>({protocol:new u(e),onDidClientDisconnect:r.Event.once(r.Event.fromNodeEventEmitter(e,"close"))}))}constructor(e){super(h.toClientConnectionEvent(e)),this.server=e}dispose(){super.dispose(),
this.server&&(this.server.close(),this.server=null)}}t.Server=h;class d extends i.IPCClient{constructor(e,t){super(e,t),this.protocol=e}static fromSocket(e,t){return new d(new u(e),t)}get onClose(){return this.protocol.onClose}dispose(){super.dispose(),this.protocol.end()}}t.Client=d,t.serve=function(e){return new Promise((t,r)=>{const i=n.createServer();i.on("error",r),i.listen(e,()=>{i.removeListener("error",r),t(new h(i))})})},t.connect=function(e,t){return new Promise((r,i)=>{const s=n.createConnection(e,()=>{s.removeListener("error",i),r(d.fromSocket(s,t))});s.once("error",i)})};class f{constructor(e){this._actual=e,this.onMessage=c(this._actual.onMessage),this.onClose=c(this._actual.onClose)}send(e){this._actual.send(e)}end(){this._actual.end()}}t.BufferedProtocol=f}),define(e[56],t([1,0,16]),function(e,t,n){"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\n${this.getInfos()}\n\x3c!-- generated by issue reporter --\x3e`}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 Object.keys(this._data.systemInfo).forEach(t=>{const n="object"==typeof this._data.systemInfo[t]?Object.keys(this._data.systemInfo[t]).map(e=>`${e}: ${this._data.systemInfo[t][e]}`).join("<br>"):this._data.systemInfo[t]
;e+=`|${t}|${n}|\n`}),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[57],t([1,0,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[58],t([28]),{}),define(e[60],t([1,0,22,40,85,16,2,6,81,58]),function(e,t,n,r,i,s,o,a,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const c={buttonBackground:i.Color.fromHex("#0E639C"),buttonHoverBackground:i.Color.fromHex("#006BB3"),buttonForeground:i.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,c,!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),l.Gesture.addTarget(this._element),[n.EventType.CLICK,l.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 r.StandardKeyboardEvent(e);let i=!1;this.enabled&&t.equals(3)||t.equals(10)?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&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,i){for(let s=0;s<t;s++){const o=this._register(new u(e,i));this._buttons.push(o),t>1&&this._register(n.addDisposableListener(o.element,n.EventType.KEY_DOWN,e=>{const t=new r.StandardKeyboardEvent(e);let i,o=!0;t.equals(15)?i=s>0?s-1:this._buttons.length-1:t.equals(17)?i=s===this._buttons.length-1?0:s+1:o=!1,o&&"number"==typeof i&&(this._buttons[i].focus(),n.EventHelper.stop(e,!0))}))}}}t.ButtonGroup=h}),define(e[61],t([28]),{}),define(e[62],t([28]),{}),define(e[63],t([1,0,5,61,62]),function(e,t,n){"use strict";function r(e){return function(e){return e.replace(/\$\(((.+?)(~(.*?))?)\)/g,(e,t,n,r,i)=>`<span class="octicon octicon-${n} ${i?`octicon-animation-${i}`:""}"></span>`)}(n.escape(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.renderOcticons=r;class i{constructor(e){this._container=e}set text(e){this._container.innerHTML=r(e||"")}set title(e){
this._container.title=e}}t.OcticonLabel=i}),define(e[64],t([28]),{}),define(e[65],t([26,14]),function(e,t){return e.create("vs/code/electron-browser/issue/issueReporterPage",t)}),define(e[68],t([1,0,5,65]),function(e,t,n,r){"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(r.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(r.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(r.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(r.localize(3,null)).replace("{0}",`<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${n.escape(r.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(r.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(r.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(r.localize(7,null))}" required>\n\t\t\t<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">${n.escape(r.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(r.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(r.localize(10,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(r.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(r.localize(12,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(r.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(r.localize(14,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(r.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(r.localize(16,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(r.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(r.localize(18,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(r.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(r.localize(20,null)).replace("{0}",`<a href="#" class="showInfo">${n.escape(r.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[69],t([26,14]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[70],t([26,14]),function(e,t){return e.create("vs/platform/telemetry/common/telemetryService",t)}),define(e[71],t([26,14]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)}),define(e[72],t([1,0]),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[73],t([1,0,11,36]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e){this._hashFn=e,this._nodes=Object.create(null)}roots(){const e=[];return r.forEach(this._nodes,t=>{n.isEmptyObject(t.value.outgoing)&&e.push(t.value)}),e}insertEdge(e,t){const n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=r,r.incoming[this._hashFn(e)]=n}
removeNode(e){const t=this._hashFn(e);delete this._nodes[t],r.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 r.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=i}),define(e[9],t([1,0]),function(e,t){"use strict";function n(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function r(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,r,i){
if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,i,!1)};return t.toString=(()=>e),i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,i,!0)}}}),define(e[30],t([1,0]),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([1,0,8,11,73,72,9,30]),function(e,t,n,r,i,s,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class l{constructor(e=new a.ServiceCollection,t=!1,n){this._services=e,this._strict=t,this._parent=n,this._services.set(o.IInstantiationService,this)}createChild(e){return new l(e,this._strict,this)}invokeFunction(e,...t){let r=u.traceInvocation(e),i=!1;try{const s={get:(e,t)=>{if(i)throw n.illegalState("service accessor is only valid during the invocation of its target method");const s=this._getOrCreateServiceInstance(e,r);if(!s&&t!==o.optional)throw new Error(`[invokeFunction] unknown service '${e}'`);return s}};return e.apply(void 0,[s,...t])}finally{i=!0,r.stop()}}createInstance(e,...t){let n,r;return e instanceof s.SyncDescriptor?(n=u.traceCreation(e.ctor),r=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=u.traceCreation(e),r=this._createInstance(e,t,n)),n.stop(),r}_createInstance(e,t=[],n){
let i=o._util.getServiceDependencies(e).sort((e,t)=>e.index-t.index),s=[];for(const t of i){let r=this._getOrCreateServiceInstance(t.id,n);if(!r&&this._strict&&!t.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);s.push(r)}let a=i.length>0?i[0].index:t.length;if(t.length!==a){console.warn(`[createInstance] First service dependency of ${e.name} at position ${a+1} conflicts with ${t.length} static arguments`);let n=a-t.length;t=n>0?t.concat(new Array(n)):t.slice(0,a)}return r.create.apply(null,[e].concat(t,s))}_setServiceInstance(e,t){if(this._services.get(e)instanceof s.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 s.SyncDescriptor?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_createAndCacheServiceInstance(e,t,n){function r(){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 l=0;const c=[{id:e,desc:t,_trace:n}];for(;c.length;){const t=c.pop();a.lookupOrInsertNode(t),l++>100&&r();let n=o._util.getServiceDependencies(t.desc.ctor);for(let r of n){let n=this._getServiceInstanceOrDescriptor(r.id);if(n||r.optional||console.warn(`[createInstance] ${e} depends on ${r.id} which is NOT registered.`),n instanceof s.SyncDescriptor){const e={id:r.id,desc:n,_trace:t._trace.branch(r.id,!0)};a.insertEdge(t,e),c.push(e)}}}for(;;){let e=a.roots();if(0===e.length){a.isEmpty()||r();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=[],r,i){if(this._services.get(e)instanceof s.SyncDescriptor)return this._createServiceInstance(t,n,r,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,r,i);throw new Error("illegalState - creating UNKNOWN service instance")}_createServiceInstance(e,t=[],n,r){return this._createInstance(e,t,r)}}t.InstantiationService=l;var c;!function(e){e[e.Creation=0]="Creation",e[e.Invocation=1]="Invocation",e[e.Branch=2]="Branch"}(c||(c={}));class u{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return u._None}static traceCreation(e){return u._None}branch(e,t){let n=new u(2,e.toString());return this._dep.push([e,t,n]),n}stop(){function e(t,r){let i=[],s=new Array(t+1).join("\t");for(const[o,a,l]of r._dep)if(a&&l){n=!0,i.push(`${s}CREATES -> ${o}`);let r=e(t+1,l);r&&i.push(r)}else i.push(`${s}uses -> ${o}`);return i.join("\n")}let t=Date.now()-this._start
;u._totals+=t;let n=!1,r=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,`${e(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${u._totals.toFixed(2)}ms)`];(t>2||n)&&console.log(r.join("\n"))}}u._None=new class extends u{constructor(){super(-1,null)}stop(){}branch(){return this}},u._totals=0}),define(e[12],t([1,0,9,6,3,2]),function(e,t,n,r,i,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 l extends r.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=l;class c extends l{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e),this.useColors=!i.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=c;class u extends l{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 l{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 r.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[78],t([1,0,12,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e){this.service=e,this.onDidChangeLogLevel=r.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":this.service.setLevel(n)}throw new Error(`Call not found: ${t}`)}}t.LogLevelSetterChannel=i;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[79],t([1,0,4,12]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSpdLogService=function(t,s,o){try{const r=e.__$__nodeRequire("spdlog");r.setAsyncMode(8192,500);const a=n.join(o,`${t}.log`),l=new r.RotatingLogger(t,a,5242880,6);return l.setLevel(0),new i(l,s)}catch(e){console.error(e)}return new r.NullLogService},t.createRotatingLogger=function(t,n,r,i){return new(e.__$__nodeRequire("spdlog").RotatingLogger)(t,n,r,i)};class i extends r.AbstractLogService{constructor(e,t=r.LogLevel.Error){super(),this.logger=e,this.setLevel(t)}trace(){
this.getLevel()<=r.LogLevel.Trace&&this.logger.trace(this.format(arguments))}debug(){this.getLevel()<=r.LogLevel.Debug&&this.logger.debug(this.format(arguments))}info(){this.getLevel()<=r.LogLevel.Info&&this.logger.info(this.format(arguments))}warn(){this.getLevel()<=r.LogLevel.Warning&&this.logger.warn(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.logger.error(this.format(t))}else this.logger.error(this.format(arguments))}}critical(){this.getLevel()<=r.LogLevel.Critical&&this.logger.critical(this.format(arguments))}dispose(){this.logger.drop()}format(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if("object"==typeof r)try{r=JSON.stringify(r)}catch(e){}t+=(n>0?" ":"")+r}return t}}}),define(e[38],t([1,0,4,15]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n.dirname(r.getPathFromAmdModule(e,"")),s=n.join(i,"package.json")
;t.default=e.__$__nodeRequire(s)}),define(e[39],t([1,0,4,15]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n.dirname(r.getPathFromAmdModule(e,"")),s=n.join(i,"product.json"),o=e.__$__nodeRequire(s);process.env.VSCODE_DEV&&(o.nameShort+=" Dev",o.nameLong+=" Dev",o.dataFolderName+="-dev"),t.default=o}),define(e[82],t([1,0,94,43,19,4,23,38,39,47,3,15,7]),function(e,t,n,i,s,o,a,l,c,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")}-${l.default.version}-${t}-sock`}(e,t):function(e,t){if(_){const r=n.createHash("md5").update(e).digest("hex").substr(0,8);return o.join(_,`vscode-${r}-${l.default.version}-${t}.sock`)}return o.join(e,`${l.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,r,i){
const s=t||e,o=Number(s)||(r?null:n);return{port:o,break:!!o&&Boolean(!!t),debugId:i}}function b(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 y(e,t){return b(e["user-data-dir"],t)||o.resolve(i.getDefaultUserDataPath(t.platform))}Object.defineProperty(t,"__esModule",{value:!0});const _=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",`${c.default.applicationName}.cmd`):o.join(t,"scripts","code-cli.bat"):h.isLinux?n?o.join(o.dirname(e),"bin",`${c.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"):y(this._args,process)}get appNameLong(){return c.default.nameLong}get appQuality(){return c.default.quality}get appSettingsHome(){return o.join(this.userDataPath,"User")}get appSettingsPath(){return o.join(this.appSettingsHome,"settings.json")}get globalStorageHome(){return o.join(this.appSettingsHome,"globalStorage")}get workspaceStorageHome(){return o.join(this.appSettingsHome,"workspaceStorage")}get settingsSearchBuildId(){return c.default.settingsSearchBuildId}get settingsSearchUrl(){return c.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=b(this._args["builtin-extensions-dir"],process);return t||o.normalize(o.join(d.getPathFromAmdModule(e,""),"..","extensions"))}get extensionsPath(){const e=b(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,c.default.dataFolderName,"extensions")}get extensionDevelopmentLocationURI(){const e=this._args.extensionDevelopmentPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?f.URI.parse(e):f.URI.file(o.normalize(e))}
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"]}}r([a.memoize],w.prototype,"appRoot",null),r([a.memoize],w.prototype,"cliPath",null),r([a.memoize],w.prototype,"userHome",null),r([a.memoize],w.prototype,"userDataPath",null),r([a.memoize],w.prototype,"appSettingsHome",null),r([a.memoize],w.prototype,"appSettingsPath",null),r([a.memoize],w.prototype,"globalStorageHome",null),r([a.memoize],w.prototype,"workspaceStorageHome",null),r([a.memoize],w.prototype,"settingsSearchBuildId",null),r([a.memoize],w.prototype,"settingsSearchUrl",null),r([a.memoize],w.prototype,"appKeybindingsPath",null),r([a.memoize],w.prototype,"isExtensionDevelopment",null),r([a.memoize],w.prototype,"backupHome",null),
r([a.memoize],w.prototype,"backupWorkspacesPath",null),r([a.memoize],w.prototype,"untitledWorkspacesHome",null),r([a.memoize],w.prototype,"installSourcePath",null),r([a.memoize],w.prototype,"builtinExtensionsPath",null),r([a.memoize],w.prototype,"extensionsPath",null),r([a.memoize],w.prototype,"extensionDevelopmentLocationURI",null),r([a.memoize],w.prototype,"extensionTestsLocationURI",null),r([a.memoize],w.prototype,"debugExtensionHost",null),r([a.memoize],w.prototype,"debugSearch",null),r([a.memoize],w.prototype,"mainIPCHandle",null),r([a.memoize],w.prototype,"sharedIPCHandle",null),r([a.memoize],w.prototype,"nodeCachedDataDir",null),t.EnvironmentService=w,t.parseExtensionHostPort=g,t.parseSearchPort=m,t.parseDebugPort=v,t.parseUserDataDir=y}),define(e[13],t([1,0,11,66]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(){this.data={}}add(e,t){r.ok(n.isString(e)),r.ok(n.isObject(t)),
r.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 i}),define(e[84],t([1,0,13,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};class i{constructor(){this._onDidChangeSchema=new r.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 i;n.Registry.add(t.Extensions.JSONContribution,s)}),define(e[41],t([1,0,69,2,13,11,5,84]),function(e,t,n,r,i,s,o,a){"use strict";function l(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 c(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.WINDOW=2]="WINDOW",e[e.RESOURCE=3]="RESOURCE"}(t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";const u=i.Registry.as(a.Extensions.JSONContribution);class h{constructor(){this.overrideIdentifiers=[],this._onDidSchemaChange=new r.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidUpdateConfiguration=new r.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=[],r=e=>{
if(e.properties)for(const r in e.properties)switch(n.push(r),delete this.configurationProperties[r],delete this.editorConfigurationSchema.properties[r],delete t.allSettings.properties[r],e.properties[r].scope){case 1:delete t.applicationSettings.properties[r];break;case 2:delete t.windowSettings.properties[r];break;case 3:delete t.resourceSettings.properties[r]}e.allOf&&e.allOf.forEach(e=>r(e))};for(const t of e){r(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 r=[];for(const i of e)for(const e in i.defaults){const s=i.defaults[e];if(t.OVERRIDE_PROPERTY_PATTERN.test(e)&&"object"==typeof s){const i={type:"object",default:s,description:n.localize(1,null,e),$ref:t.editorConfigurationSchemaId};t.allSettings.properties[e]=i,
this.defaultOverridesConfigurationNode.properties[e]=i,this.configurationProperties[e]=i,r.push(e)}}this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(r)}deregisterDefaultConfigurations(e){const n=[];for(const r of e)for(const e in r.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,r=2,i=!1){r=s.isUndefinedOrNull(e.scope)?r:e.scope,i=e.overridable||i;let o=[],a=e.properties;if(a)for(let e in a){let u;if(n&&(u=c(e))){console.warn(u),delete a[e];continue}let h=a[e],d=h.default;s.isUndefined(d)&&(h.default=l(h.type)),i&&(h.overridable=!0),
t.OVERRIDE_PROPERTY_PATTERN.test(e)?h.scope=void 0:h.scope=s.isUndefinedOrNull(h.scope)?r: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,r,i));return o}getConfigurations(){return this.configurationContributors}getConfigurationProperties(){return this.configurationProperties}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}registerJSONConfiguration(e){function n(e){let r=e.properties;if(r)for(const e in r)switch(t.allSettings.properties[e]=r[e],r[e].scope){case 1:t.applicationSettings.properties[e]=r[e];break;case 2:t.windowSettings.properties[e]=r[e];break;case 3:t.resourceSettings.properties[e]=r[e]}let i=e.allOf;i&&i.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.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.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=l;const g=new h;i.Registry.add(t.Extensions.Configuration,g),t.validateProperty=c,t.getScopes=function(){const e={},t=g.getConfigurationProperties();for(const n of Object.keys(t))e[n]=t[n].scope;return e.launch=3,e.task=3,e}}),define(e[42],t([1,0,16,11,7,13,9,41]),function(e,t,n,r,i,s,o,a){"use strict";function l(e,t){const n=Object.create(null);for(let r in e)c(n,r,e[r],t);return n}function c(e,t,n,r){const i=t.split("."),s=i.pop();let o=e;for(let e=0;e<i.length;e++){let n=i[e],s=o[n];switch(typeof s){case"undefined":s=o[n]=Object.create(null);break
;case"object":break;default:return void r(`Ignoring ${t} as ${i.slice(0,e+1).join(".")} is ${JSON.stringify(s)}`)}o=s}"object"==typeof o?o[s]=n:r(`Ignoring ${t} as ${i.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 r=e[n];"object"!=typeof r||Array.isArray(r)||(u(r,t),0===Object.keys(r).length&&delete e[n])}}else delete e[n]}function h(e,t,n){const r=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===r?n:r}function d(e,t,n){Object.keys(t).forEach(i=>{i in e?r.isObject(e[i])&&r.isObject(t[i])?d(e[i],t[i],n):n&&(e[i]=t[i]):e[i]=t[i]})}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 i.URI)};!function(e){e[e.USER=1]="USER",e[e.WORKSPACE=2]="WORKSPACE",e[e.WORKSPACE_FOLDER=3]="WORKSPACE_FOLDER",e[e.DEFAULT=4]="DEFAULT",e[e.MEMORY=5]="MEMORY"}(t.ConfigurationTarget||(t.ConfigurationTarget={})),t.ConfigurationTargetToString=function(e){switch(e){case 1:return"USER";case 2:return"WORKSPACE";case 3:return"WORKSPACE_FOLDER";case 4:return"DEFAULT";case 5:return"MEMORY"}},t.compare=function(e,t){const r=t.keys.filter(t=>-1===e.keys.indexOf(t)),i=e.keys.filter(e=>-1===t.keys.indexOf(e)),s=[];for(const r of e.keys){const i=h(e.contents,r),o=h(t.contents,r);n.equals(i,o)||s.push(r)}return{added:r,removed:i,updated:s}},t.toOverrides=function(e,t){const n=[],r=s.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(const i of Object.keys(e))if(a.OVERRIDE_PROPERTY_PATTERN.test(i)){const s={};for(const t in e[i])r[t]&&r[t].overridable&&(s[t]=e[i][t])
;n.push({identifiers:[f(i).trim()],contents:l(s,t)})}return n},t.toValuesTree=l,t.addToValueTree=c,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)c(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 r=e.inspect(t),i=e.inspect(n);return void 0!==r.user||void 0!==r.workspace||void 0!==r.workspaceFolder?r.value:void 0!==i.user||void 0!==i.workspace||void 0!==i.workspaceFolder?i.value:r.default}});var i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}}
;define(e[87],t([1,0,70,5,9,42,41,6,16,13]),function(e,t,n,s,o,a,l,c,u,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let d=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._cleanupPatterns=[/file:\/\/\/.*?\/resources\/app\//gi];for(let e of this._piiPaths)this._cleanupPatterns.push(new RegExp(s.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})}))}_updateUserOptIn(){const e=this._configurationService.getValue(f);this._userOptIn=e?e.enableTelemetry:this._userOptIn}get isOptedIn(){
return this._userOptIn}getTelemetryInfo(){return this._commonProperties.then(e=>{return{sessionId:e.sessionID,instanceId:e["common.instanceId"],machineId:e["common.machineId"]}})}dispose(){this._disposables=c.dispose(this._disposables)}publicLog(e,t,n){return this._userOptIn?this._commonProperties.then(r=>{t=u.mixin(t,r),t=u.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 r=n.exec(e);if(!r)break;t.push([r.index,n.lastIndex])}const r=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,i=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let s=0;for(n="";;){const o=i.exec(e);if(!o)break;!r.test(o[0])&&t.every(([e,t])=>o.index<e||o.index>=t)&&(n+=e.substring(s,o.index)+"<REDACTED: user-file-path>",s=i.lastIndex)}s<e.length&&(n+=e.substr(s))}for(let e of this._cleanupPatterns)n=n.replace(e,"")
;return n}};d.IDLE_START_EVENT_NAME="UserIdleStart",d.IDLE_STOP_EVENT_NAME="UserIdleStop",d=r([i(1,o.optional(a.IConfigurationService))],d),t.TelemetryService=d;const f="telemetry";h.Registry.as(l.Extensions.Configuration).registerConfiguration({id:f,order:110,type:"object",title:n.localize(0,null),properties:{"telemetry.enableTelemetry":{type:"boolean",description:n.localize(1,null),default:!0,tags:["usesOnlineServices"]}}})}),define(e[88],t([1,0,77,4,42,12]),function(e,t,n,s,o,a){"use strict";function l(e,t){return t.onDidChangeConfiguration(t=>{4!==t.source&&(e.publicLog("updateConfiguration",{configurationSource:o.ConfigurationTargetToString(t.source),configurationKeys:function(e){if(!e)return[];const t=[];return c(t,"",e),t}(t.sourceConfig)}),e.publicLog("updateConfigurationValues",{configurationSource:o.ConfigurationTargetToString(t.source),configurationValues:function(e,t){if(!e)return[];return t.reduce((t,n)=>{const r=n.split(".").reduce((e,t)=>e&&"object"==typeof e?e[t]:void 0,e)
;return void 0!==r&&t.push({[n]:r}),t},[])}(t.sourceConfig,h)}))})}function c(e,t,n){n&&"object"==typeof n&&!Array.isArray(n)?Object.keys(n).forEach(r=>c(e,t?`${t}.${r}`:r,n[r])):e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryService=new class{publicLog(e,t){return Promise.resolve(void 0)}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 u=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)}};u=r([i(0,a.ILogService)],u),t.LogAppender=u,
t.telemetryURIDescriptor=function(e,t){const r=e&&e.fsPath;return r?{mimeType:n.guessMimeTypes(r).join(", "),scheme:e.scheme,ext:s.extname(r),path:t(r)}:{}}
;const h=["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=l,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[89],t([1,0,3,19,27,49]),function(e,t,n,r,i,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCommonProperties=function(e,t,o,a){const l=Object.create(null);l["common.machineId"]=o,l.sessionID=i.generateUuid()+Date.now(),l.commitHash=e,l.version=t,l["common.platformVersion"]=(r.release()||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),l["common.platform"]=n.PlatformToString(n.platform),l["common.nodePlatform"]=process.platform,l["common.nodeArch"]=process.arch;let c=0;const u=Date.now();return Object.defineProperties(l,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-u,enumerable:!0},"common.sequence":{get:()=>c++,enumerable:!0}}),
s.readFile(a,"utf8").then(e=>(l["common.source"]=e.slice(0,30),l),e=>l)}}),define(e[90],t([1,0]),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:r}){return this.appender.log(n,r),Promise.resolve(null)}}t.TelemetryAppenderChannel=n;class r{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=r}),define(e[91],t([1,0,9,2,3,6]),function(e,t,n,s,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWindowsService=n.createDecorator("windowsService"),t.IWindowService=n.createDecorator("windowService"),t.getTitleBarStyle=function(e,t,n=t.isExtensionDevelopment){const r=e.getValue("window"),i=!t.isBuilt||n;if(o.isMacintosh&&i)return"native";if(r){if(o.isMacintosh&&!0===r.nativeTabs)return"native"
;if(o.isMacintosh&&!1===r.nativeFullScreen)return"native";const e=r.titleBarStyle;if("native"===e||"custom"===e)return e}return o.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 l=class{constructor(e){this.disposables=[];s.Event.latch(s.Event.any(e.onWindowOpen,e.onWindowFocus))(this.setActiveWindow,this,this.disposables),this.firstActiveWindowIdPromise=e.getActiveWindowId().then(e=>void 0===this._activeWindowId&&this.setActiveWindow(e))}setActiveWindow(e){this.firstActiveWindowIdPromise&&(this.firstActiveWindowIdPromise=null),this._activeWindowId=e}getActiveClientId(){return this.firstActiveWindowIdPromise?this.firstActiveWindowIdPromise:Promise.resolve(`window:${this._activeWindowId}`)}dispose(){
this.disposables=a.dispose(this.disposables)}};l=r([i(0,t.IWindowsService)],l),t.ActiveWindowManager=l}),define(e[92],t([1,0,9,71,7,3,4,33,51,25,29,83,21]),function(e,t,n,r,i,s,o,a,l,c,u,h,d){"use strict";function f(e){return p(e)||g(e)}function p(e){return e&&"object"==typeof e&&"string"==typeof e.path&&(!e.name||"string"==typeof e.name)}function g(e){return e&&"object"==typeof e&&"string"==typeof e.uri&&(!e.name||"string"==typeof e.name)}function m(e){return e instanceof i.URI}function v(e,t,n,r=!s.isWindows){if(e.scheme!==n.scheme||!a.isEqualAuthority(e.authority,n.authority))return{name:t,uri:e.toString(!0)};let i;return a.isEqualOrParent(e,n)?(i=a.relativePath(n,e)||".",s.isWindows&&e.scheme===u.Schemas.file&&!r&&(i=i.replace(/\//g,"\\"))):e.scheme===u.Schemas.file?(i=e.fsPath,s.isWindows&&(i=h.normalizeDriveLetter(i),r&&(i=d.toSlashes(i)))):i=e.path,{name:t,path:i}}function b(e,t,n){let r=function(e,t){let n=c.parse(t);Array.isArray(n.folders)&&(n.folders=n.folders.filter(e=>f(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(r.folders);for(const e of r.folders){let t=p(e)?a.resolvePath(o,e.path):i.URI.parse(e.uri);h.push(v(t,e.name,u,d))}let g=e;return l.setProperty(e,["folders"],h,{insertSpaces:!1,tabSize:4,eol:s.isLinux||s.isMacintosh?"\n":"\r\n"}).forEach(t=>{g=l.applyEdit(e,t)}),g}function y(e){if(s.isWindows){for(const t of e)if(p(t)&&t.path.indexOf(w)>=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:r.localize(0,null),extensions:[t.WORKSPACE_EXTENSION]}],t.UNTITLED_WORKSPACE_NAME="workspace.json",t.reviveWorkspaceIdentifier=function(e){return{id:e.id,configPath:i.URI.revive(e.configPath)}},t.isStoredWorkspaceFolder=f,t.isRawFileWorkspaceFolder=p,
t.isRawUriWorkspaceFolder=g,t.isSingleFolderWorkspaceIdentifier=m,t.isWorkspaceIdentifier=function(e){const t=e;return t&&"string"==typeof t.id&&t.configPath instanceof i.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 m(e.folder)};const _="."+t.WORKSPACE_EXTENSION;t.hasWorkspaceFileExtension=function(e){return o.extname(e)===_};const w="/";t.getStoredWorkspaceFolder=v,t.rewriteWorkspaceFileForNewLocation=b,t.useSlashForPath=y}),define(e[93],t([1,0,2,92,7]),function(e,t,n,r,i){"use strict";function s(e){return e&&e.configPath}Object.defineProperty(t,"__esModule",{value:!0});class o{constructor(e){this.service=e,this.onWindowOpen=n.Event.buffer(e.onWindowOpen,!0),this.onWindowFocus=n.Event.buffer(e.onWindowFocus,!0),this.onWindowBlur=n.Event.buffer(e.onWindowBlur,!0),this.onWindowMaximize=n.Event.buffer(e.onWindowMaximize,!0),
this.onWindowUnmaximize=n.Event.buffer(e.onWindowUnmaximize,!0),this.onRecentlyOpenedChange=n.Event.buffer(e.onRecentlyOpenedChange,!0)}listen(e,t){switch(t){case"onWindowOpen":return this.onWindowOpen;case"onWindowFocus":return this.onWindowFocus;case"onWindowBlur":return this.onWindowBlur;case"onWindowMaximize":return this.onWindowMaximize;case"onWindowUnmaximize":return this.onWindowUnmaximize;case"onRecentlyOpenedChange":return this.onRecentlyOpenedChange}throw new Error(`Event not found: ${t}`)}call(e,t,n){switch(t){case"pickFileFolderAndOpen":return this.service.pickFileFolderAndOpen(n);case"pickFileAndOpen":return this.service.pickFileAndOpen(n);case"pickFolderAndOpen":return this.service.pickFolderAndOpen(n);case"pickWorkspaceAndOpen":return this.service.pickWorkspaceAndOpen(n);case"showMessageBox":return this.service.showMessageBox(n[0],n[1]);case"showSaveDialog":return this.service.showSaveDialog(n[0],n[1]);case"showOpenDialog":return this.service.showOpenDialog(n[0],n[1]);case"reloadWindow":
return this.service.reloadWindow(n[0],n[1]);case"openDevTools":return this.service.openDevTools(n[0],n[1]);case"toggleDevTools":return this.service.toggleDevTools(n);case"closeWorkspace":return this.service.closeWorkspace(n);case"enterWorkspace":return this.service.enterWorkspace(n[0],i.URI.revive(n[1]));case"toggleFullScreen":return this.service.toggleFullScreen(n);case"setRepresentedFilename":return this.service.setRepresentedFilename(n[0],n[1]);case"addRecentlyOpened":return this.service.addRecentlyOpened(n.map(i.URI.revive));case"removeFromRecentlyOpened":{let e=n;return Array.isArray(e)&&(e=e.map(e=>s(e)?r.reviveWorkspaceIdentifier(e):"string"==typeof e?e:i.URI.revive(e))),this.service.removeFromRecentlyOpened(e)}case"clearRecentlyOpened":return this.service.clearRecentlyOpened();case"newWindowTab":return this.service.newWindowTab();case"showPreviousWindowTab":return this.service.showPreviousWindowTab();case"showNextWindowTab":return this.service.showNextWindowTab();case"moveWindowTabToNewWindow":
return this.service.moveWindowTabToNewWindow();case"mergeAllWindowTabs":return this.service.mergeAllWindowTabs();case"toggleWindowTabsBar":return this.service.toggleWindowTabsBar();case"updateTouchBar":return this.service.updateTouchBar(n[0],n[1]);case"getRecentlyOpened":return this.service.getRecentlyOpened(n);case"focusWindow":return this.service.focusWindow(n);case"closeWindow":return this.service.closeWindow(n);case"isFocused":return this.service.isFocused(n);case"isMaximized":return this.service.isMaximized(n);case"maximizeWindow":return this.service.maximizeWindow(n);case"unmaximizeWindow":return this.service.unmaximizeWindow(n);case"minimizeWindow":return this.service.minimizeWindow(n);case"onWindowTitleDoubleClick":return this.service.onWindowTitleDoubleClick(n);case"setDocumentEdited":return this.service.setDocumentEdited(n[0],n[1]);case"openWindow":return this.service.openWindow(n[0],n[1]?n[1].map(e=>({uri:i.URI.revive(e.uri),typeHint:e.typeHint})):n[1],n[2]);case"openNewWindow":
return this.service.openNewWindow(n);case"showWindow":return this.service.showWindow(n);case"getWindows":return this.service.getWindows();case"getWindowCount":return this.service.getWindowCount();case"relaunch":return this.service.relaunch(n[0]);case"whenSharedProcessReady":return this.service.whenSharedProcessReady();case"toggleSharedProcess":return this.service.toggleSharedProcess();case"quit":return this.service.quit();case"log":return this.service.log(n[0],n[1]);case"showItemInFolder":return this.service.showItemInFolder(n);case"getActiveWindowId":return this.service.getActiveWindowId();case"openExternal":return this.service.openExternal(n);case"startCrashReporter":return this.service.startCrashReporter(n);case"openAboutDialog":return this.service.openAboutDialog();case"resolveProxy":return this.service.resolveProxy(n[0],n[1])}throw new Error(`Call not found: ${t}`)}}t.WindowsChannel=o;class a{constructor(e){this.channel=e}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 this.channel.call("enterWorkspace",[e,t]).then(e=>({backupPath:e.backupPath,workspace:r.reviveWorkspaceIdentifier(e.workspace)}))}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 this.channel.call("getRecentlyOpened",e).then(e=>(e.workspaces=e.workspaces.map(e=>s(e)?r.reviveWorkspaceIdentifier(e):i.URI.revive(e)),e.files=e.files.map(i.URI.revive),e))}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)}showWindow(e){return this.channel.call("showWindow",e)}getWindows(){return this.channel.call("getWindows").then(e=>{for(const t of e)t.folderUri&&(t.folderUri=i.URI.revive(t.folderUri)),t.workspace&&(t.workspace=r.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]))}}t.WindowsChannelClient=a}),
define(e[95],t([1,0,54,14,22,36,18,5,39,38,19,23,3,6,53,20,55,30,91,88,87,90,76,89,93,82,56,68,79,78,12,63,57,60,64]),function(e,t,n,i,s,o,a,l,c,u,h,d,f,p,g,m,v,b,y,_,w,E,C,S,x,k,A,O,P,T,L,I,D,R){"use strict";function M(e){e.classList.add("hidden")}function N(e){e.classList.remove("hidden")}Object.defineProperty(t,"__esModule",{value:!0});const F=f.isWindows?2081:5400;t.startup=function(e){document.body.innerHTML=O.default(),new B(e).render(),document.body.style.display="block"};class B extends p.Disposable{constructor(e){super(),this.numberOfSearchResultsDisplayed=0,this.receivedSystemInfo=!1,this.receivedPerformanceInfo=!1,this.shouldQueueSearch=!1,this.hasBeenSubmitted=!1,this.updateSystemInfo=(e=>{const t=document.querySelector(".block-system .block-info");if(t){let n="";Object.keys(e.systemInfo).forEach(t=>{const r="object"==typeof e.systemInfo[t]?Object.keys(e.systemInfo[t]).map(n=>`${n}: ${e.systemInfo[t][n]}`).join("<br>"):e.systemInfo[t]
;n+=`\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>${t}</td>\n\t\t\t\t\t\t<td>${r}</td>\n\t\t\t\t\t</tr>`}),t.innerHTML=`<table>${n}</table>`}}),this.updateProcessInfo=(e=>{const t=document.querySelector(".block-process .block-info");t&&(t.innerHTML=`<code>${e.processInfo}</code>`)}),this.updateWorkspaceInfo=(e=>{document.querySelector(".block-workspace .block-info code").textContent="\n"+e.workspaceInfo}),this.initServices(e),this.issueReporterModel=new A.IssueReporterModel({issueType:e.data.issueType||0,versionInfo:{vscodeVersion:`${u.default.name} ${u.default.version} (${c.default.commit||"Commit unknown"}, ${c.default.date||"Date unknown"})`,os:`${h.type()} ${h.arch()} ${h.release()}`},extensionsDisabled:!!this.environmentService.disableExtensions});const t=this.getElementById("issue-reporter");t&&(this.previewButton=new R.Button(t)),n.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()}),n.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()}),n.ipcRenderer.send("vscode:issueSystemInfoRequest"),1===e.data.issueType&&n.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),this.logService.trace("issueReporter: Sent data requests"),"en"!==window.document.documentElement.lang&&N(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()}applyZoom(e){n.webFrame.setZoomLevel(e),
a.setZoomFactor(n.webFrame.getZoomFactor()),a.setZoomLevel(n.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=e.color||null}handleExtensionData(e){const{nonThemes:t,themes:n}=o.groupBy(e,e=>e.isTheme?"themes":"nonThemes"),r=n&&n.length;this.issueReporterModel.update({numberOfThemeExtesions:r,enabledNonThemeExtesions:t,allExtensions:e}),this.updateExtensionTable(t,r),(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 r="\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=>{r+=`\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>${r}</table>`}}initServices(e){const t=new b.ServiceCollection,n=new g.Client(String(`window${e.windowId}`)),r=n.getChannel("windows");t.set(y.IWindowsService,new x.WindowsChannelClient(r)),this.environmentService=new k.EnvironmentService(e,e.execPath);const i=P.createSpdLogService(`issuereporter${e.windowId}`,L.getLogLevel(this.environmentService),this.environmentService.logsPath),s=new T.LogLevelSetterChannelClient(n.getChannel("loglevel"))
;this.logService=new T.FollowerLogService(s,i);const o=t.get(y.IWindowsService).whenSharedProcessReady().then(()=>v.connect(this.environmentService.sharedIPCHandle,`window:${e.windowId}`)),a=new C.InstantiationService(t,!0);if(this.environmentService.isExtensionDevelopment||this.environmentService.args["disable-telemetry"]||!c.default.enableTelemetry)this.telemetryService=_.NullTelemetryService;else{const t=m.getDelayedChannel(o.then(e=>e.getChannel("telemetryAppender"))),n={appender:_.combinedAppender(new E.TelemetryAppenderClient(t),new _.LogAppender(i)),commonProperties:S.resolveCommonProperties(c.default.commit||"Commit unknown",u.default.version,e.machineId,this.environmentService.installSourcePath),piiPaths:[this.environmentService.appRoot,this.environmentService.extensionsPath]},r=a.createInstance(w.TelemetryService,n);this._register(r),this.telemetryService=r}}setEventHandlers(){function e(e){n.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||n.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")?(N(n),t.textContent=i.localize(0,null)):(M(n),t.textContent=i.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}),N(n),this.clearSearchResults(),void this.render();M(n);const r=JSON.parse(t);this.issueReporterModel.update({fileOnExtension:r}),this.render();const i=this.getElementById("issue-title").value;if(r)this.searchExtensionIssues(i);else{const e=this.issueReporterModel.getData().issueDescription;this.searchVSCodeIssues(i,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>F?N(n):M(n);const r=this.issueReporterModel.fileOnExtension();if(void 0!==r)if(r)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=>{const t=f.isMacintosh?e.metaKey:e.ctrlKey;if(t&&13===e.keyCode&&this.createIssue()&&n.ipcRenderer.send("vscode:closeIssueReporter"),t&&87===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.getElementById("issue-title").value,{issueDescription:r}=this.issueReporterModel.getData();this.hasBeenSubmitted||!t&&!r?n.ipcRenderer.send("vscode:closeIssueReporter"):n.ipcRenderer.send("vscode:issueReporterConfirmClose")}t&&187===e.keyCode&&this.applyZoom(n.webFrame.getZoomLevel()+1),
t&&189===e.keyCode&&this.applyZoom(n.webFrame.getZoomLevel()-1),f.isMacintosh&&t&&65===e.keyCode&&e.target&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)&&e.target.select()})}updatePreviewButtonState(){this.isPreviewEnabled()?(this.previewButton.label=i.localize(2,null),this.previewButton.enabled=!0):(this.previewButton.enabled=!1,this.previewButton.label=i.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}`,r=this.getElementById("similar-issues");window.fetch(`https://api.github.com/search/issues?q=${n}`).then(n=>{n.json().then(o=>{if(r.innerHTML="",o&&o.items)this.displaySearchResults(o.items);else{const o=s.$("div.list-title");o.textContent=i.localize(4,null),r.appendChild(o);const a=n.headers.get("X-RateLimit-Reset"),l=a?parseInt(a)-Math.floor(Date.now()/1e3):1;this.shouldQueueSearch&&(this.shouldQueueSearch=!1,setTimeout(()=>{this.searchGitHub(e,t),this.shouldQueueSearch=!0},1e3*l))}}).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=s.$("div.issues-container"),r=s.$("div.list-title");r.textContent=i.localize(5,null),this.numberOfSearchResultsDisplayed=e.length<5?e.length:5;for(let t=0;t<this.numberOfSearchResultsDisplayed;t++){const r=e[t],o=s.$("a.issue-link",{href:r.html_url});o.textContent=r.title,o.title=r.title,o.addEventListener("click",e=>this.openLink(e)),o.addEventListener("auxclick",e=>this.openLink(e));let a,l;if(r.state){a=s.$("span.issue-state");const e=s.$("span.issue-icon")
;new I.OcticonLabel(e).text="open"===r.state?"$(issue-opened)":"$(issue-closed)";const t=s.$("span.issue-state.label");t.textContent="open"===r.state?i.localize(6,null):i.localize(7,null),a.title="open"===r.state?i.localize(8,null):i.localize(9,null),a.appendChild(e),a.appendChild(t),l=s.$("div.issue",{},a,o)}else l=s.$("div.issue",{},o);n.appendChild(l)}t.appendChild(r),t.appendChild(n)}else{const e=s.$("div.list-title");e.textContent=i.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,i.localize(11,null)),t.disabled=!0):t.innerHTML=[e(0,i.localize(12,null)),e(2,i.localize(13,null)),e(1,i.localize(14,null))].join("\n"),t.value=n.toString(),this.setSourceOptions()}makeOption(e,t,n){
const r=document.createElement("option");return r.disabled=n,r.value=e,r.textContent=t,r}setSourceOptions(){const e=this.getElementById("issue-source"),t=e.selectedIndex;e.innerHTML="";const{issueType:n}=this.issueReporterModel.getData();2===n?e.append(...[this.makeOption("",i.localize(15,null),!0),this.makeOption("false",i.localize(16,null),!1),this.makeOption("true",i.localize(17,null),!1)]):e.append(...[this.makeOption("",i.localize(18,null),!0),this.makeOption("false",i.localize(19,null),!1),this.makeOption("true",i.localize(20,null),!1),this.makeOption("",i.localize(21,null),!1)]),-1!==t&&t<e.options.length?e.selectedIndex=t:(e.selectedIndex=0,M(this.getElementById("problem-source-help-text")))}renderBlocks(){
const{issueType:e,fileOnExtension:t}=this.issueReporterModel.getData(),n=this.getElementById("block-container"),r=document.querySelector(".block-system"),s=document.querySelector(".block-process"),o=document.querySelector(".block-workspace"),a=document.querySelector(".block-extensions"),l=document.querySelector(".block-searchedExtensions"),c=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");M(n),M(r),M(s),M(o),M(a),M(l),M(c),M(u),M(f),0===e?(N(n),N(r),N(u),N(t?f:a),h.innerHTML=`${i.localize(22,null)} <span class="required-input">*</span>`,d.innerHTML=i.localize(23,null)):1===e?(N(n),N(r),N(s),N(o),N(u),N(t?f:a),h.innerHTML=`${i.localize(24,null)} <span class="required-input">*</span>`,d.innerHTML=i.localize(25,null)):2===e?(h.innerHTML=`${i.localize(26,null)} <span class="required-input">*</span>`,
d.innerHTML=i.localize(27,null),N(u),t&&N(f)):3===e&&(N(n),N(l),N(c),h.innerHTML=`${i.localize(28,null)} <span class="required-input">*</span>`,d.innerHTML=i.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(){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 r=e+`&body=${encodeURIComponent(t)}`;return r.length>F&&(n.clipboard.writeText(t),r=e+`&body=${encodeURIComponent(i.localize(30,null))}`),n.ipcRenderer.send("vscode:openExternal",r),!0}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=c.default.reportIssueUrl;if(this.issueReporterModel.fileOnExtension()){const e=this.getExtensionGitHubUrl();e&&(t=e+"/issues/new")}
return`${t}${-1===c.default.reportIssueUrl.indexOf("?")?"?":"&"}title=${encodeURIComponent(e)}`}updateExtensionSelector(e){const t=e.map(e=>({name:e.displayName||e.name||"",id:e.id}));t.sort((e,t)=>{const n=e.name.toLowerCase(),r=t.name.toLowerCase();return n>r?1:n<r?-1:0});const n=this.getElementById("extension-selector");n&&(n.innerHTML="<option></option>"+t.map(e=>`<option value="${e.id}">${l.escape(e.name)}</option>`).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()}))}updateExtensionTable(e,t){const n=document.querySelector(".block-extensions .block-info");if(n){if(this.environmentService.disableExtensions)return void(n.innerHTML=i.localize(31,null))
;const r=t?`\n(${t} theme extensions excluded)`:"";if(!(e=e||[]).length)return void(n.innerHTML="Extensions: none"+r);const s=this.getExtensionTableHtml(e);n.innerHTML=`<table>${s}</table>${r}`}}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&&(n.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 r=this.getElementById(e);r&&r.addEventListener(t,n)}}r([d.debounce(300)],B.prototype,"searchGitHub",null),r([d.debounce(300)],B.prototype,"searchDuplicates",null),t.IssueReporter=B})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/05f146c7a8f7f78e80261aa3b2a2e642586f9eb3/core/vs/code/electron-browser/issue/issueReporterMain.js.map
