UNPKG

monaco-editor

Version:
12 lines • 291 kB
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(0316a754aa4c25208bef91937efbce2ab1e3ce37) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-----------------------------------------------------------*/(function(){var X=["require","exports","vs/base/common/strings","vs/editor/common/core/position","vs/editor/common/core/range","vs/base/common/platform","vs/base/common/types","vs/base/common/event","vs/base/common/lifecycle","vs/base/common/uri","vs/base/common/errors","vs/base/common/iterator","vs/base/common/linkedList","vs/base/common/diff/diff","vs/base/common/uint","vs/editor/common/core/characterClassifier","vs/editor/common/core/wordHelper","vs/base/common/stopwatch","vs/nls","vs/base/common/arrays","vs/base/common/cache","vs/base/common/codicons","vs/base/common/diff/diffChange","vs/base/common/functional","vs/base/common/keyCodes","vs/base/common/lazy","vs/base/common/hash","vs/base/common/objects","vs/editor/common/core/selection","vs/editor/common/core/wordCharacterClassifier","vs/editor/common/diff/diffComputer","vs/editor/common/languages/linkComputer","vs/editor/common/languages/supports/inplaceReplaceSupport","vs/editor/common/model","vs/editor/common/model/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/editor/common/model/textModelSearch","vs/editor/common/services/unicodeTextModelHighlighter","vs/editor/common/standalone/standaloneEnums","vs/nls!vs/base/common/platform","vs/base/common/process","vs/base/common/path","vs/base/common/cancellation","vs/editor/common/tokenizationRegistry","vs/editor/common/languages","vs/editor/common/services/editorBaseApi","vs/nls!vs/base/common/worker/simpleWorker","vs/base/common/worker/simpleWorker","vs/editor/common/services/editorSimpleWorker"],J=function(F){for(var r=[],N=0,e=F.length;N<e;N++)r[N]=X[F[N]];return r},Ae=this,Ee=typeof global=="object"?global:{},ie;(function(F){F.global=Ae;var r=function(){function N(){this._detected=!1,this._isWindows=!1,this._isNode=!1,this._isElectronRenderer=!1,this._isWebWorker=!1,this._isElectronNodeIntegrationWebWorker=!1}return Object.defineProperty(N.prototype,"isWindows",{get:function(){return this._detect(),this._isWindows},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isNode",{get:function(){return this._detect(),this._isNode},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isElectronRenderer",{get:function(){return this._detect(),this._isElectronRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isWebWorker",{get:function(){return this._detect(),this._isWebWorker},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"isElectronNodeIntegrationWebWorker",{get:function(){return this._detect(),this._isElectronNodeIntegrationWebWorker},enumerable:!1,configurable:!0}),N.prototype._detect=function(){this._detected||(this._detected=!0,this._isWindows=N._isWindows(),this._isNode=typeof module!="undefined"&&!!module.exports,this._isElectronRenderer=typeof process!="undefined"&&typeof process.versions!="undefined"&&typeof process.versions.electron!="undefined"&&process.type==="renderer",this._isWebWorker=typeof F.global.importScripts=="function",this._isElectronNodeIntegrationWebWorker=this._isWebWorker&&typeof process!="undefined"&&typeof process.versions!="undefined"&&typeof process.versions.electron!="undefined"&&process.type==="worker")},N._isWindows=function(){return typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.indexOf("Windows")>=0?!0:typeof process!="undefined"?process.platform==="win32":!1},N}();F.Environment=r})(ie||(ie={}));var ie;(function(F){var r=function(){function A(l,y,C){this.type=l,this.detail=y,this.timestamp=C}return A}();F.LoaderEvent=r;var N=function(){function A(l){this._events=[new r(1,"",l)]}return A.prototype.record=function(l,y){this._events.push(new r(l,y,F.Utilities.getHighPerformanceTimestamp()))},A.prototype.getEvents=function(){return this._events},A}();F.LoaderEventRecorder=N;var e=function(){function A(){}return A.prototype.record=function(l,y){},A.prototype.getEvents=function(){return[]},A.INSTANCE=new A,A}();F.NullLoaderEventRecorder=e})(ie||(ie={}));var ie;(function(F){var r=function(){function N(){}return N.fileUriToFilePath=function(e,A){if(A=decodeURI(A).replace(/%23/g,"#"),e){if(/^file:\/\/\//.test(A))return A.substr(8);if(/^file:\/\//.test(A))return A.substr(5)}else if(/^file:\/\//.test(A))return A.substr(7);return A},N.startsWith=function(e,A){return e.length>=A.length&&e.substr(0,A.length)===A},N.endsWith=function(e,A){return e.length>=A.length&&e.substr(e.length-A.length)===A},N.containsQueryString=function(e){return/^[^\#]*\?/gi.test(e)},N.isAbsolutePath=function(e){return/^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(e)},N.forEachProperty=function(e,A){if(e){var l=void 0;for(l in e)e.hasOwnProperty(l)&&A(l,e[l])}},N.isEmpty=function(e){var A=!0;return N.forEachProperty(e,function(){A=!1}),A},N.recursiveClone=function(e){if(!e||typeof e!="object"||e instanceof RegExp||!Array.isArray(e)&&Object.getPrototypeOf(e)!==Object.prototype)return e;var A=Array.isArray(e)?[]:{};return N.forEachProperty(e,function(l,y){y&&typeof y=="object"?A[l]=N.recursiveClone(y):A[l]=y}),A},N.generateAnonymousModule=function(){return"===anonymous"+N.NEXT_ANONYMOUS_ID+++"==="},N.isAnonymousModule=function(e){return N.startsWith(e,"===anonymous")},N.getHighPerformanceTimestamp=function(){return this.PERFORMANCE_NOW_PROBED||(this.PERFORMANCE_NOW_PROBED=!0,this.HAS_PERFORMANCE_NOW=F.global.performance&&typeof F.global.performance.now=="function"),this.HAS_PERFORMANCE_NOW?F.global.performance.now():Date.now()},N.NEXT_ANONYMOUS_ID=1,N.PERFORMANCE_NOW_PROBED=!1,N.HAS_PERFORMANCE_NOW=!1,N}();F.Utilities=r})(ie||(ie={}));var ie;(function(F){function r(A){if(A instanceof Error)return A;var l=new Error(A.message||String(A)||"Unknown Error");return A.stack&&(l.stack=A.stack),l}F.ensureError=r;var N=function(){function A(){}return A.validateConfigurationOptions=function(l){function y(c){if(c.phase==="loading"){console.error('Loading "'+c.moduleId+'" failed'),console.error(c),console.error("Here are the modules that depend on it:"),console.error(c.neededBy);return}if(c.phase==="factory"){console.error('The factory function of "'+c.moduleId+'" has thrown an exception'),console.error(c),console.error("Here are the modules that depend on it:"),console.error(c.neededBy);return}}if(l=l||{},typeof l.baseUrl!="string"&&(l.baseUrl=""),typeof l.isBuild!="boolean"&&(l.isBuild=!1),typeof l.buildForceInvokeFactory!="object"&&(l.buildForceInvokeFactory={}),typeof l.paths!="object"&&(l.paths={}),typeof l.config!="object"&&(l.config={}),typeof l.catchError=="undefined"&&(l.catchError=!1),typeof l.recordStats=="undefined"&&(l.recordStats=!1),typeof l.urlArgs!="string"&&(l.urlArgs=""),typeof l.onError!="function"&&(l.onError=y),Array.isArray(l.ignoreDuplicateModules)||(l.ignoreDuplicateModules=[]),l.baseUrl.length>0&&(F.Utilities.endsWith(l.baseUrl,"/")||(l.baseUrl+="/")),typeof l.cspNonce!="string"&&(l.cspNonce=""),typeof l.preferScriptTags=="undefined"&&(l.preferScriptTags=!1),Array.isArray(l.nodeModules)||(l.nodeModules=[]),l.nodeCachedData&&typeof l.nodeCachedData=="object"&&(typeof l.nodeCachedData.seed!="string"&&(l.nodeCachedData.seed="seed"),(typeof l.nodeCachedData.writeDelay!="number"||l.nodeCachedData.writeDelay<0)&&(l.nodeCachedData.writeDelay=1e3*7),!l.nodeCachedData.path||typeof l.nodeCachedData.path!="string")){var C=r(new Error("INVALID cached data configuration, 'path' MUST be set"));C.phase="configuration",l.onError(C),l.nodeCachedData=void 0}return l},A.mergeConfigurationOptions=function(l,y){l===void 0&&(l=null),y===void 0&&(y=null);var C=F.Utilities.recursiveClone(y||{});return F.Utilities.forEachProperty(l,function(c,h){c==="ignoreDuplicateModules"&&typeof C.ignoreDuplicateModules!="undefined"?C.ignoreDuplicateModules=C.ignoreDuplicateModules.concat(h):c==="paths"&&typeof C.paths!="undefined"?F.Utilities.forEachProperty(h,function(v,t){return C.paths[v]=t}):c==="config"&&typeof C.config!="undefined"?F.Utilities.forEachProperty(h,function(v,t){return C.config[v]=t}):C[c]=F.Utilities.recursiveClone(h)}),A.validateConfigurationOptions(C)},A}();F.ConfigurationOptionsUtil=N;var e=function(){function A(l,y){if(this._env=l,this.options=N.mergeConfigurationOptions(y),this._createIgnoreDuplicateModulesMap(),this._createNodeModulesMap(),this._createSortedPathsRules(),this.options.baseUrl===""){if(this.options.nodeRequire&&this.options.nodeRequire.main&&this.options.nodeRequire.main.filename&&this._env.isNode){var C=this.options.nodeRequire.main.filename,c=Math.max(C.lastIndexOf("/"),C.lastIndexOf("\\"));this.options.baseUrl=C.substring(0,c+1)}if(this.options.nodeMain&&this._env.isNode){var C=this.options.nodeMain,c=Math.max(C.lastIndexOf("/"),C.lastIndexOf("\\"));this.options.baseUrl=C.substring(0,c+1)}}}return A.prototype._createIgnoreDuplicateModulesMap=function(){this.ignoreDuplicateModulesMap={};for(var l=0;l<this.options.ignoreDuplicateModules.length;l++)this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[l]]=!0},A.prototype._createNodeModulesMap=function(){this.nodeModulesMap=Object.create(null);for(var l=0,y=this.options.nodeModules;l<y.length;l++){var C=y[l];this.nodeModulesMap[C]=!0}},A.prototype._createSortedPathsRules=function(){var l=this;this.sortedPathsRules=[],F.Utilities.forEachProperty(this.options.paths,function(y,C){Array.isArray(C)?l.sortedPathsRules.push({from:y,to:C}):l.sortedPathsRules.push({from:y,to:[C]})}),this.sortedPathsRules.sort(function(y,C){return C.from.length-y.from.length})},A.prototype.cloneAndMerge=function(l){return new A(this._env,N.mergeConfigurationOptions(l,this.options))},A.prototype.getOptionsLiteral=function(){return this.options},A.prototype._applyPaths=function(l){for(var y,C=0,c=this.sortedPathsRules.length;C<c;C++)if(y=this.sortedPathsRules[C],F.Utilities.startsWith(l,y.from)){for(var h=[],v=0,t=y.to.length;v<t;v++)h.push(y.to[v]+l.substr(y.from.length));return h}return[l]},A.prototype._addUrlArgsToUrl=function(l){return F.Utilities.containsQueryString(l)?l+"&"+this.options.urlArgs:l+"?"+this.options.urlArgs},A.prototype._addUrlArgsIfNecessaryToUrl=function(l){return this.options.urlArgs?this._addUrlArgsToUrl(l):l},A.prototype._addUrlArgsIfNecessaryToUrls=function(l){if(this.options.urlArgs)for(var y=0,C=l.length;y<C;y++)l[y]=this._addUrlArgsToUrl(l[y]);return l},A.prototype.moduleIdToPaths=function(l){if(this._env.isNode){var y=this.nodeModulesMap[l]===!0||this.options.amdModulesPattern instanceof RegExp&&!this.options.amdModulesPattern.test(l);if(y)return this.isBuild()?["empty:"]:["node|"+l]}var C=l,c;if(!F.Utilities.endsWith(C,".js")&&!F.Utilities.isAbsolutePath(C)){c=this._applyPaths(C);for(var h=0,v=c.length;h<v;h++)this.isBuild()&&c[h]==="empty:"||(F.Utilities.isAbsolutePath(c[h])||(c[h]=this.options.baseUrl+c[h]),!F.Utilities.endsWith(c[h],".js")&&!F.Utilities.containsQueryString(c[h])&&(c[h]=c[h]+".js"))}else!F.Utilities.endsWith(C,".js")&&!F.Utilities.containsQueryString(C)&&(C=C+".js"),c=[C];return this._addUrlArgsIfNecessaryToUrls(c)},A.prototype.requireToUrl=function(l){var y=l;return F.Utilities.isAbsolutePath(y)||(y=this._applyPaths(y)[0],F.Utilities.isAbsolutePath(y)||(y=this.options.baseUrl+y)),this._addUrlArgsIfNecessaryToUrl(y)},A.prototype.isBuild=function(){return this.options.isBuild},A.prototype.shouldInvokeFactory=function(l){return this.options.isBuild?this.options.buildForceInvokeFactory[l]||F.Utilities.isAnonymousModule(l):!0},A.prototype.isDuplicateMessageIgnoredFor=function(l){return this.ignoreDuplicateModulesMap.hasOwnProperty(l)},A.prototype.getConfigForModule=function(l){if(this.options.config)return this.options.config[l]},A.prototype.shouldCatchError=function(){return this.options.catchError},A.prototype.shouldRecordStats=function(){return this.options.recordStats},A.prototype.onError=function(l){this.options.onError(l)},A}();F.Configuration=e})(ie||(ie={}));var ie;(function(F){var r=function(){function c(h){this._env=h,this._scriptLoader=null,this._callbackMap={}}return c.prototype.load=function(h,v,t,g){var m=this;if(!this._scriptLoader)if(this._env.isWebWorker)this._scriptLoader=new A;else if(this._env.isElectronRenderer){var p=h.getConfig().getOptionsLiteral().preferScriptTags;p?this._scriptLoader=new N:this._scriptLoader=new l(this._env)}else this._env.isNode?this._scriptLoader=new l(this._env):this._scriptLoader=new N;var L={callback:t,errorback:g};if(this._callbackMap.hasOwnProperty(v)){this._callbackMap[v].push(L);return}this._callbackMap[v]=[L],this._scriptLoader.load(h,v,function(){return m.triggerCallback(v)},function(w){return m.triggerErrorback(v,w)})},c.prototype.triggerCallback=function(h){var v=this._callbackMap[h];delete this._callbackMap[h];for(var t=0;t<v.length;t++)v[t].callback()},c.prototype.triggerErrorback=function(h,v){var t=this._callbackMap[h];delete this._callbackMap[h];for(var g=0;g<t.length;g++)t[g].errorback(v)},c}(),N=function(){function c(){}return c.prototype.attachListeners=function(h,v,t){var g=function(){h.removeEventListener("load",m),h.removeEventListener("error",p)},m=function(L){g(),v()},p=function(L){g(),t(L)};h.addEventListener("load",m),h.addEventListener("error",p)},c.prototype.load=function(h,v,t,g){if(/^node\|/.test(v)){var m=h.getConfig().getOptionsLiteral(),p=y(h.getRecorder(),m.nodeRequire||F.global.nodeRequire),L=v.split("|"),w=null;try{w=p(L[1])}catch(a){g(a);return}h.enqueueDefineAnonymousModule([],function(){return w}),t()}else{var S=document.createElement("script");S.setAttribute("async","async"),S.setAttribute("type","text/javascript"),this.attachListeners(S,t,g);var b=h.getConfig().getOptionsLiteral().trustedTypesPolicy;b&&(v=b.createScriptURL(v)),S.setAttribute("src",v);var s=h.getConfig().getOptionsLiteral().cspNonce;s&&S.setAttribute("nonce",s),document.getElementsByTagName("head")[0].appendChild(S)}},c}();function e(c){var h=c.getConfig().getOptionsLiteral().trustedTypesPolicy;try{var v=h?self.eval(h.createScript("","true")):new Function("true");return v.call(self),!0}catch{return!1}}var A=function(){function c(){this._cachedCanUseEval=null}return c.prototype._canUseEval=function(h){return this._cachedCanUseEval===null&&(this._cachedCanUseEval=e(h)),this._cachedCanUseEval},c.prototype.load=function(h,v,t,g){if(/^node\|/.test(v)){var m=h.getConfig().getOptionsLiteral(),p=y(h.getRecorder(),m.nodeRequire||F.global.nodeRequire),L=v.split("|"),w=null;try{w=p(L[1])}catch(s){g(s);return}h.enqueueDefineAnonymousModule([],function(){return w}),t()}else{var S=h.getConfig().getOptionsLiteral().trustedTypesPolicy,b=/^((http:)|(https:)|(file:))/.test(v)&&v.substring(0,self.origin.length)!==self.origin;if(!b&&this._canUseEval(h)){fetch(v).then(function(s){if(s.status!==200)throw new Error(s.statusText);return s.text()}).then(function(s){s=s+` //# sourceURL=`+v;var a=S?self.eval(S.createScript("",s)):new Function(s);a.call(self),t()}).then(void 0,g);return}try{S&&(v=S.createScriptURL(v)),importScripts(v),t()}catch(s){g(s)}}},c}(),l=function(){function c(h){this._env=h,this._didInitialize=!1,this._didPatchNodeRequire=!1}return c.prototype._init=function(h){this._didInitialize||(this._didInitialize=!0,this._fs=h("fs"),this._vm=h("vm"),this._path=h("path"),this._crypto=h("crypto"))},c.prototype._initNodeRequire=function(h,v){var t=v.getConfig().getOptionsLiteral().nodeCachedData;if(!t||this._didPatchNodeRequire)return;this._didPatchNodeRequire=!0;var g=this,m=h("module");function p(L){var w=L.constructor,S=function(s){try{return L.require(s)}finally{}};return S.resolve=function(s,a){return w._resolveFilename(s,L,!1,a)},S.resolve.paths=function(s){return w._resolveLookupPaths(s,L)},S.main=process.mainModule,S.extensions=w._extensions,S.cache=w._cache,S}m.prototype._compile=function(L,w){var S=m.wrap(L.replace(/^#!.*/,"")),b=v.getRecorder(),s=g._getCachedDataPath(t,w),a={filename:w},f;try{var d=g._fs.readFileSync(s);f=d.slice(0,16),a.cachedData=d.slice(16),b.record(60,s)}catch{b.record(61,s)}var o=new g._vm.Script(S,a),i=o.runInThisContext(a),u=g._path.dirname(w),_=p(this),E=[this.exports,_,this,w,u,process,Ee,Buffer],M=i.apply(this.exports,E);return g._handleCachedData(o,S,s,!a.cachedData,v),g._verifyCachedData(o,S,s,f,v),M}},c.prototype.load=function(h,v,t,g){var m=this,p=h.getConfig().getOptionsLiteral(),L=y(h.getRecorder(),p.nodeRequire||F.global.nodeRequire),w=p.nodeInstrumenter||function(i){return i};this._init(L),this._initNodeRequire(L,h);var S=h.getRecorder();if(/^node\|/.test(v)){var b=v.split("|"),s=null;try{s=L(b[1])}catch(i){g(i);return}h.enqueueDefineAnonymousModule([],function(){return s}),t()}else{v=F.Utilities.fileUriToFilePath(this._env.isWindows,v);var a=this._path.normalize(v),f=this._getElectronRendererScriptPathOrUri(a),d=Boolean(p.nodeCachedData),o=d?this._getCachedDataPath(p.nodeCachedData,v):void 0;this._readSourceAndCachedData(a,o,S,function(i,u,_,E){if(i){g(i);return}var M;u.charCodeAt(0)===c._BOM?M=c._PREFIX+u.substring(1)+c._SUFFIX:M=c._PREFIX+u+c._SUFFIX,M=w(M,a);var D={filename:f,cachedData:_},I=m._createAndEvalScript(h,M,D,t,g);m._handleCachedData(I,M,o,d&&!_,h),m._verifyCachedData(I,M,o,E,h)})}},c.prototype._createAndEvalScript=function(h,v,t,g,m){var p=h.getRecorder();p.record(31,t.filename);var L=new this._vm.Script(v,t),w=L.runInThisContext(t),S=h.getGlobalAMDDefineFunc(),b=!1,s=function(){return b=!0,S.apply(null,arguments)};return s.amd=S.amd,w.call(F.global,h.getGlobalAMDRequireFunc(),s,t.filename,this._path.dirname(t.filename)),p.record(32,t.filename),b?g():m(new Error("Didn't receive define call in "+t.filename+"!")),L},c.prototype._getElectronRendererScriptPathOrUri=function(h){if(!this._env.isElectronRenderer)return h;var v=h.match(/^([a-z])\:(.*)/i);return v?"file:///"+(v[1].toUpperCase()+":"+v[2]).replace(/\\/g,"/"):"file://"+h},c.prototype._getCachedDataPath=function(h,v){var t=this._crypto.createHash("md5").update(v,"utf8").update(h.seed,"utf8").update(process.arch,"").digest("hex"),g=this._path.basename(v).replace(/\.js$/,"");return this._path.join(h.path,g+"-"+t+".code")},c.prototype._handleCachedData=function(h,v,t,g,m){var p=this;h.cachedDataRejected?this._fs.unlink(t,function(L){m.getRecorder().record(62,t),p._createAndWriteCachedData(h,v,t,m),L&&m.getConfig().onError(L)}):g&&this._createAndWriteCachedData(h,v,t,m)},c.prototype._createAndWriteCachedData=function(h,v,t,g){var m=this,p=Math.ceil(g.getConfig().getOptionsLiteral().nodeCachedData.writeDelay*(1+Math.random())),L=-1,w=0,S=void 0,b=function(){setTimeout(function(){S||(S=m._crypto.createHash("md5").update(v,"utf8").digest());var s=h.createCachedData();if(!(s.length===0||s.length===L||w>=5)){if(s.length<L){b();return}L=s.length,m._fs.writeFile(t,Buffer.concat([S,s]),function(a){a&&g.getConfig().onError(a),g.getRecorder().record(63,t),b()})}},p*Math.pow(4,w++))};b()},c.prototype._readSourceAndCachedData=function(h,v,t,g){if(!v)this._fs.readFile(h,{encoding:"utf8"},g);else{var m=void 0,p=void 0,L=void 0,w=2,S=function(b){b?g(b):--w==0&&g(void 0,m,p,L)};this._fs.readFile(h,{encoding:"utf8"},function(b,s){m=s,S(b)}),this._fs.readFile(v,function(b,s){!b&&s&&s.length>0?(L=s.slice(0,16),p=s.slice(16),t.record(60,v)):t.record(61,v),S()})}},c.prototype._verifyCachedData=function(h,v,t,g,m){var p=this;!g||h.cachedDataRejected||setTimeout(function(){var L=p._crypto.createHash("md5").update(v,"utf8").digest();g.equals(L)||(m.getConfig().onError(new Error("FAILED TO VERIFY CACHED DATA, deleting stale '"+t+"' now, but a RESTART IS REQUIRED")),p._fs.unlink(t,function(w){w&&m.getConfig().onError(w)}))},Math.ceil(5e3*(1+Math.random())))},c._BOM=65279,c._PREFIX="(function (require, define, __filename, __dirname) { ",c._SUFFIX=` });`,c}();function y(c,h){if(h.__$__isRecorded)return h;var v=function(g){c.record(33,g);try{return h(g)}finally{c.record(34,g)}};return v.__$__isRecorded=!0,v}F.ensureRecordedNodeRequire=y;function C(c){return new r(c)}F.createScriptLoader=C})(ie||(ie={}));var ie;(function(F){var r=function(){function C(c){var h=c.lastIndexOf("/");h!==-1?this.fromModulePath=c.substr(0,h+1):this.fromModulePath=""}return C._normalizeModuleId=function(c){var h=c,v;for(v=/\/\.\//;v.test(h);)h=h.replace(v,"/");for(h=h.replace(/^\.\//g,""),v=/\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;v.test(h);)h=h.replace(v,"/");return h=h.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,""),h},C.prototype.resolveModule=function(c){var h=c;return F.Utilities.isAbsolutePath(h)||(F.Utilities.startsWith(h,"./")||F.Utilities.startsWith(h,"../"))&&(h=C._normalizeModuleId(this.fromModulePath+h)),h},C.ROOT=new C(""),C}();F.ModuleIdResolver=r;var N=function(){function C(c,h,v,t,g,m){this.id=c,this.strId=h,this.dependencies=v,this._callback=t,this._errorback=g,this.moduleIdResolver=m,this.exports={},this.error=null,this.exportsPassedIn=!1,this.unresolvedDependenciesCount=this.dependencies.length,this._isComplete=!1}return C._safeInvokeFunction=function(c,h){try{return{returnedValue:c.apply(F.global,h),producedError:null}}catch(v){return{returnedValue:null,producedError:v}}},C._invokeFactory=function(c,h,v,t){return c.shouldInvokeFactory(h)?c.shouldCatchError()?this._safeInvokeFunction(v,t):{returnedValue:v.apply(F.global,t),producedError:null}:{returnedValue:null,producedError:null}},C.prototype.complete=function(c,h,v,t){this._isComplete=!0;var g=null;if(this._callback)if(typeof this._callback=="function"){c.record(21,this.strId);var m=C._invokeFactory(h,this.strId,this._callback,v);g=m.producedError,c.record(22,this.strId),!g&&typeof m.returnedValue!="undefined"&&(!this.exportsPassedIn||F.Utilities.isEmpty(this.exports))&&(this.exports=m.returnedValue)}else this.exports=this._callback;if(g){var p=F.ensureError(g);p.phase="factory",p.moduleId=this.strId,p.neededBy=t(this.id),this.error=p,h.onError(p)}this.dependencies=null,this._callback=null,this._errorback=null,this.moduleIdResolver=null},C.prototype.onDependencyError=function(c){return this._isComplete=!0,this.error=c,this._errorback?(this._errorback(c),!0):!1},C.prototype.isComplete=function(){return this._isComplete},C}();F.Module=N;var e=function(){function C(){this._nextId=0,this._strModuleIdToIntModuleId=new Map,this._intModuleIdToStrModuleId=[],this.getModuleId("exports"),this.getModuleId("module"),this.getModuleId("require")}return C.prototype.getMaxModuleId=function(){return this._nextId},C.prototype.getModuleId=function(c){var h=this._strModuleIdToIntModuleId.get(c);return typeof h=="undefined"&&(h=this._nextId++,this._strModuleIdToIntModuleId.set(c,h),this._intModuleIdToStrModuleId[h]=c),h},C.prototype.getStrModuleId=function(c){return this._intModuleIdToStrModuleId[c]},C}(),A=function(){function C(c){this.id=c}return C.EXPORTS=new C(0),C.MODULE=new C(1),C.REQUIRE=new C(2),C}();F.RegularDependency=A;var l=function(){function C(c,h,v){this.id=c,this.pluginId=h,this.pluginParam=v}return C}();F.PluginDependency=l;var y=function(){function C(c,h,v,t,g){g===void 0&&(g=0),this._env=c,this._scriptLoader=h,this._loaderAvailableTimestamp=g,this._defineFunc=v,this._requireFunc=t,this._moduleIdProvider=new e,this._config=new F.Configuration(this._env),this._hasDependencyCycle=!1,this._modules2=[],this._knownModules2=[],this._inverseDependencies2=[],this._inversePluginDependencies2=new Map,this._currentAnonymousDefineCall=null,this._recorder=null,this._buildInfoPath=[],this._buildInfoDefineStack=[],this._buildInfoDependencies=[]}return C.prototype.reset=function(){return new C(this._env,this._scriptLoader,this._defineFunc,this._requireFunc,this._loaderAvailableTimestamp)},C.prototype.getGlobalAMDDefineFunc=function(){return this._defineFunc},C.prototype.getGlobalAMDRequireFunc=function(){return this._requireFunc},C._findRelevantLocationInStack=function(c,h){for(var v=function(a){return a.replace(/\\/g,"/")},t=v(c),g=h.split(/\n/),m=0;m<g.length;m++){var p=g[m].match(/(.*):(\d+):(\d+)\)?$/);if(p){var L=p[1],w=p[2],S=p[3],b=Math.max(L.lastIndexOf(" ")+1,L.lastIndexOf("(")+1);if(L=L.substr(b),L=v(L),L===t){var s={line:parseInt(w,10),col:parseInt(S,10)};return s.line===1&&(s.col-="(function (require, define, __filename, __dirname) { ".length),s}}}throw new Error("Could not correlate define call site for needle "+c)},C.prototype.getBuildInfo=function(){if(!this._config.isBuild())return null;for(var c=[],h=0,v=0,t=this._modules2.length;v<t;v++){var g=this._modules2[v];if(!!g){var m=this._buildInfoPath[g.id]||null,p=this._buildInfoDefineStack[g.id]||null,L=this._buildInfoDependencies[g.id];c[h++]={id:g.strId,path:m,defineLocation:m&&p?C._findRelevantLocationInStack(m,p):null,dependencies:L,shim:null,exports:g.exports}}}return c},C.prototype.getRecorder=function(){return this._recorder||(this._config.shouldRecordStats()?this._recorder=new F.LoaderEventRecorder(this._loaderAvailableTimestamp):this._recorder=F.NullLoaderEventRecorder.INSTANCE),this._recorder},C.prototype.getLoaderEvents=function(){return this.getRecorder().getEvents()},C.prototype.enqueueDefineAnonymousModule=function(c,h){if(this._currentAnonymousDefineCall!==null)throw new Error("Can only have one anonymous define call per script file");var v=null;this._config.isBuild()&&(v=new Error("StackLocation").stack||null),this._currentAnonymousDefineCall={stack:v,dependencies:c,callback:h}},C.prototype.defineModule=function(c,h,v,t,g,m){var p=this;m===void 0&&(m=new r(c));var L=this._moduleIdProvider.getModuleId(c);if(this._modules2[L]){this._config.isDuplicateMessageIgnoredFor(c)||console.warn("Duplicate definition of module '"+c+"'");return}var w=new N(L,c,this._normalizeDependencies(h,m),v,t,m);this._modules2[L]=w,this._config.isBuild()&&(this._buildInfoDefineStack[L]=g,this._buildInfoDependencies[L]=(w.dependencies||[]).map(function(S){return p._moduleIdProvider.getStrModuleId(S.id)})),this._resolve(w)},C.prototype._normalizeDependency=function(c,h){if(c==="exports")return A.EXPORTS;if(c==="module")return A.MODULE;if(c==="require")return A.REQUIRE;var v=c.indexOf("!");if(v>=0){var t=h.resolveModule(c.substr(0,v)),g=h.resolveModule(c.substr(v+1)),m=this._moduleIdProvider.getModuleId(t+"!"+g),p=this._moduleIdProvider.getModuleId(t);return new l(m,p,g)}return new A(this._moduleIdProvider.getModuleId(h.resolveModule(c)))},C.prototype._normalizeDependencies=function(c,h){for(var v=[],t=0,g=0,m=c.length;g<m;g++)v[t++]=this._normalizeDependency(c[g],h);return v},C.prototype._relativeRequire=function(c,h,v,t){if(typeof h=="string")return this.synchronousRequire(h,c);this.defineModule(F.Utilities.generateAnonymousModule(),h,v,t,null,c)},C.prototype.synchronousRequire=function(c,h){h===void 0&&(h=new r(c));var v=this._normalizeDependency(c,h),t=this._modules2[v.id];if(!t)throw new Error("Check dependency list! Synchronous require cannot resolve module '"+c+"'. This is the first mention of this module!");if(!t.isComplete())throw new Error("Check dependency list! Synchronous require cannot resolve module '"+c+"'. This module has not been resolved completely yet.");if(t.error)throw t.error;return t.exports},C.prototype.configure=function(c,h){var v=this._config.shouldRecordStats();h?this._config=new F.Configuration(this._env,c):this._config=this._config.cloneAndMerge(c),this._config.shouldRecordStats()&&!v&&(this._recorder=null)},C.prototype.getConfig=function(){return this._config},C.prototype._onLoad=function(c){if(this._currentAnonymousDefineCall!==null){var h=this._currentAnonymousDefineCall;this._currentAnonymousDefineCall=null,this.defineModule(this._moduleIdProvider.getStrModuleId(c),h.dependencies,h.callback,null,h.stack)}},C.prototype._createLoadError=function(c,h){var v=this,t=this._moduleIdProvider.getStrModuleId(c),g=(this._inverseDependencies2[c]||[]).map(function(p){return v._moduleIdProvider.getStrModuleId(p)}),m=F.ensureError(h);return m.phase="loading",m.moduleId=t,m.neededBy=g,m},C.prototype._onLoadError=function(c,h){var v=this._createLoadError(c,h);this._modules2[c]||(this._modules2[c]=new N(c,this._moduleIdProvider.getStrModuleId(c),[],function(){},null,null));for(var t=[],g=0,m=this._moduleIdProvider.getMaxModuleId();g<m;g++)t[g]=!1;var p=!1,L=[];for(L.push(c),t[c]=!0;L.length>0;){var w=L.shift(),S=this._modules2[w];S&&(p=S.onDependencyError(v)||p);var b=this._inverseDependencies2[w];if(b)for(var g=0,m=b.length;g<m;g++){var s=b[g];t[s]||(L.push(s),t[s]=!0)}}p||this._config.onError(v)},C.prototype._hasDependencyPath=function(c,h){var v=this._modules2[c];if(!v)return!1;for(var t=[],g=0,m=this._moduleIdProvider.getMaxModuleId();g<m;g++)t[g]=!1;var p=[];for(p.push(v),t[c]=!0;p.length>0;){var L=p.shift(),w=L.dependencies;if(w)for(var g=0,m=w.length;g<m;g++){var S=w[g];if(S.id===h)return!0;var b=this._modules2[S.id];b&&!t[S.id]&&(t[S.id]=!0,p.push(b))}}return!1},C.prototype._findCyclePath=function(c,h,v){if(c===h||v===50)return[c];var t=this._modules2[c];if(!t)return null;var g=t.dependencies;if(g)for(var m=0,p=g.length;m<p;m++){var L=this._findCyclePath(g[m].id,h,v+1);if(L!==null)return L.push(c),L}return null},C.prototype._createRequire=function(c){var h=this,v=function(t,g,m){return h._relativeRequire(c,t,g,m)};return v.toUrl=function(t){return h._config.requireToUrl(c.resolveModule(t))},v.getStats=function(){return h.getLoaderEvents()},v.hasDependencyCycle=function(){return h._hasDependencyCycle},v.config=function(t,g){g===void 0&&(g=!1),h.configure(t,g)},v.__$__nodeRequire=F.global.nodeRequire,v},C.prototype._loadModule=function(c){var h=this;if(!(this._modules2[c]||this._knownModules2[c])){this._knownModules2[c]=!0;var v=this._moduleIdProvider.getStrModuleId(c),t=this._config.moduleIdToPaths(v),g=/^@[^\/]+\/[^\/]+$/;this._env.isNode&&(v.indexOf("/")===-1||g.test(v))&&t.push("node|"+v);var m=-1,p=function(L){if(m++,m>=t.length)h._onLoadError(c,L);else{var w=t[m],S=h.getRecorder();if(h._config.isBuild()&&w==="empty:"){h._buildInfoPath[c]=w,h.defineModule(h._moduleIdProvider.getStrModuleId(c),[],null,null,null),h._onLoad(c);return}S.record(10,w),h._scriptLoader.load(h,w,function(){h._config.isBuild()&&(h._buildInfoPath[c]=w),S.record(11,w),h._onLoad(c)},function(b){S.record(12,w),p(b)})}};p(null)}},C.prototype._loadPluginDependency=function(c,h){var v=this;if(!(this._modules2[h.id]||this._knownModules2[h.id])){this._knownModules2[h.id]=!0;var t=function(g){v.defineModule(v._moduleIdProvider.getStrModuleId(h.id),[],g,null,null)};t.error=function(g){v._config.onError(v._createLoadError(h.id,g))},c.load(h.pluginParam,this._createRequire(r.ROOT),t,this._config.getOptionsLiteral())}},C.prototype._resolve=function(c){var h=this,v=c.dependencies;if(v)for(var t=0,g=v.length;t<g;t++){var m=v[t];if(m===A.EXPORTS){c.exportsPassedIn=!0,c.unresolvedDependenciesCount--;continue}if(m===A.MODULE){c.unresolvedDependenciesCount--;continue}if(m===A.REQUIRE){c.unresolvedDependenciesCount--;continue}var p=this._modules2[m.id];if(p&&p.isComplete()){if(p.error){c.onDependencyError(p.error);return}c.unresolvedDependenciesCount--;continue}if(this._hasDependencyPath(m.id,c.id)){this._hasDependencyCycle=!0,console.warn("There is a dependency cycle between '"+this._moduleIdProvider.getStrModuleId(m.id)+"' and '"+this._moduleIdProvider.getStrModuleId(c.id)+"'. The cyclic path follows:");var L=this._findCyclePath(m.id,c.id,0)||[];L.reverse(),L.push(m.id),console.warn(L.map(function(b){return h._moduleIdProvider.getStrModuleId(b)}).join(` => `)),c.unresolvedDependenciesCount--;continue}if(this._inverseDependencies2[m.id]=this._inverseDependencies2[m.id]||[],this._inverseDependencies2[m.id].push(c.id),m instanceof l){var w=this._modules2[m.pluginId];if(w&&w.isComplete()){this._loadPluginDependency(w.exports,m);continue}var S=this._inversePluginDependencies2.get(m.pluginId);S||(S=[],this._inversePluginDependencies2.set(m.pluginId,S)),S.push(m),this._loadModule(m.pluginId);continue}this._loadModule(m.id)}c.unresolvedDependenciesCount===0&&this._onModuleComplete(c)},C.prototype._onModuleComplete=function(c){var h=this,v=this.getRecorder();if(!c.isComplete()){var t=c.dependencies,g=[];if(t)for(var m=0,p=t.length;m<p;m++){var L=t[m];if(L===A.EXPORTS){g[m]=c.exports;continue}if(L===A.MODULE){g[m]={id:c.strId,config:function(){return h._config.getConfigForModule(c.strId)}};continue}if(L===A.REQUIRE){g[m]=this._createRequire(c.moduleIdResolver);continue}var w=this._modules2[L.id];if(w){g[m]=w.exports;continue}g[m]=null}var S=function(d){return(h._inverseDependencies2[d]||[]).map(function(o){return h._moduleIdProvider.getStrModuleId(o)})};c.complete(v,this._config,g,S);var b=this._inverseDependencies2[c.id];if(this._inverseDependencies2[c.id]=null,b)for(var m=0,p=b.length;m<p;m++){var s=b[m],a=this._modules2[s];a.unresolvedDependenciesCount--,a.unresolvedDependenciesCount===0&&this._onModuleComplete(a)}var f=this._inversePluginDependencies2.get(c.id);if(f){this._inversePluginDependencies2.delete(c.id);for(var m=0,p=f.length;m<p;m++)this._loadPluginDependency(c.exports,f[m])}}},C}();F.ModuleManager=y})(ie||(ie={}));var Y,ie;(function(F){var r=new F.Environment,N=null,e=function(C,c,h){typeof C!="string"&&(h=c,c=C,C=null),(typeof c!="object"||!Array.isArray(c))&&(h=c,c=null),c||(c=["require","exports","module"]),C?N.defineModule(C,c,h,null,null):N.enqueueDefineAnonymousModule(c,h)};e.amd={jQuery:!0};var A=function(C,c){c===void 0&&(c=!1),N.configure(C,c)},l=function(){if(arguments.length===1){if(arguments[0]instanceof Object&&!Array.isArray(arguments[0])){A(arguments[0]);return}if(typeof arguments[0]=="string")return N.synchronousRequire(arguments[0])}if((arguments.length===2||arguments.length===3)&&Array.isArray(arguments[0])){N.defineModule(F.Utilities.generateAnonymousModule(),arguments[0],arguments[1],arguments[2],null);return}throw new Error("Unrecognized require call")};l.config=A,l.getConfig=function(){return N.getConfig().getOptionsLiteral()},l.reset=function(){N=N.reset()},l.getBuildInfo=function(){return N.getBuildInfo()},l.getStats=function(){return N.getLoaderEvents()},l.define=e;function y(){if(typeof F.global.require!="undefined"||typeof require!="undefined"){var C=F.global.require||require;if(typeof C=="function"&&typeof C.resolve=="function"){var c=F.ensureRecordedNodeRequire(N.getRecorder(),C);F.global.nodeRequire=c,l.nodeRequire=c,l.__$__nodeRequire=c}}r.isNode&&!r.isElectronRenderer&&!r.isElectronNodeIntegrationWebWorker?(module.exports=l,require=l):(r.isElectronRenderer||(F.global.define=e),F.global.require=l)}F.init=y,(typeof F.global.define!="function"||!F.global.define.amd)&&(N=new F.ModuleManager(r,F.createScriptLoader(r),e,l,F.Utilities.getHighPerformanceTimestamp()),typeof F.global.require!="undefined"&&typeof F.global.require!="function"&&l.config(F.global.require),Y=function(){return e.apply(null,arguments)},Y.amd=e.amd,typeof doNotInitLoader=="undefined"&&y())})(ie||(ie={}));var oe=this&&this.__awaiter||function(F,r,N,e){function A(l){return l instanceof N?l:new N(function(y){y(l)})}return new(N||(N=Promise))(function(l,y){function C(v){try{h(e.next(v))}catch(t){y(t)}}function c(v){try{h(e.throw(v))}catch(t){y(t)}}function h(v){v.done?l(v.value):A(v.value).then(C,c)}h((e=e.apply(F,r||[])).next())})};Y(X[18],J([0,1]),function(F,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.load=r.create=r.setPseudoTranslation=r.getConfiguredDefaultLocale=r.localize=void 0;let N=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const e="i-default";function A(p,L){let w;return L.length===0?w=p:w=p.replace(/\{(\d+)\}/g,(S,b)=>{const s=b[0],a=L[s];let f=S;return typeof a=="string"?f=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(f=String(a)),f}),N&&(w="\uFF3B"+w.replace(/[aouei]/g,"$&$&")+"\uFF3D"),w}function l(p,L){let w=p[L];return w||(w=p["*"],w)?w:null}function y(p){return p.charAt(p.length-1)==="/"?p:p+"/"}function C(p,L,w){return oe(this,void 0,void 0,function*(){const S=y(p)+y(L)+"vscode/"+y(w),b=yield fetch(S);if(b.ok)return yield b.json();throw new Error(`${b.status} - ${b.statusText}`)})}function c(p){return function(L,w){const S=Array.prototype.slice.call(arguments,2);return A(p[L],S)}}function h(p,L,...w){return A(L,w)}r.localize=h;function v(p){}r.getConfiguredDefaultLocale=v;function t(p){N=p}r.setPseudoTranslation=t;function g(p,L){var w;return{localize:c(L[p]),getConfiguredDefaultLocale:(w=L.getConfiguredDefaultLocale)!==null&&w!==void 0?w:S=>{}}}r.create=g;function m(p,L,w,S){var b;const s=(b=S["vs/nls"])!==null&&b!==void 0?b:{};if(!p||p.length===0)return w({localize:h,getConfiguredDefaultLocale:()=>{var i;return(i=s.availableLanguages)===null||i===void 0?void 0:i["*"]}});const a=s.availableLanguages?l(s.availableLanguages,p):null,f=a===null||a===e;let d=".nls";f||(d=d+"."+a);const o=i=>{Array.isArray(i)?i.localize=c(i):i.localize=c(i[p]),i.getConfiguredDefaultLocale=()=>{var u;return(u=s.availableLanguages)===null||u===void 0?void 0:u["*"]},w(i)};typeof s.loadBundle=="function"?s.loadBundle(p,a,(i,u)=>{i?L([p+".nls"],o):o(u)}):s.translationServiceUrl&&!f?(()=>oe(this,void 0,void 0,function*(){var i;try{const u=yield C(s.translationServiceUrl,a,p);return o(u)}catch(u){if(!a.includes("-"))return console.error(u),L([p+".nls"],o);try{const _=a.split("-")[0],E=yield C(s.translationServiceUrl,_,p);return(i=s.availableLanguages)!==null&&i!==void 0||(s.availableLanguages={}),s.availableLanguages["*"]=_,o(E)}catch(_){return console.error(_),L([p+".nls"],o)}}}))():L([p+d],o,i=>{if(d===".nls"){console.error("Failed trying to load default language strings",i);return}console.error(`Failed to load message bundle for language ${a}. Falling back to the default language:`,i),L([p+".nls"],o)})}r.load=m}),function(){var F,r;const N=self.MonacoEnvironment,e=N&&N.baseUrl?N.baseUrl:"../../../",A=typeof((F=self.trustedTypes)===null||F===void 0?void 0:F.createPolicy)=="function"?(r=self.trustedTypes)===null||r===void 0?void 0:r.createPolicy("amdLoader",{createScriptURL:t=>t,createScript:(t,...g)=>{const m=g.slice(0,-1).join(","),p=g.pop().toString();return`(function anonymous(${m}) { ${p} })`}}):void 0;function l(){try{return(A?self.eval(A.createScript("","true")):new Function("true")).call(self),!0}catch{return!1}}function y(){return new Promise((t,g)=>{if(typeof self.define=="function"&&self.define.amd)return t();const m=e+"vs/loader.js";if(!(/^((http:)|(https:)|(file:))/.test(m)&&m.substring(0,self.origin.length)!==self.origin)&&l()){fetch(m).then(L=>{if(L.status!==200)throw new Error(L.statusText);return L.text()}).then(L=>{L=`${L} //# sourceURL=${m}`,(A?self.eval(A.createScript("",L)):new Function(L)).call(self),t()}).then(void 0,g);return}A?importScripts(A.createScriptURL(m)):importScripts(m),t()})}function C(){require.config({baseUrl:e,catchError:!0,trustedTypesPolicy:A,amdModulesPattern:/^vs\//})}function c(t){y().then(()=>{C(),require([t],function(g){setTimeout(function(){const m=g.create((p,L)=>{self.postMessage(p,L)},null);for(self.onmessage=p=>m.onmessage(p.data,p.ports);v.length>0;)self.onmessage(v.shift())},0)})})}typeof self.define=="function"&&self.define.amd&&C();let h=!0;const v=[];self.onmessage=t=>{if(!h){v.push(t);return}h=!1,c(t.data)}}(),Y(X[19],J([0,1]),function(F,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayQueue=r.findMinBy=r.findLastMaxBy=r.findMaxBy=r.numberComparator=r.compareBy=r.CompareResult=r.splice=r.insertInto=r.asArray=r.pushMany=r.pushToEnd=r.pushToStart=r.arrayInsert=r.range=r.firstOrDefault=r.lastIndex=r.findLast=r.distinct=r.isNonEmptyArray=r.isFalsyOrEmpty=r.coalesce=r.groupBy=r.quickSelect=r.findFirstInSorted=r.binarySearch2=r.binarySearch=r.removeFastWithoutKeepingOrder=r.equals=r.tail2=r.tail=void 0;function N(P,U=0){return P[P.length-(1+U)]}r.tail=N;function e(P){if(P.length===0)throw new Error("Invalid tail call");return[P.slice(0,P.length-1),P[P.length-1]]}r.tail2=e;function A(P,U,T=(W,B)=>W===B){if(P===U)return!0;if(!P||!U||P.length!==U.length)return!1;for(let W=0,B=P.length;W<B;W++)if(!T(P[W],U[W]))return!1;return!0}r.equals=A;function l(P,U){const T=P.length-1;U<T&&(P[U]=P[T]),P.pop()}r.removeFastWithoutKeepingOrder=l;function y(P,U,T){return C(P.length,W=>T(P[W],U))}r.binarySearch=y;function C(P,U){let T=0,W=P-1;for(;T<=W;){const B=(T+W)/2|0,te=U(B);if(te<0)T=B+1;else if(te>0)W=B-1;else return B}return-(T+1)}r.binarySearch2=C;function c(P,U){let T=0,W=P.length;if(W===0)return 0;for(;T<W;){const B=Math.floor((T+W)/2);U(P[B])?W=B:T=B+1}return T}r.findFirstInSorted=c;function h(P,U,T){if(P=P|0,P>=U.length)throw new TypeError("invalid index");const W=U[Math.floor(U.length*Math.random())],B=[],te=[],n=[];for(const de of U){const be=T(de,W);be<0?B.push(de):be>0?te.push(de):n.push(de)}return P<B.length?h(P,B,T):P<B.length+n.length?n[0]:h(P-(B.length+n.length),te,T)}r.quickSelect=h;function v(P,U){const T=[];let W;for(const B of P.slice(0).sort(U))!W||U(W[0],B)!==0?(W=[B],T.push(W)):W.push(B);return T}r.groupBy=v;function t(P){return P.filter(U=>!!U)}r.coalesce=t;function g(P){return!Array.isArray(P)||P.length===0}r.isFalsyOrEmpty=g;function m(P){return Array.isArray(P)&&P.length>0}r.isNonEmptyArray=m;function p(P,U=T=>T){const T=new Set;return P.filter(W=>{const B=U(W);return T.has(B)?!1:(T.add(B),!0)})}r.distinct=p;function L(P,U){const T=w(P,U);if(T!==-1)return P[T]}r.findLast=L;function w(P,U){for(let T=P.length-1;T>=0;T--){const W=P[T];if(U(W))return T}return-1}r.lastIndex=w;function S(P,U){return P.length>0?P[0]:U}r.firstOrDefault=S;function b(P,U){let T=typeof U=="number"?P:0;typeof U=="number"?T=P:(T=0,U=P);const W=[];if(T<=U)for(let B=T;B<U;B++)W.push(B);else for(let B=T;B>U;B--)W.push(B);return W}r.range=b;function s(P,U,T){const W=P.slice(0,U),B=P.slice(U);return W.concat(T,B)}r.arrayInsert=s;function a(P,U){const T=P.indexOf(U);T>-1&&(P.splice(T,1),P.unshift(U))}r.pushToStart=a;function f(P,U){const T=P.indexOf(U);T>-1&&(P.splice(T,1),P.push(U))}r.pushToEnd=f;function d(P,U){for(const T of U)P.push(T)}r.pushMany=d;function o(P){return Array.isArray(P)?P:[P]}r.asArray=o;function i(P,U,T){const W=_(P,U),B=P.length,te=T.length;P.length=B+te;for(let n=B-1;n>=W;n--)P[n+te]=P[n];for(let n=0;n<te;n++)P[n+W]=T[n]}r.insertInto=i;function u(P,U,T,W){const B=_(P,U),te=P.splice(B,T);return i(P,B,W),te}r.splice=u;function _(P,U){return U<0?Math.max(U+P.length,0):Math.min(U,P.length)}var E;(function(P){function U(B){return B<0}P.isLessThan=U;function T(B){return B>0}P.isGreaterThan=T;function W(B){return B===0}P.isNeitherLessOrGreaterThan=W,P.greaterThan=1,P.lessThan=-1,P.neitherLessOrGreaterThan=0})(E=r.CompareResult||(r.CompareResult={}));function M(P,U){return(T,W)=>U(P(T),P(W))}r.compareBy=M;const D=(P,U)=>P-U;r.numberComparator=D;function I(P,U){if(P.length===0)return;let T=P[0];for(let W=1;W<P.length;W++){const B=P[W];U(B,T)>0&&(T=B)}return T}r.findMaxBy=I;function O(P,U){if(P.length===0)return;let T=P[0];for(let W=1;W<P.length;W++){const B=P[W];U(B,T)>=0&&(T=B)}return T}r.findLastMaxBy=O;function q(P,U){return I(P,(T,W)=>-U(T,W))}r.findMinBy=q;class z{constructor(U){this.items=U,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(U){let T=this.firstIdx;for(;T<this.items.length&&U(this.items[T]);)T++;const W=T===this.firstIdx?null:this.items.slice(this.firstIdx,T);return this.firstIdx=T,W}takeFromEndWhile(U){let T=this.lastIdx;for(;T>=0&&U(this.items[T]);)T--;const W=T===this.lastIdx?null:this.items.slice(T+1,this.lastIdx+1);return this.lastIdx=T,W}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const U=this.items[this.firstIdx];return this.firstIdx++,U}takeCount(U){const T=this.items.slice(this.firstIdx,this.firstIdx+U);return this.firstIdx+=U,T}}r.ArrayQueue=z}),Y(X[20],J([0,1]),function(F,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CachedFunction=r.LRUCachedFunction=void 0;class N{constructor(l){this.fn=l,this.lastCache=void 0,this.lastArgKey=void 0}get(l){const y=JSON.stringify(l);return this.lastArgKey!==y&&(this.lastArgKey=y,this.lastCache=this.fn(l)),this.lastCache}}r.LRUCachedFunction=N;class e{constructor(l){this.fn=l,this._map=new Map}get cachedValues(){return this._map}get(l){if(this._map.has(l))return this._map.get(l);const y=this.fn(l);return this._map.set(l,y),y}}r.CachedFunction=e}),Y(X[21],J([0,1]),function(F,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CSSIcon=r.Codicon=r.getCodiconAriaLabel=void 0;function N(l){return l?l.replace(/\$\((.*?)\)/g,(y,C)=>` ${C} `).trim():""}r.getCodiconAriaLabel=N;class e{constructor(y,C,c){this.id=y,this.definition=C,this.description=c,e._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return e._allCodicons}}r.Codicon=e,e._allCodicons=[],e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDi