UNPKG

code-server

Version:

Run VS Code on a remote server.

14 lines (13 loc) • 1.31 MB
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var ge=["require","exports","vs/base/common/uri","vs/base/common/event","vs/platform/instantiation/common/instantiation","vs/workbench/api/common/extHost.protocol","vs/base/common/lifecycle","vs/workbench/api/common/extHostTypes","vs/base/common/path","vs/base/common/strings","vs/base/common/network","vs/platform/log/common/log","vs/base/common/platform","vs/base/common/types","vs/workbench/api/common/extHostRpcService","vs/base/common/errors","vs/workbench/api/common/extHostTypeConverters","vs/base/common/arrays","vs/base/common/async","vs/nls","vs/nls!vs/server/remoteExtensionHostProcess","vs/base/common/cancellation","vs/base/common/buffer","vs/base/common/resources","vs/base/common/map","vs/base/common/objects","vs/workbench/api/common/extHostInitDataService","vs/platform/extensions/common/extensions","vs/base/node/pfs","vs/workbench/services/extensions/common/extensions","vs/base/common/extpath","vs/base/common/glob","vs/base/common/uuid","vs/workbench/services/search/common/search","vs/workbench/api/common/extHostTerminalService","vs/workbench/api/common/extHostWorkspace","vs/workbench/api/common/extHostConfiguration","child_process","vs/workbench/api/common/extHostCommands","vs/workbench/api/common/extHostExtensionService","vs/base/common/process","vs/editor/common/core/range","vs/platform/files/common/files","vs/platform/workspace/common/workspace","vs/workbench/api/common/extHostFileSystemInfo","vs/workbench/api/common/extHostDocumentsAndEditors","vs/base/common/decorators","vs/base/common/stopwatch","vs/base/common/hash","vs/base/common/severity","fs","vs/editor/common/core/position","vs/base/common/errorMessage","vs/platform/registry/common/platform","vs/workbench/api/common/extHostTunnelService","vs/workbench/services/extensions/common/proxyIdentifier","vs/workbench/api/common/extHostEditorTabs","vs/workbench/api/common/extHostDebugService","vs/base/common/assert","vs/base/common/json","vs/base/common/marshalling","os","vs/platform/contextkey/common/contextkey","vs/platform/remote/common/remoteHosts","vs/workbench/api/common/extHostTestingPrivateApi","vs/workbench/api/common/extHostUriTransformerService","vs/workbench/api/common/extHostApiDeprecationService","vs/workbench/api/common/extHostFileSystemConsumer","vs/workbench/api/common/extHostStoragePaths","vs/workbench/api/common/extHostWebview","vs/workbench/services/search/common/searchExtTypes","vs/workbench/api/common/extHostTask","vs/base/common/performance","vs/workbench/api/common/extHostSearch","vs/base/common/collections","vs/base/common/functional","vs/base/common/idGenerator","vs/base/common/iterator","vs/base/common/numbers","vs/base/common/codicons","vs/base/common/normalization","vs/base/common/labels","vs/editor/common/modes/languageSelector","vs/platform/instantiation/common/extensions","vs/editor/common/modes","vs/platform/instantiation/common/serviceCollection","vs/platform/theme/common/themeService","vs/workbench/api/common/cache","vs/workbench/api/common/shared/webview","vs/workbench/contrib/testing/common/testId","vs/workbench/api/common/exHostSecretState","vs/workbench/api/common/extHostStorage","vs/workbench/services/search/node/ripgrepSearchUtils","vs/base/common/linkedList","vs/base/common/processes","vs/base/common/stream","vs/base/common/filters","vs/base/common/htmlContent","vs/base/common/uint","vs/base/common/comparers","vs/base/common/fuzzyScorer","vs/base/common/mime","vs/base/common/uriIpc","string_decoder","vs/base/node/extpath","vs/base/parts/ipc/common/ipc","vs/base/parts/ipc/common/ipc.net","vs/editor/common/core/characterClassifier","vs/editor/common/model","vs/editor/common/model/wordHelper","vs/editor/common/services/semanticTokensDto","vs/editor/common/viewModel/prefixSumComputer","vs/base/node/processes","vs/editor/common/config/editorOptions","vs/platform/instantiation/common/descriptors","vs/platform/configuration/common/configuration","vs/platform/markers/common/markers","vs/platform/progress/common/progress","vs/platform/configuration/common/configurationRegistry","vs/platform/remote/common/remoteAuthorityResolver","vs/platform/remote/common/tunnel","vs/workbench/api/common/extHostTelemetry","vs/workbench/api/common/extHostDocumentData","vs/workbench/contrib/debug/common/abstractDebugAdapter","net","vs/workbench/contrib/notebook/common/notebookCommon","vs/workbench/contrib/testing/common/testCollection","vs/workbench/services/editor/common/editorGroupsService","vs/workbench/api/common/extHostNotebookEditor","vs/workbench/api/common/extHostTextEditor","vs/workbench/api/common/extHostDecorations","vs/workbench/api/common/extHostLoggerService","vs/workbench/api/common/extHostOutput","vs/workbench/api/common/extHostWindow","vs/workbench/services/search/common/textSearchManager","vs/workbench/services/search/node/textSearchManager","vs/workbench/services/search/node/ripgrepTextSearchEngine","vs/base/parts/ipc/node/ipc.net","vs/base/common/jsonFormatter","vs/base/common/jsonEdit","vs/base/common/lazy","vs/base/common/iconLabels","vs/base/node/decoder","vs/editor/common/controller/wordCharacterClassifier","vs/editor/common/core/selection","vs/editor/common/model/textModelSearch","vs/editor/common/modes/languageConfiguration","vs/editor/common/modes/linkComputer","vs/editor/common/modes/tokenizationRegistry","vs/editor/common/model/mirrorTextModel","vs/nls!vs/base/common/date","vs/base/common/date","vs/nls!vs/base/common/errorMessage","vs/nls!vs/base/node/processes","vs/nls!vs/editor/common/config/editorOptions","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/extensions/common/extensionValidator","vs/nls!vs/platform/externalTerminal/node/externalTerminalService","vs/nls!vs/platform/files/common/files","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/workspaces/common/workspaces","vs/nls!vs/workbench/api/common/extHostDiagnostics","vs/nls!vs/workbench/api/common/extHostExtensionService","vs/nls!vs/workbench/api/common/extHostProgress","vs/nls!vs/workbench/api/common/extHostStatusBar","vs/nls!vs/workbench/api/common/extHostTerminalService","vs/nls!vs/workbench/api/common/extHostTreeViews","vs/nls!vs/workbench/api/common/extHostWorkspace","vs/nls!vs/workbench/api/node/extHostDebugService","vs/nls!vs/workbench/api/node/extHostTunnelService","vs/nls!vs/workbench/common/editor","vs/nls!vs/workbench/contrib/debug/common/abstractDebugAdapter","vs/nls!vs/workbench/contrib/debug/node/debugAdapter","vs/nls!vs/workbench/contrib/search/common/queryBuilder","vs/nls!vs/workbench/contrib/tasks/common/taskService","vs/nls!vs/workbench/services/configurationResolver/common/variableResolver","vs/platform/editor/common/editor","vs/platform/extensions/common/extensionValidator","vs/platform/instantiation/common/graph","vs/editor/common/services/modelService","vs/editor/common/modes/languageFeatureRegistry","vs/platform/environment/common/environment","vs/platform/extensionManagement/common/extensionManagement","vs/platform/externalTerminal/common/externalTerminal","vs/platform/externalTerminal/node/externalTerminalService","vs/platform/instantiation/common/instantiationService","vs/platform/log/node/spdlogLog","vs/platform/notification/common/notification","vs/platform/opener/common/opener","vs/platform/product/common/marketplace","vs/platform/product/common/product","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/platform/configuration/common/configurationModels","vs/platform/extensionManagement/common/extensionManagementUtil","vs/platform/sign/node/signService","vs/platform/terminal/common/terminalDataBuffering","vs/platform/theme/common/theme","vs/platform/workspaces/common/workspaces","vs/workbench/api/common/extHostMemento","vs/workbench/api/common/extHostNotebookDocuments","vs/workbench/api/common/extHostSecrets","vs/workbench/api/common/extHostNotebookConcatDocument","vs/workbench/api/common/extHostTheming","vs/workbench/api/common/extHostWebviewMessaging","vs/workbench/api/common/shared/treeDataTransfer","vs/workbench/api/common/extHostCodeInsets","vs/workbench/common/editor","vs/workbench/contrib/debug/common/debugUtils","vs/workbench/contrib/debug/node/debugAdapter","vs/workbench/contrib/debug/node/terminals","vs/workbench/contrib/notebook/common/notebookExecutionService","vs/workbench/contrib/output/common/output","vs/workbench/contrib/tasks/common/taskService","vs/workbench/contrib/terminal/common/environmentVariableShared","vs/workbench/services/configurationResolver/common/variableResolver","vs/workbench/services/editor/common/editorService","vs/workbench/api/common/extHostDocumentSaveParticipant","vs/workbench/api/common/extHostFileSystemEventService","vs/workbench/api/common/extHostNotebookDocument","vs/workbench/api/common/extHostProgress","vs/workbench/api/common/extHostTreeViews","vs/workbench/contrib/testing/common/ownedTestCollection","vs/workbench/services/environment/common/environmentService","vs/workbench/services/extensions/common/extensionDescriptionRegistry","vs/workbench/services/extensions/common/extensionHostProtocol","vs/workbench/api/common/extHostExtensionActivator","vs/workbench/api/common/extHostLogService","vs/workbench/services/extensions/common/lazyPromise","vs/workbench/api/common/extHostAuthentication","vs/workbench/api/common/extHostBulkEdits","vs/workbench/api/common/extHostClipboard","vs/workbench/api/common/extHostApiCommands","vs/workbench/api/common/extHostComments","vs/workbench/api/common/extHostDiagnostics","vs/workbench/api/common/extHostDialogs","vs/workbench/api/common/extHostDocumentContentProviders","vs/workbench/api/common/extHostDocuments","vs/workbench/api/common/extHostFileSystem","vs/workbench/api/common/extHostInteractive","vs/workbench/api/common/extHostLabelService","vs/workbench/api/common/extHostLanguageFeatures","vs/workbench/api/common/extHostLanguages","vs/workbench/api/common/extHostMessageService","vs/workbench/api/common/extHostNotebook","vs/workbench/api/common/extHostNotebookEditors","vs/workbench/api/common/extHostNotebookKernels","vs/workbench/api/common/extHostNotebookRenderers","vs/workbench/api/common/extHostQuickOpen","vs/workbench/api/common/extHostSCM","vs/workbench/api/common/extHostStatusBar","vs/workbench/api/common/extHostTesting","vs/workbench/api/common/extHostTextEditors","vs/workbench/api/common/extHostTimeline","vs/workbench/api/common/extHostUriOpener","vs/workbench/api/common/extHostUrls","vs/workbench/api/common/extHostCustomEditors","vs/workbench/api/common/extHostWebviewPanels","vs/workbench/api/common/extHostWebviewView","vs/workbench/api/node/extHostDownloadService","vs/workbench/api/node/extHostLoggerService","vs/workbench/api/node/extHostStoragePaths","vs/workbench/api/node/extHostTerminalService","vs/workbench/api/node/extHostTunnelService","vs/workbench/services/extensions/common/rpcProtocol","vs/workbench/services/remote/common/remoteAgentService","vs/workbench/services/path/common/pathService","vs/workbench/contrib/search/common/queryBuilder","vs/workbench/api/common/shared/workspaceContains","vs/workbench/api/common/extHostRequireInterceptor","vs/workbench/api/node/extHostDebugService","vs/workbench/api/node/extHostTask","vs/workbench/services/extensions/common/extensionHostMain","vs/workbench/services/search/common/fileSearchManager","vs/workbench/api/common/extHost.api.impl","vs/workbench/api/common/extHost.common.services","vs/workbench/services/textfile/common/encoding","vs/workbench/services/extensions/node/proxyResolver","http","vs/workbench/services/search/node/ripgrepFileSearch","vscode-ripgrep","vs/workbench/services/search/node/fileSearch","vs/workbench/services/search/node/ripgrepSearchProvider","vs/workbench/services/search/node/textSearchAdapter","vs/workbench/services/search/node/rawSearchService","vs/workbench/api/node/extHostSearch","vs/workbench/api/node/extHostCLIServer","vs/workbench/api/node/extHostExtensionService","vs/workbench/api/node/extHost.node.services","vs/workbench/services/extensions/node/extensionHostProcessSetup","util","vs/base/common/marked/marked","https","tls","vscode-proxy-agent","events","vscode-regexpp","crypto","zlib","minimist","vs/server/remoteExtensionHostProcess"],pe=function(Y){for(var e=[],m=0,L=Y.length;m<L;m++)e[m]=ge[Y[m]];return e};define(ge[58],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ok=void 0;function m(L,D){if(!L)throw new Error(D?`Assertion failed (${D})`:"Assertion Failed")}e.ok=m}),define(ge[74],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SetMap=e.diffMaps=e.diffSets=e.fromMap=e.groupBy=e.forEach=e.values=void 0;const m=Object.prototype.hasOwnProperty;function L(T){const I=[];for(let a in T)m.call(T,a)&&I.push(T[a]);return I}e.values=L;function D(T,I){for(let a in T)if(m.call(T,a)&&I({key:a,value:T[a]},function(){delete T[a]})===!1)return}e.forEach=D;function C(T,I){const a=Object.create(null);for(const b of T){const f=I(b);let w=a[f];w||(w=a[f]=[]),w.push(b)}return a}e.groupBy=C;function i(T){const I=Object.create(null);return T&&T.forEach((a,b)=>{I[b]=a}),I}e.fromMap=i;function k(T,I){const a=[],b=[];for(let f of T)I.has(f)||a.push(f);for(let f of I)T.has(f)||b.push(f);return{removed:a,added:b}}e.diffSets=k;function S(T,I){const a=[],b=[];for(let[f,w]of T)I.has(f)||a.push(w);for(let[f,w]of I)T.has(f)||b.push(w);return{removed:a,added:b}}e.diffMaps=S;class y{constructor(){this.map=new Map}add(I,a){let b=this.map.get(I);b||(b=new Set,this.map.set(I,b)),b.add(a)}delete(I,a){const b=this.map.get(I);!b||(b.delete(a),b.size===0&&this.map.delete(I))}forEach(I,a){const b=this.map.get(I);!b||b.forEach(a)}}e.SetMap=y}),define(ge[46],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function m(i){return(k,S,y)=>{let T=null,I=null;if(typeof y.value=="function"?(T="value",I=y.value):typeof y.get=="function"&&(T="get",I=y.get),!I)throw new Error("not supported");y[T]=i(I,S)}}e.createDecorator=m;function L(i,k,S){let y=null,T=null;if(typeof S.value=="function"?(y="value",T=S.value,T.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof S.get=="function"&&(y="get",T=S.get),!T)throw new Error("not supported");const I=`$memoize$${k}`;S[y]=function(...a){return this.hasOwnProperty(I)||Object.defineProperty(this,I,{configurable:!1,enumerable:!1,writable:!1,value:T.apply(this,a)}),this[I]}}e.memoize=L;function D(i,k,S){return m((y,T)=>{const I=`$debounce$${T}`,a=`$debounce$result$${T}`;return function(...b){this[a]||(this[a]=S?S():void 0),clearTimeout(this[I]),k&&(this[a]=k(this[a],...b),b=[this[a]]),this[I]=setTimeout(()=>{y.apply(this,b),this[a]=S?S():void 0},i)}})}e.debounce=D;function C(i,k,S){return m((y,T)=>{const I=`$throttle$timer$${T}`,a=`$throttle$result$${T}`,b=`$throttle$lastRun$${T}`,f=`$throttle$pending$${T}`;return function(...w){if(this[a]||(this[a]=S?S():void 0),(this[b]===null||this[b]===void 0)&&(this[b]=-Number.MAX_VALUE),k&&(this[a]=k(this[a],...w)),this[f])return;const E=this[b]+i;E<=Date.now()?(this[b]=Date.now(),y.apply(this,[this[a]]),this[a]=S?S():void 0):(this[f]=!0,this[I]=setTimeout(()=>{this[f]=!1,this[b]=Date.now(),y.apply(this,[this[a]]),this[a]=S?S():void 0},E-Date.now()))}})}e.throttle=C}),define(ge[15],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isPromiseCanceledError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class m{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(o){setTimeout(()=>{throw o.stack?new Error(o.message+` `+o.stack):o},0)}}addListener(o){return this.listeners.push(o),()=>{this._removeListener(o)}}emit(o){this.listeners.forEach(v=>{v(o)})}_removeListener(o){this.listeners.splice(this.listeners.indexOf(o),1)}setUnexpectedErrorHandler(o){this.unexpectedErrorHandler=o}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(o){this.unexpectedErrorHandler(o),this.emit(o)}onUnexpectedExternalError(o){this.unexpectedErrorHandler(o)}}e.ErrorHandler=m,e.errorHandler=new m;function L(g){e.errorHandler.setUnexpectedErrorHandler(g)}e.setUnexpectedErrorHandler=L;function D(g){S(g)||e.errorHandler.onUnexpectedError(g)}e.onUnexpectedError=D;function C(g){S(g)||e.errorHandler.onUnexpectedExternalError(g)}e.onUnexpectedExternalError=C;function i(g){if(g instanceof Error){let{name:o,message:v}=g;const n=g.stacktrace||g.stack;return{$isError:!0,name:o,message:v,stack:n}}return g}e.transformErrorForSerialization=i;const k="Canceled";function S(g){return g instanceof Error&&g.name===k&&g.message===k}e.isPromiseCanceledError=S;class y extends Error{constructor(){super(k);this.name=this.message}}e.CancellationError=y;function T(){const g=new Error(k);return g.name=g.message,g}e.canceled=T;function I(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}e.illegalArgument=I;function a(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}e.illegalState=a;function b(g){return g?new Error(`readonly property '${g} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=b;function f(g){const o=new Error(`${g} has been disposed`);return o.name="DISPOSED",o}e.disposed=f;function w(g){return g?g.message?g.message:g.stack?g.stack.split(` `)[0]:String(g):"Error"}e.getErrorMessage=w;class E extends Error{constructor(o){super("NotImplemented");o&&(this.message=o)}}e.NotImplementedError=E;class P extends Error{constructor(o){super("NotSupported");o&&(this.message=o)}}e.NotSupportedError=P;class p extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=p;function l(g){const o=g;return o instanceof Error&&Array.isArray(o.actions)}e.isErrorWithActions=l;function s(g,o=Object.create(null)){const v=new Error(g);return o.actions&&(v.actions=o.actions),v}e.createErrorWithActions=s}),define(ge[17],pe([0,1,15]),function(Y,e,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayQueue=e.maxIndex=e.minIndex=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.firstOrDefault=e.lastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch=e.equals=e.tail2=e.tail=void 0;function L(H,V=0){return H[H.length-(1+V)]}e.tail=L;function D(H){if(H.length===0)throw new Error("Invalid tail call");return[H.slice(0,H.length-1),H[H.length-1]]}e.tail2=D;function C(H,V,q=(te,fe)=>te===fe){if(H===V)return!0;if(!H||!V||H.length!==V.length)return!1;for(let te=0,fe=H.length;te<fe;te++)if(!q(H[te],V[te]))return!1;return!0}e.equals=C;function i(H,V,q){let te=0,fe=H.length-1;for(;te<=fe;){const Ce=(te+fe)/2|0,ke=q(H[Ce],V);if(ke<0)te=Ce+1;else if(ke>0)fe=Ce-1;else return Ce}return-(te+1)}e.binarySearch=i;function k(H,V){let q=0,te=H.length;if(te===0)return 0;for(;q<te;){const fe=Math.floor((q+te)/2);V(H[fe])?te=fe:q=fe+1}return q}e.findFirstInSorted=k;function S(H,V,q){if(H=H|0,H>=V.length)throw new TypeError("invalid index");let te=V[Math.floor(V.length*Math.random())],fe=[],Ce=[],ke=[];for(let Ue of V){const xe=q(Ue,te);xe<0?fe.push(Ue):xe>0?Ce.push(Ue):ke.push(Ue)}return H<fe.length?S(H,fe,q):H<fe.length+ke.length?ke[0]:S(H-(fe.length+ke.length),Ce,q)}e.quickSelect=S;function y(H,V){const q=[];let te;for(const fe of H.slice(0).sort(V))!te||V(te[0],fe)!==0?(te=[fe],q.push(te)):te.push(fe);return q}e.groupBy=y;function T(H,V,q){const te=[];function fe(Ue,xe,ze){if(xe===0&&ze.length===0)return;const Q=te[te.length-1];Q&&Q.start+Q.deleteCount===Ue?(Q.deleteCount+=xe,Q.toInsert.push(...ze)):te.push({start:Ue,deleteCount:xe,toInsert:ze})}let Ce=0,ke=0;for(;;){if(Ce===H.length){fe(Ce,0,V.slice(ke));break}if(ke===V.length){fe(Ce,H.length-Ce,[]);break}const Ue=H[Ce],xe=V[ke],ze=q(Ue,xe);ze===0?(Ce+=1,ke+=1):ze<0?(fe(Ce,1,[]),Ce+=1):ze>0&&(fe(Ce,0,[xe]),ke+=1)}return te}e.sortedDiff=T;function I(H,V,q){const te=T(H,V,q),fe=[],Ce=[];for(const ke of te)fe.push(...H.slice(ke.start,ke.start+ke.deleteCount)),Ce.push(...ke.toInsert);return{removed:fe,added:Ce}}e.delta=I;function a(H,V,q){if(q===0)return[];const te=H.slice(0,q).sort(V);return f(H,V,te,q,H.length),te}e.top=a;function b(H,V,q,te,fe){return q===0?Promise.resolve([]):new Promise((Ce,ke)=>{(async()=>{const Ue=H.length,xe=H.slice(0,q).sort(V);for(let ze=q,Q=Math.min(q+te,Ue);ze<Ue;ze=Q,Q=Math.min(Q+te,Ue)){if(ze>q&&await new Promise(Z=>setTimeout(Z)),fe&&fe.isCancellationRequested)throw(0,m.canceled)();f(H,V,xe,ze,Q)}return xe})().then(Ce,ke)})}e.topAsync=b;function f(H,V,q,te,fe){for(const Ce=q.length;te<fe;te++){const ke=H[te];if(V(ke,q[Ce-1])<0){q.pop();const Ue=k(q,xe=>V(ke,xe)<0);q.splice(Ue,0,ke)}}}function w(H){return H.filter(V=>!!V)}e.coalesce=w;function E(H){let V=0;for(let q=0;q<H.length;q++)H[q]&&(H[V]=H[q],V+=1);H.length=V}e.coalesceInPlace=E;function P(H,V,q){H.splice(q,0,H.splice(V,1)[0])}e.move=P;function p(H){return!Array.isArray(H)||H.length===0}e.isFalsyOrEmpty=p;function l(H){return Array.isArray(H)&&H.length>0}e.isNonEmptyArray=l;function s(H,V=q=>q){const q=new Set;return H.filter(te=>{const fe=V(te);return q.has(fe)?!1:(q.add(fe),!0)})}e.distinct=s;function g(H){const V=Object.create(null);return q=>{const te=H(q);return V[te]?!1:(V[te]=!0,!0)}}e.uniqueFilter=g;function o(H,V){const q=v(H,V);if(q!==-1)return H[q]}e.findLast=o;function v(H,V){for(let q=H.length-1;q>=0;q--){const te=H[q];if(V(te))return q}return-1}e.lastIndex=v;function n(H,V){return H.length>0?H[0]:V}e.firstOrDefault=n;function t(H,V,q=(te,fe)=>te===fe){let te=0;for(let fe=0,Ce=Math.min(H.length,V.length);fe<Ce&&q(H[fe],V[fe]);fe++)te++;return te}e.commonPrefixLength=t;function c(H){return[].concat(...H)}e.flatten=c;function d(H,V){let q=typeof V=="number"?H:0;typeof V=="number"?q=H:(q=0,V=H);const te=[];if(q<=V)for(let fe=q;fe<V;fe++)te.push(fe);else for(let fe=q;fe>V;fe--)te.push(fe);return te}e.range=d;function r(H,V,q){return H.reduce((te,fe)=>(te[V(fe)]=q?q(fe):fe,te),Object.create(null))}e.index=r;function h(H,V){return H.push(V),()=>u(H,V)}e.insert=h;function u(H,V){const q=H.indexOf(V);if(q>-1)return H.splice(q,1),V}e.remove=u;function _(H,V,q){const te=H.slice(0,V),fe=H.slice(V);return te.concat(q,fe)}e.arrayInsert=_;function A(H,V){let q;if(typeof V=="number"){let te=V;q=()=>{const fe=Math.sin(te++)*179426549;return fe-Math.floor(fe)}}else q=Math.random;for(let te=H.length-1;te>0;te-=1){const fe=Math.floor(q()*(te+1)),Ce=H[te];H[te]=H[fe],H[fe]=Ce}}e.shuffle=A;function R(H,V){const q=H.indexOf(V);q>-1&&(H.splice(q,1),H.unshift(V))}e.pushToStart=R;function x(H,V){const q=H.indexOf(V);q>-1&&(H.splice(q,1),H.push(V))}e.pushToEnd=x;function O(H,V){return Array.isArray(H)?H.map(V):V(H)}e.mapArrayOrNot=O;function F(H){return Array.isArray(H)?H:[H]}e.asArray=F;function $(H){return H[Math.floor(Math.random()*H.length)]}e.getRandomElement=$;function M(H,V){for(const q of H){const te=V(q);if(te!==void 0)return te}}e.mapFind=M;function B(H,V,q){const te=z(H,V),fe=H.length,Ce=q.length;H.length=fe+Ce;for(let ke=fe-1;ke>=te;ke--)H[ke+Ce]=H[ke];for(let ke=0;ke<Ce;ke++)H[ke+te]=q[ke]}e.insertInto=B;function U(H,V,q,te){const fe=z(H,V),Ce=H.splice(fe,q);return B(H,fe,te),Ce}e.splice=U;function z(H,V){return V<0?Math.max(V+H.length,0):Math.min(V,H.length)}function K(H,V){let q=Number.MAX_SAFE_INTEGER,te=0;return H.forEach((fe,Ce)=>{const ke=V(fe);ke<q&&(q=ke,te=Ce)}),te}e.minIndex=K;function N(H,V){let q=Number.MIN_SAFE_INTEGER,te=0;return H.forEach((fe,Ce)=>{const ke=V(fe);ke>q&&(q=ke,te=Ce)}),te}e.maxIndex=N;class j{constructor(V){this.items=V,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(V){let q=this.firstIdx;for(;q<this.items.length&&V(this.items[q]);)q++;const te=q===this.firstIdx?null:this.items.slice(this.firstIdx,q);return this.firstIdx=q,te}takeFromEndWhile(V){let q=this.lastIdx;for(;q>=0&&V(this.items[q]);)q--;const te=q===this.lastIdx?null:this.items.slice(q+1,this.lastIdx+1);return this.lastIdx=q,te}peek(){return this.items[this.firstIdx]}dequeue(){const V=this.items[this.firstIdx];return this.firstIdx++,V}takeCount(V){const q=this.items.slice(this.firstIdx,this.firstIdx+V);return this.firstIdx+=V,q}}e.ArrayQueue=j}),define(ge[75],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function m(L){const D=this;let C=!1,i;return function(){return C||(C=!0,i=L.apply(D,arguments)),i}}e.once=m}),define(ge[76],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class m{constructor(D){this._prefix=D,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}e.IdGenerator=m,e.defaultGenerator=new m("id#")}),define(ge[77],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var m;(function(L){function D(g){return g&&typeof g=="object"&&typeof g[Symbol.iterator]=="function"}L.is=D;const C=Object.freeze([]);function i(){return C}L.empty=i;function*k(g){yield g}L.single=k;function S(g){return g||C}L.from=S;function y(g){return!g||g[Symbol.iterator]().next().done===!0}L.isEmpty=y;function T(g){return g[Symbol.iterator]().next().value}L.first=T;function I(g,o){for(const v of g)if(o(v))return!0;return!1}L.some=I;function a(g,o){for(const v of g)if(o(v))return v}L.find=a;function*b(g,o){for(const v of g)o(v)&&(yield v)}L.filter=b;function*f(g,o){let v=0;for(const n of g)yield o(n,v++)}L.map=f;function*w(...g){for(const o of g)for(const v of o)yield v}L.concat=w;function*E(g){for(const o of g)for(const v of o)yield v}L.concatNested=E;function P(g,o,v){let n=v;for(const t of g)n=o(n,t);return n}L.reduce=P;function*p(g,o,v=g.length){for(o<0&&(o+=g.length),v<0?v+=g.length:v>g.length&&(v=g.length);o<v;o++)yield g[o]}L.slice=p;function l(g,o=Number.POSITIVE_INFINITY){const v=[];if(o===0)return[v,g];const n=g[Symbol.iterator]();for(let t=0;t<o;t++){const c=n.next();if(c.done)return[v,L.empty()];v.push(c.value)}return[v,{[Symbol.iterator](){return n}}]}L.consume=l;function s(g,o,v=(n,t)=>n===t){const n=g[Symbol.iterator](),t=o[Symbol.iterator]();for(;;){const c=n.next(),d=t.next();if(c.done!==d.done)return!1;if(c.done)return!0;if(!v(c.value,d.value))return!1}}L.equals=s})(m=e.Iterable||(e.Iterable={}))}),define(ge[59],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeType=e.stripComments=e.visit=e.findNodeAtOffset=e.contains=e.getNodeValue=e.getNodePath=e.findNodeAtLocation=e.parseTree=e.parse=e.getLocation=e.createScanner=e.ParseOptions=e.ParseErrorCode=e.SyntaxKind=e.ScanError=void 0;var m;(function(o){o[o.None=0]="None",o[o.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=2]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",o[o.InvalidUnicode=4]="InvalidUnicode",o[o.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",o[o.InvalidCharacter=6]="InvalidCharacter"})(m=e.ScanError||(e.ScanError={}));var L;(function(o){o[o.OpenBraceToken=1]="OpenBraceToken",o[o.CloseBraceToken=2]="CloseBraceToken",o[o.OpenBracketToken=3]="OpenBracketToken",o[o.CloseBracketToken=4]="CloseBracketToken",o[o.CommaToken=5]="CommaToken",o[o.ColonToken=6]="ColonToken",o[o.NullKeyword=7]="NullKeyword",o[o.TrueKeyword=8]="TrueKeyword",o[o.FalseKeyword=9]="FalseKeyword",o[o.StringLiteral=10]="StringLiteral",o[o.NumericLiteral=11]="NumericLiteral",o[o.LineCommentTrivia=12]="LineCommentTrivia",o[o.BlockCommentTrivia=13]="BlockCommentTrivia",o[o.LineBreakTrivia=14]="LineBreakTrivia",o[o.Trivia=15]="Trivia",o[o.Unknown=16]="Unknown",o[o.EOF=17]="EOF"})(L=e.SyntaxKind||(e.SyntaxKind={}));var D;(function(o){o[o.InvalidSymbol=1]="InvalidSymbol",o[o.InvalidNumberFormat=2]="InvalidNumberFormat",o[o.PropertyNameExpected=3]="PropertyNameExpected",o[o.ValueExpected=4]="ValueExpected",o[o.ColonExpected=5]="ColonExpected",o[o.CommaExpected=6]="CommaExpected",o[o.CloseBraceExpected=7]="CloseBraceExpected",o[o.CloseBracketExpected=8]="CloseBracketExpected",o[o.EndOfFileExpected=9]="EndOfFileExpected",o[o.InvalidCommentToken=10]="InvalidCommentToken",o[o.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=12]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",o[o.InvalidUnicode=14]="InvalidUnicode",o[o.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",o[o.InvalidCharacter=16]="InvalidCharacter"})(D=e.ParseErrorCode||(e.ParseErrorCode={}));var C;(function(o){o.DEFAULT={allowTrailingComma:!0}})(C=e.ParseOptions||(e.ParseOptions={}));function i(o,v=!1){let n=0,t=o.length,c="",d=0,r=16,h=0;function u($){let M=0,B=0;for(;M<$;){const U=o.charCodeAt(n);if(U>=48&&U<=57)B=B*16+U-48;else if(U>=65&&U<=70)B=B*16+U-65+10;else if(U>=97&&U<=102)B=B*16+U-97+10;else break;n++,M++}return M<$&&(B=-1),B}function _($){n=$,c="",d=0,r=16,h=0}function A(){const $=n;if(o.charCodeAt(n)===48)n++;else for(n++;n<o.length&&y(o.charCodeAt(n));)n++;if(n<o.length&&o.charCodeAt(n)===46)if(n++,n<o.length&&y(o.charCodeAt(n)))for(n++;n<o.length&&y(o.charCodeAt(n));)n++;else return h=3,o.substring($,n);let M=n;if(n<o.length&&(o.charCodeAt(n)===69||o.charCodeAt(n)===101))if(n++,(n<o.length&&o.charCodeAt(n)===43||o.charCodeAt(n)===45)&&n++,n<o.length&&y(o.charCodeAt(n))){for(n++;n<o.length&&y(o.charCodeAt(n));)n++;M=n}else h=3;return o.substring($,M)}function R(){let $="",M=n;for(;;){if(n>=t){$+=o.substring(M,n),h=2;break}const B=o.charCodeAt(n);if(B===34){$+=o.substring(M,n),n++;break}if(B===92){if($+=o.substring(M,n),n++,n>=t){h=2;break}switch(o.charCodeAt(n++)){case 34:$+='"';break;case 92:$+="\\";break;case 47:$+="/";break;case 98:$+="\b";break;case 102:$+="\f";break;case 110:$+=` `;break;case 114:$+="\r";break;case 116:$+=" ";break;case 117:const z=u(4);z>=0?$+=String.fromCharCode(z):h=4;break;default:h=5}M=n;continue}if(B>=0&&B<=31)if(S(B)){$+=o.substring(M,n),h=2;break}else h=6;n++}return $}function x(){if(c="",h=0,d=n,n>=t)return d=t,r=17;let $=o.charCodeAt(n);if(k($)){do n++,c+=String.fromCharCode($),$=o.charCodeAt(n);while(k($));return r=15}if(S($))return n++,c+=String.fromCharCode($),$===13&&o.charCodeAt(n)===10&&(n++,c+=` `),r=14;switch($){case 123:return n++,r=1;case 125:return n++,r=2;case 91:return n++,r=3;case 93:return n++,r=4;case 58:return n++,r=6;case 44:return n++,r=5;case 34:return n++,c=R(),r=10;case 47:const M=n-1;if(o.charCodeAt(n+1)===47){for(n+=2;n<t&&!S(o.charCodeAt(n));)n++;return c=o.substring(M,n),r=12}if(o.charCodeAt(n+1)===42){n+=2;const B=t-1;let U=!1;for(;n<B;){if(o.charCodeAt(n)===42&&o.charCodeAt(n+1)===47){n+=2,U=!0;break}n++}return U||(n++,h=1),c=o.substring(M,n),r=13}return c+=String.fromCharCode($),n++,r=16;case 45:if(c+=String.fromCharCode($),n++,n===t||!y(o.charCodeAt(n)))return r=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c+=A(),r=11;default:for(;n<t&&O($);)n++,$=o.charCodeAt(n);if(d!==n){switch(c=o.substring(d,n),c){case"true":return r=8;case"false":return r=9;case"null":return r=7}return r=16}return c+=String.fromCharCode($),n++,r=16}}function O($){if(k($)||S($))return!1;switch($){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function F(){let $;do $=x();while($>=12&&$<=15);return $}return{setPosition:_,getPosition:()=>n,scan:v?F:x,getToken:()=>r,getTokenValue:()=>c,getTokenOffset:()=>d,getTokenLength:()=>n-d,getTokenError:()=>h}}e.createScanner=i;function k(o){return o===32||o===9||o===11||o===12||o===160||o===5760||o>=8192&&o<=8203||o===8239||o===8287||o===12288||o===65279}function S(o){return o===10||o===13||o===8232||o===8233}function y(o){return o>=48&&o<=57}var T;(function(o){o[o.nullCharacter=0]="nullCharacter",o[o.maxAsciiCharacter=127]="maxAsciiCharacter",o[o.lineFeed=10]="lineFeed",o[o.carriageReturn=13]="carriageReturn",o[o.lineSeparator=8232]="lineSeparator",o[o.paragraphSeparator=8233]="paragraphSeparator",o[o.nextLine=133]="nextLine",o[o.space=32]="space",o[o.nonBreakingSpace=160]="nonBreakingSpace",o[o.enQuad=8192]="enQuad",o[o.emQuad=8193]="emQuad",o[o.enSpace=8194]="enSpace",o[o.emSpace=8195]="emSpace",o[o.threePerEmSpace=8196]="threePerEmSpace",o[o.fourPerEmSpace=8197]="fourPerEmSpace",o[o.sixPerEmSpace=8198]="sixPerEmSpace",o[o.figureSpace=8199]="figureSpace",o[o.punctuationSpace=8200]="punctuationSpace",o[o.thinSpace=8201]="thinSpace",o[o.hairSpace=8202]="hairSpace",o[o.zeroWidthSpace=8203]="zeroWidthSpace",o[o.narrowNoBreakSpace=8239]="narrowNoBreakSpace",o[o.ideographicSpace=12288]="ideographicSpace",o[o.mathematicalSpace=8287]="mathematicalSpace",o[o.ogham=5760]="ogham",o[o._=95]="_",o[o.$=36]="$",o[o._0=48]="_0",o[o._1=49]="_1",o[o._2=50]="_2",o[o._3=51]="_3",o[o._4=52]="_4",o[o._5=53]="_5",o[o._6=54]="_6",o[o._7=55]="_7",o[o._8=56]="_8",o[o._9=57]="_9",o[o.a=97]="a",o[o.b=98]="b",o[o.c=99]="c",o[o.d=100]="d",o[o.e=101]="e",o[o.f=102]="f",o[o.g=103]="g",o[o.h=104]="h",o[o.i=105]="i",o[o.j=106]="j",o[o.k=107]="k",o[o.l=108]="l",o[o.m=109]="m",o[o.n=110]="n",o[o.o=111]="o",o[o.p=112]="p",o[o.q=113]="q",o[o.r=114]="r",o[o.s=115]="s",o[o.t=116]="t",o[o.u=117]="u",o[o.v=118]="v",o[o.w=119]="w",o[o.x=120]="x",o[o.y=121]="y",o[o.z=122]="z",o[o.A=65]="A",o[o.B=66]="B",o[o.C=67]="C",o[o.D=68]="D",o[o.E=69]="E",o[o.F=70]="F",o[o.G=71]="G",o[o.H=72]="H",o[o.I=73]="I",o[o.J=74]="J",o[o.K=75]="K",o[o.L=76]="L",o[o.M=77]="M",o[o.N=78]="N",o[o.O=79]="O",o[o.P=80]="P",o[o.Q=81]="Q",o[o.R=82]="R",o[o.S=83]="S",o[o.T=84]="T",o[o.U=85]="U",o[o.V=86]="V",o[o.W=87]="W",o[o.X=88]="X",o[o.Y=89]="Y",o[o.Z=90]="Z",o[o.ampersand=38]="ampersand",o[o.asterisk=42]="asterisk",o[o.at=64]="at",o[o.backslash=92]="backslash",o[o.bar=124]="bar",o[o.caret=94]="caret",o[o.closeBrace=125]="closeBrace",o[o.closeBracket=93]="closeBracket",o[o.closeParen=41]="closeParen",o[o.colon=58]="colon",o[o.comma=44]="comma",o[o.dot=46]="dot",o[o.doubleQuote=34]="doubleQuote",o[o.equals=61]="equals",o[o.exclamation=33]="exclamation",o[o.greaterThan=62]="greaterThan",o[o.lessThan=60]="lessThan",o[o.minus=45]="minus",o[o.openBrace=123]="openBrace",o[o.openBracket=91]="openBracket",o[o.openParen=40]="openParen",o[o.percent=37]="percent",o[o.plus=43]="plus",o[o.question=63]="question",o[o.semicolon=59]="semicolon",o[o.singleQuote=39]="singleQuote",o[o.slash=47]="slash",o[o.tilde=126]="tilde",o[o.backspace=8]="backspace",o[o.formFeed=12]="formFeed",o[o.byteOrderMark=65279]="byteOrderMark",o[o.tab=9]="tab",o[o.verticalTab=11]="verticalTab"})(T||(T={}));function I(o,v){const n=[],t=new Object;let c;const d={value:{},offset:0,length:0,type:"object",parent:void 0};let r=!1;function h(u,_,A,R){d.value=u,d.offset=_,d.length=A,d.type=R,d.colonOffset=void 0,c=d}try{l(o,{onObjectBegin:(u,_)=>{if(v<=u)throw t;c=void 0,r=v>u,n.push("")},onObjectProperty:(u,_,A)=>{if(v<_||(h(u,_,A,"property"),n[n.length-1]=u,v<=_+A))throw t},onObjectEnd:(u,_)=>{if(v<=u)throw t;c=void 0,n.pop()},onArrayBegin:(u,_)=>{if(v<=u)throw t;c=void 0,n.push(0)},onArrayEnd:(u,_)=>{if(v<=u)throw t;c=void 0,n.pop()},onLiteralValue:(u,_,A)=>{if(v<_||(h(u,_,A,g(u)),v<=_+A))throw t},onSeparator:(u,_,A)=>{if(v<=_)throw t;if(u===":"&&c&&c.type==="property")c.colonOffset=_,r=!1,c=void 0;else if(u===","){const R=n[n.length-1];typeof R=="number"?n[n.length-1]=R+1:(r=!0,n[n.length-1]=""),c=void 0}}})}catch(u){if(u!==t)throw u}return{path:n,previousNode:c,isAtPropertyKey:r,matches:u=>{let _=0;for(let A=0;_<u.length&&A<n.length;A++)if(u[_]===n[A]||u[_]==="*")_++;else if(u[_]!=="**")return!1;return _===u.length}}}e.getLocation=I;function a(o,v=[],n=C.DEFAULT){let t=null,c=[];const d=[];function r(u){Array.isArray(c)?c.push(u):t!==null&&(c[t]=u)}return l(o,{onObjectBegin:()=>{const u={};r(u),d.push(c),c=u,t=null},onObjectProperty:u=>{t=u},onObjectEnd:()=>{c=d.pop()},onArrayBegin:()=>{const u=[];r(u),d.push(c),c=u,t=null},onArrayEnd:()=>{c=d.pop()},onLiteralValue:r,onError:(u,_,A)=>{v.push({error:u,offset:_,length:A})}},n),c[0]}e.parse=a;function b(o,v=[],n=C.DEFAULT){let t={type:"array",offset:-1,length:-1,children:[],parent:void 0};function c(u){t.type==="property"&&(t.length=u-t.offset,t=t.parent)}function d(u){return t.children.push(u),u}l(o,{onObjectBegin:u=>{t=d({type:"object",offset:u,length:-1,parent:t,children:[]})},onObjectProperty:(u,_,A)=>{t=d({type:"property",offset:_,length:-1,parent:t,children:[]}),t.children.push({type:"string",value:u,offset:_,length:A,parent:t})},onObjectEnd:(u,_)=>{t.length=u+_-t.offset,t=t.parent,c(u+_)},onArrayBegin:(u,_)=>{t=d({type:"array",offset:u,length:-1,parent:t,children:[]})},onArrayEnd:(u,_)=>{t.length=u+_-t.offset,t=t.parent,c(u+_)},onLiteralValue:(u,_,A)=>{d({type:g(u),offset:_,length:A,parent:t,value:u}),c(_+A)},onSeparator:(u,_,A)=>{t.type==="property"&&(u===":"?t.colonOffset=_:u===","&&c(_))},onError:(u,_,A)=>{v.push({error:u,offset:_,length:A})}},n);const h=t.children[0];return h&&delete h.parent,h}e.parseTree=b;function f(o,v){if(!o)return;let n=o;for(let t of v)if(typeof t=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let c=!1;for(const d of n.children)if(Array.isArray(d.children)&&d.children[0].value===t){n=d.children[1],c=!0;break}if(!c)return}else{const c=t;if(n.type!=="array"||c<0||!Array.isArray(n.children)||c>=n.children.length)return;n=n.children[c]}return n}e.findNodeAtLocation=f;function w(o){if(!o.parent||!o.parent.children)return[];const v=w(o.parent);if(o.parent.type==="property"){const n=o.parent.children[0].value;v.push(n)}else if(o.parent.type==="array"){const n=o.parent.children.indexOf(o);n!==-1&&v.push(n)}return v}e.getNodePath=w;function E(o){switch(o.type){case"array":return o.children.map(E);case"object":const v=Object.create(null);for(let n of o.children){const t=n.children[1];t&&(v[n.children[0].value]=E(t))}return v;case"null":case"string":case"number":case"boolean":return o.value;default:return}}e.getNodeValue=E;function P(o,v,n=!1){return v>=o.offset&&v<o.offset+o.length||n&&v===o.offset+o.length}e.contains=P;function p(o,v,n=!1){if(P(o,v,n)){const t=o.children;if(Array.isArray(t))for(let c=0;c<t.length&&t[c].offset<=v;c++){const d=p(t[c],v,n);if(d)return d}return o}}e.findNodeAtOffset=p;function l(o,v,n=C.DEFAULT){const t=i(o,!1);function c(q){return q?()=>q(t.getTokenOffset(),t.getTokenLength()):()=>!0}function d(q){return q?te=>q(te,t.getTokenOffset(),t.getTokenLength()):()=>!0}const r=c(v.onObjectBegin),h=d(v.onObjectProperty),u=c(v.onObjectEnd),_=c(v.onArrayBegin),A=c(v.onArrayEnd),R=d(v.onLiteralValue),x=d(v.onSeparator),O=c(v.onComment),F=d(v.onError),$=n&&n.disallowComments,M=n&&n.allowTrailingComma;function B(){for(;;){const q=t.scan();switch(t.getTokenError()){case 4:U(14);break;case 5:U(15);break;case 3:U(13);break;case 1:$||U(11);break;case 2:U(12);break;case 6:U(16);break}switch(q){case 12:case 13:$?U(10):O();break;case 16:U(1);break;case 15:case 14:break;default:return q}}}function U(q,te=[],fe=[]){if(F(q),te.length+fe.length>0){let Ce=t.getToken();for(;Ce!==17;){if(te.indexOf(Ce)!==-1){B();break}else if(fe.indexOf(Ce)!==-1)break;Ce=B()}}}function z(q){const te=t.getTokenValue();return q?R(te):h(te),B(),!0}function K(){switch(t.getToken()){case 11:let q=0;try{q=JSON.parse(t.getTokenValue()),typeof q!="number"&&(U(2),q=0)}catch(te){U(2)}R(q);break;case 7:R(null);break;case 8:R(!0);break;case 9:R(!1);break;default:return!1}return B(),!0}function N(){return t.getToken()!==10?(U(3,[],[2,5]),!1):(z(!1),t.getToken()===6?(x(":"),B(),V()||U(4,[],[2,5])):U(5,[],[2,5]),!0)}function j(){r(),B();let q=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(q||U(4,[],[]),x(","),B(),t.getToken()===2&&M)break}else q&&U(6,[],[]);N()||U(4,[],[2,5]),q=!0}return u(),t.getToken()!==2?U(7,[2],[]):B(),!0}function H(){_(),B();let q=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(q||U(4,[],[]),x(","),B(),t.getToken()===4&&M)break}else q&&U(6,[],[]);V()||U(4,[],[4,5]),q=!0}return A(),t.getToken()!==4?U(8,[4],[]):B(),!0}function V(){switch(t.getToken()){case 3:return H();case 1:return j();case 10:return z(!0);default:return K()}}return B(),t.getToken()===17?n.allowEmptyContent?!0:(U(4,[],[]),!1):V()?(t.getToken()!==17&&U(9,[],[]),!0):(U(4,[],[]),!1)}e.visit=l;function s(o,v){let n=i(o),t=[],c,d=0,r;do switch(r=n.getPosition(),c=n.scan(),c){case 12:case 13:case 17:d!==r&&t.push(o.substring(d,r)),v!==void 0&&t.push(n.getTokenValue().replace(/[^\r\n]/g,v)),d=n.getPosition();break}while(c!==17);return t.join("")}e.stripComments=s;function g(o){switch(typeof o){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(o){if(Array.isArray(o))return"array"}else return"null";return"object"}default:return"null"}}e.getNodeType=g}),define(ge[138],pe([0,1,59]),function(Y,e,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEOL=e.getEOL=e.format=void 0;function L(S,y,T){let I,a,b,f,w;if(y){for(f=y.offset,w=f+y.length,b=f;b>0&&!k(S,b-1);)b--;let d=w;for(;d<S.length&&!k(S,d);)d++;a=S.substring(b,d),I=C(a,T)}else a=S,I=0,b=0,f=0,w=S.length;const E=i(T,S);let P=!1,p=0,l;T.insertSpaces?l=D(" ",T.tabSize||4):l=" ";const s=(0,m.createScanner)(a,!1);let g=!1;function o(){return E+D(l,I+p)}function v(){let d=s.scan();for(P=!1;d===15||d===14;)P=P||d===14,d=s.scan();return g=d===16||s.getTokenError()!==0,d}const n=[];function t(d,r,h){!g&&r<w&&h>f&&S.substring(r,h)!==d&&n.push({offset:r,length:h-r,content:d})}let c=v();if(c!==17){const d=s.getTokenOffset()+b,r=D(l,I);t(r,b,d)}for(;c!==17;){let d=s.getTokenOffset()+s.getTokenLength()+b,r=v(),h="";for(;!P&&(r===12||r===13);){const _=s.getTokenOffset()+b;t(" ",d,_),d=s.getTokenOffset()+s.getTokenLength()+b,h=r===12?o():"",r=v()}if(r===2)c!==1&&(p--,h=o());else if(r===4)c!==3&&(p--,h=o());else{switch(c){case 3:case 1:p++,h=o();break;case 5:case 12:h=o();break;case 13:P?h=o():h=" ";break;case 6:h=" ";break;case 10:if(r===6){h="";break}case 7:case 8:case 9:case 11:case 2:case 4:r===12||r===13?h=" ":r!==5&&r!==17&&(g=!0);break;case 16:g=!0;break}P&&(r===12||r===13)&&(h=o())}const u=s.getTokenOffset()+b;t(h,d,u),c=r}return n}e.format=L;function D(S,y){let T="";for(let I=0;I<y;I++)T+=S;return T}function C(S,y){let T=0,I=0;const a=y.tabSize||4;for(;T<S.length;){const b=S.charAt(T);if(b===" ")I++;else if(b===" ")I+=a;else break;T++}return Math.floor(I/a)}function i(S,y){for(let T=0;T<y.length;T++){const I=y.charAt(T);if(I==="\r")return T+1<y.length&&y.charAt(T+1)===` `?`\r `:"\r";if(I===` `)return` `}return S&&S.eol||` `}e.getEOL=i;function k(S,y){return`\r `.indexOf(S.charAt(y))!==-1}e.isEOL=k}),define(ge[139],pe([0,1,59,138]),function(Y,e,m,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyEdits=e.applyEdit=e.withFormatting=e.setProperty=e.removeProperty=void 0;function D(y,T,I){return C(y,T,void 0,I)}e.removeProperty=D;function C(y,T,I,a,b){const f=T.slice(),w=[],E=(0,m.parseTree)(y,w);let P,p;for(;f.length>0&&(p=f.pop(),P=(0,m.findNodeAtLocation)(E,f),P===void 0&&I!==void 0);)typeof p=="string"?I={[p]:I}:I=[I];if(P)if(P.type==="object"&&typeof p=="string"&&Array.isArray(P.children)){const l=(0,m.findNodeAtLocation)(P,[p]);if(l!==void 0)if(I===void 0){if(!l.parent)throw new Error("Malformed AST");const s=P.children.indexOf(l.parent);let g,o=l.parent.offset+l.parent.length;if(s>0){const v=P.children[s-1];g=v.offset+v.length}else g=P.offset+1,P.children.length>1&&(o=P.children[1].offset);return i(y,{offset:g,length:o-g,content:""},a)}else return i(y,{offset:l.offset,length:l.length,content:JSON.stringify(I)},a);else{if(I===void 0)return[];const s=`${JSON.stringify(p)}: ${JSON.stringify(I)}`,g=b?b(P.children.map(v=>v.children[0].value)):P.children.length;let o;if(g>0){const v=P.children[g-1];o={offset:v.offset+v.length,length:0,content:","+s}}else P.children.length===0?o={offset:P.offset+1,length:0,content:s}:o={offset:P.offset+1,length:0,content:s+","};return i(y,o,a)}}else if(P.type==="array"&&typeof p=="number"&&Array.isArray(P.children))if(I!==void 0){const l=`${JSON.stringify(I)}`;let s;if(P.children.length===0||p===0)s={offset:P.offset+1,length:0,content:P.children.length===0?l:l+","};else{const g=p===-1||p>P.children.length?P.children.length:p,o=P.children[g-1];s={offset:o.offset+o.length,length:0,content:","+l}}return i(y,s,a)}else{const l=p,s=P.children[l];let g;if(P.children.length===1)g={offset:P.offset+1,length:P.length-2,content:""};else if(P.children.length-1===l){const o=P.children[l-1],v=o.offset+o.length,n=P.offset+P.length;g={offset:v,length:n-2-v,content:""}}else g={offset:s.offset,length:P.children[l+1].offset-s.offset,content:""};return i(y,g,a)}else throw new Error(`Can not add ${typeof p!="number"?"index":"property"} to parent of type ${P.type}`);else{if(I===void 0)throw new Error("Can not delete in empty document");return i(y,{offset:E?E.offset:0,length:E?E.length:0,content:JSON.stringify(I)},a)}}e.setProperty=C;function i(y,T,I){let a=k(y,T),b=T.offset,f=T.offset+T.content.length;if(T.length===0||T.content.length===0){for(;b>0&&!(0,L.isEOL)(a,b-1);)b--;for(;f<a.length&&!(0,L.isEOL)(a,f);)f++}const w=(0,L.format)(a,{offset:b,length:f-b},I);for(let P=w.length-1;P>=0;P--){const p=w[P];a=k(a,p),b=Math.min(b,p.offset),f=Math.max(f,p.offset+p.length),f+=p.content.length-p.length}const E=y.length-(a.length-f)-b;return[{offset:b,length:E,content:a.substring(b,f)}]}e.withFormatting=i;function k(y,T){return y.substring(0,T.offset)+T.content+y.substring(T.offset+T.length)}e.applyEdit=k;function S(y,T){let I=T.slice(0).sort((b,f)=>{const w=b.offset-f.offset;return w===0?b.length-f.length:w}),a=y.length;for(let b=I.length-1;b>=0;b--){let f=I[b];if(f.offset+f.length<=a)y=k(y,f);else throw new Error("Overlapping edit");a=f.offset}return y}e.applyEdits=S}),define(ge[140],pe([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class m{constructor(D){this.executor=D,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(D){this._error=D}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(D){return new m(()=>D(this.getValue()))}}e.Lazy=m}),define(ge[6],pe([0,1,75,77]),function(Y,e,m,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const D=!1;let C=null;function i(t){C=t}if(e.setDisposableTracker=i,D){const t="__is_disposable_tracked__";i(new class{trackDisposable(c){const d=new Error("Potentially leaked disposable").stack;setTimeout(()=>{c[t]||console.log(d)},3e3)}setParent(c,d){if(c&&c!==p.None)try{c[t]=!0}catch{}}markAsDisposed(c){if(c&&c!==p.None)try{c[t]=!0}catch{}}markAsSingleton(c){}})}function k(t){return C?.trackDisposable(t),t}function S(t){C?.markAsDisposed(t)}function y(t,c){C?.setParent(t,c)}function T(t,c){if(!!C)for(const d of t)C.setParent(d,c)}function I(t){return C?.markAsSingleton(t),t}e.markAsSingleton=I;class a extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}e.MultiDisposeError=a;function b(t){return typeof t.dispose=="function"&&t.dispose.length===0}e.isDisposable=b;function f(t){if(L.Iterable.is(t)){let c=[];for(const d of t)if(d)try{d.dispose()}catch(r){c.push(r)}if(c.length===1)throw c[0];if(c.length>1)throw new a(c);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}e.dispose=f;function w(...t){const c=E(()=>f(t));return T(t,c),c}e.combinedDisposable=w;function E(t){const c=k({dispose:(0,m.once)(()=>{S(c),t()})});return c}e.toDisposable=E;class P{constructor(){this._toDispose=new Set,this._isDisposed=!1,k(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return y(c,this),this._isDisposed?P.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(c),c}}e.DisposableStore=P,P.DISABLE_DISPOSED_WARNING=!1;class p{constructor(){this._store=new P,k(this),y(this._store,this)}dispose(){S(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}e.Disposable=p,p.None=Object.freeze({dispose(){}});class l{constructor(){this._isDisposed=!1,k(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){this._isDisposed||c===this._value||(this._value?.dispose(),c&&y(c,this),this._value=c)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,S(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&y(c,null),c}}e.MutableDisposable=l;class s{constructor(c){this._disposable=c,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose()