@t1ckbase/vscode-langservers-extracted 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- (()=>{"use strict";var e={20:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocuments=t.NotebookSyncFeature=void 0;const i=n(8766),o=n(1662);t.NotebookSyncFeature=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(i.DidOpenNotebookDocumentNotification.type,(t=>e(t))),onDidChangeNotebookDocument:e=>this.connection.onNotification(i.DidChangeNotebookDocumentNotification.type,(t=>e(t))),onDidSaveNotebookDocument:e=>this.connection.onNotification(i.DidSaveNotebookDocumentNotification.type,(t=>e(t))),onDidCloseNotebookDocument:e=>this.connection.onNotification(i.DidCloseNotebookDocumentNotification.type,(t=>e(t)))}}};class r{static NULL_DISPOSE=Object.freeze({dispose:()=>{}});openHandler;changeHandler;closeHandler;onDidOpenTextDocument(e){return this.openHandler=e,i.Disposable.create((()=>{this.openHandler=void 0}))}openTextDocument(e){return this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,i.Disposable.create((()=>{this.changeHandler=e}))}changeTextDocument(e){return this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,i.Disposable.create((()=>{this.closeHandler=void 0}))}closeTextDocument(e){return this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return r.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return r.NULL_DISPOSE}onDidSaveTextDocument(){return r.NULL_DISPOSE}}t.NotebookDocuments=class{notebookDocuments;notebookCellMap;_onDidOpen;_onDidSave;_onDidChange;_onDidClose;_cellTextDocuments;constructor(e){e instanceof o.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new o.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new i.Emitter,this._onDidChange=new i.Emitter,this._onDidSave=new i.Emitter,this._onDidClose=new i.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){const t=this.notebookCellMap.get(e);return t&&t[0]}findNotebookDocumentForCell(e){const t="string"==typeof e?e:e.document,n=this.notebookCellMap.get(t);return n&&n[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){const t=new r,n=[];return n.push(this.cellTextDocuments.listen(t)),n.push(e.notebooks.synchronization.onDidOpenNotebookDocument((async e=>{this.notebookDocuments.set(e.notebookDocument.uri,e.notebookDocument);for(const n of e.cellTextDocuments)await t.openTextDocument({textDocument:n});this.updateCellMap(e.notebookDocument),this._onDidOpen.fire(e.notebookDocument)}))),n.push(e.notebooks.synchronization.onDidChangeNotebookDocument((async e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0===n)return;n.version=e.notebookDocument.version;const i=n.metadata;let o=!1;const r=e.change;void 0!==r.metadata&&(o=!0,n.metadata=r.metadata);const s=[],a=[],c=[],u=[];if(void 0!==r.cells){const e=r.cells;if(void 0!==e.structure){const i=e.structure.array;if(n.cells.splice(i.start,i.deleteCount,...void 0!==i.cells?i.cells:[]),void 0!==e.structure.didOpen)for(const n of e.structure.didOpen)await t.openTextDocument({textDocument:n}),s.push(n.uri);if(e.structure.didClose)for(const n of e.structure.didClose)await t.closeTextDocument({textDocument:n}),a.push(n.uri)}if(void 0!==e.data){const t=new Map(e.data.map((e=>[e.document,e])));for(let e=0;e<=n.cells.length;e++){const i=t.get(n.cells[e].document);if(void 0!==i){const o=n.cells.splice(e,1,i);if(c.push({old:o[0],new:i}),t.delete(i.document),0===t.size)break}}}if(void 0!==e.textContent)for(const n of e.textContent)await t.changeTextDocument({textDocument:n.document,contentChanges:n.changes}),u.push(n.document.uri)}this.updateCellMap(n);const l={notebookDocument:n};o&&(l.metadata={old:i,new:n.metadata});const d=[];for(const e of s)d.push(this.getNotebookCell(e));const f=[];for(const e of a)f.push(this.getNotebookCell(e));const h=[];for(const e of u)h.push(this.getNotebookCell(e));(d.length>0||f.length>0||c.length>0||h.length>0)&&(l.cells={added:d,removed:f,changed:{data:c,textContent:h}}),void 0===l.metadata&&void 0===l.cells||this._onDidChange.fire(l)}))),n.push(e.notebooks.synchronization.onDidSaveNotebookDocument((e=>{const t=this.notebookDocuments.get(e.notebookDocument.uri);void 0!==t&&this._onDidSave.fire(t)}))),n.push(e.notebooks.synchronization.onDidCloseNotebookDocument((async e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0!==n){this._onDidClose.fire(n);for(const n of e.cellTextDocuments)await t.closeTextDocument({textDocument:n});this.notebookDocuments.delete(e.notebookDocument.uri);for(const e of n.cells)this.notebookCellMap.delete(e.document)}}))),i.Disposable.create((()=>{n.forEach((e=>e.dispose()))}))}updateCellMap(e){for(const t of e.cells)this.notebookCellMap.set(t.document,[t,e])}}},144:(e,t,n)=>{const i=n(3908);e.exports=(e,t,n=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!n)return null;throw e}}},372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CM=t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const i=n(3281);var o,r;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(o||(t.MessageDirection=o={})),t.RegistrationType=class{____;method;constructor(e){this.method=e}};class s extends i.RequestType0{__;___;____;_pr;constructor(e){super(e)}}t.ProtocolRequestType0=s;class a extends i.RequestType{__;___;____;_pr;constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolRequestType=a;class c extends i.NotificationType0{___;____;constructor(e){super(e)}}t.ProtocolNotificationType0=c;class u extends i.NotificationType{___;____;constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolNotificationType=u,function(e){e.create=function(e,t){return{client:e,server:t}}}(r||(t.CM=r={}))},493:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=void 0;const i=n(8766);t.DiagnosticFeature=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(i.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(i.DocumentDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(i.DocumentDiagnosticRequest.partialResult,t)))),onWorkspace:e=>this.connection.onRequest(i.WorkspaceDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(i.WorkspaceDiagnosticRequest.partialResult,t))))}}}},560:(e,t,n)=>{const i=n(3908);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},577:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0,t.createMessageConnection=function(e,n,i,o){const r=void 0!==i?i:t.NullLogger;let s=0,a=0,b=0;const S="2.0",E=o?.maxParallelism??-1;let T,P=0;const O=new Map;let q;const L=new Map,I=new Map;let j,A,F=new d.LinkedMap,$=new Map,W=new Set,H=new Map,U=v.Off,z=_.Text,V=M.New;const B=new f.Emitter,K=new f.Emitter,G=new f.Emitter,X=new f.Emitter,J=new f.Emitter,Y=o&&o.cancellationStrategy?o.cancellationStrategy:k.Message;function Q(e){}function Z(){return V===M.Listening}function ee(){return V===M.Closed}function te(){return V===M.Disposed}function ne(){V!==M.New&&V!==M.Listening||(V=M.Closed,K.fire(void 0))}function ie(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function oe(){j||0===F.size||-1!==E&&P>=E||(j=(0,c.default)().timer.setImmediate((async()=>{if(j=void 0,0===F.size)return;if(-1!==E&&P>=E)return;const e=F.shift();let t;try{P++;const n=o?.messageStrategy;t=x.is(n)?n.handleMessage(e,re):re(e)}catch(e){r.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then((()=>{P--,oe()})).catch((e=>{r.error(`Processing message queue failed: ${e.toString()}`)})):P--,oe()}})))}async function re(e){return l.Message.isRequest(e)?async function(e){if(te())return Promise.resolve();function t(t,i,o){const r={jsonrpc:S,id:e.id};return t instanceof l.ResponseError?r.error=t.toJson():r.result=void 0===t?null:t,ue(r,i,o),n.write(r)}function i(t,i,o){const r={jsonrpc:S,id:e.id,error:t.toJson()};return ue(r,i,o),n.write(r)}!function(e){if(U!==v.Off&&A)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||!e.params||(t=`Params: ${ce(e.params)}`),A.log(`Received request '${e.method} - (${e.id})'.`,t)}else de("receive-request",e)}(e);const o=O.get(e.method);let r,s;o&&(r=o.type,s=o.handler);const a=Date.now();if(s||T){const n=e.id??String(Date.now()),o=w.is(Y.receiver)?Y.receiver.createCancellationTokenSource(n):Y.receiver.createCancellationTokenSource(e);null!==e.id&&W.has(e.id)&&o.cancel(),null!==e.id&&H.set(n,o);try{let n;if(s)if(void 0===e.params){if(void 0!==r&&0!==r.numberOfParams)return i(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines ${r.numberOfParams} params but received none.`),e.method,a);n=s(o.token)}else if(Array.isArray(e.params)){if(void 0!==r&&r.parameterStructures===l.ParameterStructures.byName)return i(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,a);n=s(...e.params,o.token)}else{if(void 0!==r&&r.parameterStructures===l.ParameterStructures.byPosition)return i(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,a);n=s(e.params,o.token)}else T&&(n=T(e.method,e.params,o.token));const c=await n;await t(c,e.method,a)}catch(n){n instanceof l.ResponseError?await t(n,e.method,a):n&&u.string(n.message)?await i(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,a):await i(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,a)}finally{H.delete(n)}}else await i(new l.ResponseError(l.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,a)}(e):l.Message.isNotification(e)?async function(e){if(te())return;let t,n;if(e.method===g.type.method){const t=e.params.id;return W.delete(t),void le(e)}{const i=L.get(e.method);i&&(n=i.handler,t=i.type)}if(n||q)try{if(le(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==l.ParameterStructures.byName&&r.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){const i=e.params;e.method===m.type.method&&2===i.length&&p.is(i[0])?await n({token:i[0],value:i[1]}):(void 0!==t&&(t.parameterStructures===l.ParameterStructures.byName&&r.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&r.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),await n(...i))}else void 0!==t&&t.parameterStructures===l.ParameterStructures.byPosition&&r.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params);else q&&await q(e.method,e.params)}catch(t){t.message?r.error(`Notification handler '${e.method}' failed with message: ${t.message}`):r.error(`Notification handler '${e.method}' failed unexpectedly.`)}else G.fire(e)}(e):l.Message.isResponse(e)?ae(e):function(e){if(!e)return void r.error("Received empty message.");r.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(u.string(t.id)||u.number(t.id)){const e=t.id,n=$.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ne),e.onError((function(e){B.fire([e,void 0,void 0])})),n.onClose(ne),n.onError((function(e){B.fire(e)}));const se=e=>{try{if(l.Message.isNotification(e)&&e.method===g.type.method){const t=e.params.id,i=ie(t),s=F.get(i);if(l.Message.isRequest(s)){const a=o?.connectionStrategy,c=a&&a.cancelUndispatched?a.cancelUndispatched(s,Q):void 0;if(c&&(void 0!==c.error||void 0!==c.result))return F.delete(i),H.delete(t),c.id=s.id,ue(c,e.method,Date.now()),void n.write(c).catch((()=>r.error("Sending response for canceled message failed.")))}const a=H.get(t);if(void 0!==a)return a.cancel(),void le(e);W.add(t)}!function(e,t){var n;l.Message.isRequest(t)?e.set(ie(t.id),t):l.Message.isResponse(t)?-1===E?e.set(null===(n=t.id)?"res-unknown-"+(++b).toString():"res-"+n.toString(),t):ae(t):e.set("not-"+(++a).toString(),t)}(F,e)}finally{oe()}};function ae(e){if(!te())if(null===e.id)e.error?r.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{const t=e.id,n=$.get(t);if(function(e,t){if(U!==v.Off&&A)if(z===_.Text){let n;if(U!==v.Verbose&&U!==v.Compact||(e.error&&e.error.data?n=`Error data: ${ce(e.error.data)}`:e.result?n=`Result: ${ce(e.result)}`:void 0===e.error&&(n="No result returned.")),t){const i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";A.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${i}`,n)}else A.log(`Received response ${e.id} without active response promise.`,n)}else de("receive-response",e)}(e,n),void 0!==n){$.delete(t);try{if(e.error){const t=e.error;n.reject(new l.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?r.error(`Response handler '${n.method}' failed with message: ${e.message}`):r.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function ce(e){if(null!=e)switch(U){case v.Verbose:return JSON.stringify(e,null,4);case v.Compact:return JSON.stringify(e);default:return}}function ue(e,t,n){if(U!==v.Off&&A)if(z===_.Text){let i;U!==v.Verbose&&U!==v.Compact||(e.error&&e.error.data?i=`Error data: ${ce(e.error.data)}`:e.result?i=`Result: ${ce(e.result)}`:void 0===e.error&&(i="No result returned.")),A.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,i)}else de("send-response",e)}function le(e){if(U!==v.Off&&A&&e.method!==D.type.method)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||(t=e.params?`Params: ${ce(e.params)}`:"No parameters provided."),A.log(`Received notification '${e.method}'.`,t)}else de("receive-notification",e)}function de(e,t){if(!A||U===v.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};A.log(n)}function fe(){if(ee())throw new N(C.Closed,"Connection is closed.");if(te())throw new N(C.Disposed,"Connection is disposed.")}function he(e){return void 0===e?null:e}function ge(e){return null===e?void 0:e}function pe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function me(e,t){switch(e){case l.ParameterStructures.auto:return pe(t)?ge(t):[he(t)];case l.ParameterStructures.byName:if(!pe(t))throw new Error("Received parameters by name but param is not an object literal.");return ge(t);case l.ParameterStructures.byPosition:return[he(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ye(e,t){let n;const i=e.numberOfParams;switch(i){case 0:n=void 0;break;case 1:n=me(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<i;e++)n.push(he(t[e]));if(t.length<i)for(let e=t.length;e<i;e++)n.push(null)}return n}const ve={sendNotification:(e,...t)=>{let i,o;if(fe(),u.string(e)){i=e;const n=t[0];let r=0,s=l.ParameterStructures.auto;l.ParameterStructures.is(n)&&(r=1,s=n);const a=t.length,c=a-r;switch(c){case 0:o=void 0;break;case 1:o=me(s,t[r]);break;default:if(s===l.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);o=t.slice(r,a).map((e=>he(e)))}}else{const n=t;i=e.method,o=ye(e,n)}const s={jsonrpc:S,method:i,params:o};return function(e){if(U!==v.Off&&A)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||(t=e.params?`Params: ${ce(e.params)}`:"No parameters provided."),A.log(`Sending notification '${e.method}'.`,t)}else de("send-notification",e)}(s),n.write(s).catch((e=>{throw r.error("Sending notification failed."),e}))},onNotification:(e,t)=>{let n;return fe(),u.func(e)?q=e:t&&(u.string(e)?(n=e,L.set(e,{type:void 0,handler:t})):(n=e.method,L.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?L.get(n)?.handler===t&&L.delete(n):q===e&&(q=void 0)}}},onProgress:(e,t,n)=>{if(I.has(t))throw new Error(`Progress handler for token ${t} already registered`);return I.set(t,n),{dispose:()=>{I.get(t)===n&&I.delete(t)}}},sendProgress:(e,t,n)=>ve.sendNotification(m.type,{token:t,value:n}),onUnhandledProgress:X.event,sendRequest:(e,...t)=>{function i(e,t){const n=Y.sender.sendCancellation(e,t);void 0===n?r.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch((()=>{r.log(`Sending cancellation messages for id ${t} failed.`)}))}let o,a,c;if(fe(),function(){if(!Z())throw new Error("Call listen() first.")}(),u.string(e)){o=e;const n=t[0],i=t[t.length-1];let r=0,s=l.ParameterStructures.auto;l.ParameterStructures.is(n)&&(r=1,s=n);let u=t.length;h.CancellationToken.is(i)&&(u-=1,c=i);const d=u-r;switch(d){case 0:a=void 0;break;case 1:a=me(s,t[r]);break;default:if(s===l.ParameterStructures.byName)throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`);a=t.slice(r,u).map((e=>he(e)))}}else{const n=t;o=e.method,a=ye(e,n);const i=e.numberOfParams;c=h.CancellationToken.is(n[i])?n[i]:void 0}const d=s++;let f,g=!1;void 0!==c&&(c.isCancellationRequested?g=!0:f=c.onCancellationRequested((()=>{i(ve,d)})));const p={jsonrpc:S,id:d,method:o,params:a};return function(e){if(U!==v.Off&&A)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||!e.params||(t=`Params: ${ce(e.params)}`),A.log(`Sending request '${e.method} - (${e.id})'.`,t)}else de("send-request",e)}(p),"function"==typeof Y.sender.enableCancellation&&Y.sender.enableCancellation(p),new Promise((async(e,t)=>{const s={method:o,timerStart:Date.now(),resolve:t=>{e(t),Y.sender.cleanup(d),f?.dispose()},reject:e=>{t(e),Y.sender.cleanup(d),f?.dispose()}};try{$.set(d,s),await n.write(p),g&&i(ve,d)}catch(e){throw $.delete(d),s.reject(new l.ResponseError(l.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),r.error("Sending request failed."),e}}))},onRequest:(e,t)=>{fe();let n=null;return y.is(e)?(n=void 0,T=e):u.string(e)?(n=null,void 0!==t&&(n=e,O.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,O.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?O.get(n)?.handler===t&&O.delete(n):T===e&&(T=void 0))}}},hasPendingResponse:()=>$.size>0,trace:async(e,t,n)=>{let i=!1,o=_.Text;void 0!==n&&(u.boolean(n)?i=n:(i=n.sendNotification||!1,o=n.traceFormat||_.Text)),U=e,z=o,A=U===v.Off?void 0:t,!i||ee()||te()||await ve.sendNotification(R.type,{value:v.toString(e)})},onError:B.event,onClose:K.event,onUnhandledNotification:G.event,onDispose:J.event,end:()=>{n.end()},dispose:()=>{if(te())return;V=M.Disposed,J.fire(void 0);const t=new l.ResponseError(l.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of $.values())e.reject(t);$=new Map,H=new Map,W=new Set,F=new d.LinkedMap,u.func(n.dispose)&&n.dispose(),u.func(e.dispose)&&e.dispose()},listen:()=>{fe(),function(){if(Z())throw new N(C.AlreadyListening,"Connection is already listening")}(),V=M.Listening,e.listen(se)},inspect:()=>{(0,c.default)().console.log("inspect")}};return ve.onNotification(D.type,(e=>{if(U===v.Off||!A)return;const t=U===v.Verbose||U===v.Compact;A.log(e.message,t?e.verbose:void 0)})),ve.onNotification(m.type,(async e=>{const t=I.get(e.token);t?await t(e.value):X.fire(e)})),ve};const c=a(n(9590)),u=s(n(8585)),l=n(6177),d=n(3352),f=n(2676),h=n(9850);var g,p,m,y,v,b,_,R,D,C,S,w,E,T,P,k,x,O,M;!function(e){e.type=new l.NotificationType("$/cancelRequest")}(g||(g={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(p||(t.ProgressToken=p={})),function(e){e.type=new l.NotificationType("$/progress")}(m||(m={})),t.ProgressType=class{__;_pr;constructor(){}},function(e){e.is=function(e){return u.func(e)}}(y||(y={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(v||(t.Trace=v={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(b||(t.TraceValue=b={})),t.TraceValues=b,function(e){e.fromString=function(t){if(!u.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(v||(t.Trace=v={})),function(e){e.Text="text",e.JSON="json"}(_||(t.TraceFormat=_={})),function(e){e.fromString=function(t){return u.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(_||(t.TraceFormat=_={})),function(e){e.type=new l.NotificationType("$/setTrace")}(R||(t.SetTraceNotification=R={})),function(e){e.type=new l.NotificationType("$/logTrace")}(D||(t.LogTraceNotification=D={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(C||(t.ConnectionErrors=C={}));class N extends Error{code;constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,N.prototype)}}t.ConnectionError=N,function(e){e.is=function(e){const t=e;return t&&u.func(t.cancelUndispatched)}}(S||(t.ConnectionStrategy=S={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&u.func(t.createCancellationTokenSource)&&(void 0===t.dispose||u.func(t.dispose))}}(w||(t.IdCancellationReceiverStrategy=w={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&u.func(t.createCancellationTokenSource)&&(void 0===t.dispose||u.func(t.dispose))}}(E||(t.RequestCancellationReceiverStrategy=E={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new h.CancellationTokenSource}),e.is=function(e){return w.is(e)||E.is(e)}}(T||(t.CancellationReceiverStrategy=T={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(g.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&u.func(t.sendCancellation)&&u.func(t.cleanup)}}(P||(t.CancellationSenderStrategy=P={})),function(e){e.Message=Object.freeze({receiver:T.Message,sender:P.Message}),e.is=function(e){const t=e;return t&&T.is(t.receiver)&&P.is(t.sender)}}(k||(t.CancellationStrategy=k={})),function(e){e.is=function(e){const t=e;return t&&u.func(t.handleMessage)}}(x||(t.MessageStrategy=x={})),function(e){e.is=function(e){const t=e;return t&&(k.is(t.cancellationStrategy)||S.is(t.connectionStrategy)||x.is(t.messageStrategy)||u.number(t.maxParallelism))}}(O||(t.ConnectionOptions=O={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(M||(M={}))},639:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const c=s(n(6928)),u=n(857),l=n(1327),d=n(5172),f=n(7608),h=n(4476),g=n(9394),p=n(6216),m=n(7733),y=n(9398),v=a(n(5509)),b=(0,l.createConnection)(l.ProposedFeatures.all,{connectionStrategy:{cancelUndispatched:e=>{if(l.Message.isRequest(e)&&"textDocument/codeAction"===e.method)return{jsonrpc:e.jsonrpc,id:e.id,result:null}}},maxParallelism:1});let _;const R=new l.TextDocuments(d.TextDocument),D=new l.NotebookDocuments(R),C=process.exit;function S(e,t){if(!e)return;const n=(0,m.getUri)(e);if("file"===n.scheme)return(0,m.getFileSystemPath)(n,t);const i=D.findNotebookDocumentForCell(n.toString());if(void 0!==i&&"file"===f.URI.parse(i.uri).scheme){const e=(0,m.getFileSystemPath)(n,t);if(void 0!==e){const t=R.get(n.toString());if(void 0!==t){const n=v.default.getExtension(t.languageId);if(void 0!==n){const t=c.extname(e);if(0===t.length&&"."===e[0])return`${e}.${n}`;if(t.length>0&&t!==n)return`${e.substring(0,e.length-t.length)}.${n}`}}}}}function w(){p.ESLint.clearSettings(),p.RuleSeverities.clear(),p.SaveRuleConfigs.clear(),p.ESLint.clearFormatters(),b.languages.diagnostics.refresh().catch((()=>{b.console.error("Failed to refresh diagnostics")}))}var E;process.exit=e=>{const t=new Error("stack");b.sendNotification(h.ExitCalled.type,[e||0,t.stack]),setTimeout((()=>{C(e)}),1e3)},process.on("uncaughtException",(e=>{let t;if(e&&("string"==typeof e.stack?t=e.stack:"string"==typeof e.message?t=e.message:"string"==typeof e&&(t=e),void 0===t||0===t.length))try{t=JSON.stringify(e,void 0,4)}catch(e){}console.error("Uncaught exception received."),t&&console.error(t)})),p.ESLint.initialize(b,R,S,(function(e){const t=require;try{return t(e)}catch(e){e.stack&&b.console.error(e.stack.toString())}})),p.SaveRuleConfigs.inferFilePath=S,R.onDidClose((async e=>{const t=e.document,n=t.uri;p.ESLint.removeSettings(n),p.SaveRuleConfigs.remove(n),p.CodeActions.remove(n),p.ESLint.unregisterAsFormatter(t)})),function(e){e.applySingleFix="eslint.applySingleFix",e.applySuggestion="eslint.applySuggestion",e.applySameFixes="eslint.applySameFixes",e.applyAllFixes="eslint.applyAllFixes",e.applyDisableLine="eslint.applyDisableLine",e.applyDisableFile="eslint.applyDisableFile",e.openRuleDoc="eslint.openRuleDoc"}(E||(E={})),b.onInitialize(((e,t,n)=>{n.begin("Initializing ESLint Server");const i=l.TextDocumentSyncKind.Incremental;_=e.capabilities,n.done();const o={textDocumentSync:{openClose:!0,change:i,willSaveWaitUntil:!1,save:{includeText:!1}},workspace:{workspaceFolders:{supported:!0}},executeCommandProvider:{commands:[E.applySingleFix,E.applySuggestion,E.applySameFixes,E.applyAllFixes,E.applyDisableLine,E.applyDisableFile,E.openRuleDoc]},diagnosticProvider:{identifier:"eslint",interFileDependencies:!1,workspaceDiagnostics:!1}};return void 0!==_.textDocument?.codeAction?.codeActionLiteralSupport?.codeActionKind.valueSet&&(o.codeActionProvider={codeActionKinds:[l.CodeActionKind.QuickFix,`${l.CodeActionKind.SourceFixAll}.eslint`]}),{capabilities:o}})),b.onInitialized((()=>{!0===_.workspace?.didChangeConfiguration?.dynamicRegistration&&(b.onDidChangeConfiguration((e=>{w()})),b.client.register(l.DidChangeConfigurationNotification.type,void 0)),!0===_.workspace?.workspaceFolders&&b.workspace.onDidChangeWorkspaceFolders((e=>{w()}))}));const T={kind:l.DocumentDiagnosticReportKind.Full,items:[]};b.languages.diagnostics.on((async e=>{const t=R.get(e.textDocument.uri);if(void 0===t)return T;const n=await p.ESLint.resolveSettings(t);if(n.validate!==g.Validate.on||!p.TextDocumentSettings.hasLibrary(n))return T;try{const e=Date.now(),i=await p.ESLint.validate(t,n),o=Date.now()-e;return b.sendNotification(h.StatusNotification.type,{uri:t.uri,state:h.Status.ok,validationTime:o}),{kind:l.DocumentDiagnosticReportKind.Full,items:i}}catch(e){if(n.silent)b.console.info(p.ESLint.ErrorHandlers.getMessage(e,t)),b.sendNotification(h.StatusNotification.type,{uri:t.uri,state:h.Status.ok});else{let i;for(const o of p.ESLint.ErrorHandlers.single)if(i=o(e,t,n.library,n),i)break;i=i||h.Status.error,b.sendNotification(h.StatusNotification.type,{uri:t.uri,state:i})}return T}})),b.onDidChangeWatchedFiles((async e=>{p.RuleMetaData.clear(),p.ESLint.ErrorHandlers.clearNoConfigReported(),p.ESLint.ErrorHandlers.clearMissingModuleReported(),p.ESLint.clearSettings(),p.RuleSeverities.clear(),p.SaveRuleConfigs.clear(),await Promise.all(e.changes.map((async e=>{const t=S(e.uri,!1);if(void 0===t||0===t.length||(0,m.isUNC)(t))return;const n=c.dirname(t);if(n){const e=p.ESLint.ErrorHandlers.getConfigErrorReported(t);if(void 0!==e){const i=await p.ESLint.newClass(e.library,{},e.settings);try{await i.lintText("",{filePath:c.join(n,"___test___.js")}),p.ESLint.ErrorHandlers.removeConfigErrorReported(t)}catch(e){}}}}))),b.languages.diagnostics.refresh().catch((()=>{b.console.error("Failed to refresh diagnostics")}))}));class P{_actions;_fixAll;constructor(){this._actions=new Map}get(e){let t=this._actions.get(e);return void 0===t&&(t={fixes:[],suggestions:[]},this._actions.set(e,t)),t}get fixAll(){return void 0===this._fixAll&&(this._fixAll=[]),this._fixAll}all(){const e=[];for(const t of this._actions.values())e.push(...t.fixes),e.push(...t.suggestions),t.disable&&e.push(t.disable),t.fixAll&&e.push(t.fixAll),t.disableFile&&e.push(t.disableFile),t.showDocumentation&&e.push(t.showDocumentation);return void 0!==this._fixAll&&e.push(...this._fixAll),e}get length(){let e=0;for(const t of this._actions.values())e+=t.fixes.length;return e}}var k;!function(e){e.create=function(e,t,n){return{uri:e.uri,version:e.version,ruleId:t,sequence:n}},e.hasRuleId=function(e){return void 0!==e.ruleId}}(k||(k={}));const x=new class{values;uri;version;constructor(){this.values=new Map,this.uri=void 0,this.version=void 0}clear(e){void 0===e?(this.uri=void 0,this.version=void 0):(this.uri=e.uri,this.version=e.version),this.values.clear()}isUsable(e,t){return this.uri===e&&this.version===t}set(e,t){this.values.set(e,t)}get(e){return this.values.get(e)}},O=`${l.CodeActionKind.SourceFixAll}.eslint`;var M;async function N(e,t){const n=e.uri,i=R.get(n);if(void 0===i||e.version!==i.version)return;const o=await p.ESLint.resolveSettings(i);if(o.validate!==g.Validate.on||!p.TextDocumentSettings.hasLibrary(o)||t===M.format&&!o.format)return[];const r=S(i,o.useRealpaths),s=p.CodeActions.get(n),a=i.getText();let c=Date.now();if(t===M.onSave&&o.codeActionOnSave.mode===g.CodeActionsOnSaveMode.problems){const e=void 0!==s&&s.size>0?new p.Fixes(s).getApplicable().map((e=>p.FixableProblem.createTextEdit(i,e))):[];return b.tracer.log(`Computing all fixes took: ${Date.now()-c} ms.`),e}{const e=void 0!==r&&t===M.onSave?await p.SaveRuleConfigs.get(n,o):void 0,s=e?.offRules,u=e?.options;let l={fix:!0};if((void 0!==s||void 0!==u)&&(void 0!==u&&(l={...l,...u}),void 0!==s&&s.size>0)){const e={rules:Object.create(null)};for(const t of s)e.rules[t]="off";l.overrideConfig=e}return p.ESLint.withClass((async e=>{const t=[],n=await e.lintText(a,{filePath:r});if(b.tracer.log(`Computing all fixes took: ${Date.now()-c} ms.`),Array.isArray(n)&&1===n.length&&void 0!==n[0].output){const e=n[0].output;c=Date.now();const o=(0,y.stringDiff)(a,e,!1);b.tracer.log(`Computing minimal edits took: ${Date.now()-c} ms.`);for(const n of o)t.push({range:{start:i.positionAt(n.originalStart),end:i.positionAt(n.originalStart+n.originalLength)},newText:e.substr(n.modifiedStart,n.modifiedLength)})}return t}),o,l)}}b.onCodeAction((async e=>{const t=new P,n=e.textDocument.uri,i=R.get(n);if(void 0===i)return x.clear(i),t.all();function o(e,t,n,i,o){const r=l.Command.create(e,n,i),s=l.CodeAction.create(e,r,t);return void 0!==o&&(s.diagnostics=[o]),s}function r(e,t){let n=e.indexOf("--");if(n<0){if("string"==typeof t)return e.length;for(n=e.indexOf(t[1]);n>0&&" "===e[n-1];)n--}else for(;n>1&&" "===e[n-1];)n--;return n}function s(e){return e.replace(/[|{}\\()[\]^$+*?.]/g,"\\$&")}function a(e,t,n){const i=v.default.getLineComment(e.languageId),o=v.default.getBlockComment(e.languageId);if(t.line-1>0){const n=e.getText(l.Range.create(l.Position.create(t.line-2,0),l.Position.create(t.line-2,l.uinteger.MAX_VALUE)));if(new RegExp(`${s(i)} eslint-disable-next-line`).test(n)){const e=r(n,i);return l.TextEdit.insert(l.Position.create(t.line-2,e),`, ${t.ruleId}`)}if(new RegExp(`${s(o[0])} eslint-disable-next-line`).test(n)){const e=r(n,o);return l.TextEdit.insert(l.Position.create(t.line-2,e),`, ${t.ruleId}`)}}let a;return a="block"===h.codeAction.disableRuleComment.commentStyle?`${n}${o[0]} eslint-disable-next-line ${t.ruleId} ${o[1]}${u.EOL}`:`${n}${i} eslint-disable-next-line ${t.ruleId}${u.EOL}`,l.TextEdit.insert(l.Position.create(t.line-1,0),a)}function c(e,t){const n=v.default.getLineComment(e.languageId),i=v.default.getBlockComment(e.languageId),o=e.getText(l.Range.create(l.Position.create(t.line-1,0),l.Position.create(t.line-1,l.uinteger.MAX_VALUE)));let s,a;const c=new RegExp(`${n} eslint-disable-line`).test(o),u=new RegExp(`${i[0]} eslint-disable-line`).test(o);return c?(s=`, ${t.ruleId}`,a=r(o,n)):u?(s=`, ${t.ruleId}`,a=r(o,i)):(s="line"===h.codeAction.disableRuleComment.commentStyle?` ${n} eslint-disable-line ${t.ruleId}`:` ${i[0]} eslint-disable-line ${t.ruleId} ${i[1]}`,a=l.uinteger.MAX_VALUE),l.TextEdit.insert(l.Position.create(t.line-1,a),s)}function d(e,t){const n="#!"===e.getText(l.Range.create(l.Position.create(0,0),l.Position.create(0,2)))?1:0,i=v.default.getBlockComment(e.languageId);return l.TextEdit.insert(l.Position.create(n,0),`${i[0]} eslint-disable ${t.ruleId} ${i[1]}${u.EOL}`)}function f(e){const t=e.length;if(0!==t)return e[t-1]}const h=await p.ESLint.resolveSettings(i);if(h.validate!==g.Validate.on||!p.TextDocumentSettings.hasLibrary(h))return t.all();const m=p.CodeActions.get(n);if(void 0===m&&"onType"===h.run)return t.all();const y=void 0!==e.context.only&&e.context.only.length>0?e.context.only[0]:void 0,b=y===l.CodeActionKind.Source,_=y===O||y===l.CodeActionKind.SourceFixAll;if(_||b){if(_){const e={uri:i.uri,version:i.version},n=await N(e,M.onSave);void 0!==n&&t.fixAll.push(l.CodeAction.create("Fix all fixable ESLint issues",{documentChanges:[l.TextDocumentEdit.create(e,n)]},O))}else b&&t.fixAll.push(o("Fix all fixable ESLint issues",l.CodeActionKind.Source,E.applyAllFixes,k.create(i)));return t.all()}if(void 0===m)return t.all();const D=new p.Fixes(m);if(D.isEmpty())return t.all();let C=-1;const S=[],w=y??l.CodeActionKind.QuickFix;for(const r of D.getScoped(e.context.diagnostics)){C=r.documentVersion;const e=r.ruleId;if(S.push(e),p.Problem.isFixable(r)){const s=new l.WorkspaceChange;s.getTextEditChange({uri:n,version:C}).add(p.FixableProblem.createTextEdit(i,r)),x.set(`${E.applySingleFix}:${e}`,s);const a=o(r.label,w,E.applySingleFix,k.create(i,e),r.diagnostic);a.isPreferred=!0,t.get(e).fixes.push(a)}if(p.Problem.hasSuggestions(r)&&r.suggestions.forEach(((s,a)=>{const c=new l.WorkspaceChange;c.getTextEditChange({uri:n,version:C}).add(p.SuggestionsProblem.createTextEdit(i,s)),x.set(`${E.applySuggestion}:${e}:${a}`,c);const u=o(`${s.desc} (${r.ruleId})`,l.CodeActionKind.QuickFix,E.applySuggestion,k.create(i,e,a),r.diagnostic);t.get(e).suggestions.push(u)})),h.codeAction.disableRuleComment.enable&&e!==p.RuleMetaData.unusedDisableDirectiveId){let s=new l.WorkspaceChange;if("sameLine"===h.codeAction.disableRuleComment.location)s.getTextEditChange({uri:n,version:C}).add(c(i,r));else{const e=i.getText(l.Range.create(l.Position.create(r.line-1,0),l.Position.create(r.line-1,l.uinteger.MAX_VALUE))),t=/^([ \t]*)/.exec(e),o=null!==t&&t.length>0?t[1]:"";s.getTextEditChange({uri:n,version:C}).add(a(i,r,o))}x.set(`${E.applyDisableLine}:${e}`,s),t.get(e).disable=o(`Disable ${e} for this line`,w,E.applyDisableLine,k.create(i,e)),void 0===t.get(e).disableFile&&(s=new l.WorkspaceChange,s.getTextEditChange({uri:n,version:C}).add(d(i,r)),x.set(`${E.applyDisableFile}:${e}`,s),t.get(e).disableFile=o(`Disable ${e} for the entire file`,w,E.applyDisableFile,k.create(i,e)))}h.codeAction.showDocumentation.enable&&void 0===t.get(e).showDocumentation&&p.RuleMetaData.hasRuleId(e)&&(t.get(e).showDocumentation=o(`Show documentation for ${e}`,w,E.openRuleDoc,k.create(i,e)))}if(t.length>0){const e=new Map(S.map((e=>[e,[]])));for(const t of D.getAllSorted())if(-1===C&&(C=t.documentVersion),e.has(t.ruleId)){const n=e.get(t.ruleId);p.Fixes.overlaps(f(n),t)||n.push(t)}e.forEach(((e,r)=>{if(e.length>1){const s=new l.WorkspaceChange,a=s.getTextEditChange({uri:n,version:C});e.map((e=>p.FixableProblem.createTextEdit(i,e))).forEach((e=>a.add(e))),x.set(E.applySameFixes,s),t.get(r).fixAll=o(`Fix all ${r} problems`,w,E.applySameFixes,k.create(i))}})),t.fixAll.push(o("Fix all auto-fixable problems",w,E.applyAllFixes,k.create(i)))}return t.all()})),function(e){e.onSave="onsave",e.format="format",e.command="command"}(M||(M={})),b.onExecuteCommand((async e=>{let t;const n=e.arguments[0];if(e.command===E.applyAllFixes){const e=await N(n,M.command);if(void 0!==e&&e.length>0){t=new l.WorkspaceChange;const i=t.getTextEditChange(n);e.forEach((e=>i.add(e)))}}else if(-1!==[E.applySingleFix,E.applyDisableLine,E.applyDisableFile].indexOf(e.command))t=x.get(`${e.command}:${n.ruleId}`);else if(-1!==[E.applySuggestion].indexOf(e.command))t=x.get(`${e.command}:${n.ruleId}:${n.sequence}`);else if(e.command===E.openRuleDoc&&k.hasRuleId(n)){const e=p.RuleMetaData.getUrl(n.ruleId);e&&b.sendRequest(h.OpenESLintDocRequest.type,{url:e})}else t=x.get(e.command);return void 0===t?null:b.workspace.applyEdit(t.edit).then((t=>(t.applied||b.console.error(`Failed to apply command: ${e.command}`),null)),(()=>(b.console.error(`Failed to apply command: ${e.command}`),null)))})),b.onDocumentFormatting((e=>{const t=R.get(e.textDocument.uri);return void 0===t?[]:N({uri:t.uri,version:t.version},M.format)})),R.listen(b),D.listen(b),b.listen(),b.console.info(`ESLint server running in node ${process.version}`)},645:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const i=n(372);var o,r,s;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")}(o||(t.TypeHierarchyPrepareRequest=o={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TypeHierarchySupertypesRequest=r={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.TypeHierarchySubtypesRequest=s={}))},857:e=>{e.exports=require("os")},908:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const i=n(372);var o;!function(e){e.method="window/showDocument",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("window.showDocument.support",void 0)}(o||(t.ShowDocumentRequest=o={}))},1123:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const i=t.test(e),o=t.test(n);return i&&o&&(e=+e,n=+n),e===n?0:i&&!o?-1:o&&!i?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},1276:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionFeature=void 0;const i=n(8766);t.InlineCompletionFeature=e=>class extends e{get inlineCompletion(){return{on:e=>this.connection.onRequest(i.InlineCompletionRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t))))}}}},1327:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Files=void 0,t.createConnection=function(e,t,n,i){let o,r,s,a;return void 0!==e&&"features"===e.__brand&&(o=e,e=t,t=n,n=i),f.ConnectionStrategy.is(e)||f.ConnectionOptions.is(e)?a=e:(r=e,s=t,a=n),function(e,t,n,i){let o=!1;if(!e&&!t&&process.argv.length>2){let n,i;const r=process.argv.slice(2);for(let s=0;s<r.length;s++){const a=r[s];if("--node-ipc"===a){e=new f.IPCMessageReader(process),t=new f.IPCMessageWriter(process);break}if("--stdio"===a){o=!0,e=process.stdin,t=process.stdout;break}if("--socket"===a){n=parseInt(r[s+1]);break}if("--pipe"===a){i=r[s+1];break}{const e=a.split("=");if("--socket"===e[0]){n=parseInt(e[1]);break}if("--pipe"===e[0]){i=e[1];break}}}if(n){const i=(0,f.createServerSocketTransport)(n);e=i[0],t=i[1]}else if(i){const n=(0,f.createServerPipeTransport)(i);e=n[0],t=n[1]}}const r="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!e)throw new Error("Connection input stream is not set. "+r);if(!t)throw new Error("Connection output stream is not set. "+r);if(u.func(e.read)&&u.func(e.on)){const t=e;t.on("end",(()=>{p(),process.exit(y?0:1)})),t.on("close",(()=>{p(),process.exit(y?0:1)}))}return(0,l.createConnection)((i=>{const r=(0,f.createProtocolConnection)(e,t,i,n);return o&&function(e){function t(e){return e.map((e=>"string"==typeof e?e:(0,c.inspect)(e))).join(" ")}const n=new Map;console.assert=function(n,...i){if(!n)if(0===i.length)e.error("Assertion failed");else{const[n,...o]=i;e.error(`Assertion failed: ${n} ${t(o)}`)}},console.count=function(t="default"){const i=String(t);let o=n.get(i)??0;o+=1,n.set(i,o),e.log(`${i}: ${i}`)},console.countReset=function(e){void 0===e?n.clear():n.delete(String(e))},console.debug=function(...n){e.log(t(n))},console.dir=function(t,n){e.log((0,c.inspect)(t,n))},console.log=function(...n){e.log(t(n))},console.error=function(...n){e.error(t(n))},console.trace=function(...n){const i=(new Error).stack.replace(/(.+\n){2}/,"");let o="Trace";0!==n.length&&(o+=`: ${t(n)}`),e.log(`${o}\n${i}`)},console.warn=function(...n){e.warn(t(n))}}(i),r}),v,i)}(r,s,a,o)};const c=n(7975),u=s(n(8867)),l=n(7874),d=s(n(3911)),f=n(7354);var h;let g;function p(){if(void 0!==g)try{g.end()}catch(e){}}a(n(7354),t),a(n(2861),t),function(e){e.uriToFilePath=d.uriToFilePath,e.resolveGlobalNodePath=d.resolveGlobalNodePath,e.resolveGlobalYarnPath=d.resolveGlobalYarnPath,e.resolve=d.resolve,e.resolveModulePath=d.resolveModulePath}(h||(t.Files=h={}));let m,y=!1;!function(){const e="--clientProcessId";function t(e){try{const t=parseInt(e);isNaN(t)||(m=setInterval((()=>{try{process.kill(t,0)}catch(e){p(),process.exit(y?0:1)}}),3e3))}catch(e){}}for(let n=2;n<process.argv.length;n++){const i=process.argv[n];if(i===e&&n+1<process.argv.length)return void t(process.argv[n+1]);{const n=i.split("=");n[0]===e&&t(n[1])}}}();const v={initialize:e=>{const t=e.processId;u.number(t)&&void 0===m&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(y?0:1)}}),3e3)},get shutdownReceived(){return y},set shutdownReceived(e){y=e},exit:e=>{p(),process.exit(e)}}},1560:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.GlobPattern=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.RegularExpressionEngineKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=void 0,t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=void 0;const a=n(372),c=n(6203),u=s(n(8598)),l=n(9574);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return l.ImplementationRequest}});const d=n(8461);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return d.TypeDefinitionRequest}});const f=n(9935);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return f.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return f.DidChangeWorkspaceFoldersNotification}});const h=n(1660);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return h.ConfigurationRequest}});const g=n(7672);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return g.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return g.ColorPresentationRequest}});const p=n(2874);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return p.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return p.FoldingRangeRefreshRequest}});const m=n(6914);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return m.DeclarationRequest}});const y=n(3487);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return y.SelectionRangeRequest}});const v=n(2687);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return v.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return v.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return v.WorkDoneProgressCancelNotification}});const b=n(8765);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return b.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return b.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return b.CallHierarchyPrepareRequest}});const _=n(2478);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return _.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return _.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return _.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return _.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return _.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return _.SemanticTokensRegistrationType}});const R=n(908);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return R.ShowDocumentRequest}});const D=n(5316);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return D.LinkedEditingRangeRequest}});const C=n(9840);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return C.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return C.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return C.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return C.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return C.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return C.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return C.WillDeleteFilesRequest}});const S=n(9047);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return S.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return S.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return S.MonikerRequest}});const w=n(645);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return w.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return w.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return w.TypeHierarchySupertypesRequest}});const E=n(3124);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return E.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return E.InlineValueRefreshRequest}});const T=n(7752);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return T.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return T.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return T.InlayHintRefreshRequest}});const P=n(6011);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return P.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return P.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return P.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return P.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return P.DiagnosticRefreshRequest}});const k=n(3557);Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return k.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return k.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return k.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return k.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return k.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return k.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidCloseNotebookDocumentNotification}});const x=n(3307);Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return x.InlineCompletionRequest}});const O=n(4289);var M,N,q,L,I,j,A,F,$,W,H,U,z,V,B,K,G,X,J,Y,Q,Z,ee,te,ne,ie,oe,re,se,ae,ce,ue,le,de,fe,he,ge,pe,me,ye,ve,be,_e,Re,De,Ce,Se,we,Ee,Te,Pe,ke,xe,Oe,Me,Ne,qe,Le,Ie,je,Ae,Fe,$e,We,He,Ue,ze;Object.defineProperty(t,"TextDocumentContentRequest",{enumerable:!0,get:function(){return O.TextDocumentContentRequest}}),Object.defineProperty(t,"TextDocumentContentRefreshRequest",{enumerable:!0,get:function(){return O.TextDocumentContentRefreshRequest}}),function(e){e.is=function(e){const t=e;return u.string(t)||u.string(t.language)||u.string(t.scheme)||ge.is(t.pattern)}}(M||(t.TextDocumentFilter=M={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(u.string(t.notebookType)||u.string(t.scheme)||u.string(t.pattern))}}(N||(t.NotebookDocumentFilter=N={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(u.string(t.notebook)||N.is(t.notebook))&&(void 0===t.language||u.string(t.language))}}(q||(t.NotebookCellTextDocumentFilter=q={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(const t of e)if(!u.string(t)&&!M.is(t)&&!q.is(t))return!1;return!0}}(L||(t.DocumentSelector=L={})),function(e){e.method="client/registerCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(I||(t.RegistrationRequest=I={})),function(e){e.method="client/unregisterCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(j||(t.UnregistrationRequest=j={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(A||(t.ResourceOperationKind=A={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(F||(t.FailureHandlingKind=F={})),function(e){e.ES2020="ES2020"}($||(t.RegularExpressionEngineKind=$={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(W||(t.PositionEncodingKind=W={})),function(e){e.hasId=function(e){const t=e;return t&&u.string(t.id)&&t.id.length>0}}(H||(t.StaticRegistrationOptions=H={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||L.is(t.documentSelector))}}(U||(t.TextDocumentRegistrationOptions=U={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(void 0===t.workDoneProgress||u.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&u.boolean(t.workDoneProgress)}}(z||(t.WorkDoneProgressOptions=z={})),function(e){e.method="initialize",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method)}(V||(t.InitializeRequest=V={})),function(e){e.unknownProtocolVersion=1}(B||(t.InitializeErrorCodes=B={})),function(e){e.method="initialized",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method)}(K||(t.InitializedNotification=K={})),function(e){e.method="shutdown",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType0(e.method)}(G||(t.ShutdownRequest=G={})),function(e){e.method="exit",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType0(e.method)}(X||(t.ExitNotification=X={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeConfiguration",void 0)}(J||(t.DidChangeConfigurationNotification=J={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(Y||(t.MessageType=Y={})),function(e){e.method="window/showMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(Q||(t.ShowMessageNotification=Q={})),function(e){e.method="window/showMessageRequest",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(Z||(t.ShowMessageRequest=Z={})),function(e){e.method="window/logMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(ee||(t.LogMessageNotification=ee={})),function(e){e.method="telemetry/event",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(te||(t.TelemetryEventNotification=te={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(ne||(t.TextDocumentSyncKind=ne={})),function(e){e.method="textDocument/didOpen",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(ie||(t.DidOpenTextDocumentNotification=ie={})),function(e){e.isIncremental=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(oe||(t.TextDocumentContentChangeEvent=oe={})),function(e){e.method="textDocument/didChange",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync")}(re||(t.DidChangeTextDocumentNotification=re={})),function(e){e.method="textDocument/didClose",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(se||(t.DidCloseTextDocumentNotification=se={})),function(e){e.method="textDocument/didSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")}(ae||(t.DidSaveTextDocumentNotification=ae={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(ce||(t.TextDocumentSaveReason=ce={})),function(e){e.method="textDocument/willSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")}(ue||(t.WillSaveTextDocumentNotification=ue={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")}(le||(t.WillSaveTextDocumentWaitUntilRequest=le={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeWatchedFiles",void 0)}(de||(t.DidChangeWatchedFilesNotification=de={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(fe||(t.FileChangeType=fe={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(c.URI.is(t.baseUri)||c.WorkspaceFolder.is(t.baseUri))&&u.string(t.pattern)}}(he||(t.RelativePattern=he={})),function(e){e.is=function(e){const t=e;return u.string(t)||he.is(t)}}(ge||(t.GlobPattern=ge={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(pe||(t.WatchKind=pe={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.publishDiagnostics",void 0)}(me||(t.PublishDiagnosticsNotification=me={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(ye||(t.CompletionTriggerKind=ye={})),function(e){e.method="textDocument/completion",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion","completionProvider")}(ve||(t.CompletionRequest=ve={})),function(e){e.method="completionItem/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")}(be||(t.CompletionResolveRequest=be={})),function(e){e.method="textDocument/hover",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.hover","hoverProvider")}(_e||(t.HoverRequest=_e={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(Re||(t.SignatureHelpTriggerKind=Re={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.signatureHelp","signatureHelpProvider")}(De||(t.SignatureHelpRequest=De={})),function(e){e.method="textDocument/definition",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.definition","definitionProvider")}(Ce||(t.DefinitionRequest=Ce={})),function(e){e.method="textDocument/references",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.references","referencesProvider")}(Se||(t.ReferencesRequest=Se={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentHighlight","documentHighlightProvider")}(we||(t.DocumentHighlightRequest=we={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentSymbol","documentSymbolProvider")}(Ee||(t.DocumentSymbolRequest=Ee={})),function(e){e.method="textDocument/codeAction",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction","codeActionProvider")}(Te||(t.CodeActionRequest=Te={})),function(e){e.method="codeAction/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")}(Pe||(t.CodeActionResolveRequest=Pe={})),function(e){e.method="workspace/symbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol","workspaceSymbolProvider")}(ke||(t.WorkspaceSymbolRequest=ke={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")}(xe||(t.WorkspaceSymbolResolveRequest=xe={})),function(e){e.method="textDocument/codeLens",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens","codeLensProvider")}(Oe||(t.CodeLensRequest=Oe={})),function(e){e.method="codeLens/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")}(Me||(t.CodeLensResolveRequest=Me={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType0(e.method),e.capabilities=a.CM.create("workspace.codeLens",void 0)}(Ne||(t.CodeLensRefreshRequest=Ne={})),function(e){e.method="textDocument/documentLink",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider")}(qe||(t.DocumentLinkRequest=qe={})),function(e){e.method="documentLink/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")}(Le||(t.DocumentLinkResolveRequest=Le={})),function(e){e.method="textDocument/formatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.formatting","documentFormattingProvider")}(Ie||(t.DocumentFormattingRequest=Ie={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")}(je||(t.DocumentRangeFormattingRequest=je={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")}(Ae||(t.DocumentRangesFormattingRequest=Ae={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")}(Fe||(t.DocumentOnTypeFormattingRequest=Fe={})),function(e){e.Identifier=1}($e||(t.PrepareSupportDefaultBehavior=$e={})),function(e){e.method="textDocument/rename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename","renameProvider")}(We||(t.RenameRequest=We={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")}(He||(t.PrepareRenameRequest=He={})),function(e){e.method="workspace/executeCommand",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.executeCommand","executeCommandProvider")}(Ue||(t.ExecuteCommandRequest=Ue={})),function(e){e.method="workspace/applyEdit",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType("workspace/applyEdit"),e.capabilities=a.CM.create("workspace.applyEdit",void 0)}(ze||(t.ApplyWorkspaceEditRequest=ze={}))},1580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=function(e,t,n,o){return i.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,i.createMessageConnection)(e,t,n,o)};const i=n(3281)},1660:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const i=n(372);var o;!function(e){e.method="workspace/configuration",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.configuration",void 0)}(o||(t.ConfigurationRequest=o={}))},1662:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocuments=void 0;const i=n(8766);t.TextDocuments=class{_configuration;_syncedDocuments;_onDidChangeContent;_onDidOpen;_onDidClose;_onDidSave;_onWillSave;_willSaveWaitUntil;constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new i.Emitter,this._onDidOpen=new i.Emitter,this._onDidClose=new i.Emitter,this._onDidSave=new i.Emitter,this._onWillSave=new i.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=i.TextDocumentSyncKind.Incremental;const t=[];return t.push(e.onDidOpenTextDocument((e=>{const t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._syncedDocuments.set(t.uri,n);const i=Object.freeze({document:n});this._onDidOpen.fire(i),this._onDidChangeContent.fire(i)}))),t.push(e.onDidChangeTextDocument((e=>{const t=e.textDocument,n=e.contentChanges;if(0===n.length)return;const{version:i}=t;if(null==i)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);let o=this._syncedDocuments.get(t.uri);void 0!==o&&(o=this._configuration.update(o,n,i),this._syncedDocuments.set(t.uri,o),this._onDidChangeContent.fire(Object.freeze({document:o})))}))),t.push(e.onDidCloseTextDocument((e=>{const t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&(this._syncedDocuments.delete(e.textDocument.uri),this._onDidClose.fire(Object.freeze({document:t})))}))),t.push(e.onWillSaveTextDocument((e=>{const t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))}))),t.push(e.onWillSaveTextDocumentWaitUntil(((e,t)=>{const n=this._syncedDocuments.get(e.textDocument.uri);return void 0!==n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]}))),t.push(e.onDidSaveTextDocument((e=>{const t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onDidSave.fire(Object.freeze({document:t}))}))),i.Disposable.create((()=>{t.forEach((e=>e.dispose()))}))}}},1681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.nullOrUndefined=function(e){return null==e},t.string=function(e){return"[object String]"===n.call(e)};const n=Object.prototype.toString},1815:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const i=n(8766);t.InlineValueFeature=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(i.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(i.InlineValueRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t))))}}}},2112:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const i=n(8766);t.WorkspaceFoldersFeature=e=>class extends e{_onDidChangeWorkspaceFolders;_unregistration;_notificationIsAutoRegistered;constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);const t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new i.Emitter,this.connection.onNotification(i.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}fillServerCapabilities(e){super.fillServerCapabilities(e);const t=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=!0===t||"string"==typeof t}getWorkspaceFolders(){return this.connection.sendRequest(i.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._notificationIsAutoRegistered||this._unregistration||(this._unregistration=this.connection.client.register(i.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},2478:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const i=n(372);var o,r,s,a,c,u;!function(e){e.Relative="relative"}(o||(t.TokenFormat=o={})),function(e){e.method="textDocument/semanticTokens",e.type=new i.RegistrationType(e.method)}(r||(t.SemanticTokensRegistrationType=r={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=i.CM.create("textDocument.semanticTokens","semanticTokensProvider")}(s||(t.SemanticTokensRequest=s={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=i.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")}(a||(t.SemanticTokensDeltaRequest=a={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=i.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")}(c||(t.SemanticTokensRangeRequest=c={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.semanticTokens.refreshSupport",void 0)}(u||(t.SemanticTokensRefreshRequest=u={}))},2655:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensDiff=t.SemanticTokensFeature=void 0;const i=n(8766);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(i.SemanticTokensRefreshRequest.type),on:e=>{const t=i.SemanticTokensRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onDelta:e=>{const t=i.SemanticTokensDeltaRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onRange:e=>{const t=i.SemanticTokensRangeRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}};class o{originalSequence;modifiedSequence;constructor(e,t){this.originalSequence=e,this.modifiedSequence=t}computeDiff(){const e=this.originalSequence.length,t=this.modifiedSequence.length;let n=0;for(;n<t&&n<e&&this.originalSequence[n]===this.modifiedSequence[n];)n++;if(n<t&&n<e){let i=e-1,o=t-1;for(;i>=n&&o>=n&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<n||o<n)&&(i++,o++);const r=i-n+1,s=this.modifiedSequence.slice(n,o+1);return 1===s.length&&s[0]===this.originalSequence[i]?[{start:n,deleteCount:r-1}]:[{start:n,deleteCount:r,data:s}]}return n<t?[{start:n,deleteCount:0,data:this.modifiedSequence.slice(n)}]:n<e?[{start:n,deleteCount:e-n}]:[]}}t.SemanticTokensDiff=o;class r{_id;_prevLine;_prevChar;_dataIsSortedAndDeltaEncoded;_data;_dataNonDelta;_dataLen;_prevData;constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataNonDelta=[],this._dataLen=0,this._dataIsSortedAndDeltaEncoded=!0}push(e,t,n,i,o){this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&t<this._prevChar)&&(this._dataIsSortedAndDeltaEncoded=!1,this._dataNonDelta=r._deltaDecode(this._data));let s=e,a=t;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(s-=this._prevLine,0===s&&(a-=this._prevChar));const c=this._dataIsSortedAndDeltaEncoded?this._data:this._dataNonDelta;c[this._dataLen++]=s,c[this._dataLen++]=a,c[this._dataLen++]=n,c[this._dataLen++]=i,c[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}static _deltaDecode(e){const t=e.length/5|0;let n=0,i=0;const o=[];for(let r=0;r<t;r++){const t=5*r;let s=e[t],a=e[t+1];0===s?(s=n,a+=i):s+=n;const c=e[t+2],u=e[t+3],l=e[t+4];o[t+0]=s,o[t+1]=a,o[t+2]=c,o[t+3]=u,o[t+4]=l,n=s,i=a}return o}static _sortAndDeltaEncode(e){const t=[],n=e.length/5|0;for(let e=0;e<n;e++)t[e]=e;t.sort(((t,n)=>{const i=e[5*t],o=e[5*n];return i===o?e[5*t+1]-e[5*n+1]:i-o}));const i=[];let o=0,r=0;for(let s=0;s<n;s++){const n=5*t[s],a=e[n+0],c=e[n+1],u=e[n+2],l=e[n+3],d=e[n+4],f=a-o,h=0===f?c-r:c,g=5*s;i[g+0]=f,i[g+1]=h,i[g+2]=u,i[g+3]=l,i[g+4]=d,o=a,r=c}return i}getFinalDataDelta(){return this._dataIsSortedAndDeltaEncoded?this._data:r._sortAndDeltaEncode(this._dataNonDelta)}previousResult(e){this.id===e&&(this._prevData=this.getFinalDataDelta()),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this.getFinalDataDelta()}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){return void 0!==this._prevData?{resultId:this.id,edits:new o(this._prevData,this.getFinalDataDelta()).computeDiff()}:this.build()}}t.SemanticTokensBuilder=r},2676:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const o=i(n(9590));var r;!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));class s{_callbacks;_contexts;add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e){if(this._contexts[i]===t)return this._callbacks.splice(i,1),void this._contexts.splice(i,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let r=0,s=n.length;r<s;r++)try{t.push(n[r].apply(i[r],e))}catch(e){(0,o.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class a{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new s),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=a._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=a},2687:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const i=n(3281),o=n(372);var r,s,a;!function(e){e.type=new i.ProgressType,e.is=function(t){return t===e.type}}(r||(t.WorkDoneProgress=r={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=o.MessageDirection.serverToClient,e.type=new o.ProtocolRequestType(e.method),e.capabilities=o.CM.create("window.workDoneProgress",void 0)}(s||(t.WorkDoneProgressCreateRequest=s={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolNotificationType(e.method)}(a||(t.WorkDoneProgressCancelNotification=a={}))},2697:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const i=n(8766);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){return this.connection.onNotification(i.DidCreateFilesNotification.type,(t=>e(t)))}onDidRenameFiles(e){return this.connection.onNotification(i.DidRenameFilesNotification.type,(t=>e(t)))}onDidDeleteFiles(e){return this.connection.onNotification(i.DidDeleteFilesNotification.type,(t=>e(t)))}onWillCreateFiles(e){return this.connection.onRequest(i.WillCreateFilesRequest.type,((t,n)=>e(t,n)))}onWillRenameFiles(e){return this.connection.onRequest(i.WillRenameFilesRequest.type,((t,n)=>e(t,n)))}onWillDeleteFiles(e){return this.connection.onRequest(i.WillDeleteFilesRequest.type,((t,n)=>e(t,n)))}}},2861:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.NotebookDocuments=t.TextDocuments=t.SemanticTokensBuilder=void 0;const c=n(2655);Object.defineProperty(t,"SemanticTokensBuilder",{enumerable:!0,get:function(){return c.SemanticTokensBuilder}});const u=s(n(1276)),l=s(n(9202));a(n(8766),t);const d=n(1662);Object.defineProperty(t,"TextDocuments",{enumerable:!0,get:function(){return d.TextDocuments}});const f=n(20);var h;Object.defineProperty(t,"NotebookDocuments",{enumerable:!0,get:function(){return f.NotebookDocuments}}),a(n(7874),t),function(e){e.all={__brand:"features",workspace:l.TextDocumentContentFeature,languages:u.InlineCompletionFeature}}(h||(t.ProposedFeatures=h={}))},2874:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;const i=n(372);var o,r;!function(e){e.method="textDocument/foldingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.foldingRange","foldingRangeProvider")}(o||(t.FoldingRangeRequest=o={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.foldingRange.refreshSupport",void 0)}(r||(t.FoldingRangeRefreshRequest=r={}))},2936:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const i=n(8766);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=i.MonikerRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},2938:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFeature=void 0,t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new a;const n=t.workDoneToken;return delete t.workDoneToken,new r(e,n)},t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new l(e,n)};const i=n(8766),o=n(6116);class r{_connection;_token;static Instances=new Map;constructor(e,t){this._connection=e,this._token=t,r.Instances.set(this._token,this)}begin(e,t,n,o){const r={kind:"begin",title:e,message:n,cancellable:o};"number"==typeof t&&(r.percentage=Math.round(t)),this._connection.sendProgress(i.WorkDoneProgress.type,this._token,r)}report(e,t){const n={kind:"report"};"number"==typeof e?(n.percentage=Math.round(e),void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(i.WorkDoneProgress.type,this._token,n)}done(){r.Instances.delete(this._token),this._connection.sendProgress(i.WorkDoneProgress.type,this._token,{kind:"end"})}}class s extends r{_source;constructor(e,t){super(e,t),this._source=new i.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class a{constructor(){}begin(){}report(){}done(){}}class c extends a{_source;constructor(){super(),this._source=new i.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var u;t.ProgressFeature=e=>class extends e{_progressSupported;constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),!0===e?.window?.workDoneProgress&&(this._progressSupported=!0,this.connection.onNotification(i.WorkDoneProgressCancelNotification.type,(e=>{const t=r.Instances.get(e.token);(t instanceof s||t instanceof c)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new a:new r(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=(0,o.generateUuid)();return this.connection.sendRequest(i.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new s(this.connection,e)))}return Promise.resolve(new c)}},function(e){e.type=new i.ProgressType}(u||(u={}));class l{_connection;_token;constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(u.type,this._token,e)}}},3124:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const i=n(372);var o,r;!function(e){e.method="textDocument/inlineValue",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlineValue","inlineValueProvider")}(o||(t.InlineValueRequest=o={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.inlineValue.refreshSupport",void 0)}(r||(t.InlineValueRefreshRequest=r={}))},3193:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const c=a(n(9590)),u=s(n(8585)),l=n(4323),d=n(2676);var f,h;!function(e){e.is=function(e){const t=e;return t&&u.func(t.dispose)&&u.func(t.onClose)&&u.func(t.onError)&&u.func(t.write)}}(f||(t.MessageWriter=f={}));class g{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new d.Emitter,this.closeEmitter=new d.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${u.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=g,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,c.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,c.default)().applicationJson.encoder}}}(h||(h={})),t.WriteableStreamMessageWriter=class extends g{writable;options;errorCount;writeSemaphore;constructor(e,t){super(),this.writable=e,this.options=h.fromOptions(t),this.errorCount=0,this.writeSemaphore=new l.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},3281:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=void 0;const o=n(6177);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return o.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return o.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return o.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return o.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return o.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return o.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return o.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return o.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return o.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return o.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return o.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return o.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return o.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return o.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return o.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return o.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return o.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return o.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return o.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return o.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return o.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return o.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return o.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return o.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return o.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return o.ParameterStructures}});const r=n(3352);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return r.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return r.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return r.Touch}});const s=n(4019);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return s.Disposable}});const a=n(2676);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return a.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return a.Emitter}});const c=n(9850);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return c.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return c.CancellationToken}});const u=n(4996);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return u.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return u.SharedArrayReceiverStrategy}});const l=n(9085);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return l.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return l.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return l.ReadableStreamMessageReader}});const d=n(3193);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return d.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return d.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return d.WriteableStreamMessageWriter}});const f=n(9244);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return f.AbstractMessageBuffer}});const h=n(577);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValue",{enumerable:!0,get:function(){return h.TraceValue}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return h.IdCancellationReceiverStrategy}}),Object.defineProperty(t,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return h.RequestCancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}});const g=i(n(9590));t.RAL=g.default},3307:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlineCompletion","inlineCompletionProvider")}(o||(t.InlineCompletionRequest=o={}))},3352:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n||(t.Touch=n={}));class i{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(e){const t=this._map.get(e);return t?t.previous?.value:void 0}after(e){const t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=n.None){const i=this._map.get(e);if(i)return t!==n.None&&this.touch(i,t),i.value}set(e,t,i=n.None){let o=this._map.get(e);if(o)o.value=t,i!==n.None&&this.touch(o,i);else{switch(o={key:e,value:t,next:void 0,previous:void 0},i){case n.None:this.addItemLast(o);break;case n.First:this.addItemFirst(o);break;case n.Last:default:this.addItemLast(o)}this._map.set(e,o),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{_limit;_ratio;constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},3487:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/selectionRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.selectionRange","selectionRangeProvider")}(o||(t.SelectionRangeRequest=o={}))},3557:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const a=n(6203),c=s(n(8598)),u=n(372);var l,d,f,h,g,p,m,y,v,b;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(l||(t.NotebookCellKind=l={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return c.objectLiteral(t)&&a.uinteger.is(t.executionOrder)&&(void 0===t.success||c.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(d||(t.ExecutionSummary=d={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const i=Array.isArray(e),o=Array.isArray(n);if(i!==o)return!1;if(i&&o){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(!t(e[i],n[i]))return!1}if(c.objectLiteral(e)&&c.objectLiteral(n)){const i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;if(i.sort(),o.sort(),!t(i,o))return!1;for(let o=0;o<i.length;o++){const r=i[o];if(!t(e[r],n[r]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return c.objectLiteral(t)&&l.is(t.kind)&&a.DocumentUri.is(t.document)&&(void 0===t.metadata||c.objectLiteral(t.metadata))},e.diff=function(e,n){const i=new Set;return e.document!==n.document&&i.add("document"),e.kind!==n.kind&&i.add("kind"),e.executionSummary!==n.executionSummary&&i.add("executionSummary"),void 0===e.metadata&&void 0===n.metadata||t(e.metadata,n.metadata)||i.add("metadata"),void 0===e.executionSummary&&void 0===n.executionSummary||d.equals(e.executionSummary,n.executionSummary)||i.add("executionSummary"),i}}(f||(t.NotebookCell=f={})),function(e){e.create=function(e,t,n,i){return{uri:e,notebookType:t,version:n,cells:i}},e.is=function(e){const t=e;return c.objectLiteral(t)&&c.string(t.uri)&&a.integer.is(t.version)&&c.typedArray(t.cells,f.is)}}(h||(t.NotebookDocument=h={})),function(e){e.method="notebookDocument/sync",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.RegistrationType(e.method)}(g||(t.NotebookDocumentSyncRegistrationType=g={})),function(e){e.method="notebookDocument/didOpen",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(p||(t.DidOpenNotebookDocumentNotification=p={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&a.uinteger.is(t.start)&&a.uinteger.is(t.deleteCount)&&(void 0===t.cells||c.typedArray(t.cells,f.is))},e.create=function(e,t,n){const i={start:e,deleteCount:t};return void 0!==n&&(i.cells=n),i}}(m||(t.NotebookCellArrayChange=m={})),function(e){e.method="notebookDocument/didChange",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(y||(t.DidChangeNotebookDocumentNotification=y={})),function(e){e.method="notebookDocument/didSave",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(v||(t.DidSaveNotebookDocumentNotification=v={})),function(e){e.method="notebookDocument/didClose",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(b||(t.DidCloseNotebookDocumentNotification=b={}))},3908:(e,t,n)=>{const i=n(7272),{MAX_LENGTH:o,MAX_SAFE_INTEGER:r}=n(6874),{safeRe:s,t:a}=n(9718),c=n(8587),{compareIdentifiers:u}=n(1123);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(i("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(i("build compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},3911:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystem=void 0,t.uriToFilePath=function(e){const t=a.parse(e);if("file:"!==t.protocol||!t.path)return;const n=t.path.split("/");for(let e=0,t=n.length;e<t;e++)n[e]=decodeURIComponent(n[e]);if("win32"===process.platform&&n.length>1){const e=n[0],t=n[1];0===e.length&&t.length>1&&":"===t[1]&&n.shift()}return c.normalize(n.join("/"))},t.resolve=f,t.resolveGlobalNodePath=h,t.resolveGlobalYarnPath=function(e){let t="yarn";const n={encoding:"utf8"};d()&&(t="yarn.cmd",n.shell=!0);const i=()=>{};try{process.on("SIGPIPE",i);const o=(0,l.spawnSync)(t,["global","dir","--json"],n),r=o.stdout;if(!r)return void(e&&(e("'yarn global dir' didn't return a value."),o.stderr&&e(o.stderr)));const s=r.trim().split(/\r?\n/);for(const e of s)try{const t=JSON.parse(e);if("log"===t.type)return c.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",i)}},t.resolveModulePath=function(e,t,n,i){return n?(c.isAbsolute(n)||(n=c.join(e,n)),f(t,n,n,i).then((e=>g.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(n=>f(t,h(i),e,i)))):f(t,h(i),e,i)};const a=s(n(7016)),c=s(n(6928)),u=s(n(9896)),l=n(5317);function d(){return"win32"===process.platform}function f(e,t,n,i){const o="NODE_PATH",r=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((s,a)=>{const d=process.env,f=Object.create(null);Object.keys(d).forEach((e=>f[e]=d[e])),t&&u.existsSync(t)&&(f[o]?f[o]=t+c.delimiter+f[o]:f[o]=t,i&&i(`NODE_PATH value is: ${f[o]}`)),f.ELECTRON_RUN_AS_NODE="1";try{const t=(0,l.fork)("",[],{cwd:n,env:f,execArgv:["-e",r]});if(void 0===t.pid)return void a(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{a(e)})),t.on("message",(n=>{"r"===n.c&&(t.send({c:"e"}),n.s?s(n.r):a(new Error(`Failed to resolve module: ${e}`)))}));const i={c:"rs",a:e};t.send(i)}catch(e){a(e)}}))}function h(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach((e=>n[e]=process.env[e])),n.NO_UPDATE_NOTIFIER="true";const i={encoding:"utf8",env:n};d()&&(t="npm.cmd",i.shell=!0);const o=()=>{};try{process.on("SIGPIPE",o);const n=(0,l.spawnSync)(t,["config","get","prefix"],i).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));const r=n.trim();return e&&e(`'npm config get prefix' value is: ${r}`),r.length>0?d()?c.join(r,"node_modules"):c.join(r,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",o)}}var g;!function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||u.existsSync(__filename.toUpperCase())&&u.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===c.normalize(t).indexOf(c.normalize(e)):0===c.normalize(t).toLowerCase().indexOf(c.normalize(e).toLowerCase())}}(g||(t.FileSystem=g={}))},3918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const i=n(8766);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(i.CallHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onIncomingCalls:e=>{const t=i.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onOutgoingCalls:e=>{const t=i.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},4019:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(n||(t.Disposable=n={}))},4089:(e,t,n)=>{const i=n(560);e.exports=(e,t,n)=>i(e,t,n)>=0},4289:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=void 0;const i=n(372);var o,r;!function(e){e.method="workspace/textDocumentContent",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.textDocumentContent","workspace.textDocumentContent")}(o||(t.TextDocumentContentRequest=o={})),function(e){e.method="workspace/textDocumentContent/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TextDocumentContentRefreshRequest=r={}))},4323:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const o=i(n(9590));t.Semaphore=class{_capacity;_active;_waiting;constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,o.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},4476:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExitCalled=t.ShowOutputChannel=t.ProbeFailedRequest=t.OpenESLintDocRequest=t.NoESLintLibraryRequest=t.NoConfigRequest=t.StatusNotification=t.Status=void 0;const i=n(8766);var o,r,s,a,c,u,l,d;!function(e){e[e.ok=1]="ok",e[e.warn=2]="warn",e[e.error=3]="error"}(o||(t.Status=o={})),function(e){e.method="eslint/status",e.type=new i.NotificationType(e.method)}(r||(t.StatusNotification=r={})),function(e){e.method="eslint/noConfig",e.type=new i.RequestType(e.method)}(s||(t.NoConfigRequest=s={})),function(e){e.method="eslint/noLibrary",e.type=new i.RequestType(e.method)}(a||(t.NoESLintLibraryRequest=a={})),function(e){e.method="eslint/openDoc",e.type=new i.RequestType(e.method)}(c||(t.OpenESLintDocRequest=c={})),function(e){e.method="eslint/probeFailed",e.type=new i.RequestType(e.method)}(u||(t.ProbeFailedRequest=u={})),function(e){e.method="eslint/showOutputChannel",e.type=new i.NotificationType0("eslint/showOutputChannel")}(l||(t.ShowOutputChannel=l={})),function(e){e.method="eslint/exitCalled",e.type=new i.NotificationType(e.method)}(d||(t.ExitCalled=d={}))},4635:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintFeature=void 0;const i=n(8766);t.InlayHintFeature=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(i.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(i.InlayHintRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t)))),resolve:e=>this.connection.onRequest(i.InlayHintResolveRequest.type,((t,n)=>e(t,n)))}}}},4996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const i=n(9850);var o;!function(e){e.Continue=0,e.Cancelled=1}(o||(o={})),t.SharedArraySenderStrategy=class{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=o.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const i=new Int32Array(n,0,1);Atomics.store(i,0,o.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class r{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===o.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class s{token;constructor(e){this.token=new r(e)}cancel(){}dispose(){}}t.SharedArrayReceiverStrategy=class{kind="request";createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new i.CancellationTokenSource:new s(t)}}},5026:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const i=n(8766);t.TypeHierarchyFeature=e=>class extends e{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(i.TypeHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onSupertypes:e=>{const t=i.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onSubtypes:e=>{const t=i.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},5172:(e,t,n)=>{n.r(t),n.d(t,{TextDocument:()=>o});class i{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const t of e)if(i.isIncremental(t)){const e=c(t.range),n=this.offsetAt(e.start),i=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(i,this._content.length);const o=Math.max(e.start.line,0),r=Math.max(e.end.line,0);let a=this._lineOffsets;const u=s(t.text,!1,n);if(r-o===u.length)for(let e=0,t=u.length;e<t;e++)a[e+o+1]=u[e];else u.length<1e4?a.splice(o+1,r-o,...u):this._lineOffsets=a=a.slice(0,o+1).concat(u,a.slice(r+1));const l=t.text.length-(i-n);if(0!==l)for(let e=o+1+u.length,t=a.length;e<t;e++)a[e]=a[e]+l}else{if(!i.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){const o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}const o=n-1;return{line:o,character:(e=this.ensureBeforeEOL(e,t[o]))-t[o]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const i=e.line+1<t.length?t[e.line+1]:this._content.length,o=Math.min(n+e.character,i);return this.ensureBeforeEOL(o,n)}ensureBeforeEOL(e,t){for(;e>t&&a(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var o;function r(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),o=e.slice(n);r(i,t),r(o,t);let s=0,a=0,c=0;for(;s<i.length&&a<o.length;){const n=t(i[s],o[a]);e[c++]=n<=0?i[s++]:o[a++]}for(;s<i.length;)e[c++]=i[s++];for(;a<o.length;)e[c++]=o[a++];return e}function s(e,t,n=0){const i=t?[n]:[];for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);a(o)&&(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,i.push(n+t+1))}return i}function a(e){return 13===e||10===e}function c(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function u(e){const t=c(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,o){return new i(e,t,n,o)},e.update=function(e,t,n){if(e instanceof i)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){const n=e.getText(),i=r(t.map(u),((e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let o=0;const s=[];for(const t of i){const i=e.offsetAt(t.range.start);if(i<o)throw new Error("Overlapping edit");i>o&&s.push(n.substring(o,i)),t.newText.length&&s.push(t.newText),o=e.offsetAt(t.range.end)}return s.push(n.substr(o)),s.join("")}}(o||(o={}))},5316:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")}(o||(t.LinkedEditingRangeRequest=o={}))},5317:e=>{e.exports=require("child_process")},5509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=new Map([["javascript",{ext:"js",lineComment:"//",blockComment:["/*","*/"]}],["javascriptreact",{ext:"jsx",lineComment:"//",blockComment:["/*","*/"]}],["typescript",{ext:"ts",lineComment:"//",blockComment:["/*","*/"]}],["typescriptreact",{ext:"tsx",lineComment:"//",blockComment:["/*","*/"]}],["html",{ext:"html",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["vue",{ext:"vue",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["coffeescript",{ext:"coffee",lineComment:"#",blockComment:["###","###"]}],["yaml",{ext:"yaml",lineComment:"#",blockComment:["#",""]}],["graphql",{ext:"graphql",lineComment:"#",blockComment:["#",""]}]]);var i;!function(e){e.getLineComment=function(e){return n.get(e)?.lineComment??"//"},e.getBlockComment=function(e){return n.get(e)?.blockComment??["/*","*/"]},e.getExtension=function(e){return n.get(e)?.ext}}(i||(i={})),t.default=i},5724:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n||(t.Touch=n={}));class i{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const i=this._map.get(e);if(i)return t!==n.None&&this.touch(i,t),i.value}set(e,t,i=n.None){let o=this._map.get(e);if(o)o.value=t,i!==n.None&&this.touch(o,i);else{switch(o={key:e,value:t,next:void 0,previous:void 0},i){case n.None:this.addItemLast(o);break;case n.First:this.addItemFirst(o);break;case n.Last:default:this.addItemLast(o)}this._map.set(e,o),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{_limit;_ratio;constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},6007:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeFeature=void 0;const i=n(8766);t.FoldingRangeFeature=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(i.FoldingRangeRefreshRequest.type),on:e=>{const t=i.FoldingRangeRequest.type;return this.connection.onRequest(t,((n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}}},6011:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const a=n(3281),c=s(n(8598)),u=n(372);var l,d,f,h,g;!function(e){e.is=function(e){const t=e;return t&&c.boolean(t.retriggerRequest)}}(l||(t.DiagnosticServerCancellationData=l={})),function(e){e.Full="full",e.Unchanged="unchanged"}(d||(t.DocumentDiagnosticReportKind=d={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolRequestType(e.method),e.partialResult=new a.ProgressType,e.capabilities=u.CM.create("textDocument.diagnostic","diagnosticProvider")}(f||(t.DocumentDiagnosticRequest=f={})),function(e){e.method="workspace/diagnostic",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolRequestType(e.method),e.partialResult=new a.ProgressType,e.capabilities=u.CM.create("workspace.diagnostics","diagnosticProvider.workspaceDiagnostics")}(h||(t.WorkspaceDiagnosticRequest=h={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=u.MessageDirection.serverToClient,e.type=new u.ProtocolRequestType0(e.method),e.capabilities=u.CM.create("workspace.diagnostics.refreshSupport",void 0)}(g||(t.DiagnosticRefreshRequest=g={}))},6116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.empty=void 0,t.v4=o,t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return o().asHex()};class n{_value;constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class i extends n{static _chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];static _timeHighBits=["8","9","a","b"];static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return i._oneOf(i._chars)}constructor(){super([i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-","4",i._randomHex(),i._randomHex(),i._randomHex(),"-",i._oneOf(i._timeHighBits),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex()].join(""))}}function o(){return new i}t.empty=new n("00000000-0000-0000-0000-000000000000");const r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return r.test(e)}},6177:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const a=s(n(8585));var c,u;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(c||(t.ErrorCodes=c={}));class l extends Error{code;data;constructor(e,t,n){super(t),this.code=a.number(e)?e:c.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,l.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=l;class d{kind;static auto=new d("auto");static byPosition=new d("byPosition");static byName=new d("byName");constructor(e){this.kind=e}static is(e){return e===d.auto||e===d.byName||e===d.byPosition}toString(){return this.kind}}t.ParameterStructures=d;class f{method;numberOfParams;constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return d.auto}}t.AbstractMessageSignature=f,t.RequestType0=class extends f{_;constructor(e){super(e,0)}},t.RequestType=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends f{_;constructor(e){super(e,2)}},t.RequestType3=class extends f{_;constructor(e){super(e,3)}},t.RequestType4=class extends f{_;constructor(e){super(e,4)}},t.RequestType5=class extends f{_;constructor(e){super(e,5)}},t.RequestType6=class extends f{_;constructor(e){super(e,6)}},t.RequestType7=class extends f{_;constructor(e){super(e,7)}},t.RequestType8=class extends f{_;constructor(e){super(e,8)}},t.RequestType9=class extends f{_;constructor(e){super(e,9)}},t.NotificationType=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends f{_;constructor(e){super(e,0)}},t.NotificationType1=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends f{_;constructor(e){super(e,2)}},t.NotificationType3=class extends f{_;constructor(e){super(e,3)}},t.NotificationType4=class extends f{_;constructor(e){super(e,4)}},t.NotificationType5=class extends f{_;constructor(e){super(e,5)}},t.NotificationType6=class extends f{_;constructor(e){super(e,6)}},t.NotificationType7=class extends f{_;constructor(e){super(e,7)}},t.NotificationType8=class extends f{_;constructor(e){super(e,8)}},t.NotificationType9=class extends f{_;constructor(e){super(e,9)}},function(e){e.isRequest=function(e){const t=e;return t&&a.string(t.method)&&(a.string(t.id)||a.number(t.id))},e.isNotification=function(e){const t=e;return t&&a.string(t.method)&&void 0===e.id},e.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(a.string(t.id)||a.number(t.id)||null===t.id)}}(u||(t.Message=u={}))},6203:(e,t,n)=>{var i,o,r,s,a,c,u,l,d,f,h,g,p,m,y,v,b,_,R,D,C,S,w,E,T,P,k,x,O,M,N,q,L,I,j,A,F,$,W,H,U,z,V,B,K,G,X,J,Y,Q,Z,ee,te,ne,ie,oe,re,se,ae,ce,ue,le,de,fe,he,ge,pe,me,ye,ve,be,_e,Re,De,Ce,Se,we,Ee,Te,Pe,ke,xe;n.r(t),n.d(t,{AnnotatedTextEdit:()=>w,ApplyKind:()=>z,ChangeAnnotation:()=>C,ChangeAnnotationIdentifier:()=>S,CodeAction:()=>ue,CodeActionContext:()=>ae,CodeActionKind:()=>re,CodeActionTag:()=>ce,CodeActionTriggerKind:()=>se,CodeDescription:()=>b,CodeLens:()=>le,Color:()=>d,ColorInformation:()=>f,ColorPresentation:()=>h,Command:()=>R,CompletionItem:()=>B,CompletionItemKind:()=>F,CompletionItemLabelDetails:()=>V,CompletionItemTag:()=>W,CompletionList:()=>K,CreateFile:()=>T,DeleteFile:()=>k,Diagnostic:()=>_,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>Z,DocumentHighlightKind:()=>Q,DocumentLink:()=>fe,DocumentSymbol:()=>oe,DocumentUri:()=>i,EOL:()=>qe,FoldingRange:()=>p,FoldingRangeKind:()=>g,FormattingOptions:()=>de,Hover:()=>X,InlayHint:()=>Ce,InlayHintKind:()=>Re,InlayHintLabelPart:()=>De,InlineCompletionContext:()=>ke,InlineCompletionItem:()=>we,InlineCompletionList:()=>Ee,InlineCompletionTriggerKind:()=>Te,InlineValueContext:()=>_e,InlineValueEvaluatableExpression:()=>be,InlineValueText:()=>ye,InlineValueVariableLookup:()=>ve,InsertReplaceEdit:()=>H,InsertTextFormat:()=>$,InsertTextMode:()=>U,LanguageKind:()=>L,Location:()=>u,LocationLink:()=>l,MarkedString:()=>G,MarkupContent:()=>A,MarkupKind:()=>j,OptionalVersionedTextDocumentIdentifier:()=>q,ParameterInformation:()=>J,Position:()=>a,Range:()=>c,RenameFile:()=>P,SelectedCompletionInfo:()=>Pe,SelectionRange:()=>he,SemanticTokenModifiers:()=>pe,SemanticTokenTypes:()=>ge,SemanticTokens:()=>me,SignatureInformation:()=>Y,SnippetTextEdit:()=>O,StringValue:()=>Se,SymbolInformation:()=>ne,SymbolKind:()=>ee,SymbolTag:()=>te,TextDocument:()=>Le,TextDocumentEdit:()=>E,TextDocumentIdentifier:()=>M,TextDocumentItem:()=>I,TextEdit:()=>D,URI:()=>o,VersionedTextDocumentIdentifier:()=>N,WorkspaceChange:()=>Ne,WorkspaceEdit:()=>x,WorkspaceFolder:()=>xe,WorkspaceSymbol:()=>ie,integer:()=>r,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.uinteger(t.line)&&Ie.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,i){if(Ie.uinteger(e)&&Ie.uinteger(t)&&Ie.uinteger(n)&&Ie.uinteger(i))return{start:a.create(e,t),end:a.create(n,i)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.range)&&(Ie.string(t.uri)||Ie.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.targetRange)&&Ie.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Ie.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.numberRange(t.red,0,1)&&Ie.numberRange(t.green,0,1)&&Ie.numberRange(t.blue,0,1)&&Ie.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.label)&&(Ie.undefined(t.textEdit)||D.is(t))&&(Ie.undefined(t.additionalTextEdits)||Ie.typedArray(t.additionalTextEdits,D.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,i,o,r){const s={startLine:e,endLine:t};return Ie.defined(n)&&(s.startCharacter=n),Ie.defined(i)&&(s.endCharacter=i),Ie.defined(o)&&(s.kind=o),Ie.defined(r)&&(s.collapsedText=r),s},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.uinteger(t.startLine)&&Ie.uinteger(t.startLine)&&(Ie.undefined(t.startCharacter)||Ie.uinteger(t.startCharacter))&&(Ie.undefined(t.endCharacter)||Ie.uinteger(t.endCharacter))&&(Ie.undefined(t.kind)||Ie.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){const t=e;return Ie.defined(t)&&u.is(t.location)&&Ie.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,i,o,r){const s={range:e,message:t};return Ie.defined(n)&&(s.severity=n),Ie.defined(i)&&(s.code=i),Ie.defined(o)&&(s.source=o),Ie.defined(r)&&(s.relatedInformation=r),s},e.is=function(e){var t;const n=e;return Ie.defined(n)&&c.is(n.range)&&Ie.string(n.message)&&(Ie.number(n.severity)||Ie.undefined(n.severity))&&(Ie.integer(n.code)||Ie.string(n.code)||Ie.undefined(n.code))&&(Ie.undefined(n.codeDescription)||Ie.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ie.string(n.source)||Ie.undefined(n.source))&&(Ie.undefined(n.relatedInformation)||Ie.typedArray(n.relatedInformation,m.is))}}(_||(_={})),function(e){e.create=function(e,t,...n){const i={title:e,command:t};return Ie.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.title)&&(void 0===t.tooltip||Ie.string(t.tooltip))&&Ie.string(t.command)}}(R||(R={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.newText)&&c.is(t.range)}}(D||(D={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.label)&&(Ie.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ie.string(t.description)||void 0===t.description)}}(C||(C={})),function(e){e.is=function(e){const t=e;return Ie.string(t)}}(S||(S={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return D.is(t)&&(C.is(t.annotationId)||S.is(t.annotationId))}}(w||(w={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){const t=e;return Ie.defined(t)&&q.is(t.textDocument)&&Array.isArray(t.edits)}}(E||(E={})),function(e){e.create=function(e,t,n){const i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"create"===t.kind&&Ie.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ie.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ie.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t,n,i){const o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==i&&(o.annotationId=i),o},e.is=function(e){const t=e;return t&&"rename"===t.kind&&Ie.string(t.oldUri)&&Ie.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ie.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ie.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t,n){const i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"delete"===t.kind&&Ie.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ie.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ie.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(k||(k={})),function(e){e.is=function(e){const t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ie.string(e.kind)?T.is(e)||P.is(e)||k.is(e):E.is(e))))}}(x||(x={}));class Oe{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let i,o;if(void 0===n?i=D.insert(e,t):S.is(n)?(o=n,i=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=w.insert(e,t,o)),this.edits.push(i),void 0!==o)return o}replace(e,t,n){let i,o;if(void 0===n?i=D.replace(e,t):S.is(n)?(o=n,i=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=w.replace(e,t,o)),this.edits.push(i),void 0!==o)return o}delete(e,t){let n,i;if(void 0===t?n=D.del(e):S.is(t)?(i=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=w.del(e,i)),this.edits.push(n),void 0!==i)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}}!function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.range)&&Se.isSnippet(t.snippet)&&(void 0===t.annotationId||C.is(t.annotationId)||S.is(t.annotationId))}}(O||(O={}));class Me{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(`Id ${n} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}}class Ne{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Me(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((e=>{if(E.is(e)){const t=new Oe(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((t=>{const n=new Oe(e.changes[t]);this._textEditChanges[t]=n}))):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(q.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[],i={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(i),n=new Oe(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){const n=[];this._workspaceEdit.changes[e]=n,t=new Oe(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Me,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,o,r;if(C.is(t)||S.is(t)?i=t:n=t,void 0===i?o=T.create(e,n):(r=S.is(i)?i:this._changeAnnotations.manage(i),o=T.create(e,n,r)),this._workspaceEdit.documentChanges.push(o),void 0!==r)return r}renameFile(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let o,r,s;if(C.is(n)||S.is(n)?o=n:i=n,void 0===o?r=P.create(e,t,i):(s=S.is(o)?o:this._changeAnnotations.manage(o),r=P.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(r),void 0!==s)return s}deleteFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,o,r;if(C.is(t)||S.is(t)?i=t:n=t,void 0===i?o=k.create(e,n):(r=S.is(i)?i:this._changeAnnotations.manage(i),o=k.create(e,n,r)),this._workspaceEdit.documentChanges.push(o),void 0!==r)return r}}!function(e){e.create=function(e){return{uri:e}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)}}(M||(M={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)&&Ie.integer(t.version)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)&&(null===t.version||Ie.integer(t.version))}}(q||(q={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(L||(L={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)&&Ie.string(t.languageId)&&Ie.integer(t.version)&&Ie.string(t.text)}}(I||(I={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(j||(j={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(e)&&j.is(t.kind)&&Ie.string(t.value)}}(A||(A={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(F||(F={})),function(e){e.PlainText=1,e.Snippet=2}($||($={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Ie.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(H||(H={})),function(e){e.asIs=1,e.adjustIndentation=2}(U||(U={})),function(e){e.Replace=1,e.Merge=2}(z||(z={})),function(e){e.is=function(e){const t=e;return t&&(Ie.string(t.detail)||void 0===t.detail)&&(Ie.string(t.description)||void 0===t.description)}}(V||(V={})),function(e){e.create=function(e){return{label:e}}}(B||(B={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(K||(K={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Ie.string(t)||Ie.objectLiteral(t)&&Ie.string(t.language)&&Ie.string(t.value)}}(G||(G={})),function(e){e.is=function(e){const t=e;return!!t&&Ie.objectLiteral(t)&&(A.is(t.contents)||G.is(t.contents)||Ie.typedArray(t.contents,G.is))&&(void 0===e.range||c.is(e.range))}}(X||(X={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(J||(J={})),function(e){e.create=function(e,t,...n){const i={label:e};return Ie.defined(t)&&(i.documentation=t),Ie.defined(n)?i.parameters=n:i.parameters=[],i}}(Y||(Y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Q||(Q={})),function(e){e.create=function(e,t){const n={range:e};return Ie.number(t)&&(n.kind=t),n}}(Z||(Z={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ee||(ee={})),function(e){e.Deprecated=1}(te||(te={})),function(e){e.create=function(e,t,n,i,o){const r={name:e,kind:t,location:{uri:i,range:n}};return o&&(r.containerName=o),r}}(ne||(ne={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(ie||(ie={})),function(e){e.create=function(e,t,n,i,o,r){const s={name:e,detail:t,kind:n,range:i,selectionRange:o};return void 0!==r&&(s.children=r),s},e.is=function(e){const t=e;return t&&Ie.string(t.name)&&Ie.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||Ie.string(t.detail))&&(void 0===t.deprecated||Ie.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(oe||(oe={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(re||(re={})),function(e){e.Invoked=1,e.Automatic=2}(se||(se={})),function(e){e.create=function(e,t,n){const i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.typedArray(t.diagnostics,_.is)&&(void 0===t.only||Ie.typedArray(t.only,Ie.string))&&(void 0===t.triggerKind||t.triggerKind===se.Invoked||t.triggerKind===se.Automatic)}}(ae||(ae={})),function(e){e.LLMGenerated=1,e.is=function(t){return Ie.defined(t)&&t===e.LLMGenerated}}(ce||(ce={})),function(e){e.create=function(e,t,n){const i={title:e};let o=!0;return"string"==typeof t?(o=!1,i.kind=t):R.is(t)?i.command=t:i.edit=t,o&&void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return t&&Ie.string(t.title)&&(void 0===t.diagnostics||Ie.typedArray(t.diagnostics,_.is))&&(void 0===t.kind||Ie.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||R.is(t.command))&&(void 0===t.isPreferred||Ie.boolean(t.isPreferred))&&(void 0===t.edit||x.is(t.edit))&&(void 0===t.tags||Ie.typedArray(t.tags,ce.is))}}(ue||(ue={})),function(e){e.create=function(e,t){const n={range:e};return Ie.defined(t)&&(n.data=t),n},e.is=function(e){const t=e;return Ie.defined(t)&&c.is(t.range)&&(Ie.undefined(t.command)||R.is(t.command))}}(le||(le={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.uinteger(t.tabSize)&&Ie.boolean(t.insertSpaces)}}(de||(de={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){const t=e;return Ie.defined(t)&&c.is(t.range)&&(Ie.undefined(t.target)||Ie.string(t.target))}}(fe||(fe={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){const n=t;return Ie.objectLiteral(n)&&c.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(he||(he={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(ge||(ge={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(pe||(pe={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(me||(me={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ie.string(t.text)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ie.boolean(t.caseSensitiveLookup)&&(Ie.string(t.variableName)||void 0===t.variableName)}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&(Ie.string(t.expression)||void 0===t.expression)}}(be||(be={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Ie.defined(t)&&c.is(e.stoppedLocation)}}(_e||(_e={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Re||(Re={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&(void 0===t.tooltip||Ie.string(t.tooltip)||A.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||R.is(t.command))}}(De||(De={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&a.is(t.position)&&(Ie.string(t.label)||Ie.typedArray(t.label,De.is))&&(void 0===t.kind||Re.is(t.kind))&&void 0===t.textEdits||Ie.typedArray(t.textEdits,D.is)&&(void 0===t.tooltip||Ie.string(t.tooltip)||A.is(t.tooltip))&&(void 0===t.paddingLeft||Ie.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ie.boolean(t.paddingRight))}}(Ce||(Ce={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}},e.isSnippet=function(e){const t=e;return Ie.objectLiteral(t)&&"snippet"===t.kind&&Ie.string(t.value)}}(Se||(Se={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(we||(we={})),function(e){e.create=function(e){return{items:e}}}(Ee||(Ee={})),function(e){e.Invoked=1,e.Automatic=2}(Te||(Te={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Pe||(Pe={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(ke||(ke={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&o.is(t.uri)&&Ie.string(t.name)}}(xe||(xe={}));const qe=["\n","\r\n","\r"];var Le,Ie;!function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,o=e.slice(0,i),r=e.slice(i);t(o,n),t(r,n);let s=0,a=0,c=0;for(;s<o.length&&a<r.length;){const t=n(o[s],r[a]);e[c++]=t<=0?o[s++]:r[a++]}for(;s<o.length;)e[c++]=o[s++];for(;a<r.length;)e[c++]=r[a++];return e}e.create=function(e,t,n,i){return new je(e,t,n,i)},e.is=function(e){const t=e;return!!(Ie.defined(t)&&Ie.string(t.uri)&&(Ie.undefined(t.languageId)||Ie.string(t.languageId))&&Ie.uinteger(t.lineCount)&&Ie.func(t.getText)&&Ie.func(t.positionAt)&&Ie.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText();const o=t(n,((e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let r=i.length;for(let t=o.length-1;t>=0;t--){const n=o[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=r))throw new Error("Overlapping edit");i=i.substring(0,s)+n.newText+i.substring(a,i.length),r=s}return i}}(Le||(Le={}));class je{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){const e=[],t=this._content;let n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);const o=t.charAt(i);n="\r"===o||"\n"===o,"\r"===o&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return a.create(0,e);for(;n<i;){const o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}const o=n-1;return a.create(o,e-t[o])}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ie||(Ie={}))},6216:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ESLint=t.CodeActions=t.RuleSeverities=t.SaveRuleConfigs=t.Fixes=t.ESLintModule=t.SuggestionsProblem=t.FixableProblem=t.Problem=t.RuleMetaData=t.ESLintError=t.TextDocumentSettings=void 0;const c=s(n(9896)),u=s(n(6928)),l=s(n(6982)),d=n(5317),f=n(144),h=n(4089),g=n(1327),p=n(7608),m=n(4476),y=n(9394),v=s(n(1681)),b=n(5724),_=n(7733),R=a(n(5509));var D,C,S,w,E,T,P,k,x,O,M,N,q,L,I;!function(e){e.hasLibrary=function(e){return void 0!==e.library}}(D||(t.TextDocumentSettings=D={})),function(e){e.isNoConfigFound=function(e){const t=e;return"no-config-found"===t.messageTemplate||"No ESLint configuration found."===t.message}}(C||(t.ESLintError=C={})),function(e){e.unusedDisableDirectiveId="unused-disable-directive";const t={docs:{url:"https://eslint.org/docs/latest/use/configure/rules#report-unused-eslint-disable-comments"},type:"directive"},n=new Set,i=new Map([[e.unusedDisableDirectiveId,t]]);e.capture=function(e,t){let o;if(e.isCLIEngine){const i=t.filter((e=>!n.has(e.filePath)));if(0===i.length)return;o="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(i):void 0,i.forEach((e=>n.add(e.filePath)))}else o="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(t):void 0;void 0!==o&&Object.entries(o).forEach((([e,t])=>{i.has(e)||t&&t.docs&&v.string(t.docs.url)&&i.set(e,t)}))},e.clear=function(){n.clear(),i.clear(),i.set(e.unusedDisableDirectiveId,t)},e.getUrl=function(e){return i.get(e)?.docs?.url},e.getType=function(e){return i.get(e)?.type},e.hasRuleId=function(e){return i.has(e)},e.isUnusedDisableDirectiveProblem=function(e){return null===e.ruleId&&e.message.startsWith("Unused eslint-disable directive")}}(S||(t.RuleMetaData=S={})),function(e){e.isFixable=function(e){return void 0!==e.edit},e.hasSuggestions=function(e){return void 0!==e.suggestions}}(w||(t.Problem=w={})),function(e){e.createTextEdit=function(e,t){return g.TextEdit.replace(g.Range.create(e.positionAt(t.edit.range[0]),e.positionAt(t.edit.range[1])),t.edit.text||"")}}(E||(t.FixableProblem=E={})),function(e){e.createTextEdit=function(e,t){return g.TextEdit.replace(g.Range.create(e.positionAt(t.fix.range[0]),e.positionAt(t.fix.range[1])),t.fix.text||"")}}(T||(t.SuggestionsProblem=T={})),function(e){e.getConfigType=function(e){return!0===e.isCLIEngine?"eslintrc":e.constructor.configType??"eslintrc"}}(P||(P={})),function(e){e.hasLoadESLint=function(e){return void 0!==e.loadESLint},e.hasESLintClass=function(e){return void 0!==e.ESLint},e.hasCLIEngine=function(e){return void 0!==e.CLIEngine},e.isFlatConfig=function(e){const t=e;return void 0!==t.ESLint&&!0===t.isFlatConfig}}(k||(t.ESLintModule=k={})),function(e){e.hasMetaType=function(e){return void 0!==e&&void 0!==e.type}}(x||(x={})),function(e){e.hasRule=function(e){return void 0!==e.getRules}}(O||(O={}));class j{cli;constructor(e){this.cli=e}get isCLIEngine(){return!0}async lintText(e,t){return this.cli.executeOnText(e,t.filePath,t.warnIgnored).results}async isPathIgnored(e){return this.cli.isPathIgnored(e)}getRulesMetaForResults(e){if(!O.hasRule(this.cli))return;const t={};for(const[e,n]of this.cli.getRules())void 0!==n.meta&&(t[e]=n.meta);return t}async calculateConfigForFile(e){return"function"==typeof this.cli.getConfigForFile?this.cli.getConfigForFile(e):void 0}}class A{edits;constructor(e){this.edits=e}static overlaps(e,t){return void 0!==e&&e.edit.range[1]>t.edit.range[0]}static sameRange(e,t){return e.edit.range[0]===t.edit.range[0]&&e.edit.range[1]===t.edit.range[1]}isEmpty(){return 0===this.edits.size}getDocumentVersion(){if(this.isEmpty())throw new Error("No edits recorded.");return this.edits.values().next().value.documentVersion}getScoped(e){const t=[];for(const n of e){const e=q.computeKey(n),i=this.edits.get(e);i&&t.push(i)}return t}getAllSorted(){const e=[];for(const t of this.edits.values())w.isFixable(t)&&e.push(t);return e.sort(((e,t)=>{const n=e.edit.range[0]-t.edit.range[0];if(0!==n)return n;const i=e.edit.range[1]-e.edit.range[0],o=t.edit.range[1]-t.edit.range[0];return i===o?0:0===i?-1:0===o?1:i-o}))}getApplicable(){const e=this.getAllSorted();if(e.length<=1)return e;const t=[];let n=e[0];t.push(n);for(let i=1;i<e.length;i++){const o=e[i];A.overlaps(n,o)||A.sameRange(n,o)||(t.push(o),n=o)}return t}}t.Fixes=A,function(e){const t=new b.LRUCache(128);function n(e,t){for(const n of t){if(n.startsWith("!")&&new RegExp(`^${n.slice(1).replace(/\*/g,".*")}$`,"g").test(e))return!0;if(new RegExp(`^${n.replace(/\*/g,".*")}$`,"g").test(e))return!1}return!0}e.get=async function(i,o){const r=e.inferFilePath(i,o.useRealpaths);let s=t.get(i);if(void 0===r||null===s)return;if(void 0!==s)return s;const a=o.codeActionOnSave.rules,c=o.codeActionOnSave.options;return s=await I.withClass((async e=>{if(void 0===a&&void 0===c||e.isCLIEngine)return;const t=await e.calculateConfigForFile(r);if(void 0===t||void 0===t.rules||0===t.rules.length)return;const i=new Set,o=new Set;if(void 0!==a)if(0===a.length)Object.keys(t.rules).forEach((e=>i.add(e)));else for(const e of Object.keys(t.rules))n(e,a)?i.add(e):o.add(e);return i.size>0||c?{offRules:i,onRules:o,options:c}:void 0}),o),null==s?void t.set(i,null):(t.set(i,s),s)},e.remove=function(e){return t.delete(e)},e.clear=function(){t.clear()}}(M||(t.SaveRuleConfigs=M={})),function(e){const t=new b.LRUCache(1024);function n(e,t){return e.startsWith("!")?!new RegExp(`^${e.slice(1).replace(/\*/g,".*")}$`,"g").test(t):new RegExp(`^${e.replace(/\*/g,".*")}$`,"g").test(t)}e.getOverride=function(e,i,o){let r=t.get(e);if(null!==r){if(void 0!==r)return r;for(const t of i)!n(t.rule,e)||void 0!==t.fixable&&t.fixable!==o||(r=t.severity);if(void 0!==r)return t.set(e,r),r;t.set(e,null)}},e.clear=function(){t.clear()}}(N||(t.RuleSeverities=N={})),function(e){function t(e,t){switch(t){case y.RuleSeverity.off:case y.RuleSeverity.info:case y.RuleSeverity.warn:case y.RuleSeverity.error:return t;case y.RuleSeverity.downgrade:switch(n(e)){case g.DiagnosticSeverity.Error:return y.RuleSeverity.warn;case g.DiagnosticSeverity.Warning:case g.DiagnosticSeverity.Information:return y.RuleSeverity.info}case y.RuleSeverity.upgrade:switch(n(e)){case g.DiagnosticSeverity.Information:return y.RuleSeverity.warn;case g.DiagnosticSeverity.Warning:case g.DiagnosticSeverity.Error:return y.RuleSeverity.error}default:return e}}function n(e){switch(e){case 1:case y.RuleSeverity.warn:return g.DiagnosticSeverity.Warning;case 2:case y.RuleSeverity.error:return g.DiagnosticSeverity.Error;case y.RuleSeverity.info:return g.DiagnosticSeverity.Information;default:return g.DiagnosticSeverity.Error}}e.computeKey=function(e){const t=e.range;let n;if(e.message){const t=l.createHash("sha256");t.update(e.message),n=t.digest("base64")}return`[${t.start.line},${t.start.character},${t.end.line},${t.end.character}]-${e.code}-${n??""}`},e.create=function(e,i,o){const r=i.message,s="number"!=typeof i.line||Number.isNaN(i.line)?0:Math.max(0,i.line-1),a="number"!=typeof i.column||Number.isNaN(i.column)?0:Math.max(0,i.column-1);let c="number"!=typeof i.endLine||Number.isNaN(i.endLine)?s:Math.max(0,i.endLine-1),u="number"!=typeof i.endColumn||Number.isNaN(i.endColumn)?a:Math.max(0,i.endColumn-1);e.problems.shortenToSingleLine&&c!==s&&(c=s,u=o.getText({start:{line:s,character:0},end:{line:s,character:g.uinteger.MAX_VALUE}}).length);const l=N.getOverride(i.ruleId,e.rulesCustomizations,void 0!==i.fix),d={message:r,severity:(f=i.severity,h=l,n(t(f,h))),source:"eslint",range:{start:{line:s,character:a},end:{line:c,character:u}}};var f,h;if(i.ruleId){const e=S.getUrl(i.ruleId);d.code=i.ruleId,void 0!==e&&(d.codeDescription={href:e}),"no-unused-vars"===i.ruleId&&(d.tags=[g.DiagnosticTag.Unnecessary])}return[d,l]}}(q||(q={})),function(e){const t=new Map;e.get=function(e){return t.get(e)},e.set=function(e,n){t.set(e,n)},e.remove=function(e){return t.delete(e)},e.record=function(t,n,i){if(!i.ruleId)return;const o=t.uri;let r=e.get(o);void 0===r&&(r=new Map,e.set(o,r)),r.set(q.computeKey(n),{label:`Fix this ${i.ruleId} problem`,documentVersion:t.version,ruleId:i.ruleId,line:i.line,diagnostic:n,edit:i.fix,suggestions:i.suggestions})}}(L||(t.CodeActions=L={})),function(e){let t,n,i,o;const r=function(){const e=new Map,t=/\/@typescript-eslint\/parser\//,n=/\/babel-eslint\/lib\/index.js$/,i=/\/vue-eslint-parser\/index.js$/;return e.set("typescript",[t,n,i]),e.set("typescriptreact",[t,n,i]),e.set("html",[/\/@angular-eslint\/template-parser\//]),e}(),s=function(){const e=new Map;return e.set("typescript",{regExps:[/vue-eslint-parser\/.*\.js$/],parsers:new Set(["@typescript-eslint/parser"]),parserRegExps:[/@typescript-eslint\/parser\/.*\.js$/]}),e}(),a=new Map([["astro","astro"],["civet","civet"],["html","html"],["json","jsonc"],["json5","jsonc"],["jsonc","jsonc"],["mdx","mdx"],["vue","vue"],["markdown","markdown"],["css","css"],["glimmer-js","ember"],["glimmer-ts","ember"]]),l=new Set(["javascript","javascriptreact"]),b=[{fileName:"eslint.config.js",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.cjs",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.mjs",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.ts",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.cts",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.mts",isRoot:!0,isFlatConfig:!0},{fileName:"package.json",isRoot:!0,isFlatConfig:!1},{fileName:".eslintignore",isRoot:!0,isFlatConfig:!1},{fileName:".eslintrc",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.json",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.js",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.yaml",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.yml",isRoot:!1,isFlatConfig:!1}],w=new Map,E=new Map,T=new Map;async function x(e,t,n){return k.hasLoadESLint(e)?new(await e.loadESLint({useFlatConfig:n.useFlatConfig}))(t):k.hasESLintClass(e)&&n.useESLintClass?new e.ESLint(t):k.hasCLIEngine(e)?new j(new e.CLIEngine(t)):new e.ESLint(t)}async function O(e,t,n){const i=void 0===n?Object.assign(Object.create(null),t.options):Object.assign(Object.create(null),t.options,n),o=process.cwd();try{if(t.workingDirectory){const e=function(e){const t=(0,_.normalizeDriveLetter)(e);return 0===t.length?t:t[t.length-1]===u.sep?t.substring(0,t.length-1):t}(t.workingDirectory.directory);i.cwd=e,!0!==t.workingDirectory["!cwd"]&&c.existsSync(e)&&process.chdir(e)}const n=await x(t.library,i,t);return await e(n)}finally{o!==process.cwd()&&process.chdir(o)}}function M(e,t){if(void 0===e)return;const n=p.URI.parse(e.uri);if("file"===n.scheme)return i(n,t.useRealpaths);if(void 0!==t.workspaceFolder){const n=R.default.getExtension(e.languageId),o=i(t.workspaceFolder.uri,t.useRealpaths);if(void 0!==o&&void 0!==n)return u.join(o,`test.${n}`)}}e.initialize=function(e,r,s,a){t=e,n=r,i=s,o=a},e.removeSettings=function(e){return E.delete(e)},e.clearSettings=function(){E.clear()},e.unregisterAsFormatter=function(e){const t=T.get(e.uri);void 0!==t&&(t.then((e=>e.dispose())),T.delete(e.uri))},e.clearFormatters=function(){for(const e of T.values())e.then((e=>e.dispose()));T.clear()},e.resolveSettings=function(n){const d=n.uri;let v=E.get(d);return v||(v=t.workspace.getConfiguration({scopeUri:d,section:""}).then((v=>{const b=Object.assign({},v,{silent:!1,library:void 0,resolvedGlobalPackageManagerPath:void 0},{workingDirectory:void 0});if(b.validate===y.Validate.off)return b;b.resolvedGlobalPackageManagerPath=A.get(b.packageManager);const R=i(n,b.useRealpaths),C=void 0!==b.workspaceFolder?i(b.workspaceFolder.uri,b.useRealpaths):void 0;let S=!1;const E=void 0!==v.workingDirectory,x=v.workingDirectory??{mode:y.ModeEnum.location};if(y.ModeItem.is(x)){let e;if(x.mode===y.ModeEnum.location)if(void 0!==C){const[t,n]=$(C,R);n&&!1!==b.useFlatConfig?(e=t,S=!0):e=C}else void 0===R||(0,_.isUNC)(R)||(e=u.dirname(R));else x.mode===y.ModeEnum.auto&&(void 0!==C?e=$(C,R)[0]:void 0===R||(0,_.isUNC)(R)||(e=u.dirname(R)));void 0!==e&&c.existsSync(e)&&(b.workingDirectory={directory:e})}else b.workingDirectory=x;let O,M,N;null!==b.nodePath&&(O=b.nodePath,u.isAbsolute(O)||void 0===C||(O=u.join(C,O))),E||void 0===R||(M=u.dirname(R)),void 0!==M||void 0===b.workingDirectory||b.workingDirectory["!cwd"]||(M=b.workingDirectory.directory);const q=b.experimental?.useFlatConfig?"eslint/use-at-your-own-risk":"eslint";return N=void 0!==O?g.Files.resolve(q,O,O,I).then(void 0,(()=>g.Files.resolve(q,b.resolvedGlobalPackageManagerPath,M,I))):g.Files.resolve(q,b.resolvedGlobalPackageManagerPath,M,I),b.silent=b.validate===y.Validate.probe,N.then((async c=>{let u=w.get(c);if(void 0===u){if(!0===b.experimental?.useFlatConfig){const e=o(c);void 0===e?(b.validate=y.Validate.off,b.silent||t.console.error(`Failed to load eslint library from ${c}. If you are using ESLint v8.21 or earlier, try upgrading it. For newer versions, try disabling the 'eslint.experimental.useFlatConfig' setting. See the output panel for more information.`)):void 0===e.FlatESLint?(b.validate=y.Validate.off,t.console.error(`The eslint library loaded from ${c} doesn't export a FlatESLint class.`)):(t.console.info(`ESLint library loaded from: ${c}`),u={ESLint:e.FlatESLint,isFlatConfig:!0,CLIEngine:void 0},b.library=u,w.set(c,u))}else u=o(c),void 0===u?(b.validate=y.Validate.off,b.silent||t.console.error(`Failed to load eslint library from ${c}. See output panel for more information.`)):void 0===u.CLIEngine&&void 0===u.ESLint?(b.validate=y.Validate.off,t.console.error(`The eslint library loaded from ${c} doesn't export neither a CLIEngine nor an ESLint class. You need at least eslint@1.0.0`)):(t.console.info(`ESLint library loaded from: ${c}`),b.library=u,w.set(c,u));if(void 0!==u&&k.hasESLintClass(u)&&"string"==typeof u.ESLint.version){const e=f(u.ESLint.version);null!==e&&(h(e,"8.57.0")&&!0===b.experimental?.useFlatConfig?t.console.info(`ESLint version ${u.ESLint.version} supports flat config without experimental opt-in. The 'eslint.experimental.useFlatConfig' setting can be removed.`):!h(e,"10.0.0")||!1!==b.experimental?.useFlatConfig&&!1!==b.useFlatConfig||t.console.info(`ESLint version ${u.ESLint.version} only supports flat configs. Setting is ignored.`))}}else b.library=u;if(b.validate===y.Validate.probe&&D.hasLibrary(b)){b.validate=y.Validate.off;const i=e.getFilePath(n,b);if(void 0!==i){const o=r.get(n.languageId),c=a.get(n.languageId),u=s.get(n.languageId);if(l.has(n.languageId))try{const[n,o]=await e.withClass((async e=>[await e.isPathIgnored(i),P.getConfigType(e)]),b);(!1===n||!0===n&&b.onIgnoredFiles!==y.ESLintSeverity.off)&&(b.validate=y.Validate.on,S&&"eslintrc"===o&&t.console.info(`Expected to use flat configuration from directory ${b.workingDirectory?.directory} but loaded eslintrc config.`))}catch(e){b.validate=y.Validate.off,await t.sendNotification(m.StatusNotification.type,{uri:d,state:m.Status.error}),t.console.error(`Calculating config file for ${d}) failed.\n${e instanceof Error?e.stack:""}`)}else if(void 0!==o||void 0!==c||void 0!==u){const[n,r]=await e.withClass((async e=>{try{return await e.isPathIgnored(i)?[void 0,void 0]:[await e.calculateConfigForFile(i),P.getConfigType(e)]}catch(e){try{await t.sendNotification(m.StatusNotification.type,{uri:d,state:m.Status.error}),t.console.error(`Calculating config file for ${d}) failed.\n${e instanceof Error?e.stack:""}`)}catch{}return[void 0,void 0]}}),b);if(void 0!==n)if(S&&"eslintrc"===r&&t.console.info(`Expected to use flat configuration from directory ${b.workingDirectory?.directory} but loaded eslintrc config.`),"flat"===r||k.isFlatConfig(b.library))b.validate=y.Validate.on;else{const e=null!==n.parser?(0,_.normalizePath)(n.parser):void 0;if(void 0!==e){if(void 0!==o)for(const t of o)if(t.test(e)){b.validate=y.Validate.on;break}if(b.validate!==y.Validate.on&&void 0!==u&&"string"==typeof n.parserOptions?.parser){const t=(0,_.normalizePath)(n.parserOptions.parser);for(const i of u.regExps)if(i.test(e)&&(u.parsers.has(n.parserOptions.parser)||void 0!==u.parserRegExps&&u.parserRegExps.some((e=>e.test(t))))){b.validate=y.Validate.on;break}}}if(b.validate!==y.Validate.on&&Array.isArray(n.plugins)&&n.plugins.length>0&&void 0!==c)for(const e of n.plugins)if(e===c){b.validate=y.Validate.on;break}}}}if(b.validate===y.Validate.off){const e={textDocument:{uri:n.uri}};t.sendRequest(m.ProbeFailedRequest.type,e)}}if(b.validate===y.Validate.on&&(b.silent=!1,b.format&&D.hasLibrary(b)&&!T.has(d))){const n=p.URI.parse(d),o="file"===n.scheme;let r=o?n.fsPath.replace(/\\/g,"/"):n.fsPath;r=r.replace(/[\[\]\{\}]/g,"?");const s={documentSelector:[{scheme:n.scheme,pattern:r}]};if(o){const n=i(d,b.useRealpaths);await e.withClass((async e=>{await e.isPathIgnored(n)||T.set(d,t.client.register(g.DocumentFormattingRequest.type,s))}),b)}else T.set(d,t.client.register(g.DocumentFormattingRequest.type,s))}return b}),(()=>(b.validate=y.Validate.off,b.silent||t.sendRequest(m.NoESLintLibraryRequest.type,{source:{uri:n.uri}}),b)))})),E.set(d,v),v)},e.newClass=x,e.withClass=O,e.getFilePath=M;const N=new Set(["problem","suggestion","layout","directive"]);function I(e,n){t.tracer.log(e,n)}let A,F;function $(e,t){if(void 0===t||(0,_.isUNC)(t))return[e,!1];if(-1!==t.indexOf(`${u.sep}node_modules${u.sep}`))return[e,!1];let n=e,i=!1,o=u.dirname(t);e:for(;void 0!==o&&o.startsWith(e);){for(const{fileName:e,isRoot:t,isFlatConfig:r}of b)if(c.existsSync(u.join(o,e))){if(n=o,i=r,t)break e;break}const e=u.dirname(o);o=e!==o?e:void 0}return[n,i]}e.validate=async function(e,t){const n=Object.assign(Object.create(null),t.options);let i;if(Array.isArray(n.fixTypes)&&n.fixTypes.length>0){i=new Set;for(const e of n.fixTypes)N.has(e)&&i.add(e);0===i.size&&(i=void 0)}const o=e.getText(),r=e.uri,s=M(e,t);return O((async n=>{L.remove(r);const a=await n.lintText(o,{filePath:s,warnIgnored:t.onIgnoredFiles!==y.ESLintSeverity.off});S.capture(n,a);const c=[];if(a&&Array.isArray(a)&&a.length>0){const n=a[0];n.messages&&Array.isArray(n.messages)&&n.messages.forEach((n=>{if(n){const[o,r]=q.create(t,n,e);if(r===y.RuleSeverity.off||t.quiet&&o.severity===g.DiagnosticSeverity.Warning||c.push(o),void 0!==i&&void 0!==n.ruleId&&void 0!==n.fix){const t=S.getType(n.ruleId);void 0!==t&&i.has(t)&&L.record(e,o,n)}else S.isUnusedDisableDirectiveProblem(n)&&(n.ruleId=S.unusedDisableDirectiveId),L.record(e,o,n)}}))}return c}),t)},function(e){const t={yarn:{cache:void 0,get:()=>g.Files.resolveGlobalYarnPath(I)},npm:{cache:void 0,get:()=>g.Files.resolveGlobalNodePath(I)},pnpm:{cache:void 0,get:()=>(0,d.execSync)("pnpm root -g").toString().trim()}};e.get=function(e){const n=t[e];if(n)return void 0===n.cache&&(n.cache=n.get()),n.cache}}(A||(A={})),e.findWorkingDirectory=$,function(e){function o(e,t){let n;return"string"==typeof e.message||e.message instanceof String?(n=e.message,n=n.replace(/\r?\n/g," "),/^CLI: /.test(n)&&(n=n.substr(5))):n=`An unknown error occurred while validating document: ${t.uri}`,n}e.single=[function(e,n,i){if(C.isNoConfigFound(e))return r.has(n.uri)||(t.sendRequest(m.NoConfigRequest.type,{message:o(e,n),document:{uri:n.uri}}).then(void 0,(()=>{})),r.set(n.uri,i)),m.Status.warn},function(e,i,r,a){if(!e.message)return;function c(c){return s.has(c)||(t.console.error(o(e,i)),n.get(p.URI.file(c).toString())||t.window.showInformationMessage(o(e,i)),s.set(c,{library:r,settings:a})),m.Status.warn}let u=/Cannot read config file:\s+(.*)\nError:\s+(.*)/.exec(e.message);return u&&3===u.length?c(u[1]):(u=/(.*):\n\s*Configuration for rule \"(.*)\" is /.exec(e.message),u&&3===u.length?c(u[1]):(u=/Cannot find module '([^']*)'\nReferenced from:\s+(.*)/.exec(e.message),u&&3===u.length?c(u[2]):void 0))},function(e,n,o,r){if(!e.message)return;const s=/Failed to load plugin (.*): Cannot find module (.*)/.exec(e.message);return s&&3===s.length?function(e,s,c){if(!a.has(e)){const u=i(n,r.useRealpaths);a.set(e,o),"plugin-missing"===c.messageTemplate?t.console.error(["",`${c.message.toString()}`,`Happened while validating ${u||n.uri}`,"This can happen for a couple of reasons:","1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).",`2. If ESLint is installed globally, then make sure ${s} is installed globally as well.`,`3. If ESLint is installed locally, then ${s} isn't installed correctly.`,"",`Consider running eslint --debug ${u||n.uri} from a terminal to obtain a trace about the configuration files used.`].join("\n")):t.console.error([`${c.message.toString()}`,`Happened while validating ${u||n.uri}`].join("\n"))}return m.Status.warn}(s[1],s[2],e):void 0},function(e,n){return v.string(e.stack)?(t.console.error("An unexpected error occurred:"),t.console.error(e.stack)):t.console.error(`An unexpected error occurred: ${o(e,n)}.`),m.Status.error}],e.getMessage=o;const r=new Map;e.clearNoConfigReported=function(){r.clear()};const s=new Map;e.getConfigErrorReported=function(e){return s.get(e)},e.removeConfigErrorReported=function(e){return s.delete(e)};const a=new Map;e.clearMissingModuleReported=function(){a.clear()}}(F=e.ErrorHandlers||(e.ErrorHandlers={}))}(I||(t.ESLint=I={}))},6874:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},6914:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/declaration",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.declaration","declarationProvider")}(o||(t.DeclarationRequest=o={}))},6928:e=>{e.exports=require("path")},6982:e=>{e.exports=require("crypto")},7016:e=>{e.exports=require("url")},7123:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.PortMessageWriter=t.PortMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0,t.generateRandomPipeName=function(){if("win32"===process.platform)return`\\\\.\\pipe\\lsp-${(0,h.randomBytes)(16).toString("hex")}-sock`;let e=32;const t=f.realpathSync(S??d.tmpdir()),n=w.get(process.platform);if(void 0!==n&&(e=Math.min(n-t.length-9,e)),e<16)throw new Error(`Unable to generate a random pipe name with ${e} characters.`);const i=(0,h.randomBytes)(Math.floor(e/2)).toString("hex");return l.join(t,`lsp-${i}.sock`)},t.createClientPipeTransport=function(e,t="utf-8"){let n;const i=new Promise(((e,t)=>{n=e}));return new Promise(((o,r)=>{const s=(0,g.createServer)((e=>{s.close(),n([new _(e,t),new R(e,t)])}));s.on("error",r),s.listen(e,(()=>{s.removeListener("error",r),o({onConnected:()=>i})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const n=(0,g.createConnection)(e);return[new _(n,t),new R(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const i=new Promise(((e,t)=>{n=e}));return new Promise(((o,r)=>{const s=(0,g.createServer)((e=>{s.close(),n([new _(e,t),new R(e,t)])}));s.on("error",r),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",r),o({onConnected:()=>i})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const n=(0,g.createConnection)(e,"127.0.0.1");return[new _(n,t),new R(n,t)]},t.createMessageConnection=function(e,t,n,i){n||(n=p.NullLogger);const o=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new D(e):e,r=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new C(t):t;return p.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,p.createMessageConnection)(o,r,n,i)};const u=c(n(9571));u.default.install();const l=s(n(6928)),d=s(n(857)),f=s(n(9896)),h=n(6982),g=n(9278),p=n(3281);a(n(3281),t);class m extends p.AbstractMessageReader{process;constructor(e){super(),this.process=e;const t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),p.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=m;class y extends p.AbstractMessageWriter{process;errorCount;constructor(e){super(),this.process=e,this.errorCount=0;const t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=y;class v extends p.AbstractMessageReader{onData;constructor(e){super(),this.onData=new p.Emitter,e.on("close",(()=>this.fireClose)),e.on("error",(e=>this.fireError(e))),e.on("message",(e=>{this.onData.fire(e)}))}listen(e){return this.onData.event(e)}}t.PortMessageReader=v;class b extends p.AbstractMessageWriter{port;errorCount;constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",(()=>this.fireClose())),e.on("error",(e=>this.fireError(e)))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.PortMessageWriter=b;class _ extends p.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,u.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=_;class R extends p.WriteableStreamMessageWriter{socket;constructor(e,t){super((0,u.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=R;class D extends p.ReadableStreamMessageReader{constructor(e,t){super((0,u.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=D;class C extends p.WriteableStreamMessageWriter{constructor(e,t){super((0,u.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=C;const S=process.env.XDG_RUNTIME_DIR,w=new Map([["linux",107],["darwin",103]])},7272:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},7354:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=function(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)};const r=n(7123);o(n(7123),t),o(n(8766),t)},7608:(e,t,n)=>{var i;n.r(t),n.d(t,{URI:()=>o,Utils:()=>r}),(()=>{var e={975:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",o=0,r=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(r===a-1||1===s);else if(r!==a-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",o=0):o=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),r=a,s=0;continue}}else if(2===i.length||1===i.length){i="",o=0,r=a,s=0;continue}t&&(i.length>0?i+="/..":i="..",o=2)}else i.length>0?i+="/"+e.slice(r+1,a):i=e.slice(r+1,a),o=a-r-1;r=a,s=0}else 46===n&&-1!==s?++s:s=-1}return i}var i={resolve:function(){for(var e,i="",o=!1,r=arguments.length-1;r>=-1&&!o;r--){var s;r>=0?s=arguments[r]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&o&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var r=e.length,s=r-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var c=n.length-a,u=s<c?s:c,l=-1,d=0;d<=u;++d){if(d===u){if(c>u){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>u&&(47===e.charCodeAt(o+d)?l=d:0===d&&(l=0));break}var f=e.charCodeAt(o+d);if(f!==n.charCodeAt(a+d))break;47===f&&(l=d)}var h="";for(d=o+l+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,o=-1,r=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!r){o=s;break}}else r=!1;return-1===o?i?"/":".":i&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,o=0,r=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(i=e.length-1;i>=0;--i){var u=e.charCodeAt(i);if(47===u){if(!s){o=i+1;break}}else-1===c&&(s=!1,c=i+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(r=i):(a=-1,r=c))}return o===r?r=c:-1===r&&(r=e.length),e.slice(o,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!s){o=i+1;break}}else-1===r&&(s=!1,r=i+1);return-1===r?"":e.slice(o,r)},extname:function(e){t(e);for(var n=-1,i=0,o=-1,r=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===o&&(r=!1,o=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!r){i=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===i+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,o=e.charCodeAt(0),r=47===o;r?(n.root="/",i=1):i=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,d=0;l>=i;--l)if(47!==(o=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===o?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):r&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};let r;if(n.r(o),n.d(o,{URI:()=>h,Utils:()=>T}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){let e=navigator.userAgent;r=e.indexOf("Windows")>=0}const s=/^\w[\w\d+.-]*$/,a=/^\//,c=/^\/\//;function u(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const l="",d="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,o,r=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,r),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||l),this.query=i||l,this.fragment=o||l,u(this,r))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:o,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===o?o=this.query:null===o&&(o=l),void 0===r?r=this.fragment:null===r&&(r=l),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new p(t,n,i,o,r)}static parse(e,t=!1){const n=f.exec(e);return n?new p(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new p(l,l,l,l,l)}static file(e){let t=l;if(r&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const n=e.indexOf(d,2);-1===n?(t=e.substring(2),e=d):(t=e.substring(2,n),e=e.substring(n)||d)}return new p("file",t,e,l,l)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=r?1:void 0;class p extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function y(e,t,n){let i,o=-1;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(i+=encodeURIComponent(e.substring(o,r)),o=-1),void 0!==i&&(i+=e.charAt(r));else{void 0===i&&(i=e.substr(0,r));const t=m[s];void 0!==t?(-1!==o&&(i+=encodeURIComponent(e.substring(o,r)),o=-1),i+=t):-1===o&&(o=r)}}return-1!==o&&(i+=encodeURIComponent(e.substring(o))),void 0!==i?i:e}function v(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=m[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function _(e,t){const n=t?v:y;let i="",{scheme:o,authority:r,path:s,query:a,fragment:c}=e;if(o&&(i+=o,i+=":"),(r||"file"===o)&&(i+=d,i+=d),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?i+=n(r,!1,!0):(i+=n(r.substr(0,e),!1,!0),i+=r.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}i+=n(s,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=t?c:y(c,!1,!1)),i}function R(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+R(e.substr(3)):e}}const D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(D)?e.replace(D,(e=>R(e))):e}var S=n(975);const w=S.posix||S,E="/";var T;!function(e){e.joinPath=function(e,...t){return e.with({path:w.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==E&&(n=E+n,i=!0);let o=w.resolve(n,...t);return i&&o[0]===E&&!e.authority&&(o=o.substring(1)),e.with({path:o})},e.dirname=function(e){if(0===e.path.length||e.path===E)return e;let t=w.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return w.basename(e.path)},e.extname=function(e){return w.extname(e.path)}}(T||(T={})),i=o})();const{URI:o,Utils:r}=i},7672:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const i=n(372);var o,r;!function(e){e.method="textDocument/documentColor",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.colorProvider","colorProvider")}(o||(t.DocumentColorRequest=o={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ColorPresentationRequest=r={}))},7733:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeDriveLetter=function(e){return"win32"!==process.platform||e.length<2||":"!==e[1]?e:e[0].toUpperCase()+e.substring(1)},t.isUNC=function(e){if("win32"!==process.platform)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(t=e.charCodeAt(1),92!==t)return!1;let n=2;const i=n;for(;n<e.length&&(t=e.charCodeAt(n),92!==t);n++);return i!==n&&(t=e.charCodeAt(n+1),!isNaN(t)&&92!==t)},t.getFileSystemPath=function(e,t){let n=e.fsPath;if("win32"===process.platform&&n.length>=2&&":"===n[1]&&(n=n[0].toUpperCase()+n.substr(1)),t)n=l(n);else if("win32"===process.platform||"darwin"===process.platform){const e=l(n);e.toLowerCase()===n.toLowerCase()&&(n=e)}return n},t.normalizePath=function(e){if(void 0!==e)return"win32"===process.platform?e.replace(/\\/g,"/"):e},t.getUri=function(e){return u.string(e)?c.URI.parse(e):e instanceof c.URI?e:c.URI.parse(e.uri)};const a=s(n(9896)),c=n(7608),u=s(n(1681));function l(e){try{return a.realpathSync.native(e)}catch(t){return e}}},7752:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const i=n(372);var o,r,s;!function(e){e.method="textDocument/inlayHint",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlayHint","inlayHintProvider")}(o||(t.InlayHintRequest=o={})),function(e){e.method="inlayHint/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")}(r||(t.InlayHintResolveRequest=r={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.inlayHint.refreshSupport",void 0)}(s||(t.InlayHintRefreshRequest=s={}))},7874:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t._NotebooksImpl=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=void 0,t.combineConsoleFeatures=$,t.combineTelemetryFeatures=W,t.combineTracerFeatures=H,t.combineClientFeatures=U,t.combineWindowFeatures=z,t.combineWorkspaceFeatures=V,t.combineLanguagesFeatures=B,t.combineNotebooksFeatures=K,t.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,$),tracer:n(e.tracer,t.tracer,H),telemetry:n(e.telemetry,t.telemetry,W),client:n(e.client,t.client,U),window:n(e.window,t.window,z),workspace:n(e.workspace,t.workspace,V),languages:n(e.languages,t.languages,B),notebooks:n(e.notebooks,t.notebooks,K)}},t.createConnection=function(e,t,n){const i=n&&n.console?new(n.console(E)):new E,o=e(i);i.rawAttach(o);const r=n&&n.tracer?new(n.tracer(q)):new q,s=n&&n.telemetry?new(n.telemetry(L)):new L,u=n&&n.client?new(n.client(M)):new M,d=n&&n.window?new(n.window(T)):new T,f=n&&n.workspace?new(n.workspace(N)):new N,h=n&&n.languages?new(n.languages(j)):new j,g=n&&n.notebooks?new(n.notebooks(F)):new F,p=[i,r,s,u,d,f,h,g];let m,y,v;const b={listen:()=>o.listen(),sendRequest:(e,...t)=>o.sendRequest(c.string(e)?e:e.method,...t),onRequest:(e,t)=>o.onRequest(e,t),sendNotification:(e,t)=>{const n=c.string(e)?e:e.method;return o.sendNotification(n,t)},onNotification:(e,t)=>o.onNotification(e,t),onProgress:o.onProgress,sendProgress:o.sendProgress,onInitialize:e=>(y=e,{dispose:()=>{y=void 0}}),onInitialized:e=>o.onNotification(a.InitializedNotification.type,e),onShutdown:e=>(m=e,{dispose:()=>{m=void 0}}),onExit:e=>(v=e,{dispose:()=>{v=void 0}}),get console(){return i},get telemetry(){return s},get tracer(){return r},get client(){return u},get window(){return d},get workspace(){return f},get languages(){return h},get notebooks(){return g},onDidChangeConfiguration:e=>o.onNotification(a.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>o.onNotification(a.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>o.onNotification(a.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>o.onNotification(a.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>o.onNotification(a.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>o.onNotification(a.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>o.onRequest(a.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>o.onNotification(a.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>o.sendNotification(a.PublishDiagnosticsNotification.type,e),onHover:e=>o.onRequest(a.HoverRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0))),onCompletion:e=>o.onRequest(a.CompletionRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onCompletionResolve:e=>o.onRequest(a.CompletionResolveRequest.type,e),onSignatureHelp:e=>o.onRequest(a.SignatureHelpRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0))),onDeclaration:e=>o.onRequest(a.DeclarationRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onDefinition:e=>o.onRequest(a.DefinitionRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onTypeDefinition:e=>o.onRequest(a.TypeDefinitionRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onImplementation:e=>o.onRequest(a.ImplementationRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onReferences:e=>o.onRequest(a.ReferencesRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onDocumentHighlight:e=>o.onRequest(a.DocumentHighlightRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onDocumentSymbol:e=>o.onRequest(a.DocumentSymbolRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onWorkspaceSymbol:e=>o.onRequest(a.WorkspaceSymbolRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onWorkspaceSymbolResolve:e=>o.onRequest(a.WorkspaceSymbolResolveRequest.type,e),onCodeAction:e=>o.onRequest(a.CodeActionRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onCodeActionResolve:e=>o.onRequest(a.CodeActionResolveRequest.type,((t,n)=>e(t,n))),onCodeLens:e=>o.onRequest(a.CodeLensRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onCodeLensResolve:e=>o.onRequest(a.CodeLensResolveRequest.type,((t,n)=>e(t,n))),onDocumentFormatting:e=>o.onRequest(a.DocumentFormattingRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0))),onDocumentRangeFormatting:e=>o.onRequest(a.DocumentRangeFormattingRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0))),onDocumentOnTypeFormatting:e=>o.onRequest(a.DocumentOnTypeFormattingRequest.type,((t,n)=>e(t,n))),onRenameRequest:e=>o.onRequest(a.RenameRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0))),onPrepareRename:e=>o.onRequest(a.PrepareRenameRequest.type,((t,n)=>e(t,n))),onDocumentLinks:e=>o.onRequest(a.DocumentLinkRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onDocumentLinkResolve:e=>o.onRequest(a.DocumentLinkResolveRequest.type,((t,n)=>e(t,n))),onDocumentColor:e=>o.onRequest(a.DocumentColorRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onColorPresentation:e=>o.onRequest(a.ColorPresentationRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onFoldingRanges:e=>o.onRequest(a.FoldingRangeRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onSelectionRanges:e=>o.onRequest(a.SelectionRangeRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t)))),onExecuteCommand:e=>o.onRequest(a.ExecuteCommandRequest.type,((t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0))),dispose:()=>o.dispose()};for(const e of p)e.attach(b);return o.onRequest(a.InitializeRequest.type,(e=>{t.initialize(e),c.string(e.trace)&&(r.trace=a.Trace.fromString(e.trace));for(const t of p)t.initialize(e.capabilities);if(y){const t=y(e,(new a.CancellationTokenSource).token,(0,l.attachWorkDone)(o,e),void 0);return(n=t,n instanceof Promise?n:c.thenable(n)?new Promise(((e,t)=>{n.then((t=>e(t)),(e=>t(e)))})):Promise.resolve(n)).then((e=>{if(e instanceof a.ResponseError)return e;let t=e;t||(t={capabilities:{}});let n=t.capabilities;n||(n={},t.capabilities=n),void 0===n.textDocumentSync||null===n.textDocumentSync?n.textDocumentSync=c.number(b.__textDocumentSync)?b.__textDocumentSync:a.TextDocumentSyncKind.None:c.number(n.textDocumentSync)||c.number(n.textDocumentSync.change)||(n.textDocumentSync.change=c.number(b.__textDocumentSync)?b.__textDocumentSync:a.TextDocumentSyncKind.None);for(const e of p)e.fillServerCapabilities(n);return t}))}{const e={capabilities:{textDocumentSync:a.TextDocumentSyncKind.None}};for(const t of p)t.fillServerCapabilities(e.capabilities);return e}var n})),o.onRequest(a.ShutdownRequest.type,(()=>(t.shutdownReceived=!0,m?m((new a.CancellationTokenSource).token):void 0))),o.onNotification(a.ExitNotification.type,(()=>{try{if(v)return v()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}})),o.onNotification(a.SetTraceNotification.type,(e=>{r.trace=a.Trace.fromString(e.value)})),b};const a=n(8766),c=s(n(8867)),u=s(n(6116)),l=n(2938),d=n(8491),f=n(2112),h=n(3918),g=n(2655),p=n(8817),m=n(2697),y=n(8517),v=n(5026),b=n(1815),_=n(6007),R=n(4635),D=n(493),C=n(20),S=n(2936);function w(e){if(null!==e)return e}t.ErrorMessageTracker=class{_messages;constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class E{_rawConnection;_connection;constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(a.MessageType.Error,e)}warn(e){this.send(a.MessageType.Warning,e)}info(e){this.send(a.MessageType.Info,e)}log(e){this.send(a.MessageType.Log,e)}debug(e){this.send(a.MessageType.Debug,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(a.LogMessageNotification.type,{type:e,message:t}).catch((()=>{(0,a.RAL)().console.error("Sending log message failed")}))}}const T=(0,p.ShowDocumentFeature)((0,l.ProgressFeature)(class{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){const n={type:a.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(a.ShowMessageRequest.type,n).then(w)}showWarningMessage(e,...t){const n={type:a.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(a.ShowMessageRequest.type,n).then(w)}showInformationMessage(e,...t){const n={type:a.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(a.ShowMessageRequest.type,n).then(w)}}));var P,k;!function(e){e.create=function(){return new x}}(P||(t.BulkRegistration=P={}));class x{_registrations=[];_registered=new Set;add(e,t){const n=c.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);const i=u.generateUuid();this._registrations.push({id:i,method:n,registerOptions:t||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}}!function(e){e.create=function(){return new O(void 0,[])}}(k||(t.BulkUnregistration=k={}));class O{_connection;_unregistrations=new Map;constructor(e,t){this._connection=e,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){const e=[];for(const t of this._unregistrations.values())e.push(t);const t={unregisterations:e};this._connection.sendRequest(a.UnregistrationRequest.type,t).catch((()=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const t=c.string(e)?e:e.method,n=this._unregistrations.get(t);if(!n)return!1;const i={unregisterations:[n]};return this._connection.sendRequest(a.UnregistrationRequest.type,i).then((()=>{this._unregistrations.delete(t)}),(e=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)})),!0}}class M{_connection;attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof x?this.registerMany(e):e instanceof O?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,t,n){const i=c.string(t)?t:t.method,o=u.generateUuid(),r={registrations:[{id:o,method:i,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(a.RegistrationRequest.type,r).then((t=>(e.add({id:o,method:i}),e)),(e=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(e))))}registerSingle2(e,t){const n=c.string(e)?e:e.method,i=u.generateUuid(),o={registrations:[{id:i,method:n,registerOptions:t||{}}]};return this.connection.sendRequest(a.RegistrationRequest.type,o).then((e=>a.Disposable.create((()=>{this.unregisterSingle(i,n).catch((()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)}))}))),(e=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(e))))}unregisterSingle(e,t){const n={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(a.UnregistrationRequest.type,n).catch((()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){const t=e.asRegistrationParams();return this.connection.sendRequest(a.RegistrationRequest.type,t).then((()=>new O(this._connection,t.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const N=(0,m.FileOperationsFeature)((0,f.WorkspaceFoldersFeature)((0,d.ConfigurationFeature)(class{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){const t=(n=e)&&n.edit?e:{edit:e};var n;return this.connection.sendRequest(a.ApplyWorkspaceEditRequest.type,t)}})));class q{_trace;_connection;constructor(){this._trace=a.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==a.Trace.Off&&this.connection.sendNotification(a.LogTraceNotification.type,{message:e,verbose:this._trace===a.Trace.Verbose?t:void 0}).catch((()=>{}))}}class L{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(a.TelemetryEventNotification.type,e).catch((()=>{this.connection.console.log("Sending TelemetryEventNotification failed")}))}}class I{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,l.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,l.attachPartialResult)(this.connection,t)}}t._LanguagesImpl=I;const j=(0,_.FoldingRangeFeature)((0,S.MonikerFeature)((0,D.DiagnosticFeature)((0,R.InlayHintFeature)((0,b.InlineValueFeature)((0,v.TypeHierarchyFeature)((0,y.LinkedEditingRangeFeature)((0,g.SemanticTokensFeature)((0,h.CallHierarchyFeature)(I)))))))));class A{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,l.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,l.attachPartialResult)(this.connection,t)}}t._NotebooksImpl=A;const F=(0,C.NotebookSyncFeature)(A);function $(e,t){return function(n){return t(e(n))}}function W(e,t){return function(n){return t(e(n))}}function H(e,t){return function(n){return t(e(n))}}function U(e,t){return function(n){return t(e(n))}}function z(e,t){return function(n){return t(e(n))}}function V(e,t){return function(n){return t(e(n))}}function B(e,t){return function(n){return t(e(n))}}function K(e,t){return function(n){return t(e(n))}}},7975:e=>{e.exports=require("node:util")},8461:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.typeDefinition","typeDefinitionProvider")}(o||(t.TypeDefinitionRequest=o={}))},8491:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const a=n(8766),c=s(n(8867));t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?c.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){const t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(a.ConfigurationRequest.type,t).then((t=>Array.isArray(t)?Array.isArray(e)?t:t[0]:Array.isArray(e)?[]:null))}}},8517:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const i=n(8766);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){return this.connection.onRequest(i.LinkedEditingRangeRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))}}},8585:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))}},8587:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},8598:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},8765:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const i=n(372);var o,r,s;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(o||(t.CallHierarchyPrepareRequest=o={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.CallHierarchyIncomingCallsRequest=r={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.CallHierarchyOutgoingCallsRequest=s={}))},8766:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,o(n(3281),t),o(n(6203),t),o(n(372),t),o(n(1560),t);var r,s=n(1580);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(r||(t.LSPErrorCodes=r={}))},8817:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const i=n(8766);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(i.ShowDocumentRequest.type,e)}}},8867:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function i(e){return"function"==typeof e}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=i,t.array=o,t.stringArray=function(e){return o(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&i(e.then)}},9023:e=>{e.exports=require("util")},9047:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const i=n(372);var o,r,s;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(o||(t.UniquenessLevel=o={})),function(e){e.$import="import",e.$export="export",e.local="local"}(r||(t.MonikerKind=r={})),function(e){e.method="textDocument/moniker",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.moniker","monikerProvider")}(s||(t.MonikerRequest=s={}))},9085:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const c=a(n(9590)),u=s(n(8585)),l=n(2676),d=n(4323);var f,h;!function(e){e.is=function(e){const t=e;return t&&u.func(t.listen)&&u.func(t.dispose)&&u.func(t.onError)&&u.func(t.onClose)&&u.func(t.onPartialMessage)}}(f||(t.MessageReader=f={}));class g{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${u.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=g,function(e){e.fromOptions=function(e){let t,n;const i=new Map;let o;const r=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,i.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(o=e.contentTypeDecoder,r.set(o.name,o)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)r.set(t.name,t)}return void 0===o&&(o=(0,c.default)().applicationJson.decoder,r.set(o.name,o)),{charset:t,contentDecoder:n,contentDecoders:i,contentTypeDecoder:o,contentTypeDecoders:r}}}(h||(h={})),t.ReadableStreamMessageReader=class extends g{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,t){super(),this.readable=e,this.options=h.fromOptions(t),this.buffer=(0,c.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new d.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock((async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)})).catch((e=>{this.fireError(e)}))}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,c.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},9202:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocumentContentFeature=void 0;const i=n(8766);t.TextDocumentContentFeature=e=>class extends e{get textDocumentContent(){return{refresh:e=>this.connection.sendRequest(i.TextDocumentContentRefreshRequest.type,{uri:e}),on:e=>this.connection.onRequest(i.TextDocumentContentRequest.type,((t,n)=>e(t,n)))}}}},9244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{_encoding;_chunks;_totalLength;constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,i=0,o=0;e:for(;n<this._chunks.length;){const e=this._chunks[n];for(i=0;i<e.length;){switch(e[i]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,i++;break e;default:t=0}break;default:t=0}i++}o+=e.byteLength,n++}if(4!==t)return;const r=this._read(o+i),s=new Map,a=this.toString(r,"ascii").split("\r\n");if(a.length<2)return s;for(let t=0;t<a.length-2;t++){const n=a[t],i=n.indexOf(":");if(-1===i)throw new Error(`Message header must separate key and value using ':'\n${n}`);const o=n.substr(0,i),r=n.substr(i+1).trim();s.set(e?o.toLowerCase():o,r)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const i=this._chunks[0];if(i.byteLength>e){const o=i.slice(0,e);t.set(o,n),n+=e,this._chunks[0]=i.slice(e),this._totalLength-=e,e-=e}else t.set(i,n),n+=i.byteLength,this._chunks.shift(),this._totalLength-=i.byteLength,e-=i.byteLength}return t}}},9278:e=>{e.exports=require("net")},9394:(e,t)=>{var n,i,o,r,s,a,c,u,l,d;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectoryItem=t.ModeItem=t.ModeEnum=t.RuleSeverity=t.ESLintSeverity=t.CodeActionsOnSaveOptions=t.CodeActionsOnSaveRules=t.CodeActionsOnSaveMode=t.Validate=void 0,function(e){const t=Object.prototype.toString;e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)}}(n||(n={})),function(e){e.on="on",e.off="off",e.probe="probe"}(i||(t.Validate=i={})),function(e){e.all="all",e.problems="problems"}(o||(t.CodeActionsOnSaveMode=o={})),function(e){e.from=function(t){return null!=t&&n.string(t)&&t.toLowerCase()===e.problems?e.problems:e.all}}(o||(t.CodeActionsOnSaveMode=o={})),function(e){e.from=function(e){if(null!=e&&Array.isArray(e))return e.filter((e=>n.string(e)))}}(r||(t.CodeActionsOnSaveRules=r={})),function(e){e.from=function(e){if(null!=e&&"object"==typeof e)return e}}(s||(t.CodeActionsOnSaveOptions=s={})),function(e){e.off="off",e.warn="warn",e.error="error"}(a||(t.ESLintSeverity=a={})),function(e){e.from=function(t){if(null==t)return e.off;switch(t.toLowerCase()){case e.off:return e.off;case e.warn:return e.warn;case e.error:return e.error;default:return e.off}}}(a||(t.ESLintSeverity=a={})),function(e){e.info="info",e.warn="warn",e.error="error",e.off="off",e.default="default",e.downgrade="downgrade",e.upgrade="upgrade"}(c||(t.RuleSeverity=c={})),function(e){e.auto="auto",e.location="location"}(u||(t.ModeEnum=u={})),function(e){e.is=function(t){return t===e.auto||t===e.location}}(u||(t.ModeEnum=u={})),function(e){e.is=function(e){const t=e;return t&&u.is(t.mode)}}(l||(t.ModeItem=l={})),function(e){e.is=function(e){const t=e;return t&&n.string(t.directory)&&(n.boolean(t["!cwd"])||void 0===t["!cwd"])}}(d||(t.DirectoryItem=d={}))},9398:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LcsDiff=t.Debug=void 0,t.stringDiff=function(e,t,i){return new a(new n(e),new n(t)).ComputeDiff(i).changes};class n{source;constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}class i{originalStart;originalLength;modifiedStart;modifiedLength;constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}class o{static Assert(e,t){if(!e)throw new Error(t)}}t.Debug=o;class r{static Copy(e,t,n,i,o){for(let r=0;r<o;r++)n[i+r]=e[t+r]}static Copy2(e,t,n,i,o){for(let r=0;r<o;r++)n[i+r]=e[t+r]}}class s{m_changes;m_originalStart;m_modifiedStart;m_originalCount;m_modifiedCount;constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class a{ContinueProcessingPredicate;_hasStrings;_originalStringElements;_originalElementsOrHash;_modifiedStringElements;_modifiedElementsOrHash;m_forwardHistory;m_reverseHistory;constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[i,o,r]=a._getElements(e),[s,c,u]=a._getElements(t);this._hasStrings=r&&u,this._originalStringElements=i,this._originalElementsOrHash=o,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _getElements(e){const t=e.getElements();return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,o){const r=[!1];let s=this.ComputeDiffRecursive(e,t,n,i,r);return o&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(o.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(o.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(o.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const a=[0],c=[0],u=this.ComputeRecursionPoint(e,t,n,r,a,c,s),l=a[0],d=c[0];if(null!==u)return u;if(!s[0]){const o=this.ComputeDiffRecursive(e,l,n,d,s);let a=[];return a=s[0]?[new i(l+1,t-(l+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(l+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,o,r,a,c,u,l,d,f,h,g,p,m,y,v,b){let _=null,R=null,D=new s,C=t,S=n,w=g[0]-y[0]-o,E=-1073741824,T=this.m_forwardHistory.length-1;do{const t=w+e;t===C||t<S&&l[t-1]<l[t+1]?(p=(f=l[t+1])-w-o,f<E&&D.MarkNextChange(),E=f,D.AddModifiedElement(f+1,p),w=t+1-e):(p=(f=l[t-1]+1)-w-o,f<E&&D.MarkNextChange(),E=f-1,D.AddOriginalElement(f,p+1),w=t-1-e),T>=0&&(e=(l=this.m_forwardHistory[T])[0],C=1,S=l.length-1)}while(--T>=-1);if(_=D.getReverseChanges(),b[0]){let e=g[0]+1,t=y[0]+1;if(null!==_&&_.length>0){const n=_[_.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}R=[new i(e,h-e+1,t,m-t+1)]}else{D=new s,C=a,S=c,w=g[0]-y[0]-u,E=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+r;e===C||e<S&&d[e-1]>=d[e+1]?(p=(f=d[e+1]-1)-w-u,f>E&&D.MarkNextChange(),E=f+1,D.AddOriginalElement(f+1,p+1),w=e+1-r):(p=(f=d[e-1])-w-u,f>E&&D.MarkNextChange(),E=f,D.AddModifiedElement(f+1,p+1),w=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],C=1,S=d.length-1)}while(--T>=-1);R=D.getChanges()}return this.ConcatenateChanges(_,R)}ComputeRecursionPoint(e,t,n,o,s,a,c){let u=0,l=0,d=0,f=0,h=0,g=0;e--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=t-e+(o-n),m=p+1,y=new Int32Array(m),v=new Int32Array(m),b=o-n,_=t-e,R=e-n,D=t-o,C=(_-b)%2==0;y[b]=e,v[_]=t,c[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,w=0;d=this.ClipDiagonalBound(b-S,S,b,m),f=this.ClipDiagonalBound(b+S,S,b,m);for(let e=d;e<=f;e+=2){u=e===d||e<f&&y[e-1]<y[e+1]?y[e+1]:y[e-1]+1,l=u-(e-b)-R;const n=u;for(;u<t&&l<o&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(y[e]=u,u+l>p+w&&(p=u,w=l),!C&&Math.abs(e-_)<=S-1&&u>=v[e])return s[0]=u,a[0]=l,n<=v[e]&&S<=1448?this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c):null}const E=(p-e+(w-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,E))return c[0]=!0,s[0]=p,a[0]=w,E>0&&S<=1448?this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c):(e++,n++,[new i(e,t-e+1,n,o-n+1)]);h=this.ClipDiagonalBound(_-S,S,_,m),g=this.ClipDiagonalBound(_+S,S,_,m);for(let i=h;i<=g;i+=2){u=i===h||i<g&&v[i-1]>=v[i+1]?v[i+1]-1:v[i-1],l=u-(i-_)-D;const r=u;for(;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(v[i]=u,C&&Math.abs(i-b)<=S&&u<=y[i])return s[0]=u,a[0]=l,r>=y[i]&&S<=1448?this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c):null}if(S<=1447){let e=new Int32Array(f-d+2);e[0]=b-d+1,r.Copy2(y,d,e,1,f-d+1),this.m_forwardHistory.push(e),e=new Int32Array(g-h+2),e[0]=_-h+1,r.Copy2(v,h,e,1,g-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,o=0;if(t>0){const n=e[t-1];n.originalLength>0&&(i=n.originalStart+n.originalLength),n.modifiedLength>0&&(o=n.modifiedStart+n.modifiedLength)}const r=n.originalLength>0,s=n.modifiedLength>0;let a=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<i||u<o)break;if(r&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const l=this._boundaryScore(t,n.originalLength,u,n.modifiedLength);l>c&&(c=l,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return r.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],r.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return r.Copy(e,0,n,0,e.length),r.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(o.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),o.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,s,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const o=t%2==0;return e<0?o===(n%2==0)?0:1:o===((i-n-1)%2==0)?i-1:i-2}}t.LcsDiff=a},9571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const i=n(9023),o=n(3281);class r extends o.AbstractMessageBuffer{static emptyBuffer=Buffer.allocUnsafe(0);constructor(e="utf-8"){super(e)}emptyBuffer(){return r.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new i.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}class s{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),o.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),o.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),o.Disposable.create((()=>this.stream.off("data",e)))}}class a{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),o.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),o.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,i)=>{const o=e=>{null==e?n():i(e)};"string"==typeof e?this.stream.write(e,t,o):this.stream.write(e,o)}))}end(){this.stream.end()}}const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new r(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new i.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new s(e),asWritableStream:e=>new a(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){const i=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const i=setInterval(e,t,...n);return{dispose:()=>clearInterval(i)}}})});function u(){return c}!function(e){e.install=function(){o.RAL.install(c)}}(u||(u={})),t.default=u},9574:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/implementation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.implementation","implementationProvider")}(o||(t.ImplementationRequest=o={}))},9590:(e,t)=>{let n;function i(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(i||(i={})),t.default=i},9718:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:r}=n(6874),s=n(7272),a=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.safeSrc=[],d=t.t={};let f=0;const h="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",r],[h,o]],p=(e,t,n)=>{const i=(e=>{for(const[t,n]of g)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=f++;s(e,o,t),d[e]=o,u[o]=t,l[o]=i,a[o]=new RegExp(t,n?"g":void 0),c[o]=new RegExp(i,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),p("FULL",`^${u[d.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),p("LOOSE",`^${u[d.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),p("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),p("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",u[d.COERCE],!0),p("COERCERTLFULL",u[d.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9840:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const i=n(372);var o,r,s,a,c,u,l;!function(e){e.file="file",e.folder="folder"}(o||(t.FileOperationPatternKind=o={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")}(r||(t.WillCreateFilesRequest=r={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")}(s||(t.DidCreateFilesNotification=s={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")}(a||(t.WillRenameFilesRequest=a={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")}(c||(t.DidRenameFilesNotification=c={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")}(u||(t.DidDeleteFilesNotification=u={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")}(l||(t.WillDeleteFilesRequest=l={}))},9850:function(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const c=a(n(9590)),u=s(n(8585)),l=n(2676);var d;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||u.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(d||(t.CancellationToken=d={}));const f=Object.freeze((function(e,t){const n=(0,c.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class h{_isCancelled=!1;_emitter;cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?f:(this._emitter||(this._emitter=new l.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{_token;get token(){return this._token||(this._token=new h),this._token}cancel(){this._token?this._token.cancel():this._token=d.Cancelled}dispose(){this._token?this._token instanceof h&&this._token.dispose():this._token=d.None}}},9896:e=>{e.exports=require("fs")},9935:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const i=n(372);var o,r;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")}(o||(t.WorkspaceFoldersRequest=o={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")}(r||(t.DidChangeWorkspaceFoldersNotification=r={}))}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=n(639),o=exports;for(var r in i)o[r]=i[r];i.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
2
+ (()=>{"use strict";var e={9398(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LcsDiff=t.Debug=void 0,t.stringDiff=function(e,t,i){return new a(new n(e),new n(t)).ComputeDiff(i).changes};class n{source;constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}class i{originalStart;originalLength;modifiedStart;modifiedLength;constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}class o{static Assert(e,t){if(!e)throw new Error(t)}}t.Debug=o;class r{static Copy(e,t,n,i,o){for(let r=0;r<o;r++)n[i+r]=e[t+r]}static Copy2(e,t,n,i,o){for(let r=0;r<o;r++)n[i+r]=e[t+r]}}class s{m_changes;m_originalStart;m_modifiedStart;m_originalCount;m_modifiedCount;constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class a{ContinueProcessingPredicate;_hasStrings;_originalStringElements;_originalElementsOrHash;_modifiedStringElements;_modifiedElementsOrHash;m_forwardHistory;m_reverseHistory;constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[i,o,r]=a._getElements(e),[s,c,u]=a._getElements(t);this._hasStrings=r&&u,this._originalStringElements=i,this._originalElementsOrHash=o,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _getElements(e){const t=e.getElements();return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,o){const r=[!1];let s=this.ComputeDiffRecursive(e,t,n,i,r);return o&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}}ComputeDiffRecursive(e,t,n,r,s){for(s[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let s;return n<=r?(o.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new i(e,0,n,r-n+1)]):e<=t?(o.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[new i(e,t-e+1,n,0)]):(o.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const a=[0],c=[0],u=this.ComputeRecursionPoint(e,t,n,r,a,c,s),l=a[0],d=c[0];if(null!==u)return u;if(!s[0]){const o=this.ComputeDiffRecursive(e,l,n,d,s);let a=[];return a=s[0]?[new i(l+1,t-(l+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(l+1,t,d+1,r,s),this.ConcatenateChanges(o,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,o,r,a,c,u,l,d,f,h,g,p,m,y,v,b){let _=null,R=null,D=new s,C=t,S=n,w=g[0]-y[0]-o,E=-1073741824,T=this.m_forwardHistory.length-1;do{const t=w+e;t===C||t<S&&l[t-1]<l[t+1]?(p=(f=l[t+1])-w-o,f<E&&D.MarkNextChange(),E=f,D.AddModifiedElement(f+1,p),w=t+1-e):(p=(f=l[t-1]+1)-w-o,f<E&&D.MarkNextChange(),E=f-1,D.AddOriginalElement(f,p+1),w=t-1-e),T>=0&&(e=(l=this.m_forwardHistory[T])[0],C=1,S=l.length-1)}while(--T>=-1);if(_=D.getReverseChanges(),b[0]){let e=g[0]+1,t=y[0]+1;if(null!==_&&_.length>0){const n=_[_.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}R=[new i(e,h-e+1,t,m-t+1)]}else{D=new s,C=a,S=c,w=g[0]-y[0]-u,E=1073741824,T=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=w+r;e===C||e<S&&d[e-1]>=d[e+1]?(p=(f=d[e+1]-1)-w-u,f>E&&D.MarkNextChange(),E=f+1,D.AddOriginalElement(f+1,p+1),w=e+1-r):(p=(f=d[e-1])-w-u,f>E&&D.MarkNextChange(),E=f,D.AddModifiedElement(f+1,p+1),w=e-1-r),T>=0&&(r=(d=this.m_reverseHistory[T])[0],C=1,S=d.length-1)}while(--T>=-1);R=D.getChanges()}return this.ConcatenateChanges(_,R)}ComputeRecursionPoint(e,t,n,o,s,a,c){let u=0,l=0,d=0,f=0,h=0,g=0;e--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=t-e+(o-n),m=p+1,y=new Int32Array(m),v=new Int32Array(m),b=o-n,_=t-e,R=e-n,D=t-o,C=(_-b)%2==0;y[b]=e,v[_]=t,c[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,w=0;d=this.ClipDiagonalBound(b-S,S,b,m),f=this.ClipDiagonalBound(b+S,S,b,m);for(let e=d;e<=f;e+=2){u=e===d||e<f&&y[e-1]<y[e+1]?y[e+1]:y[e-1]+1,l=u-(e-b)-R;const n=u;for(;u<t&&l<o&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(y[e]=u,u+l>p+w&&(p=u,w=l),!C&&Math.abs(e-_)<=S-1&&u>=v[e])return s[0]=u,a[0]=l,n<=v[e]&&S<=1448?this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c):null}const E=(p-e+(w-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,E))return c[0]=!0,s[0]=p,a[0]=w,E>0&&S<=1448?this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c):(e++,n++,[new i(e,t-e+1,n,o-n+1)]);h=this.ClipDiagonalBound(_-S,S,_,m),g=this.ClipDiagonalBound(_+S,S,_,m);for(let i=h;i<=g;i+=2){u=i===h||i<g&&v[i-1]>=v[i+1]?v[i+1]-1:v[i-1],l=u-(i-_)-D;const r=u;for(;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(v[i]=u,C&&Math.abs(i-b)<=S&&u<=y[i])return s[0]=u,a[0]=l,r>=y[i]&&S<=1448?this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c):null}if(S<=1447){let e=new Int32Array(f-d+2);e[0]=b-d+1,r.Copy2(y,d,e,1,f-d+1),this.m_forwardHistory.push(e),e=new Int32Array(g-h+2),e[0]=_-h+1,r.Copy2(v,h,e,1,g-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,f,R,_,h,g,D,y,v,u,t,s,l,o,a,C,c)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,o=0;if(t>0){const n=e[t-1];n.originalLength>0&&(i=n.originalStart+n.originalLength),n.modifiedLength>0&&(o=n.modifiedStart+n.modifiedLength)}const r=n.originalLength>0,s=n.modifiedLength>0;let a=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<i||u<o)break;if(r&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const l=this._boundaryScore(t,n.originalLength,u,n.modifiedLength);l>c&&(c=l,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return r.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],r.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return r.Copy(e,0,n,0,e.length),r.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(o.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),o.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,s,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const o=t%2==0;return e<0?o===(n%2==0)?0:1:o===((i-n-1)%2==0)?i-1:i-2}}t.LcsDiff=a},6216(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ESLint=t.CodeActions=t.RuleSeverities=t.SaveRuleConfigs=t.Fixes=t.ESLintModule=t.SuggestionsProblem=t.FixableProblem=t.Problem=t.RuleMetaData=t.ESLintError=t.TextDocumentSettings=void 0;const c=s(n(9896)),u=s(n(6928)),l=s(n(6982)),d=n(5317),f=n(144),h=n(4089),g=n(1327),p=n(7608),m=n(4476),y=n(9394),v=s(n(1681)),b=n(5724),_=n(7733),R=a(n(5509));var D,C,S,w,E,T,P,k,x,O,M,N,q,L,I;!function(e){e.hasLibrary=function(e){return void 0!==e.library}}(D||(t.TextDocumentSettings=D={})),function(e){e.isNoConfigFound=function(e){const t=e;return"no-config-found"===t.messageTemplate||"No ESLint configuration found."===t.message}}(C||(t.ESLintError=C={})),function(e){e.unusedDisableDirectiveId="unused-disable-directive";const t={docs:{url:"https://eslint.org/docs/latest/use/configure/rules#report-unused-eslint-disable-comments"},type:"directive"},n=new Set,i=new Map([[e.unusedDisableDirectiveId,t]]);e.capture=function(e,t){let o;if(e.isCLIEngine){const i=t.filter(e=>!n.has(e.filePath));if(0===i.length)return;o="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(i):void 0,i.forEach(e=>n.add(e.filePath))}else o="function"==typeof e.getRulesMetaForResults?e.getRulesMetaForResults(t):void 0;void 0!==o&&Object.entries(o).forEach(([e,t])=>{i.has(e)||t&&t.docs&&v.string(t.docs.url)&&i.set(e,t)})},e.clear=function(){n.clear(),i.clear(),i.set(e.unusedDisableDirectiveId,t)},e.getUrl=function(e){return i.get(e)?.docs?.url},e.getType=function(e){return i.get(e)?.type},e.hasRuleId=function(e){return i.has(e)},e.isUnusedDisableDirectiveProblem=function(e){return null===e.ruleId&&e.message.startsWith("Unused eslint-disable directive")}}(S||(t.RuleMetaData=S={})),function(e){e.isFixable=function(e){return void 0!==e.edit},e.hasSuggestions=function(e){return void 0!==e.suggestions}}(w||(t.Problem=w={})),function(e){e.createTextEdit=function(e,t){return g.TextEdit.replace(g.Range.create(e.positionAt(t.edit.range[0]),e.positionAt(t.edit.range[1])),t.edit.text||"")}}(E||(t.FixableProblem=E={})),function(e){e.createTextEdit=function(e,t){return g.TextEdit.replace(g.Range.create(e.positionAt(t.fix.range[0]),e.positionAt(t.fix.range[1])),t.fix.text||"")}}(T||(t.SuggestionsProblem=T={})),function(e){e.getConfigType=function(e){return!0===e.isCLIEngine?"eslintrc":e.constructor.configType??"eslintrc"}}(P||(P={})),function(e){e.hasLoadESLint=function(e){return void 0!==e.loadESLint},e.hasESLintClass=function(e){return void 0!==e.ESLint},e.hasCLIEngine=function(e){return void 0!==e.CLIEngine},e.isFlatConfig=function(e){const t=e;return void 0!==t.ESLint&&!0===t.isFlatConfig}}(k||(t.ESLintModule=k={})),function(e){e.hasMetaType=function(e){return void 0!==e&&void 0!==e.type}}(x||(x={})),function(e){e.hasRule=function(e){return void 0!==e.getRules}}(O||(O={}));class j{cli;constructor(e){this.cli=e}get isCLIEngine(){return!0}async lintText(e,t){return this.cli.executeOnText(e,t.filePath,t.warnIgnored).results}async isPathIgnored(e){return this.cli.isPathIgnored(e)}getRulesMetaForResults(e){if(!O.hasRule(this.cli))return;const t={};for(const[e,n]of this.cli.getRules())void 0!==n.meta&&(t[e]=n.meta);return t}async calculateConfigForFile(e){return"function"==typeof this.cli.getConfigForFile?this.cli.getConfigForFile(e):void 0}}class A{edits;constructor(e){this.edits=e}static overlaps(e,t){return void 0!==e&&e.edit.range[1]>t.edit.range[0]}static sameRange(e,t){return e.edit.range[0]===t.edit.range[0]&&e.edit.range[1]===t.edit.range[1]}isEmpty(){return 0===this.edits.size}getDocumentVersion(){if(this.isEmpty())throw new Error("No edits recorded.");return this.edits.values().next().value.documentVersion}getScoped(e){const t=[];for(const n of e){const e=q.computeKey(n),i=this.edits.get(e);i&&t.push(i)}return t}getAllSorted(){const e=[];for(const t of this.edits.values())w.isFixable(t)&&e.push(t);return e.sort((e,t)=>{const n=e.edit.range[0]-t.edit.range[0];if(0!==n)return n;const i=e.edit.range[1]-e.edit.range[0],o=t.edit.range[1]-t.edit.range[0];return i===o?0:0===i?-1:0===o?1:i-o})}getApplicable(){const e=this.getAllSorted();if(e.length<=1)return e;const t=[];let n=e[0];t.push(n);for(let i=1;i<e.length;i++){const o=e[i];A.overlaps(n,o)||A.sameRange(n,o)||(t.push(o),n=o)}return t}}t.Fixes=A,function(e){const t=new b.LRUCache(128);function n(e,t){for(const n of t){if(n.startsWith("!")&&new RegExp(`^${n.slice(1).replace(/\*/g,".*")}$`,"g").test(e))return!0;if(new RegExp(`^${n.replace(/\*/g,".*")}$`,"g").test(e))return!1}return!0}e.get=async function(i,o){const r=e.inferFilePath(i,o.useRealpaths);let s=t.get(i);if(void 0===r||null===s)return;if(void 0!==s)return s;const a=o.codeActionOnSave.rules,c=o.codeActionOnSave.options;return s=await I.withClass(async e=>{if(void 0===a&&void 0===c||e.isCLIEngine)return;const t=await e.calculateConfigForFile(r);if(void 0===t||void 0===t.rules||0===t.rules.length)return;const i=new Set,o=new Set;if(void 0!==a)if(0===a.length)Object.keys(t.rules).forEach(e=>i.add(e));else for(const e of Object.keys(t.rules))n(e,a)?i.add(e):o.add(e);return i.size>0||c?{offRules:i,onRules:o,options:c}:void 0},o),null==s?void t.set(i,null):(t.set(i,s),s)},e.remove=function(e){return t.delete(e)},e.clear=function(){t.clear()}}(M||(t.SaveRuleConfigs=M={})),function(e){const t=new b.LRUCache(1024);function n(e,t){return e.startsWith("!")?!new RegExp(`^${e.slice(1).replace(/\*/g,".*")}$`,"g").test(t):new RegExp(`^${e.replace(/\*/g,".*")}$`,"g").test(t)}e.getOverride=function(e,i,o){let r=t.get(e);if(null!==r){if(void 0!==r)return r;for(const t of i)!n(t.rule,e)||void 0!==t.fixable&&t.fixable!==o||(r=t.severity);if(void 0!==r)return t.set(e,r),r;t.set(e,null)}},e.clear=function(){t.clear()}}(N||(t.RuleSeverities=N={})),function(e){function t(e,t){switch(t){case y.RuleSeverity.off:case y.RuleSeverity.info:case y.RuleSeverity.warn:case y.RuleSeverity.error:return t;case y.RuleSeverity.downgrade:switch(n(e)){case g.DiagnosticSeverity.Error:return y.RuleSeverity.warn;case g.DiagnosticSeverity.Warning:case g.DiagnosticSeverity.Information:return y.RuleSeverity.info}case y.RuleSeverity.upgrade:switch(n(e)){case g.DiagnosticSeverity.Information:return y.RuleSeverity.warn;case g.DiagnosticSeverity.Warning:case g.DiagnosticSeverity.Error:return y.RuleSeverity.error}default:return e}}function n(e){switch(e){case 1:case y.RuleSeverity.warn:return g.DiagnosticSeverity.Warning;case 2:case y.RuleSeverity.error:return g.DiagnosticSeverity.Error;case y.RuleSeverity.info:return g.DiagnosticSeverity.Information;default:return g.DiagnosticSeverity.Error}}e.computeKey=function(e){const t=e.range;let n;if(e.message){const t=l.createHash("sha256");t.update(e.message),n=t.digest("base64")}return`[${t.start.line},${t.start.character},${t.end.line},${t.end.character}]-${e.code}-${n??""}`},e.create=function(e,i,o){const r=i.message,s="number"!=typeof i.line||Number.isNaN(i.line)?0:Math.max(0,i.line-1),a="number"!=typeof i.column||Number.isNaN(i.column)?0:Math.max(0,i.column-1);let c="number"!=typeof i.endLine||Number.isNaN(i.endLine)?s:Math.max(0,i.endLine-1),u="number"!=typeof i.endColumn||Number.isNaN(i.endColumn)?a:Math.max(0,i.endColumn-1);e.problems.shortenToSingleLine&&c!==s&&(c=s,u=o.getText({start:{line:s,character:0},end:{line:s,character:g.uinteger.MAX_VALUE}}).length);const l=N.getOverride(i.ruleId,e.rulesCustomizations,void 0!==i.fix),d={message:r,severity:(f=i.severity,h=l,n(t(f,h))),source:"eslint",range:{start:{line:s,character:a},end:{line:c,character:u}}};var f,h;if(i.ruleId){const e=S.getUrl(i.ruleId);d.code=i.ruleId,void 0!==e&&(d.codeDescription={href:e}),"no-unused-vars"===i.ruleId&&(d.tags=[g.DiagnosticTag.Unnecessary])}return[d,l]}}(q||(q={})),function(e){const t=new Map;e.get=function(e){return t.get(e)},e.set=function(e,n){t.set(e,n)},e.remove=function(e){return t.delete(e)},e.record=function(t,n,i){if(!i.ruleId)return;const o=t.uri;let r=e.get(o);void 0===r&&(r=new Map,e.set(o,r)),r.set(q.computeKey(n),{label:`Fix this ${i.ruleId} problem`,documentVersion:t.version,ruleId:i.ruleId,line:i.line,diagnostic:n,edit:i.fix,suggestions:i.suggestions})}}(L||(t.CodeActions=L={})),function(e){let t,n,i,o;const r=function(){const e=new Map,t=/\/@typescript-eslint\/parser\//,n=/\/babel-eslint\/lib\/index.js$/,i=/\/vue-eslint-parser\/index.js$/;return e.set("typescript",[t,n,i]),e.set("typescriptreact",[t,n,i]),e.set("html",[/\/@angular-eslint\/template-parser\//]),e}(),s=function(){const e=new Map;return e.set("typescript",{regExps:[/vue-eslint-parser\/.*\.js$/],parsers:new Set(["@typescript-eslint/parser"]),parserRegExps:[/@typescript-eslint\/parser\/.*\.js$/]}),e}(),a=new Map([["astro","astro"],["civet","civet"],["html","html"],["json","jsonc"],["json5","jsonc"],["jsonc","jsonc"],["mdx","mdx"],["vue","vue"],["markdown","markdown"],["css","css"],["glimmer-js","ember"],["glimmer-ts","ember"],["svelte","svelte"]]),l=new Set(["javascript","javascriptreact"]),b=[{fileName:"eslint.config.js",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.cjs",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.mjs",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.ts",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.cts",isRoot:!0,isFlatConfig:!0},{fileName:"eslint.config.mts",isRoot:!0,isFlatConfig:!0},{fileName:"package.json",isRoot:!0,isFlatConfig:!1},{fileName:".eslintignore",isRoot:!0,isFlatConfig:!1},{fileName:".eslintrc",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.json",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.js",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.yaml",isRoot:!1,isFlatConfig:!1},{fileName:".eslintrc.yml",isRoot:!1,isFlatConfig:!1}],w=new Map,E=new Map,T=new Map;async function x(e,t,n){return k.hasLoadESLint(e)?new(await e.loadESLint({useFlatConfig:n.useFlatConfig}))(t):k.hasESLintClass(e)&&n.useESLintClass?new e.ESLint(t):k.hasCLIEngine(e)?new j(new e.CLIEngine(t)):new e.ESLint(t)}async function O(e,t,n){const i=void 0===n?Object.assign(Object.create(null),t.options):Object.assign(Object.create(null),t.options,n),o=process.cwd();try{if(t.workingDirectory){const e=function(e){const t=(0,_.normalizeDriveLetter)(e);return 0===t.length?t:t[t.length-1]===u.sep?t.substring(0,t.length-1):t}(t.workingDirectory.directory);i.cwd=e,!0!==t.workingDirectory["!cwd"]&&c.existsSync(e)&&process.chdir(e)}const n=await x(t.library,i,t);return await e(n)}finally{o!==process.cwd()&&process.chdir(o)}}function M(e,t){if(void 0===e)return;const n=p.URI.parse(e.uri);if("file"===n.scheme)return i(n,t.useRealpaths);if(void 0!==t.workspaceFolder){const n=R.default.getExtension(e.languageId),o=i(t.workspaceFolder.uri,t.useRealpaths);if(void 0!==o&&void 0!==n)return u.join(o,`test.${n}`)}}e.initialize=function(e,r,s,a){t=e,n=r,i=s,o=a},e.removeSettings=function(e){return E.delete(e)},e.clearSettings=function(){E.clear()},e.unregisterAsFormatter=function(e){const t=T.get(e.uri);void 0!==t&&(t.then(e=>e.dispose()),T.delete(e.uri))},e.clearFormatters=function(){for(const e of T.values())e.then(e=>e.dispose());T.clear()},e.resolveSettings=function(n){const d=n.uri;let v=E.get(d);return v||(v=t.workspace.getConfiguration({scopeUri:d,section:""}).then(v=>{const b=Object.assign({},v,{silent:!1,library:void 0,resolvedGlobalPackageManagerPath:void 0},{workingDirectory:void 0});if(b.validate===y.Validate.off)return b;b.resolvedGlobalPackageManagerPath=A.get(b.packageManager);const R=i(n,b.useRealpaths),C=void 0!==b.workspaceFolder?i(b.workspaceFolder.uri,b.useRealpaths):void 0;let S=!1;const E=void 0!==v.workingDirectory,x=v.workingDirectory??{mode:y.ModeEnum.location};if(y.ModeItem.is(x)){let e;if(x.mode===y.ModeEnum.location)if(void 0!==C){const[t,n]=$(C,R);n&&!1!==b.useFlatConfig?(e=t,S=!0):e=C}else void 0===R||(0,_.isUNC)(R)||(e=u.dirname(R));else x.mode===y.ModeEnum.auto&&(void 0!==C?e=$(C,R)[0]:void 0===R||(0,_.isUNC)(R)||(e=u.dirname(R)));void 0!==e&&c.existsSync(e)&&(b.workingDirectory={directory:e})}else b.workingDirectory=x;let O,M,N;null!==b.nodePath&&(O=b.nodePath,u.isAbsolute(O)||void 0===C||(O=u.join(C,O))),E||void 0===R||(M=u.dirname(R)),void 0!==M||void 0===b.workingDirectory||b.workingDirectory["!cwd"]||(M=b.workingDirectory.directory);const q=b.experimental?.useFlatConfig?"eslint/use-at-your-own-risk":"eslint";return N=void 0!==O?g.Files.resolve(q,O,O,I).then(void 0,()=>g.Files.resolve(q,b.resolvedGlobalPackageManagerPath,M,I)):g.Files.resolve(q,b.resolvedGlobalPackageManagerPath,M,I),b.silent=b.validate===y.Validate.probe,N.then(async c=>{let u=w.get(c);if(void 0===u){if(!0===b.experimental?.useFlatConfig){const e=o(c);void 0===e?(b.validate=y.Validate.off,b.silent||t.console.error(`Failed to load eslint library from ${c}. If you are using ESLint v8.21 or earlier, try upgrading it. For newer versions, try disabling the 'eslint.experimental.useFlatConfig' setting. See the output panel for more information.`)):void 0===e.FlatESLint?(b.validate=y.Validate.off,t.console.error(`The eslint library loaded from ${c} doesn't export a FlatESLint class.`)):(t.console.info(`ESLint library loaded from: ${c}`),u={ESLint:e.FlatESLint,isFlatConfig:!0,CLIEngine:void 0},b.library=u,w.set(c,u))}else u=o(c),void 0===u?(b.validate=y.Validate.off,b.silent||t.console.error(`Failed to load eslint library from ${c}. See output panel for more information.`)):void 0===u.CLIEngine&&void 0===u.ESLint?(b.validate=y.Validate.off,t.console.error(`The eslint library loaded from ${c} doesn't export neither a CLIEngine nor an ESLint class. You need at least eslint@1.0.0`)):(t.console.info(`ESLint library loaded from: ${c}`),b.library=u,w.set(c,u));if(void 0!==u&&k.hasESLintClass(u)&&"string"==typeof u.ESLint.version){const e=f(u.ESLint.version);null!==e&&(h(e,"8.57.0")&&!0===b.experimental?.useFlatConfig?t.console.info(`ESLint version ${u.ESLint.version} supports flat config without experimental opt-in. The 'eslint.experimental.useFlatConfig' setting can be removed.`):!h(e,"10.0.0")||!1!==b.experimental?.useFlatConfig&&!1!==b.useFlatConfig||t.console.info(`ESLint version ${u.ESLint.version} only supports flat configs. Setting is ignored.`))}}else b.library=u;if(b.validate===y.Validate.probe&&D.hasLibrary(b)){b.validate=y.Validate.off;const i=e.getFilePath(n,b);if(void 0!==i){const o=r.get(n.languageId),c=a.get(n.languageId),u=s.get(n.languageId);if(l.has(n.languageId))try{const[n,o]=await e.withClass(async e=>[await e.isPathIgnored(i),P.getConfigType(e)],b);(!1===n||!0===n&&b.onIgnoredFiles!==y.ESLintSeverity.off)&&(b.validate=y.Validate.on,S&&"eslintrc"===o&&t.console.info(`Expected to use flat configuration from directory ${b.workingDirectory?.directory} but loaded eslintrc config.`))}catch(e){b.validate=y.Validate.off,await t.sendNotification(m.StatusNotification.type,{uri:d,state:m.Status.error}),t.console.error(`Calculating config file for ${d}) failed.\n${e instanceof Error?e.stack:""}`)}else if(void 0!==o||void 0!==c||void 0!==u){const[n,r]=await e.withClass(async e=>{try{return await e.isPathIgnored(i)?[void 0,void 0]:[await e.calculateConfigForFile(i),P.getConfigType(e)]}catch(e){try{await t.sendNotification(m.StatusNotification.type,{uri:d,state:m.Status.error}),t.console.error(`Calculating config file for ${d}) failed.\n${e instanceof Error?e.stack:""}`)}catch{}return[void 0,void 0]}},b);if(void 0!==n)if(S&&"eslintrc"===r&&t.console.info(`Expected to use flat configuration from directory ${b.workingDirectory?.directory} but loaded eslintrc config.`),"flat"===r||k.isFlatConfig(b.library))b.validate=y.Validate.on;else{const e=null!==n.parser?(0,_.normalizePath)(n.parser):void 0;if(void 0!==e){if(void 0!==o)for(const t of o)if(t.test(e)){b.validate=y.Validate.on;break}if(b.validate!==y.Validate.on&&void 0!==u&&"string"==typeof n.parserOptions?.parser){const t=(0,_.normalizePath)(n.parserOptions.parser);for(const i of u.regExps)if(i.test(e)&&(u.parsers.has(n.parserOptions.parser)||void 0!==u.parserRegExps&&u.parserRegExps.some(e=>e.test(t)))){b.validate=y.Validate.on;break}}}if(b.validate!==y.Validate.on&&Array.isArray(n.plugins)&&n.plugins.length>0&&void 0!==c)for(const e of n.plugins)if(e===c){b.validate=y.Validate.on;break}}}}if(b.validate===y.Validate.off){const e={textDocument:{uri:n.uri}};t.sendRequest(m.ProbeFailedRequest.type,e)}}if(b.validate===y.Validate.on&&(b.silent=!1,b.format&&D.hasLibrary(b)&&!T.has(d))){const n=p.URI.parse(d),o="file"===n.scheme;let r=o?n.fsPath.replace(/\\/g,"/"):n.fsPath;r=r.replace(/[\[\]\{\}]/g,"?");const s={documentSelector:[{scheme:n.scheme,pattern:r}]};if(o){const n=i(d,b.useRealpaths);await e.withClass(async e=>{await e.isPathIgnored(n)||T.set(d,t.client.register(g.DocumentFormattingRequest.type,s))},b)}else T.set(d,t.client.register(g.DocumentFormattingRequest.type,s))}return b},()=>(b.validate=y.Validate.off,b.silent||t.sendRequest(m.NoESLintLibraryRequest.type,{source:{uri:n.uri}}),b))}),E.set(d,v),v)},e.newClass=x,e.withClass=O,e.getFilePath=M;const N=new Set(["problem","suggestion","layout","directive"]);function I(e,n){t.tracer.log(e,n)}let A,F;function $(e,t){if(void 0===t||(0,_.isUNC)(t))return[e,!1];if(-1!==t.indexOf(`${u.sep}node_modules${u.sep}`))return[e,!1];let n=e,i=!1,o=u.dirname(t);e:for(;void 0!==o&&o.startsWith(e);){for(const{fileName:e,isRoot:t,isFlatConfig:r}of b)if(c.existsSync(u.join(o,e))){if(n=o,i=r,t)break e;break}const e=u.dirname(o);o=e!==o?e:void 0}return[n,i]}e.validate=async function(e,t){const n=Object.assign(Object.create(null),t.options);let i;if(Array.isArray(n.fixTypes)&&n.fixTypes.length>0){i=new Set;for(const e of n.fixTypes)N.has(e)&&i.add(e);0===i.size&&(i=void 0)}const o=e.getText(),r=e.uri,s=M(e,t);return O(async n=>{L.remove(r);const a=await n.lintText(o,{filePath:s,warnIgnored:t.onIgnoredFiles!==y.ESLintSeverity.off});S.capture(n,a);const c=[];if(a&&Array.isArray(a)&&a.length>0){const n=a[0];n.messages&&Array.isArray(n.messages)&&n.messages.forEach(n=>{if(n){const[o,r]=q.create(t,n,e);if(r===y.RuleSeverity.off||t.quiet&&(o.severity===g.DiagnosticSeverity.Warning||o.severity===g.DiagnosticSeverity.Information)||c.push(o),void 0!==i&&void 0!==n.ruleId&&void 0!==n.fix){const t=S.getType(n.ruleId);void 0!==t&&i.has(t)&&L.record(e,o,n)}else S.isUnusedDisableDirectiveProblem(n)&&(n.ruleId=S.unusedDisableDirectiveId),L.record(e,o,n)}})}return c},t)},function(e){const t={yarn:{cache:void 0,get:()=>g.Files.resolveGlobalYarnPath(I)},npm:{cache:void 0,get:()=>g.Files.resolveGlobalNodePath(I)},pnpm:{cache:void 0,get:()=>(0,d.execSync)("pnpm root -g").toString().trim()}};e.get=function(e){const n=t[e];if(n)return void 0===n.cache&&(n.cache=n.get()),n.cache}}(A||(A={})),e.findWorkingDirectory=$,function(e){function o(e,t){let n;return"string"==typeof e.message||e.message instanceof String?(n=e.message,n=n.replace(/\r?\n/g," "),/^CLI: /.test(n)&&(n=n.substr(5))):n=`An unknown error occurred while validating document: ${t.uri}`,n}e.single=[function(e,n,i){if(C.isNoConfigFound(e))return r.has(n.uri)||(t.sendRequest(m.NoConfigRequest.type,{message:o(e,n),document:{uri:n.uri}}).then(void 0,()=>{}),r.set(n.uri,i)),m.Status.warn},function(e,i,r,a){if(!e.message)return;function c(c){return s.has(c)||(t.console.error(o(e,i)),n.get(p.URI.file(c).toString())||t.window.showInformationMessage(o(e,i)),s.set(c,{library:r,settings:a})),m.Status.warn}let u=/Cannot read config file:\s+(.*)\nError:\s+(.*)/.exec(e.message);return u&&3===u.length?c(u[1]):(u=/(.*):\n\s*Configuration for rule \"(.*)\" is /.exec(e.message),u&&3===u.length?c(u[1]):(u=/Cannot find module '([^']*)'\nReferenced from:\s+(.*)/.exec(e.message),u&&3===u.length?c(u[2]):void 0))},function(e,n,o,r){if(!e.message)return;const s=/Failed to load plugin (.*): Cannot find module (.*)/.exec(e.message);return s&&3===s.length?function(e,s,c){if(!a.has(e)){const u=i(n,r.useRealpaths);a.set(e,o),"plugin-missing"===c.messageTemplate?t.console.error(["",`${c.message.toString()}`,`Happened while validating ${u||n.uri}`,"This can happen for a couple of reasons:","1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).",`2. If ESLint is installed globally, then make sure ${s} is installed globally as well.`,`3. If ESLint is installed locally, then ${s} isn't installed correctly.`,"",`Consider running eslint --debug ${u||n.uri} from a terminal to obtain a trace about the configuration files used.`].join("\n")):t.console.error([`${c.message.toString()}`,`Happened while validating ${u||n.uri}`].join("\n"))}return m.Status.warn}(s[1],s[2],e):void 0},function(e,n){return v.string(e.stack)?(t.console.error("An unexpected error occurred:"),t.console.error(e.stack)):t.console.error(`An unexpected error occurred: ${o(e,n)}.`),m.Status.error}],e.getMessage=o;const r=new Map;e.clearNoConfigReported=function(){r.clear()};const s=new Map;e.getConfigErrorReported=function(e){return s.get(e)},e.removeConfigErrorReported=function(e){return s.delete(e)};const a=new Map;e.clearMissingModuleReported=function(){a.clear()}}(F=e.ErrorHandlers||(e.ErrorHandlers={}))}(I||(t.ESLint=I={}))},639(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const c=s(n(6928)),u=n(857),l=n(1327),d=n(5172),f=n(7608),h=n(4476),g=n(9394),p=n(6216),m=n(7733),y=n(9398),v=a(n(5509)),b=(0,l.createConnection)(l.ProposedFeatures.all,{connectionStrategy:{cancelUndispatched:e=>{if(l.Message.isRequest(e)&&"textDocument/codeAction"===e.method)return{jsonrpc:e.jsonrpc,id:e.id,result:null}}},maxParallelism:1});let _;const R=new l.TextDocuments(d.TextDocument),D=new l.NotebookDocuments(R),C=process.exit;function S(e,t){if(!e)return;const n=(0,m.getUri)(e);if("file"===n.scheme)return(0,m.getFileSystemPath)(n,t);const i=D.findNotebookDocumentForCell(n.toString());if(void 0!==i&&"file"===f.URI.parse(i.uri).scheme){const e=(0,m.getFileSystemPath)(n,t);if(void 0!==e){const t=R.get(n.toString());if(void 0!==t){const n=v.default.getExtension(t.languageId);if(void 0!==n){const t=c.extname(e);if(0===t.length&&"."===e[0])return`${e}.${n}`;if(t.length>0&&t!==n)return`${e.substring(0,e.length-t.length)}.${n}`}}}}}function w(){p.ESLint.clearSettings(),p.RuleSeverities.clear(),p.SaveRuleConfigs.clear(),p.ESLint.clearFormatters(),b.languages.diagnostics.refresh().catch(()=>{b.console.error("Failed to refresh diagnostics")})}var E;process.exit=e=>{const t=new Error("stack");b.sendNotification(h.ExitCalled.type,[e||0,t.stack]),setTimeout(()=>{C(e)},1e3)},process.on("uncaughtException",e=>{let t;if(e&&("string"==typeof e.stack?t=e.stack:"string"==typeof e.message?t=e.message:"string"==typeof e&&(t=e),void 0===t||0===t.length))try{t=JSON.stringify(e,void 0,4)}catch(e){}console.error("Uncaught exception received."),t&&console.error(t)}),p.ESLint.initialize(b,R,S,function(e){const t=require;try{return t(e)}catch(e){e.stack&&b.console.error(e.stack.toString())}}),p.SaveRuleConfigs.inferFilePath=S,R.onDidClose(async e=>{const t=e.document,n=t.uri;p.ESLint.removeSettings(n),p.SaveRuleConfigs.remove(n),p.CodeActions.remove(n),p.ESLint.unregisterAsFormatter(t)}),function(e){e.applySingleFix="eslint.applySingleFix",e.applySuggestion="eslint.applySuggestion",e.applySameFixes="eslint.applySameFixes",e.applyAllFixes="eslint.applyAllFixes",e.applyDisableLine="eslint.applyDisableLine",e.applyDisableFile="eslint.applyDisableFile",e.openRuleDoc="eslint.openRuleDoc"}(E||(E={})),b.onInitialize((e,t,n)=>{n.begin("Initializing ESLint Server");const i=l.TextDocumentSyncKind.Incremental;_=e.capabilities,n.done();const o={textDocumentSync:{openClose:!0,change:i,willSaveWaitUntil:!1,save:{includeText:!1}},workspace:{workspaceFolders:{supported:!0}},executeCommandProvider:{commands:[E.applySingleFix,E.applySuggestion,E.applySameFixes,E.applyAllFixes,E.applyDisableLine,E.applyDisableFile,E.openRuleDoc]},diagnosticProvider:{identifier:"eslint",interFileDependencies:!1,workspaceDiagnostics:!1}};return void 0!==_.textDocument?.codeAction?.codeActionLiteralSupport?.codeActionKind.valueSet&&(o.codeActionProvider={codeActionKinds:[l.CodeActionKind.QuickFix,`${l.CodeActionKind.SourceFixAll}.eslint`]}),{capabilities:o}}),b.onInitialized(()=>{!0===_.workspace?.didChangeConfiguration?.dynamicRegistration&&(b.onDidChangeConfiguration(e=>{w()}),b.client.register(l.DidChangeConfigurationNotification.type,void 0)),!0===_.workspace?.workspaceFolders&&b.workspace.onDidChangeWorkspaceFolders(e=>{w()})});const T={kind:l.DocumentDiagnosticReportKind.Full,items:[]};b.languages.diagnostics.on(async e=>{const t=R.get(e.textDocument.uri);if(void 0===t)return T;const n=await p.ESLint.resolveSettings(t);if(n.validate!==g.Validate.on||!p.TextDocumentSettings.hasLibrary(n))return T;try{const e=Date.now(),i=await p.ESLint.validate(t,n),o=Date.now()-e;return b.sendNotification(h.StatusNotification.type,{uri:t.uri,state:h.Status.ok,validationTime:o}),{kind:l.DocumentDiagnosticReportKind.Full,items:i}}catch(e){if(n.silent)b.console.info(p.ESLint.ErrorHandlers.getMessage(e,t)),b.sendNotification(h.StatusNotification.type,{uri:t.uri,state:h.Status.ok});else{let i;for(const o of p.ESLint.ErrorHandlers.single)if(i=o(e,t,n.library,n),i)break;i=i||h.Status.error,b.sendNotification(h.StatusNotification.type,{uri:t.uri,state:i})}return T}}),b.onDidChangeWatchedFiles(async e=>{p.RuleMetaData.clear(),p.ESLint.ErrorHandlers.clearNoConfigReported(),p.ESLint.ErrorHandlers.clearMissingModuleReported(),p.ESLint.clearSettings(),p.RuleSeverities.clear(),p.SaveRuleConfigs.clear(),await Promise.all(e.changes.map(async e=>{const t=S(e.uri,!1);if(void 0===t||0===t.length||(0,m.isUNC)(t))return;const n=c.dirname(t);if(n){const e=p.ESLint.ErrorHandlers.getConfigErrorReported(t);if(void 0!==e){const i=await p.ESLint.newClass(e.library,{},e.settings);try{await i.lintText("",{filePath:c.join(n,"___test___.js")}),p.ESLint.ErrorHandlers.removeConfigErrorReported(t)}catch(e){}}}})),b.languages.diagnostics.refresh().catch(()=>{b.console.error("Failed to refresh diagnostics")})});class P{_actions;_fixAll;constructor(){this._actions=new Map}get(e){let t=this._actions.get(e);return void 0===t&&(t={fixes:[],suggestions:[]},this._actions.set(e,t)),t}get fixAll(){return void 0===this._fixAll&&(this._fixAll=[]),this._fixAll}all(){const e=[];for(const t of this._actions.values())e.push(...t.fixes),e.push(...t.suggestions),t.disable&&e.push(t.disable),t.fixAll&&e.push(t.fixAll),t.disableFile&&e.push(t.disableFile),t.showDocumentation&&e.push(t.showDocumentation);return void 0!==this._fixAll&&e.push(...this._fixAll),e}get length(){let e=0;for(const t of this._actions.values())e+=t.fixes.length;return e}}var k;!function(e){e.create=function(e,t,n){return{uri:e.uri,version:e.version,ruleId:t,sequence:n}},e.hasRuleId=function(e){return void 0!==e.ruleId}}(k||(k={}));const x=new class{values;uri;version;constructor(){this.values=new Map,this.uri=void 0,this.version=void 0}clear(e){void 0===e?(this.uri=void 0,this.version=void 0):(this.uri=e.uri,this.version=e.version),this.values.clear()}isUsable(e,t){return this.uri===e&&this.version===t}set(e,t){this.values.set(e,t)}get(e){return this.values.get(e)}},O=`${l.CodeActionKind.SourceFixAll}.eslint`;var M;async function N(e,t){const n=e.uri,i=R.get(n);if(void 0===i||e.version!==i.version)return;const o=await p.ESLint.resolveSettings(i);if(o.validate!==g.Validate.on||!p.TextDocumentSettings.hasLibrary(o)||t===M.format&&!o.format)return[];const r=S(i,o.useRealpaths),s=p.CodeActions.get(n),a=i.getText();let c=Date.now();if(t===M.onSave&&o.codeActionOnSave.mode===g.CodeActionsOnSaveMode.problems){const e=void 0!==s&&s.size>0?new p.Fixes(s).getApplicable().map(e=>p.FixableProblem.createTextEdit(i,e)):[];return b.tracer.log(`Computing all fixes took: ${Date.now()-c} ms.`),e}{const e=void 0!==r&&t===M.onSave?await p.SaveRuleConfigs.get(n,o):void 0,s=e?.offRules,u=e?.options;let l={fix:!0};if((void 0!==s||void 0!==u)&&(void 0!==u&&(l={...l,...u}),void 0!==s&&s.size>0)){const e={rules:Object.create(null)};for(const t of s)e.rules[t]="off";l.overrideConfig=e}return p.ESLint.withClass(async e=>{const t=[],n=await e.lintText(a,{filePath:r});if(b.tracer.log(`Computing all fixes took: ${Date.now()-c} ms.`),Array.isArray(n)&&1===n.length&&void 0!==n[0].output){const e=n[0].output;c=Date.now();const o=(0,y.stringDiff)(a,e,!1);b.tracer.log(`Computing minimal edits took: ${Date.now()-c} ms.`);for(const n of o)t.push({range:{start:i.positionAt(n.originalStart),end:i.positionAt(n.originalStart+n.originalLength)},newText:e.substr(n.modifiedStart,n.modifiedLength)})}return t},o,l)}}b.onCodeAction(async e=>{const t=new P,n=e.textDocument.uri,i=R.get(n);if(void 0===i)return x.clear(i),t.all();function o(e,t,n,i,o){const r=l.Command.create(e,n,i),s=l.CodeAction.create(e,r,t);return void 0!==o&&(s.diagnostics=[o]),s}function r(e,t){let n=e.indexOf("--");if(n<0){if("string"==typeof t)return e.length;for(n=e.indexOf(t[1]);n>0&&" "===e[n-1];)n--}else for(;n>1&&" "===e[n-1];)n--;return n}function s(e){return e.replace(/[|{}\\()[\]^$+*?.]/g,"\\$&")}function a(e,t,n){const i=v.default.getLineComment(e.languageId),o=v.default.getBlockComment(e.languageId);if(t.line-1>0){const n=e.getText(l.Range.create(l.Position.create(t.line-2,0),l.Position.create(t.line-2,l.uinteger.MAX_VALUE)));if(new RegExp(`${s(i)} eslint-disable-next-line`).test(n)){const e=r(n,i);return l.TextEdit.insert(l.Position.create(t.line-2,e),`, ${t.ruleId}`)}if(new RegExp(`${s(o[0])} eslint-disable-next-line`).test(n)){const e=r(n,o);return l.TextEdit.insert(l.Position.create(t.line-2,e),`, ${t.ruleId}`)}}let a;return a="block"===h.codeAction.disableRuleComment.commentStyle?`${n}${o[0]} eslint-disable-next-line ${t.ruleId} ${o[1]}${u.EOL}`:`${n}${i} eslint-disable-next-line ${t.ruleId}${u.EOL}`,l.TextEdit.insert(l.Position.create(t.line-1,0),a)}function c(e,t){const n=v.default.getLineComment(e.languageId),i=v.default.getBlockComment(e.languageId),o=e.getText(l.Range.create(l.Position.create(t.line-1,0),l.Position.create(t.line-1,l.uinteger.MAX_VALUE)));let s,a;const c=new RegExp(`${n} eslint-disable-line`).test(o),u=new RegExp(`${i[0]} eslint-disable-line`).test(o);return c?(s=`, ${t.ruleId}`,a=r(o,n)):u?(s=`, ${t.ruleId}`,a=r(o,i)):(s="line"===h.codeAction.disableRuleComment.commentStyle?` ${n} eslint-disable-line ${t.ruleId}`:` ${i[0]} eslint-disable-line ${t.ruleId} ${i[1]}`,a=l.uinteger.MAX_VALUE),l.TextEdit.insert(l.Position.create(t.line-1,a),s)}function d(e,t){const n="#!"===e.getText(l.Range.create(l.Position.create(0,0),l.Position.create(0,2)))?1:0,i=v.default.getBlockComment(e.languageId);return l.TextEdit.insert(l.Position.create(n,0),`${i[0]} eslint-disable ${t.ruleId} ${i[1]}${u.EOL}`)}function f(e){const t=e.length;if(0!==t)return e[t-1]}const h=await p.ESLint.resolveSettings(i);if(h.validate!==g.Validate.on||!p.TextDocumentSettings.hasLibrary(h))return t.all();const m=p.CodeActions.get(n);if(void 0===m&&"onType"===h.run)return t.all();const y=void 0!==e.context.only&&e.context.only.length>0?e.context.only[0]:void 0,b=y===l.CodeActionKind.Source,_=y===O||y===l.CodeActionKind.SourceFixAll;if(_||b){if(_){const e={uri:i.uri,version:i.version},n=await N(e,M.onSave);void 0!==n&&t.fixAll.push(l.CodeAction.create("Fix all fixable ESLint issues",{documentChanges:[l.TextDocumentEdit.create(e,n)]},O))}else b&&t.fixAll.push(o("Fix all fixable ESLint issues",l.CodeActionKind.Source,E.applyAllFixes,k.create(i)));return t.all()}if(void 0===m)return t.all();const D=new p.Fixes(m);if(D.isEmpty())return t.all();let C=-1;const S=[],w=y??l.CodeActionKind.QuickFix;for(const r of D.getScoped(e.context.diagnostics)){C=r.documentVersion;const e=r.ruleId;if(S.push(e),p.Problem.isFixable(r)){const s=new l.WorkspaceChange;s.getTextEditChange({uri:n,version:C}).add(p.FixableProblem.createTextEdit(i,r)),x.set(`${E.applySingleFix}:${e}`,s);const a=o(r.label,w,E.applySingleFix,k.create(i,e),r.diagnostic);a.isPreferred=!0,t.get(e).fixes.push(a)}if(p.Problem.hasSuggestions(r)&&r.suggestions.forEach((s,a)=>{const c=new l.WorkspaceChange;c.getTextEditChange({uri:n,version:C}).add(p.SuggestionsProblem.createTextEdit(i,s)),x.set(`${E.applySuggestion}:${e}:${a}`,c);const u=o(`${s.desc} (${r.ruleId})`,l.CodeActionKind.QuickFix,E.applySuggestion,k.create(i,e,a),r.diagnostic);t.get(e).suggestions.push(u)}),h.codeAction.disableRuleComment.enable&&e!==p.RuleMetaData.unusedDisableDirectiveId){let s=new l.WorkspaceChange;if("sameLine"===h.codeAction.disableRuleComment.location)s.getTextEditChange({uri:n,version:C}).add(c(i,r));else{const e=i.getText(l.Range.create(l.Position.create(r.line-1,0),l.Position.create(r.line-1,l.uinteger.MAX_VALUE))),t=/^([ \t]*)/.exec(e),o=null!==t&&t.length>0?t[1]:"";s.getTextEditChange({uri:n,version:C}).add(a(i,r,o))}x.set(`${E.applyDisableLine}:${e}`,s),t.get(e).disable=o(`Disable ${e} for this line`,w,E.applyDisableLine,k.create(i,e)),void 0===t.get(e).disableFile&&(s=new l.WorkspaceChange,s.getTextEditChange({uri:n,version:C}).add(d(i,r)),x.set(`${E.applyDisableFile}:${e}`,s),t.get(e).disableFile=o(`Disable ${e} for the entire file`,w,E.applyDisableFile,k.create(i,e)))}h.codeAction.showDocumentation.enable&&void 0===t.get(e).showDocumentation&&p.RuleMetaData.hasRuleId(e)&&(t.get(e).showDocumentation=o(`Show documentation for ${e}`,w,E.openRuleDoc,k.create(i,e)))}if(t.length>0){const e=new Map(S.map(e=>[e,[]]));for(const t of D.getAllSorted())if(-1===C&&(C=t.documentVersion),e.has(t.ruleId)){const n=e.get(t.ruleId);p.Fixes.overlaps(f(n),t)||n.push(t)}e.forEach((e,r)=>{if(e.length>1){const s=new l.WorkspaceChange,a=s.getTextEditChange({uri:n,version:C});e.map(e=>p.FixableProblem.createTextEdit(i,e)).forEach(e=>a.add(e)),x.set(E.applySameFixes,s),t.get(r).fixAll=o(`Fix all ${r} problems`,w,E.applySameFixes,k.create(i))}}),t.fixAll.push(o("Fix all auto-fixable problems",w,E.applyAllFixes,k.create(i)))}return t.all()}),function(e){e.onSave="onsave",e.format="format",e.command="command"}(M||(M={})),b.onExecuteCommand(async e=>{let t;const n=e.arguments[0];if(e.command===E.applyAllFixes){const e=await N(n,M.command);if(void 0!==e&&e.length>0){t=new l.WorkspaceChange;const i=t.getTextEditChange(n);e.forEach(e=>i.add(e))}}else if(-1!==[E.applySingleFix,E.applyDisableLine,E.applyDisableFile].indexOf(e.command))t=x.get(`${e.command}:${n.ruleId}`);else if(-1!==[E.applySuggestion].indexOf(e.command))t=x.get(`${e.command}:${n.ruleId}:${n.sequence}`);else if(e.command===E.openRuleDoc&&k.hasRuleId(n)){const e=p.RuleMetaData.getUrl(n.ruleId);e&&b.sendRequest(h.OpenESLintDocRequest.type,{url:e})}else t=x.get(e.command);return void 0===t?null:b.workspace.applyEdit(t.edit).then(t=>(t.applied||b.console.error(`Failed to apply command: ${e.command}`),null),()=>(b.console.error(`Failed to apply command: ${e.command}`),null))}),b.onDocumentFormatting(e=>{const t=R.get(e.textDocument.uri);return void 0===t?[]:N({uri:t.uri,version:t.version},M.format)}),R.listen(b),D.listen(b),b.listen(),b.console.info(`ESLint server running in node ${process.version}`)},1681(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.nullOrUndefined=function(e){return null==e},t.string=function(e){return"[object String]"===n.call(e)};const n=Object.prototype.toString},5509(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=new Map([["javascript",{ext:"js",lineComment:"//",blockComment:["/*","*/"]}],["javascriptreact",{ext:"jsx",lineComment:"//",blockComment:["/*","*/"]}],["typescript",{ext:"ts",lineComment:"//",blockComment:["/*","*/"]}],["typescriptreact",{ext:"tsx",lineComment:"//",blockComment:["/*","*/"]}],["html",{ext:"html",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["vue",{ext:"vue",lineComment:"//",blockComment:["\x3c!--","--\x3e"]}],["coffeescript",{ext:"coffee",lineComment:"#",blockComment:["###","###"]}],["yaml",{ext:"yaml",lineComment:"#",blockComment:["#",""]}],["graphql",{ext:"graphql",lineComment:"#",blockComment:["#",""]}]]);var i;!function(e){e.getLineComment=function(e){return n.get(e)?.lineComment??"//"},e.getBlockComment=function(e){return n.get(e)?.blockComment??["/*","*/"]},e.getExtension=function(e){return n.get(e)?.ext}}(i||(i={})),t.default=i},5724(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n||(t.Touch=n={}));class i{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const i=this._map.get(e);if(i)return t!==n.None&&this.touch(i,t),i.value}set(e,t,i=n.None){let o=this._map.get(e);if(o)o.value=t,i!==n.None&&this.touch(o,i);else{switch(o={key:e,value:t,next:void 0,previous:void 0},i){case n.None:this.addItemLast(o);break;case n.First:this.addItemFirst(o);break;case n.Last:default:this.addItemLast(o)}this._map.set(e,o),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{_limit;_ratio;constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},7733(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeDriveLetter=function(e){return"win32"!==process.platform||e.length<2||":"!==e[1]?e:e[0].toUpperCase()+e.substring(1)},t.isUNC=function(e){if("win32"!==process.platform)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(t=e.charCodeAt(1),92!==t)return!1;let n=2;const i=n;for(;n<e.length&&(t=e.charCodeAt(n),92!==t);n++);return i!==n&&(t=e.charCodeAt(n+1),!isNaN(t)&&92!==t)},t.getFileSystemPath=function(e,t){let n=e.fsPath;if("win32"===process.platform&&n.length>=2&&":"===n[1]&&(n=n[0].toUpperCase()+n.substr(1)),t)n=l(n);else if("win32"===process.platform||"darwin"===process.platform){const e=l(n);e.toLowerCase()===n.toLowerCase()&&(n=e)}return n},t.normalizePath=function(e){if(void 0!==e)return"win32"===process.platform?e.replace(/\\/g,"/"):e},t.getUri=function(e){return u.string(e)?c.URI.parse(e):e instanceof c.URI?e:c.URI.parse(e.uri)};const a=s(n(9896)),c=n(7608),u=s(n(1681));function l(e){try{return a.realpathSync.native(e)}catch(t){return e}}},4476(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExitCalled=t.ShowOutputChannel=t.ProbeFailedRequest=t.OpenESLintDocRequest=t.NoESLintLibraryRequest=t.NoConfigRequest=t.StatusNotification=t.Status=void 0;const i=n(8766);var o,r,s,a,c,u,l,d;!function(e){e[e.ok=1]="ok",e[e.warn=2]="warn",e[e.error=3]="error"}(o||(t.Status=o={})),function(e){e.method="eslint/status",e.type=new i.NotificationType(e.method)}(r||(t.StatusNotification=r={})),function(e){e.method="eslint/noConfig",e.type=new i.RequestType(e.method)}(s||(t.NoConfigRequest=s={})),function(e){e.method="eslint/noLibrary",e.type=new i.RequestType(e.method)}(a||(t.NoESLintLibraryRequest=a={})),function(e){e.method="eslint/openDoc",e.type=new i.RequestType(e.method)}(c||(t.OpenESLintDocRequest=c={})),function(e){e.method="eslint/probeFailed",e.type=new i.RequestType(e.method)}(u||(t.ProbeFailedRequest=u={})),function(e){e.method="eslint/showOutputChannel",e.type=new i.NotificationType0("eslint/showOutputChannel")}(l||(t.ShowOutputChannel=l={})),function(e){e.method="eslint/exitCalled",e.type=new i.NotificationType(e.method)}(d||(t.ExitCalled=d={}))},9394(e,t){var n,i,o,r,s,a,c,u,l,d;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectoryItem=t.ModeItem=t.ModeEnum=t.RuleSeverity=t.ESLintSeverity=t.CodeActionsOnSaveOptions=t.CodeActionsOnSaveRules=t.CodeActionsOnSaveMode=t.Validate=void 0,function(e){const t=Object.prototype.toString;e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)}}(n||(n={})),function(e){e.on="on",e.off="off",e.probe="probe"}(i||(t.Validate=i={})),function(e){e.all="all",e.problems="problems"}(o||(t.CodeActionsOnSaveMode=o={})),function(e){e.from=function(t){return null!=t&&n.string(t)&&t.toLowerCase()===e.problems?e.problems:e.all}}(o||(t.CodeActionsOnSaveMode=o={})),function(e){e.from=function(e){if(null!=e&&Array.isArray(e))return e.filter(e=>n.string(e))}}(r||(t.CodeActionsOnSaveRules=r={})),function(e){e.from=function(e){if(null!=e&&"object"==typeof e)return e}}(s||(t.CodeActionsOnSaveOptions=s={})),function(e){e.off="off",e.warn="warn",e.error="error"}(a||(t.ESLintSeverity=a={})),function(e){e.from=function(t){if(null==t)return e.off;switch(t.toLowerCase()){case e.off:return e.off;case e.warn:return e.warn;case e.error:return e.error;default:return e.off}}}(a||(t.ESLintSeverity=a={})),function(e){e.info="info",e.warn="warn",e.error="error",e.off="off",e.default="default",e.downgrade="downgrade",e.upgrade="upgrade"}(c||(t.RuleSeverity=c={})),function(e){e.auto="auto",e.location="location"}(u||(t.ModeEnum=u={})),function(e){e.is=function(t){return t===e.auto||t===e.location}}(u||(t.ModeEnum=u={})),function(e){e.is=function(e){const t=e;return t&&u.is(t.mode)}}(l||(t.ModeItem=l={})),function(e){e.is=function(e){const t=e;return t&&n.string(t.directory)&&(n.boolean(t["!cwd"])||void 0===t["!cwd"])}}(d||(t.DirectoryItem=d={}))},3908(e,t,n){const i=n(7272),{MAX_LENGTH:o,MAX_SAFE_INTEGER:r}=n(6874),{safeRe:s,t:a}=n(9718),c=n(8587),{compareIdentifiers:u}=n(1123);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<r)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(i("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(i("build compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},560(e,t,n){const i=n(3908);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},4089(e,t,n){const i=n(560);e.exports=(e,t,n)=>i(e,t,n)>=0},144(e,t,n){const i=n(3908);e.exports=(e,t,n=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!n)return null;throw e}}},6874(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1123(e){const t=/^[0-9]+$/,n=(e,n)=>{const i=t.test(e),o=t.test(n);return i&&o&&(e=+e,n=+n),e===n?0:i&&!o?-1:o&&!i?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},8587(e){const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},9718(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:r}=n(6874),s=n(7272),a=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.safeSrc=[],d=t.t={};let f=0;const h="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",r],[h,o]],p=(e,t,n)=>{const i=(e=>{for(const[t,n]of g)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=f++;s(e,o,t),d[e]=o,u[o]=t,l[o]=i,a[o]=new RegExp(t,n?"g":void 0),c[o]=new RegExp(i,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})\\.(${u[d.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})\\.(${u[d.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[d.NONNUMERICIDENTIFIER]}|${u[d.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${u[d.PRERELEASEIDENTIFIER]}(?:\\.${u[d.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[d.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${u[d.BUILDIDENTIFIER]}(?:\\.${u[d.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[d.MAINVERSION]}${u[d.PRERELEASE]}?${u[d.BUILD]}?`),p("FULL",`^${u[d.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[d.MAINVERSIONLOOSE]}${u[d.PRERELEASELOOSE]}?${u[d.BUILD]}?`),p("LOOSE",`^${u[d.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[d.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:\\.(${u[d.XRANGEIDENTIFIER]})(?:${u[d.PRERELEASE]})?${u[d.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[d.XRANGEIDENTIFIERLOOSE]})(?:${u[d.PRERELEASELOOSE]})?${u[d.BUILD]}?)?)?`),p("XRANGE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[d.GTLT]}\\s*${u[d.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),p("COERCE",`${u[d.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",u[d.COERCEPLAIN]+`(?:${u[d.PRERELEASE]})?`+`(?:${u[d.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",u[d.COERCE],!0),p("COERCERTLFULL",u[d.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[d.LONETILDE]}${u[d.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${u[d.LONECARET]}${u[d.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[d.LONECARET]}${u[d.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[d.GTLT]}\\s*(${u[d.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[d.GTLT]}\\s*(${u[d.LOOSEPLAIN]}|${u[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[d.XRANGEPLAIN]})\\s+-\\s+(${u[d.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[d.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},3281(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=void 0;const o=n(6177);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return o.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return o.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return o.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return o.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return o.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return o.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return o.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return o.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return o.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return o.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return o.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return o.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return o.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return o.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return o.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return o.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return o.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return o.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return o.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return o.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return o.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return o.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return o.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return o.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return o.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return o.ParameterStructures}});const r=n(3352);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return r.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return r.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return r.Touch}});const s=n(4019);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return s.Disposable}});const a=n(2676);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return a.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return a.Emitter}});const c=n(9850);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return c.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return c.CancellationToken}});const u=n(4996);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return u.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return u.SharedArrayReceiverStrategy}});const l=n(9085);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return l.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return l.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return l.ReadableStreamMessageReader}});const d=n(3193);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return d.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return d.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return d.WriteableStreamMessageWriter}});const f=n(9244);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return f.AbstractMessageBuffer}});const h=n(577);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValue",{enumerable:!0,get:function(){return h.TraceValue}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"IdCancellationReceiverStrategy",{enumerable:!0,get:function(){return h.IdCancellationReceiverStrategy}}),Object.defineProperty(t,"RequestCancellationReceiverStrategy",{enumerable:!0,get:function(){return h.RequestCancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}});const g=i(n(9590));t.RAL=g.default},9850(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const c=a(n(9590)),u=s(n(8585)),l=n(2676);var d;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:l.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:l.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||u.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(d||(t.CancellationToken=d={}));const f=Object.freeze(function(e,t){const n=(0,c.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}});class h{_isCancelled=!1;_emitter;cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?f:(this._emitter||(this._emitter=new l.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{_token;get token(){return this._token||(this._token=new h),this._token}cancel(){this._token?this._token.cancel():this._token=d.Cancelled}dispose(){this._token?this._token instanceof h&&this._token.dispose():this._token=d.None}}},577(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0,t.createMessageConnection=function(e,n,i,o){const r=void 0!==i?i:t.NullLogger;let s=0,a=0,b=0;const S="2.0",E=o?.maxParallelism??-1;let T,P=0;const O=new Map;let q;const L=new Map,I=new Map;let j,A,F=new d.LinkedMap,$=new Map,W=new Set,H=new Map,U=v.Off,z=_.Text,V=M.New;const B=new f.Emitter,K=new f.Emitter,G=new f.Emitter,X=new f.Emitter,J=new f.Emitter,Y=o&&o.cancellationStrategy?o.cancellationStrategy:k.Message;function Q(e){}function Z(){return V===M.Listening}function ee(){return V===M.Closed}function te(){return V===M.Disposed}function ne(){V!==M.New&&V!==M.Listening||(V=M.Closed,K.fire(void 0))}function ie(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function oe(){j||0===F.size||-1!==E&&P>=E||(j=(0,c.default)().timer.setImmediate(async()=>{if(j=void 0,0===F.size)return;if(-1!==E&&P>=E)return;const e=F.shift();let t;try{P++;const n=o?.messageStrategy;t=x.is(n)?n.handleMessage(e,re):re(e)}catch(e){r.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then(()=>{P--,oe()}).catch(e=>{r.error(`Processing message queue failed: ${e.toString()}`)}):P--,oe()}}))}async function re(e){return l.Message.isRequest(e)?async function(e){if(te())return Promise.resolve();function t(t,i,o){const r={jsonrpc:S,id:e.id};return t instanceof l.ResponseError?r.error=t.toJson():r.result=void 0===t?null:t,ue(r,i,o),n.write(r)}function i(t,i,o){const r={jsonrpc:S,id:e.id,error:t.toJson()};return ue(r,i,o),n.write(r)}!function(e){if(U!==v.Off&&A)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||!e.params||(t=`Params: ${ce(e.params)}`),A.log(`Received request '${e.method} - (${e.id})'.`,t)}else de("receive-request",e)}(e);const o=O.get(e.method);let r,s;o&&(r=o.type,s=o.handler);const a=Date.now();if(s||T){const n=e.id??String(Date.now()),o=w.is(Y.receiver)?Y.receiver.createCancellationTokenSource(n):Y.receiver.createCancellationTokenSource(e);null!==e.id&&W.has(e.id)&&o.cancel(),null!==e.id&&H.set(n,o);try{let n;if(s)if(void 0===e.params){if(void 0!==r&&0!==r.numberOfParams)return i(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines ${r.numberOfParams} params but received none.`),e.method,a);n=s(o.token)}else if(Array.isArray(e.params)){if(void 0!==r&&r.parameterStructures===l.ParameterStructures.byName)return i(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,a);n=s(...e.params,o.token)}else{if(void 0!==r&&r.parameterStructures===l.ParameterStructures.byPosition)return i(new l.ResponseError(l.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,a);n=s(e.params,o.token)}else T&&(n=T(e.method,e.params,o.token));const c=await n;await t(c,e.method,a)}catch(n){n instanceof l.ResponseError?await t(n,e.method,a):n&&u.string(n.message)?await i(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,a):await i(new l.ResponseError(l.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,a)}finally{H.delete(n)}}else await i(new l.ResponseError(l.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,a)}(e):l.Message.isNotification(e)?async function(e){if(te())return;let t,n;if(e.method===g.type.method){const t=e.params.id;return W.delete(t),void le(e)}{const i=L.get(e.method);i&&(n=i.handler,t=i.type)}if(n||q)try{if(le(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==l.ParameterStructures.byName&&r.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){const i=e.params;e.method===m.type.method&&2===i.length&&p.is(i[0])?await n({token:i[0],value:i[1]}):(void 0!==t&&(t.parameterStructures===l.ParameterStructures.byName&&r.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&r.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),await n(...i))}else void 0!==t&&t.parameterStructures===l.ParameterStructures.byPosition&&r.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params);else q&&await q(e.method,e.params)}catch(t){t.message?r.error(`Notification handler '${e.method}' failed with message: ${t.message}`):r.error(`Notification handler '${e.method}' failed unexpectedly.`)}else G.fire(e)}(e):l.Message.isResponse(e)?ae(e):function(e){if(!e)return void r.error("Received empty message.");r.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(u.string(t.id)||u.number(t.id)){const e=t.id,n=$.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ne),e.onError(function(e){B.fire([e,void 0,void 0])}),n.onClose(ne),n.onError(function(e){B.fire(e)});const se=e=>{try{if(l.Message.isNotification(e)&&e.method===g.type.method){const t=e.params.id,i=ie(t),s=F.get(i);if(l.Message.isRequest(s)){const a=o?.connectionStrategy,c=a&&a.cancelUndispatched?a.cancelUndispatched(s,Q):void 0;if(c&&(void 0!==c.error||void 0!==c.result))return F.delete(i),H.delete(t),c.id=s.id,ue(c,e.method,Date.now()),void n.write(c).catch(()=>r.error("Sending response for canceled message failed."))}const a=H.get(t);if(void 0!==a)return a.cancel(),void le(e);W.add(t)}!function(e,t){var n;l.Message.isRequest(t)?e.set(ie(t.id),t):l.Message.isResponse(t)?-1===E?e.set(null===(n=t.id)?"res-unknown-"+(++b).toString():"res-"+n.toString(),t):ae(t):e.set("not-"+(++a).toString(),t)}(F,e)}finally{oe()}};function ae(e){if(!te())if(null===e.id)e.error?r.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{const t=e.id,n=$.get(t);if(function(e,t){if(U!==v.Off&&A)if(z===_.Text){let n;if(U!==v.Verbose&&U!==v.Compact||(e.error&&e.error.data?n=`Error data: ${ce(e.error.data)}`:e.result?n=`Result: ${ce(e.result)}`:void 0===e.error&&(n="No result returned.")),t){const i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";A.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${i}`,n)}else A.log(`Received response ${e.id} without active response promise.`,n)}else de("receive-response",e)}(e,n),void 0!==n){$.delete(t);try{if(e.error){const t=e.error;n.reject(new l.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?r.error(`Response handler '${n.method}' failed with message: ${e.message}`):r.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function ce(e){if(null!=e)switch(U){case v.Verbose:return JSON.stringify(e,null,4);case v.Compact:return JSON.stringify(e);default:return}}function ue(e,t,n){if(U!==v.Off&&A)if(z===_.Text){let i;U!==v.Verbose&&U!==v.Compact||(e.error&&e.error.data?i=`Error data: ${ce(e.error.data)}`:e.result?i=`Result: ${ce(e.result)}`:void 0===e.error&&(i="No result returned.")),A.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,i)}else de("send-response",e)}function le(e){if(U!==v.Off&&A&&e.method!==D.type.method)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||(t=e.params?`Params: ${ce(e.params)}`:"No parameters provided."),A.log(`Received notification '${e.method}'.`,t)}else de("receive-notification",e)}function de(e,t){if(!A||U===v.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};A.log(n)}function fe(){if(ee())throw new N(C.Closed,"Connection is closed.");if(te())throw new N(C.Disposed,"Connection is disposed.")}function he(e){return void 0===e?null:e}function ge(e){return null===e?void 0:e}function pe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function me(e,t){switch(e){case l.ParameterStructures.auto:return pe(t)?ge(t):[he(t)];case l.ParameterStructures.byName:if(!pe(t))throw new Error("Received parameters by name but param is not an object literal.");return ge(t);case l.ParameterStructures.byPosition:return[he(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ye(e,t){let n;const i=e.numberOfParams;switch(i){case 0:n=void 0;break;case 1:n=me(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<i;e++)n.push(he(t[e]));if(t.length<i)for(let e=t.length;e<i;e++)n.push(null)}return n}const ve={sendNotification:(e,...t)=>{let i,o;if(fe(),u.string(e)){i=e;const n=t[0];let r=0,s=l.ParameterStructures.auto;l.ParameterStructures.is(n)&&(r=1,s=n);const a=t.length,c=a-r;switch(c){case 0:o=void 0;break;case 1:o=me(s,t[r]);break;default:if(s===l.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);o=t.slice(r,a).map(e=>he(e))}}else{const n=t;i=e.method,o=ye(e,n)}const s={jsonrpc:S,method:i,params:o};return function(e){if(U!==v.Off&&A)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||(t=e.params?`Params: ${ce(e.params)}`:"No parameters provided."),A.log(`Sending notification '${e.method}'.`,t)}else de("send-notification",e)}(s),n.write(s).catch(e=>{throw r.error("Sending notification failed."),e})},onNotification:(e,t)=>{let n;return fe(),u.func(e)?q=e:t&&(u.string(e)?(n=e,L.set(e,{type:void 0,handler:t})):(n=e.method,L.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?L.get(n)?.handler===t&&L.delete(n):q===e&&(q=void 0)}}},onProgress:(e,t,n)=>{if(I.has(t))throw new Error(`Progress handler for token ${t} already registered`);return I.set(t,n),{dispose:()=>{I.get(t)===n&&I.delete(t)}}},sendProgress:(e,t,n)=>ve.sendNotification(m.type,{token:t,value:n}),onUnhandledProgress:X.event,sendRequest:(e,...t)=>{function i(e,t){const n=Y.sender.sendCancellation(e,t);void 0===n?r.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch(()=>{r.log(`Sending cancellation messages for id ${t} failed.`)})}let o,a,c;if(fe(),function(){if(!Z())throw new Error("Call listen() first.")}(),u.string(e)){o=e;const n=t[0],i=t[t.length-1];let r=0,s=l.ParameterStructures.auto;l.ParameterStructures.is(n)&&(r=1,s=n);let u=t.length;h.CancellationToken.is(i)&&(u-=1,c=i);const d=u-r;switch(d){case 0:a=void 0;break;case 1:a=me(s,t[r]);break;default:if(s===l.ParameterStructures.byName)throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`);a=t.slice(r,u).map(e=>he(e))}}else{const n=t;o=e.method,a=ye(e,n);const i=e.numberOfParams;c=h.CancellationToken.is(n[i])?n[i]:void 0}const d=s++;let f,g=!1;void 0!==c&&(c.isCancellationRequested?g=!0:f=c.onCancellationRequested(()=>{i(ve,d)}));const p={jsonrpc:S,id:d,method:o,params:a};return function(e){if(U!==v.Off&&A)if(z===_.Text){let t;U!==v.Verbose&&U!==v.Compact||!e.params||(t=`Params: ${ce(e.params)}`),A.log(`Sending request '${e.method} - (${e.id})'.`,t)}else de("send-request",e)}(p),"function"==typeof Y.sender.enableCancellation&&Y.sender.enableCancellation(p),new Promise(async(e,t)=>{const s={method:o,timerStart:Date.now(),resolve:t=>{e(t),Y.sender.cleanup(d),f?.dispose()},reject:e=>{t(e),Y.sender.cleanup(d),f?.dispose()}};try{$.set(d,s),await n.write(p),g&&i(ve,d)}catch(e){throw $.delete(d),s.reject(new l.ResponseError(l.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),r.error("Sending request failed."),e}})},onRequest:(e,t)=>{fe();let n=null;return y.is(e)?(n=void 0,T=e):u.string(e)?(n=null,void 0!==t&&(n=e,O.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,O.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?O.get(n)?.handler===t&&O.delete(n):T===e&&(T=void 0))}}},hasPendingResponse:()=>$.size>0,trace:async(e,t,n)=>{let i=!1,o=_.Text;void 0!==n&&(u.boolean(n)?i=n:(i=n.sendNotification||!1,o=n.traceFormat||_.Text)),U=e,z=o,A=U===v.Off?void 0:t,!i||ee()||te()||await ve.sendNotification(R.type,{value:v.toString(e)})},onError:B.event,onClose:K.event,onUnhandledNotification:G.event,onDispose:J.event,end:()=>{n.end()},dispose:()=>{if(te())return;V=M.Disposed,J.fire(void 0);const t=new l.ResponseError(l.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of $.values())e.reject(t);$=new Map,H=new Map,W=new Set,F=new d.LinkedMap,u.func(n.dispose)&&n.dispose(),u.func(e.dispose)&&e.dispose()},listen:()=>{fe(),function(){if(Z())throw new N(C.AlreadyListening,"Connection is already listening")}(),V=M.Listening,e.listen(se)},inspect:()=>{(0,c.default)().console.log("inspect")}};return ve.onNotification(D.type,e=>{if(U===v.Off||!A)return;const t=U===v.Verbose||U===v.Compact;A.log(e.message,t?e.verbose:void 0)}),ve.onNotification(m.type,async e=>{const t=I.get(e.token);t?await t(e.value):X.fire(e)}),ve};const c=a(n(9590)),u=s(n(8585)),l=n(6177),d=n(3352),f=n(2676),h=n(9850);var g,p,m,y,v,b,_,R,D,C,S,w,E,T,P,k,x,O,M;!function(e){e.type=new l.NotificationType("$/cancelRequest")}(g||(g={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(p||(t.ProgressToken=p={})),function(e){e.type=new l.NotificationType("$/progress")}(m||(m={})),t.ProgressType=class{__;_pr;constructor(){}},function(e){e.is=function(e){return u.func(e)}}(y||(y={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(v||(t.Trace=v={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(b||(t.TraceValue=b={})),t.TraceValues=b,function(e){e.fromString=function(t){if(!u.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(v||(t.Trace=v={})),function(e){e.Text="text",e.JSON="json"}(_||(t.TraceFormat=_={})),function(e){e.fromString=function(t){return u.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(_||(t.TraceFormat=_={})),function(e){e.type=new l.NotificationType("$/setTrace")}(R||(t.SetTraceNotification=R={})),function(e){e.type=new l.NotificationType("$/logTrace")}(D||(t.LogTraceNotification=D={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(C||(t.ConnectionErrors=C={}));class N extends Error{code;constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,N.prototype)}}t.ConnectionError=N,function(e){e.is=function(e){const t=e;return t&&u.func(t.cancelUndispatched)}}(S||(t.ConnectionStrategy=S={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&u.func(t.createCancellationTokenSource)&&(void 0===t.dispose||u.func(t.dispose))}}(w||(t.IdCancellationReceiverStrategy=w={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&u.func(t.createCancellationTokenSource)&&(void 0===t.dispose||u.func(t.dispose))}}(E||(t.RequestCancellationReceiverStrategy=E={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new h.CancellationTokenSource}),e.is=function(e){return w.is(e)||E.is(e)}}(T||(t.CancellationReceiverStrategy=T={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(g.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&u.func(t.sendCancellation)&&u.func(t.cleanup)}}(P||(t.CancellationSenderStrategy=P={})),function(e){e.Message=Object.freeze({receiver:T.Message,sender:P.Message}),e.is=function(e){const t=e;return t&&T.is(t.receiver)&&P.is(t.sender)}}(k||(t.CancellationStrategy=k={})),function(e){e.is=function(e){const t=e;return t&&u.func(t.handleMessage)}}(x||(t.MessageStrategy=x={})),function(e){e.is=function(e){const t=e;return t&&(k.is(t.cancellationStrategy)||S.is(t.connectionStrategy)||x.is(t.messageStrategy)||u.number(t.maxParallelism))}}(O||(t.ConnectionOptions=O={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(M||(M={}))},4019(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(n||(t.Disposable=n={}))},2676(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const o=i(n(9590));var r;!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));class s{_callbacks;_contexts;add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e){if(this._contexts[i]===t)return this._callbacks.splice(i,1),void this._contexts.splice(i,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let r=0,s=n.length;r<s;r++)try{t.push(n[r].apply(i[r],e))}catch(e){(0,o.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class a{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new s),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=a._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=a},8585(e,t){function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every(e=>n(e))}},3352(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n||(t.Touch=n={}));class i{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(e){const t=this._map.get(e);return t?t.previous?.value:void 0}after(e){const t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=n.None){const i=this._map.get(e);if(i)return t!==n.None&&this.touch(i,t),i.value}set(e,t,i=n.None){let o=this._map.get(e);if(o)o.value=t,i!==n.None&&this.touch(o,i);else{switch(o={key:e,value:t,next:void 0,previous:void 0},i){case n.None:this.addItemLast(o);break;case n.First:this.addItemFirst(o);break;case n.Last:default:this.addItemLast(o)}this._map.set(e,o),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=i,t.LRUCache=class extends i{_limit;_ratio;constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},9244(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{_encoding;_chunks;_totalLength;constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,i=0,o=0;e:for(;n<this._chunks.length;){const e=this._chunks[n];for(i=0;i<e.length;){switch(e[i]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,i++;break e;default:t=0}break;default:t=0}i++}o+=e.byteLength,n++}if(4!==t)return;const r=this._read(o+i),s=new Map,a=this.toString(r,"ascii").split("\r\n");if(a.length<2)return s;for(let t=0;t<a.length-2;t++){const n=a[t],i=n.indexOf(":");if(-1===i)throw new Error(`Message header must separate key and value using ':'\n${n}`);const o=n.substr(0,i),r=n.substr(i+1).trim();s.set(e?o.toLowerCase():o,r)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const i=this._chunks[0];if(i.byteLength>e){const o=i.slice(0,e);t.set(o,n),n+=e,this._chunks[0]=i.slice(e),this._totalLength-=e,e-=e}else t.set(i,n),n+=i.byteLength,this._chunks.shift(),this._totalLength-=i.byteLength,e-=i.byteLength}return t}}},9085(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const c=a(n(9590)),u=s(n(8585)),l=n(2676),d=n(4323);var f,h;!function(e){e.is=function(e){const t=e;return t&&u.func(t.listen)&&u.func(t.dispose)&&u.func(t.onError)&&u.func(t.onClose)&&u.func(t.onPartialMessage)}}(f||(t.MessageReader=f={}));class g{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter,this.partialMessageEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${u.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=g,function(e){e.fromOptions=function(e){let t,n;const i=new Map;let o;const r=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,i.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(o=e.contentTypeDecoder,r.set(o.name,o)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)r.set(t.name,t)}return void 0===o&&(o=(0,c.default)().applicationJson.decoder,r.set(o.name,o)),{charset:t,contentDecoder:n,contentDecoders:i,contentTypeDecoder:o,contentTypeDecoders:r}}}(h||(h={})),t.ReadableStreamMessageReader=class extends g{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,t){super(),this.readable=e,this.options=h.fromOptions(t),this.buffer=(0,c.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new d.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,c.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},3193(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const c=a(n(9590)),u=s(n(8585)),l=n(4323),d=n(2676);var f,h;!function(e){e.is=function(e){const t=e;return t&&u.func(t.dispose)&&u.func(t.onClose)&&u.func(t.onError)&&u.func(t.write)}}(f||(t.MessageWriter=f={}));class g{errorEmitter;closeEmitter;constructor(){this.errorEmitter=new d.Emitter,this.closeEmitter=new d.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${u.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=g,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,c.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,c.default)().applicationJson.encoder}}}(h||(h={})),t.WriteableStreamMessageWriter=class extends g{writable;options;errorCount;writeSemaphore;constructor(e,t){super(),this.writable=e,this.options=h.fromOptions(t),this.errorCount=0,this.writeSemaphore=new l.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},6177(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const a=s(n(8585));var c,u;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(c||(t.ErrorCodes=c={}));class l extends Error{code;data;constructor(e,t,n){super(t),this.code=a.number(e)?e:c.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,l.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=l;class d{kind;static auto=new d("auto");static byPosition=new d("byPosition");static byName=new d("byName");constructor(e){this.kind=e}static is(e){return e===d.auto||e===d.byName||e===d.byPosition}toString(){return this.kind}}t.ParameterStructures=d;class f{method;numberOfParams;constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return d.auto}}t.AbstractMessageSignature=f,t.RequestType0=class extends f{_;constructor(e){super(e,0)}},t.RequestType=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends f{_;constructor(e){super(e,2)}},t.RequestType3=class extends f{_;constructor(e){super(e,3)}},t.RequestType4=class extends f{_;constructor(e){super(e,4)}},t.RequestType5=class extends f{_;constructor(e){super(e,5)}},t.RequestType6=class extends f{_;constructor(e){super(e,6)}},t.RequestType7=class extends f{_;constructor(e){super(e,7)}},t.RequestType8=class extends f{_;constructor(e){super(e,8)}},t.RequestType9=class extends f{_;constructor(e){super(e,9)}},t.NotificationType=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends f{_;constructor(e){super(e,0)}},t.NotificationType1=class extends f{_parameterStructures;_;constructor(e,t=d.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends f{_;constructor(e){super(e,2)}},t.NotificationType3=class extends f{_;constructor(e){super(e,3)}},t.NotificationType4=class extends f{_;constructor(e){super(e,4)}},t.NotificationType5=class extends f{_;constructor(e){super(e,5)}},t.NotificationType6=class extends f{_;constructor(e){super(e,6)}},t.NotificationType7=class extends f{_;constructor(e){super(e,7)}},t.NotificationType8=class extends f{_;constructor(e){super(e,8)}},t.NotificationType9=class extends f{_;constructor(e){super(e,9)}},function(e){e.isRequest=function(e){const t=e;return t&&a.string(t.method)&&(a.string(t.id)||a.number(t.id))},e.isNotification=function(e){const t=e;return t&&a.string(t.method)&&void 0===e.id},e.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(a.string(t.id)||a.number(t.id)||null===t.id)}}(u||(t.Message=u={}))},9590(e,t){let n;function i(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(i||(i={})),t.default=i},4323(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const o=i(n(9590));t.Semaphore=class{_capacity;_active;_waiting;constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,o.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},4996(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const i=n(9850);var o;!function(e){e.Continue=0,e.Cancelled=1}(o||(o={})),t.SharedArraySenderStrategy=class{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=o.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const i=new Int32Array(n,0,1);Atomics.store(i,0,o.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class r{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===o.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class s{token;constructor(e){this.token=new r(e)}cancel(){}dispose(){}}t.SharedArrayReceiverStrategy=class{kind="request";createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new i.CancellationTokenSource:new s(t)}}},7123(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.PortMessageWriter=t.PortMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0,t.generateRandomPipeName=function(){if("win32"===process.platform)return`\\\\.\\pipe\\lsp-${(0,h.randomBytes)(16).toString("hex")}-sock`;let e=32;const t=f.realpathSync(S??d.tmpdir()),n=w.get(process.platform);if(void 0!==n&&(e=Math.min(n-t.length-9,e)),e<16)throw new Error(`Unable to generate a random pipe name with ${e} characters.`);const i=(0,h.randomBytes)(Math.floor(e/2)).toString("hex");return l.join(t,`lsp-${i}.sock`)},t.createClientPipeTransport=function(e,t="utf-8"){let n;const i=new Promise((e,t)=>{n=e});return new Promise((o,r)=>{const s=(0,g.createServer)(e=>{s.close(),n([new _(e,t),new R(e,t)])});s.on("error",r),s.listen(e,()=>{s.removeListener("error",r),o({onConnected:()=>i})})})},t.createServerPipeTransport=function(e,t="utf-8"){const n=(0,g.createConnection)(e);return[new _(n,t),new R(n,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let n;const i=new Promise((e,t)=>{n=e});return new Promise((o,r)=>{const s=(0,g.createServer)(e=>{s.close(),n([new _(e,t),new R(e,t)])});s.on("error",r),s.listen(e,"127.0.0.1",()=>{s.removeListener("error",r),o({onConnected:()=>i})})})},t.createServerSocketTransport=function(e,t="utf-8"){const n=(0,g.createConnection)(e,"127.0.0.1");return[new _(n,t),new R(n,t)]},t.createMessageConnection=function(e,t,n,i){n||(n=p.NullLogger);const o=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new D(e):e,r=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new C(t):t;return p.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,p.createMessageConnection)(o,r,n,i)};const u=c(n(9571));u.default.install();const l=s(n(6928)),d=s(n(857)),f=s(n(9896)),h=n(6982),g=n(9278),p=n(3281);a(n(3281),t);class m extends p.AbstractMessageReader{process;constructor(e){super(),this.process=e;const t=this.process;t.on("error",e=>this.fireError(e)),t.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),p.Disposable.create(()=>this.process.off("message",e))}}t.IPCMessageReader=m;class y extends p.AbstractMessageWriter{process;errorCount;constructor(e){super(),this.process=e,this.errorCount=0;const t=this.process;t.on("error",e=>this.fireError(e)),t.on("close",()=>this.fireClose)}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=y;class v extends p.AbstractMessageReader{onData;constructor(e){super(),this.onData=new p.Emitter,e.on("close",()=>this.fireClose),e.on("error",e=>this.fireError(e)),e.on("message",e=>{this.onData.fire(e)})}listen(e){return this.onData.event(e)}}t.PortMessageReader=v;class b extends p.AbstractMessageWriter{port;errorCount;constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.PortMessageWriter=b;class _ extends p.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,u.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=_;class R extends p.WriteableStreamMessageWriter{socket;constructor(e,t){super((0,u.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=R;class D extends p.ReadableStreamMessageReader{constructor(e,t){super((0,u.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=D;class C extends p.WriteableStreamMessageWriter{constructor(e,t){super((0,u.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=C;const S=process.env.XDG_RUNTIME_DIR,w=new Map([["linux",107],["darwin",103]])},9571(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});const i=n(9023),o=n(3281);class r extends o.AbstractMessageBuffer{static emptyBuffer=Buffer.allocUnsafe(0);constructor(e="utf-8"){super(e)}emptyBuffer(){return r.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new i.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}class s{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),o.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),o.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),o.Disposable.create(()=>this.stream.off("data",e))}}class a{stream;constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),o.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),o.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),o.Disposable.create(()=>this.stream.off("end",e))}write(e,t){return new Promise((n,i)=>{const o=e=>{null==e?n():i(e)};"string"==typeof e?this.stream.write(e,t,o):this.stream.write(e,o)})}end(){this.stream.end()}}const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new r(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new i.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new s(e),asWritableStream:e=>new a(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){const i=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const i=setInterval(e,t,...n);return{dispose:()=>clearInterval(i)}}})});function u(){return c}!function(e){e.install=function(){o.RAL.install(c)}}(u||(u={})),t.default=u},8766(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,o(n(3281),t),o(n(6203),t),o(n(372),t),o(n(1560),t);var r,s=n(1580);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(r||(t.LSPErrorCodes=r={}))},1580(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=function(e,t,n,o){return i.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,i.createMessageConnection)(e,t,n,o)};const i=n(3281)},372(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CM=t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const i=n(3281);var o,r;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(o||(t.MessageDirection=o={})),t.RegistrationType=class{____;method;constructor(e){this.method=e}};class s extends i.RequestType0{__;___;____;_pr;constructor(e){super(e)}}t.ProtocolRequestType0=s;class a extends i.RequestType{__;___;____;_pr;constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolRequestType=a;class c extends i.NotificationType0{___;____;constructor(e){super(e)}}t.ProtocolNotificationType0=c;class u extends i.NotificationType{___;____;constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolNotificationType=u,function(e){e.create=function(e,t){return{client:e,server:t}}}(r||(t.CM=r={}))},8765(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const i=n(372);var o,r,s;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.callHierarchy","callHierarchyProvider")}(o||(t.CallHierarchyPrepareRequest=o={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.CallHierarchyIncomingCallsRequest=r={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.CallHierarchyOutgoingCallsRequest=s={}))},7672(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const i=n(372);var o,r;!function(e){e.method="textDocument/documentColor",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.colorProvider","colorProvider")}(o||(t.DocumentColorRequest=o={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.colorProvider","colorProvider")}(r||(t.ColorPresentationRequest=r={}))},1660(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const i=n(372);var o;!function(e){e.method="workspace/configuration",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.configuration",void 0)}(o||(t.ConfigurationRequest=o={}))},6914(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/declaration",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.declaration","declarationProvider")}(o||(t.DeclarationRequest=o={}))},6011(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const a=n(3281),c=s(n(8598)),u=n(372);var l,d,f,h,g;!function(e){e.is=function(e){const t=e;return t&&c.boolean(t.retriggerRequest)}}(l||(t.DiagnosticServerCancellationData=l={})),function(e){e.Full="full",e.Unchanged="unchanged"}(d||(t.DocumentDiagnosticReportKind=d={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolRequestType(e.method),e.partialResult=new a.ProgressType,e.capabilities=u.CM.create("textDocument.diagnostic","diagnosticProvider")}(f||(t.DocumentDiagnosticRequest=f={})),function(e){e.method="workspace/diagnostic",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolRequestType(e.method),e.partialResult=new a.ProgressType,e.capabilities=u.CM.create("workspace.diagnostics","diagnosticProvider.workspaceDiagnostics")}(h||(t.WorkspaceDiagnosticRequest=h={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=u.MessageDirection.serverToClient,e.type=new u.ProtocolRequestType0(e.method),e.capabilities=u.CM.create("workspace.diagnostics.refreshSupport",void 0)}(g||(t.DiagnosticRefreshRequest=g={}))},9840(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const i=n(372);var o,r,s,a,c,u,l;!function(e){e.file="file",e.folder="folder"}(o||(t.FileOperationPatternKind=o={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")}(r||(t.WillCreateFilesRequest=r={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")}(s||(t.DidCreateFilesNotification=s={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")}(a||(t.WillRenameFilesRequest=a={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")}(c||(t.DidRenameFilesNotification=c={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")}(u||(t.DidDeleteFilesNotification=u={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")}(l||(t.WillDeleteFilesRequest=l={}))},2874(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;const i=n(372);var o,r;!function(e){e.method="textDocument/foldingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.foldingRange","foldingRangeProvider")}(o||(t.FoldingRangeRequest=o={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.foldingRange.refreshSupport",void 0)}(r||(t.FoldingRangeRefreshRequest=r={}))},9574(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/implementation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.implementation","implementationProvider")}(o||(t.ImplementationRequest=o={}))},7752(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const i=n(372);var o,r,s;!function(e){e.method="textDocument/inlayHint",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlayHint","inlayHintProvider")}(o||(t.InlayHintRequest=o={})),function(e){e.method="inlayHint/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")}(r||(t.InlayHintResolveRequest=r={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.inlayHint.refreshSupport",void 0)}(s||(t.InlayHintRefreshRequest=s={}))},3307(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlineCompletion","inlineCompletionProvider")}(o||(t.InlineCompletionRequest=o={}))},3124(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const i=n(372);var o,r;!function(e){e.method="textDocument/inlineValue",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.inlineValue","inlineValueProvider")}(o||(t.InlineValueRequest=o={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.inlineValue.refreshSupport",void 0)}(r||(t.InlineValueRefreshRequest=r={}))},1560(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.GlobPattern=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.RegularExpressionEngineKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=void 0,t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=void 0;const a=n(372),c=n(6203),u=s(n(8598)),l=n(9574);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return l.ImplementationRequest}});const d=n(8461);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return d.TypeDefinitionRequest}});const f=n(9935);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return f.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return f.DidChangeWorkspaceFoldersNotification}});const h=n(1660);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return h.ConfigurationRequest}});const g=n(7672);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return g.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return g.ColorPresentationRequest}});const p=n(2874);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return p.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return p.FoldingRangeRefreshRequest}});const m=n(6914);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return m.DeclarationRequest}});const y=n(3487);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return y.SelectionRangeRequest}});const v=n(2687);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return v.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return v.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return v.WorkDoneProgressCancelNotification}});const b=n(8765);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return b.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return b.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return b.CallHierarchyPrepareRequest}});const _=n(2478);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return _.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return _.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return _.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return _.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return _.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return _.SemanticTokensRegistrationType}});const R=n(908);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return R.ShowDocumentRequest}});const D=n(5316);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return D.LinkedEditingRangeRequest}});const C=n(9840);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return C.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return C.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return C.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return C.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return C.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return C.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return C.WillDeleteFilesRequest}});const S=n(9047);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return S.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return S.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return S.MonikerRequest}});const w=n(645);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return w.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return w.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return w.TypeHierarchySupertypesRequest}});const E=n(3124);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return E.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return E.InlineValueRefreshRequest}});const T=n(7752);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return T.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return T.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return T.InlayHintRefreshRequest}});const P=n(6011);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return P.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return P.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return P.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return P.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return P.DiagnosticRefreshRequest}});const k=n(3557);Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return k.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return k.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return k.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return k.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return k.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return k.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return k.DidCloseNotebookDocumentNotification}});const x=n(3307);Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return x.InlineCompletionRequest}});const O=n(4289);var M,N,q,L,I,j,A,F,$,W,H,U,z,V,B,K,G,X,J,Y,Q,Z,ee,te,ne,ie,oe,re,se,ae,ce,ue,le,de,fe,he,ge,pe,me,ye,ve,be,_e,Re,De,Ce,Se,we,Ee,Te,Pe,ke,xe,Oe,Me,Ne,qe,Le,Ie,je,Ae,Fe,$e,We,He,Ue,ze;Object.defineProperty(t,"TextDocumentContentRequest",{enumerable:!0,get:function(){return O.TextDocumentContentRequest}}),Object.defineProperty(t,"TextDocumentContentRefreshRequest",{enumerable:!0,get:function(){return O.TextDocumentContentRefreshRequest}}),function(e){e.is=function(e){const t=e;return u.string(t)||u.string(t.language)||u.string(t.scheme)||ge.is(t.pattern)}}(M||(t.TextDocumentFilter=M={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(u.string(t.notebookType)||u.string(t.scheme)||u.string(t.pattern))}}(N||(t.NotebookDocumentFilter=N={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(u.string(t.notebook)||N.is(t.notebook))&&(void 0===t.language||u.string(t.language))}}(q||(t.NotebookCellTextDocumentFilter=q={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(const t of e)if(!u.string(t)&&!M.is(t)&&!q.is(t))return!1;return!0}}(L||(t.DocumentSelector=L={})),function(e){e.method="client/registerCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(I||(t.RegistrationRequest=I={})),function(e){e.method="client/unregisterCapability",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method)}(j||(t.UnregistrationRequest=j={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(A||(t.ResourceOperationKind=A={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(F||(t.FailureHandlingKind=F={})),function(e){e.ES2020="ES2020"}($||(t.RegularExpressionEngineKind=$={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(W||(t.PositionEncodingKind=W={})),function(e){e.hasId=function(e){const t=e;return t&&u.string(t.id)&&t.id.length>0}}(H||(t.StaticRegistrationOptions=H={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||L.is(t.documentSelector))}}(U||(t.TextDocumentRegistrationOptions=U={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(void 0===t.workDoneProgress||u.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&u.boolean(t.workDoneProgress)}}(z||(t.WorkDoneProgressOptions=z={})),function(e){e.method="initialize",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method)}(V||(t.InitializeRequest=V={})),function(e){e.unknownProtocolVersion=1}(B||(t.InitializeErrorCodes=B={})),function(e){e.method="initialized",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method)}(K||(t.InitializedNotification=K={})),function(e){e.method="shutdown",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType0(e.method)}(G||(t.ShutdownRequest=G={})),function(e){e.method="exit",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType0(e.method)}(X||(t.ExitNotification=X={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeConfiguration",void 0)}(J||(t.DidChangeConfigurationNotification=J={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(Y||(t.MessageType=Y={})),function(e){e.method="window/showMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(Q||(t.ShowMessageNotification=Q={})),function(e){e.method="window/showMessageRequest",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("window.showMessage",void 0)}(Z||(t.ShowMessageRequest=Z={})),function(e){e.method="window/logMessage",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(ee||(t.LogMessageNotification=ee={})),function(e){e.method="telemetry/event",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method)}(te||(t.TelemetryEventNotification=te={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(ne||(t.TextDocumentSyncKind=ne={})),function(e){e.method="textDocument/didOpen",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(ie||(t.DidOpenTextDocumentNotification=ie={})),function(e){e.isIncremental=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(oe||(t.TextDocumentContentChangeEvent=oe={})),function(e){e.method="textDocument/didChange",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync")}(re||(t.DidChangeTextDocumentNotification=re={})),function(e){e.method="textDocument/didClose",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization","textDocumentSync.openClose")}(se||(t.DidCloseTextDocumentNotification=se={})),function(e){e.method="textDocument/didSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")}(ae||(t.DidSaveTextDocumentNotification=ae={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(ce||(t.TextDocumentSaveReason=ce={})),function(e){e.method="textDocument/willSave",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")}(ue||(t.WillSaveTextDocumentNotification=ue={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")}(le||(t.WillSaveTextDocumentWaitUntilRequest=le={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("workspace.didChangeWatchedFiles",void 0)}(de||(t.DidChangeWatchedFilesNotification=de={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(fe||(t.FileChangeType=fe={})),function(e){e.is=function(e){const t=e;return u.objectLiteral(t)&&(c.URI.is(t.baseUri)||c.WorkspaceFolder.is(t.baseUri))&&u.string(t.pattern)}}(he||(t.RelativePattern=he={})),function(e){e.is=function(e){const t=e;return u.string(t)||he.is(t)}}(ge||(t.GlobPattern=ge={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(pe||(t.WatchKind=pe={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolNotificationType(e.method),e.capabilities=a.CM.create("textDocument.publishDiagnostics",void 0)}(me||(t.PublishDiagnosticsNotification=me={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(ye||(t.CompletionTriggerKind=ye={})),function(e){e.method="textDocument/completion",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion","completionProvider")}(ve||(t.CompletionRequest=ve={})),function(e){e.method="completionItem/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")}(be||(t.CompletionResolveRequest=be={})),function(e){e.method="textDocument/hover",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.hover","hoverProvider")}(_e||(t.HoverRequest=_e={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(Re||(t.SignatureHelpTriggerKind=Re={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.signatureHelp","signatureHelpProvider")}(De||(t.SignatureHelpRequest=De={})),function(e){e.method="textDocument/definition",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.definition","definitionProvider")}(Ce||(t.DefinitionRequest=Ce={})),function(e){e.method="textDocument/references",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.references","referencesProvider")}(Se||(t.ReferencesRequest=Se={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentHighlight","documentHighlightProvider")}(we||(t.DocumentHighlightRequest=we={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentSymbol","documentSymbolProvider")}(Ee||(t.DocumentSymbolRequest=Ee={})),function(e){e.method="textDocument/codeAction",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction","codeActionProvider")}(Te||(t.CodeActionRequest=Te={})),function(e){e.method="codeAction/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")}(Pe||(t.CodeActionResolveRequest=Pe={})),function(e){e.method="workspace/symbol",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol","workspaceSymbolProvider")}(ke||(t.WorkspaceSymbolRequest=ke={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")}(xe||(t.WorkspaceSymbolResolveRequest=xe={})),function(e){e.method="textDocument/codeLens",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens","codeLensProvider")}(Oe||(t.CodeLensRequest=Oe={})),function(e){e.method="codeLens/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")}(Me||(t.CodeLensResolveRequest=Me={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType0(e.method),e.capabilities=a.CM.create("workspace.codeLens",void 0)}(Ne||(t.CodeLensRefreshRequest=Ne={})),function(e){e.method="textDocument/documentLink",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider")}(qe||(t.DocumentLinkRequest=qe={})),function(e){e.method="documentLink/resolve",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")}(Le||(t.DocumentLinkResolveRequest=Le={})),function(e){e.method="textDocument/formatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.formatting","documentFormattingProvider")}(Ie||(t.DocumentFormattingRequest=Ie={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")}(je||(t.DocumentRangeFormattingRequest=je={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")}(Ae||(t.DocumentRangesFormattingRequest=Ae={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")}(Fe||(t.DocumentOnTypeFormattingRequest=Fe={})),function(e){e.Identifier=1}($e||(t.PrepareSupportDefaultBehavior=$e={})),function(e){e.method="textDocument/rename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename","renameProvider")}(We||(t.RenameRequest=We={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")}(He||(t.PrepareRenameRequest=He={})),function(e){e.method="workspace/executeCommand",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.ProtocolRequestType(e.method),e.capabilities=a.CM.create("workspace.executeCommand","executeCommandProvider")}(Ue||(t.ExecuteCommandRequest=Ue={})),function(e){e.method="workspace/applyEdit",e.messageDirection=a.MessageDirection.serverToClient,e.type=new a.ProtocolRequestType("workspace/applyEdit"),e.capabilities=a.CM.create("workspace.applyEdit",void 0)}(ze||(t.ApplyWorkspaceEditRequest=ze={}))},5316(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")}(o||(t.LinkedEditingRangeRequest=o={}))},9047(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const i=n(372);var o,r,s;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(o||(t.UniquenessLevel=o={})),function(e){e.$import="import",e.$export="export",e.local="local"}(r||(t.MonikerKind=r={})),function(e){e.method="textDocument/moniker",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.moniker","monikerProvider")}(s||(t.MonikerRequest=s={}))},3557(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const a=n(6203),c=s(n(8598)),u=n(372);var l,d,f,h,g,p,m,y,v,b;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(l||(t.NotebookCellKind=l={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return c.objectLiteral(t)&&a.uinteger.is(t.executionOrder)&&(void 0===t.success||c.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(d||(t.ExecutionSummary=d={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const i=Array.isArray(e),o=Array.isArray(n);if(i!==o)return!1;if(i&&o){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(!t(e[i],n[i]))return!1}if(c.objectLiteral(e)&&c.objectLiteral(n)){const i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;if(i.sort(),o.sort(),!t(i,o))return!1;for(let o=0;o<i.length;o++){const r=i[o];if(!t(e[r],n[r]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return c.objectLiteral(t)&&l.is(t.kind)&&a.DocumentUri.is(t.document)&&(void 0===t.metadata||c.objectLiteral(t.metadata))},e.diff=function(e,n){const i=new Set;return e.document!==n.document&&i.add("document"),e.kind!==n.kind&&i.add("kind"),e.executionSummary!==n.executionSummary&&i.add("executionSummary"),void 0===e.metadata&&void 0===n.metadata||t(e.metadata,n.metadata)||i.add("metadata"),void 0===e.executionSummary&&void 0===n.executionSummary||d.equals(e.executionSummary,n.executionSummary)||i.add("executionSummary"),i}}(f||(t.NotebookCell=f={})),function(e){e.create=function(e,t,n,i){return{uri:e,notebookType:t,version:n,cells:i}},e.is=function(e){const t=e;return c.objectLiteral(t)&&c.string(t.uri)&&a.integer.is(t.version)&&c.typedArray(t.cells,f.is)}}(h||(t.NotebookDocument=h={})),function(e){e.method="notebookDocument/sync",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.RegistrationType(e.method)}(g||(t.NotebookDocumentSyncRegistrationType=g={})),function(e){e.method="notebookDocument/didOpen",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(p||(t.DidOpenNotebookDocumentNotification=p={})),function(e){e.is=function(e){const t=e;return c.objectLiteral(t)&&a.uinteger.is(t.start)&&a.uinteger.is(t.deleteCount)&&(void 0===t.cells||c.typedArray(t.cells,f.is))},e.create=function(e,t,n){const i={start:e,deleteCount:t};return void 0!==n&&(i.cells=n),i}}(m||(t.NotebookCellArrayChange=m={})),function(e){e.method="notebookDocument/didChange",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(y||(t.DidChangeNotebookDocumentNotification=y={})),function(e){e.method="notebookDocument/didSave",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(v||(t.DidSaveNotebookDocumentNotification=v={})),function(e){e.method="notebookDocument/didClose",e.messageDirection=u.MessageDirection.clientToServer,e.type=new u.ProtocolNotificationType(e.method),e.registrationMethod=g.method}(b||(t.DidCloseNotebookDocumentNotification=b={}))},2687(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const i=n(3281),o=n(372);var r,s,a;!function(e){e.type=new i.ProgressType,e.is=function(t){return t===e.type}}(r||(t.WorkDoneProgress=r={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=o.MessageDirection.serverToClient,e.type=new o.ProtocolRequestType(e.method),e.capabilities=o.CM.create("window.workDoneProgress",void 0)}(s||(t.WorkDoneProgressCreateRequest=s={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolNotificationType(e.method)}(a||(t.WorkDoneProgressCancelNotification=a={}))},3487(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/selectionRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.selectionRange","selectionRangeProvider")}(o||(t.SelectionRangeRequest=o={}))},2478(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const i=n(372);var o,r,s,a,c,u;!function(e){e.Relative="relative"}(o||(t.TokenFormat=o={})),function(e){e.method="textDocument/semanticTokens",e.type=new i.RegistrationType(e.method)}(r||(t.SemanticTokensRegistrationType=r={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=i.CM.create("textDocument.semanticTokens","semanticTokensProvider")}(s||(t.SemanticTokensRequest=s={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=i.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")}(a||(t.SemanticTokensDeltaRequest=a={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=r.method,e.capabilities=i.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")}(c||(t.SemanticTokensRangeRequest=c={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.semanticTokens.refreshSupport",void 0)}(u||(t.SemanticTokensRefreshRequest=u={}))},908(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const i=n(372);var o;!function(e){e.method="window/showDocument",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("window.showDocument.support",void 0)}(o||(t.ShowDocumentRequest=o={}))},4289(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocumentContentRefreshRequest=t.TextDocumentContentRequest=void 0;const i=n(372);var o,r;!function(e){e.method="workspace/textDocumentContent",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("workspace.textDocumentContent","workspace.textDocumentContent")}(o||(t.TextDocumentContentRequest=o={})),function(e){e.method="workspace/textDocumentContent/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TextDocumentContentRefreshRequest=r={}))},8461(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const i=n(372);var o;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.typeDefinition","typeDefinitionProvider")}(o||(t.TypeDefinitionRequest=o={}))},645(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const i=n(372);var o,r,s;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.capabilities=i.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")}(o||(t.TypeHierarchyPrepareRequest=o={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TypeHierarchySupertypesRequest=r={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.TypeHierarchySubtypesRequest=s={}))},9935(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const i=n(372);var o,r;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method),e.capabilities=i.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")}(o||(t.WorkspaceFoldersRequest=o={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method),e.capabilities=i.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")}(r||(t.DidChangeWorkspaceFoldersNotification=r={}))},8598(e,t){function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every(e=>n(e))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},7354(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=function(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)};const r=n(7123);o(n(7123),t),o(n(8766),t)},2861(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.NotebookDocuments=t.TextDocuments=t.SemanticTokensBuilder=void 0;const c=n(2655);Object.defineProperty(t,"SemanticTokensBuilder",{enumerable:!0,get:function(){return c.SemanticTokensBuilder}});const u=s(n(1276)),l=s(n(9202));a(n(8766),t);const d=n(1662);Object.defineProperty(t,"TextDocuments",{enumerable:!0,get:function(){return d.TextDocuments}});const f=n(20);var h;Object.defineProperty(t,"NotebookDocuments",{enumerable:!0,get:function(){return f.NotebookDocuments}}),a(n(7874),t),function(e){e.all={__brand:"features",workspace:l.TextDocumentContentFeature,languages:u.InlineCompletionFeature}}(h||(t.ProposedFeatures=h={}))},3918(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const i=n(8766);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(i.CallHierarchyPrepareRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)),onIncomingCalls:e=>{const t=i.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))},onOutgoingCalls:e=>{const t=i.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))}}}}},8491(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const a=n(8766),c=s(n(8867));t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?c.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){const t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(a.ConfigurationRequest.type,t).then(t=>Array.isArray(t)?Array.isArray(e)?t:t[0]:Array.isArray(e)?[]:null)}}},493(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=void 0;const i=n(8766);t.DiagnosticFeature=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(i.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(i.DocumentDiagnosticRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(i.DocumentDiagnosticRequest.partialResult,t))),onWorkspace:e=>this.connection.onRequest(i.WorkspaceDiagnosticRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(i.WorkspaceDiagnosticRequest.partialResult,t)))}}}},2697(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const i=n(8766);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){return this.connection.onNotification(i.DidCreateFilesNotification.type,t=>e(t))}onDidRenameFiles(e){return this.connection.onNotification(i.DidRenameFilesNotification.type,t=>e(t))}onDidDeleteFiles(e){return this.connection.onNotification(i.DidDeleteFilesNotification.type,t=>e(t))}onWillCreateFiles(e){return this.connection.onRequest(i.WillCreateFilesRequest.type,(t,n)=>e(t,n))}onWillRenameFiles(e){return this.connection.onRequest(i.WillRenameFilesRequest.type,(t,n)=>e(t,n))}onWillDeleteFiles(e){return this.connection.onRequest(i.WillDeleteFilesRequest.type,(t,n)=>e(t,n))}}},6007(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeFeature=void 0;const i=n(8766);t.FoldingRangeFeature=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(i.FoldingRangeRefreshRequest.type),on:e=>{const t=i.FoldingRangeRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))}}}}},4635(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintFeature=void 0;const i=n(8766);t.InlayHintFeature=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(i.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(i.InlayHintRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t))),resolve:e=>this.connection.onRequest(i.InlayHintResolveRequest.type,(t,n)=>e(t,n))}}}},1276(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionFeature=void 0;const i=n(8766);t.InlineCompletionFeature=e=>class extends e{get inlineCompletion(){return{on:e=>this.connection.onRequest(i.InlineCompletionRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t)))}}}},1815(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const i=n(8766);t.InlineValueFeature=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(i.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(i.InlineValueRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t)))}}}},8517(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const i=n(8766);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){return this.connection.onRequest(i.LinkedEditingRangeRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))}}},2936(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const i=n(8766);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=i.MonikerRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))}}}}},20(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocuments=t.NotebookSyncFeature=void 0;const i=n(8766),o=n(1662);t.NotebookSyncFeature=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(i.DidOpenNotebookDocumentNotification.type,t=>e(t)),onDidChangeNotebookDocument:e=>this.connection.onNotification(i.DidChangeNotebookDocumentNotification.type,t=>e(t)),onDidSaveNotebookDocument:e=>this.connection.onNotification(i.DidSaveNotebookDocumentNotification.type,t=>e(t)),onDidCloseNotebookDocument:e=>this.connection.onNotification(i.DidCloseNotebookDocumentNotification.type,t=>e(t))}}};class r{static NULL_DISPOSE=Object.freeze({dispose:()=>{}});openHandler;changeHandler;closeHandler;onDidOpenTextDocument(e){return this.openHandler=e,i.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){return this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,i.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){return this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,i.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){return this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return r.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return r.NULL_DISPOSE}onDidSaveTextDocument(){return r.NULL_DISPOSE}}t.NotebookDocuments=class{notebookDocuments;notebookCellMap;_onDidOpen;_onDidSave;_onDidChange;_onDidClose;_cellTextDocuments;constructor(e){e instanceof o.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new o.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new i.Emitter,this._onDidChange=new i.Emitter,this._onDidSave=new i.Emitter,this._onDidClose=new i.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){const t=this.notebookCellMap.get(e);return t&&t[0]}findNotebookDocumentForCell(e){const t="string"==typeof e?e:e.document,n=this.notebookCellMap.get(t);return n&&n[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){const t=new r,n=[];return n.push(this.cellTextDocuments.listen(t)),n.push(e.notebooks.synchronization.onDidOpenNotebookDocument(async e=>{this.notebookDocuments.set(e.notebookDocument.uri,e.notebookDocument);for(const n of e.cellTextDocuments)await t.openTextDocument({textDocument:n});this.updateCellMap(e.notebookDocument),this._onDidOpen.fire(e.notebookDocument)})),n.push(e.notebooks.synchronization.onDidChangeNotebookDocument(async e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0===n)return;n.version=e.notebookDocument.version;const i=n.metadata;let o=!1;const r=e.change;void 0!==r.metadata&&(o=!0,n.metadata=r.metadata);const s=[],a=[],c=[],u=[];if(void 0!==r.cells){const e=r.cells;if(void 0!==e.structure){const i=e.structure.array;if(n.cells.splice(i.start,i.deleteCount,...void 0!==i.cells?i.cells:[]),void 0!==e.structure.didOpen)for(const n of e.structure.didOpen)await t.openTextDocument({textDocument:n}),s.push(n.uri);if(e.structure.didClose)for(const n of e.structure.didClose)await t.closeTextDocument({textDocument:n}),a.push(n.uri)}if(void 0!==e.data){const t=new Map(e.data.map(e=>[e.document,e]));for(let e=0;e<=n.cells.length;e++){const i=t.get(n.cells[e].document);if(void 0!==i){const o=n.cells.splice(e,1,i);if(c.push({old:o[0],new:i}),t.delete(i.document),0===t.size)break}}}if(void 0!==e.textContent)for(const n of e.textContent)await t.changeTextDocument({textDocument:n.document,contentChanges:n.changes}),u.push(n.document.uri)}this.updateCellMap(n);const l={notebookDocument:n};o&&(l.metadata={old:i,new:n.metadata});const d=[];for(const e of s)d.push(this.getNotebookCell(e));const f=[];for(const e of a)f.push(this.getNotebookCell(e));const h=[];for(const e of u)h.push(this.getNotebookCell(e));(d.length>0||f.length>0||c.length>0||h.length>0)&&(l.cells={added:d,removed:f,changed:{data:c,textContent:h}}),void 0===l.metadata&&void 0===l.cells||this._onDidChange.fire(l)})),n.push(e.notebooks.synchronization.onDidSaveNotebookDocument(e=>{const t=this.notebookDocuments.get(e.notebookDocument.uri);void 0!==t&&this._onDidSave.fire(t)})),n.push(e.notebooks.synchronization.onDidCloseNotebookDocument(async e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0!==n){this._onDidClose.fire(n);for(const n of e.cellTextDocuments)await t.closeTextDocument({textDocument:n});this.notebookDocuments.delete(e.notebookDocument.uri);for(const e of n.cells)this.notebookCellMap.delete(e.document)}})),i.Disposable.create(()=>{n.forEach(e=>e.dispose())})}updateCellMap(e){for(const t of e.cells)this.notebookCellMap.set(t.document,[t,e])}}},2938(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFeature=void 0,t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new a;const n=t.workDoneToken;return delete t.workDoneToken,new r(e,n)},t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new l(e,n)};const i=n(8766),o=n(6116);class r{_connection;_token;static Instances=new Map;constructor(e,t){this._connection=e,this._token=t,r.Instances.set(this._token,this)}begin(e,t,n,o){const r={kind:"begin",title:e,message:n,cancellable:o};"number"==typeof t&&(r.percentage=Math.round(t)),this._connection.sendProgress(i.WorkDoneProgress.type,this._token,r)}report(e,t){const n={kind:"report"};"number"==typeof e?(n.percentage=Math.round(e),void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(i.WorkDoneProgress.type,this._token,n)}done(){r.Instances.delete(this._token),this._connection.sendProgress(i.WorkDoneProgress.type,this._token,{kind:"end"})}}class s extends r{_source;constructor(e,t){super(e,t),this._source=new i.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class a{constructor(){}begin(){}report(){}done(){}}class c extends a{_source;constructor(){super(),this._source=new i.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var u;t.ProgressFeature=e=>class extends e{_progressSupported;constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),!0===e?.window?.workDoneProgress&&(this._progressSupported=!0,this.connection.onNotification(i.WorkDoneProgressCancelNotification.type,e=>{const t=r.Instances.get(e.token);(t instanceof s||t instanceof c)&&t.cancel()}))}attachWorkDoneProgress(e){return void 0===e?new a:new r(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=(0,o.generateUuid)();return this.connection.sendRequest(i.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new s(this.connection,e))}return Promise.resolve(new c)}},function(e){e.type=new i.ProgressType}(u||(u={}));class l{_connection;_token;constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(u.type,this._token,e)}}},2655(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensDiff=t.SemanticTokensFeature=void 0;const i=n(8766);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(i.SemanticTokensRefreshRequest.type),on:e=>{const t=i.SemanticTokensRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))},onDelta:e=>{const t=i.SemanticTokensDeltaRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))},onRange:e=>{const t=i.SemanticTokensRangeRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))}}}};class o{originalSequence;modifiedSequence;constructor(e,t){this.originalSequence=e,this.modifiedSequence=t}computeDiff(){const e=this.originalSequence.length,t=this.modifiedSequence.length;let n=0;for(;n<t&&n<e&&this.originalSequence[n]===this.modifiedSequence[n];)n++;if(n<t&&n<e){let i=e-1,o=t-1;for(;i>=n&&o>=n&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<n||o<n)&&(i++,o++);const r=i-n+1,s=this.modifiedSequence.slice(n,o+1);return 1===s.length&&s[0]===this.originalSequence[i]?[{start:n,deleteCount:r-1}]:[{start:n,deleteCount:r,data:s}]}return n<t?[{start:n,deleteCount:0,data:this.modifiedSequence.slice(n)}]:n<e?[{start:n,deleteCount:e-n}]:[]}}t.SemanticTokensDiff=o;class r{_id;_prevLine;_prevChar;_dataIsSortedAndDeltaEncoded;_data;_dataNonDelta;_dataLen;_prevData;constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataNonDelta=[],this._dataLen=0,this._dataIsSortedAndDeltaEncoded=!0}push(e,t,n,i,o){this._dataIsSortedAndDeltaEncoded&&(e<this._prevLine||e===this._prevLine&&t<this._prevChar)&&(this._dataIsSortedAndDeltaEncoded=!1,this._dataNonDelta=r._deltaDecode(this._data));let s=e,a=t;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(s-=this._prevLine,0===s&&(a-=this._prevChar));const c=this._dataIsSortedAndDeltaEncoded?this._data:this._dataNonDelta;c[this._dataLen++]=s,c[this._dataLen++]=a,c[this._dataLen++]=n,c[this._dataLen++]=i,c[this._dataLen++]=o,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}static _deltaDecode(e){const t=e.length/5|0;let n=0,i=0;const o=[];for(let r=0;r<t;r++){const t=5*r;let s=e[t],a=e[t+1];0===s?(s=n,a+=i):s+=n;const c=e[t+2],u=e[t+3],l=e[t+4];o[t+0]=s,o[t+1]=a,o[t+2]=c,o[t+3]=u,o[t+4]=l,n=s,i=a}return o}static _sortAndDeltaEncode(e){const t=[],n=e.length/5|0;for(let e=0;e<n;e++)t[e]=e;t.sort((t,n)=>{const i=e[5*t],o=e[5*n];return i===o?e[5*t+1]-e[5*n+1]:i-o});const i=[];let o=0,r=0;for(let s=0;s<n;s++){const n=5*t[s],a=e[n+0],c=e[n+1],u=e[n+2],l=e[n+3],d=e[n+4],f=a-o,h=0===f?c-r:c,g=5*s;i[g+0]=f,i[g+1]=h,i[g+2]=u,i[g+3]=l,i[g+4]=d,o=a,r=c}return i}getFinalDataDelta(){return this._dataIsSortedAndDeltaEncoded?this._data:r._sortAndDeltaEncode(this._dataNonDelta)}previousResult(e){this.id===e&&(this._prevData=this.getFinalDataDelta()),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this.getFinalDataDelta()}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){return void 0!==this._prevData?{resultId:this.id,edits:new o(this._prevData,this.getFinalDataDelta()).computeDiff()}:this.build()}}t.SemanticTokensBuilder=r},7874(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t._NotebooksImpl=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=void 0,t.combineConsoleFeatures=$,t.combineTelemetryFeatures=W,t.combineTracerFeatures=H,t.combineClientFeatures=U,t.combineWindowFeatures=z,t.combineWorkspaceFeatures=V,t.combineLanguagesFeatures=B,t.combineNotebooksFeatures=K,t.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,$),tracer:n(e.tracer,t.tracer,H),telemetry:n(e.telemetry,t.telemetry,W),client:n(e.client,t.client,U),window:n(e.window,t.window,z),workspace:n(e.workspace,t.workspace,V),languages:n(e.languages,t.languages,B),notebooks:n(e.notebooks,t.notebooks,K)}},t.createConnection=function(e,t,n){const i=n&&n.console?new(n.console(E)):new E,o=e(i);i.rawAttach(o);const r=n&&n.tracer?new(n.tracer(q)):new q,s=n&&n.telemetry?new(n.telemetry(L)):new L,u=n&&n.client?new(n.client(M)):new M,d=n&&n.window?new(n.window(T)):new T,f=n&&n.workspace?new(n.workspace(N)):new N,h=n&&n.languages?new(n.languages(j)):new j,g=n&&n.notebooks?new(n.notebooks(F)):new F,p=[i,r,s,u,d,f,h,g];let m,y,v;const b={listen:()=>o.listen(),sendRequest:(e,...t)=>o.sendRequest(c.string(e)?e:e.method,...t),onRequest:(e,t)=>o.onRequest(e,t),sendNotification:(e,t)=>{const n=c.string(e)?e:e.method;return o.sendNotification(n,t)},onNotification:(e,t)=>o.onNotification(e,t),onProgress:o.onProgress,sendProgress:o.sendProgress,onInitialize:e=>(y=e,{dispose:()=>{y=void 0}}),onInitialized:e=>o.onNotification(a.InitializedNotification.type,e),onShutdown:e=>(m=e,{dispose:()=>{m=void 0}}),onExit:e=>(v=e,{dispose:()=>{v=void 0}}),get console(){return i},get telemetry(){return s},get tracer(){return r},get client(){return u},get window(){return d},get workspace(){return f},get languages(){return h},get notebooks(){return g},onDidChangeConfiguration:e=>o.onNotification(a.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>o.onNotification(a.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>o.onNotification(a.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>o.onNotification(a.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>o.onNotification(a.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>o.onNotification(a.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>o.onRequest(a.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>o.onNotification(a.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>o.sendNotification(a.PublishDiagnosticsNotification.type,e),onHover:e=>o.onRequest(a.HoverRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0)),onCompletion:e=>o.onRequest(a.CompletionRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onCompletionResolve:e=>o.onRequest(a.CompletionResolveRequest.type,e),onSignatureHelp:e=>o.onRequest(a.SignatureHelpRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0)),onDeclaration:e=>o.onRequest(a.DeclarationRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onDefinition:e=>o.onRequest(a.DefinitionRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onTypeDefinition:e=>o.onRequest(a.TypeDefinitionRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onImplementation:e=>o.onRequest(a.ImplementationRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onReferences:e=>o.onRequest(a.ReferencesRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onDocumentHighlight:e=>o.onRequest(a.DocumentHighlightRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onDocumentSymbol:e=>o.onRequest(a.DocumentSymbolRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onWorkspaceSymbol:e=>o.onRequest(a.WorkspaceSymbolRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onWorkspaceSymbolResolve:e=>o.onRequest(a.WorkspaceSymbolResolveRequest.type,e),onCodeAction:e=>o.onRequest(a.CodeActionRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onCodeActionResolve:e=>o.onRequest(a.CodeActionResolveRequest.type,(t,n)=>e(t,n)),onCodeLens:e=>o.onRequest(a.CodeLensRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onCodeLensResolve:e=>o.onRequest(a.CodeLensResolveRequest.type,(t,n)=>e(t,n)),onDocumentFormatting:e=>o.onRequest(a.DocumentFormattingRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0)),onDocumentRangeFormatting:e=>o.onRequest(a.DocumentRangeFormattingRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0)),onDocumentOnTypeFormatting:e=>o.onRequest(a.DocumentOnTypeFormattingRequest.type,(t,n)=>e(t,n)),onRenameRequest:e=>o.onRequest(a.RenameRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0)),onPrepareRename:e=>o.onRequest(a.PrepareRenameRequest.type,(t,n)=>e(t,n)),onDocumentLinks:e=>o.onRequest(a.DocumentLinkRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onDocumentLinkResolve:e=>o.onRequest(a.DocumentLinkResolveRequest.type,(t,n)=>e(t,n)),onDocumentColor:e=>o.onRequest(a.DocumentColorRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onColorPresentation:e=>o.onRequest(a.ColorPresentationRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onFoldingRanges:e=>o.onRequest(a.FoldingRangeRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onSelectionRanges:e=>o.onRequest(a.SelectionRangeRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),(0,l.attachPartialResult)(o,t))),onExecuteCommand:e=>o.onRequest(a.ExecuteCommandRequest.type,(t,n)=>e(t,n,(0,l.attachWorkDone)(o,t),void 0)),dispose:()=>o.dispose()};for(const e of p)e.attach(b);return o.onRequest(a.InitializeRequest.type,e=>{t.initialize(e),c.string(e.trace)&&(r.trace=a.Trace.fromString(e.trace));for(const t of p)t.initialize(e.capabilities);if(y){const t=y(e,(new a.CancellationTokenSource).token,(0,l.attachWorkDone)(o,e),void 0);return(n=t,n instanceof Promise?n:c.thenable(n)?new Promise((e,t)=>{n.then(t=>e(t),e=>t(e))}):Promise.resolve(n)).then(e=>{if(e instanceof a.ResponseError)return e;let t=e;t||(t={capabilities:{}});let n=t.capabilities;n||(n={},t.capabilities=n),void 0===n.textDocumentSync||null===n.textDocumentSync?n.textDocumentSync=c.number(b.__textDocumentSync)?b.__textDocumentSync:a.TextDocumentSyncKind.None:c.number(n.textDocumentSync)||c.number(n.textDocumentSync.change)||(n.textDocumentSync.change=c.number(b.__textDocumentSync)?b.__textDocumentSync:a.TextDocumentSyncKind.None);for(const e of p)e.fillServerCapabilities(n);return t})}{const e={capabilities:{textDocumentSync:a.TextDocumentSyncKind.None}};for(const t of p)t.fillServerCapabilities(e.capabilities);return e}var n}),o.onRequest(a.ShutdownRequest.type,()=>(t.shutdownReceived=!0,m?m((new a.CancellationTokenSource).token):void 0)),o.onNotification(a.ExitNotification.type,()=>{try{if(v)return v()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),o.onNotification(a.SetTraceNotification.type,e=>{r.trace=a.Trace.fromString(e.value)}),b};const a=n(8766),c=s(n(8867)),u=s(n(6116)),l=n(2938),d=n(8491),f=n(2112),h=n(3918),g=n(2655),p=n(8817),m=n(2697),y=n(8517),v=n(5026),b=n(1815),_=n(6007),R=n(4635),D=n(493),C=n(20),S=n(2936);function w(e){if(null!==e)return e}t.ErrorMessageTracker=class{_messages;constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach(t=>{e.window.showErrorMessage(t)})}};class E{_rawConnection;_connection;constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(a.MessageType.Error,e)}warn(e){this.send(a.MessageType.Warning,e)}info(e){this.send(a.MessageType.Info,e)}log(e){this.send(a.MessageType.Log,e)}debug(e){this.send(a.MessageType.Debug,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(a.LogMessageNotification.type,{type:e,message:t}).catch(()=>{(0,a.RAL)().console.error("Sending log message failed")})}}const T=(0,p.ShowDocumentFeature)((0,l.ProgressFeature)(class{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){const n={type:a.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(a.ShowMessageRequest.type,n).then(w)}showWarningMessage(e,...t){const n={type:a.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(a.ShowMessageRequest.type,n).then(w)}showInformationMessage(e,...t){const n={type:a.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(a.ShowMessageRequest.type,n).then(w)}}));var P,k;!function(e){e.create=function(){return new x}}(P||(t.BulkRegistration=P={}));class x{_registrations=[];_registered=new Set;add(e,t){const n=c.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);const i=u.generateUuid();this._registrations.push({id:i,method:n,registerOptions:t||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}}!function(e){e.create=function(){return new O(void 0,[])}}(k||(t.BulkUnregistration=k={}));class O{_connection;_unregistrations=new Map;constructor(e,t){this._connection=e,t.forEach(e=>{this._unregistrations.set(e.method,e)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){const e=[];for(const t of this._unregistrations.values())e.push(t);const t={unregisterations:e};this._connection.sendRequest(a.UnregistrationRequest.type,t).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){const t=c.string(e)?e:e.method,n=this._unregistrations.get(t);if(!n)return!1;const i={unregisterations:[n]};return this._connection.sendRequest(a.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(t)},e=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)}),!0}}class M{_connection;attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof x?this.registerMany(e):e instanceof O?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,t,n){const i=c.string(t)?t:t.method,o=u.generateUuid(),r={registrations:[{id:o,method:i,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(a.RegistrationRequest.type,r).then(t=>(e.add({id:o,method:i}),e),e=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(e)))}registerSingle2(e,t){const n=c.string(e)?e:e.method,i=u.generateUuid(),o={registrations:[{id:i,method:n,registerOptions:t||{}}]};return this.connection.sendRequest(a.RegistrationRequest.type,o).then(e=>a.Disposable.create(()=>{this.unregisterSingle(i,n).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),e=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(e)))}unregisterSingle(e,t){const n={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(a.UnregistrationRequest.type,n).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){const t=e.asRegistrationParams();return this.connection.sendRequest(a.RegistrationRequest.type,t).then(()=>new O(this._connection,t.registrations.map(e=>({id:e.id,method:e.method}))),e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e)))}}const N=(0,m.FileOperationsFeature)((0,f.WorkspaceFoldersFeature)((0,d.ConfigurationFeature)(class{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){const t=(n=e)&&n.edit?e:{edit:e};var n;return this.connection.sendRequest(a.ApplyWorkspaceEditRequest.type,t)}})));class q{_trace;_connection;constructor(){this._trace=a.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==a.Trace.Off&&this.connection.sendNotification(a.LogTraceNotification.type,{message:e,verbose:this._trace===a.Trace.Verbose?t:void 0}).catch(()=>{})}}class L{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(a.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}}class I{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,l.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,l.attachPartialResult)(this.connection,t)}}t._LanguagesImpl=I;const j=(0,_.FoldingRangeFeature)((0,S.MonikerFeature)((0,D.DiagnosticFeature)((0,R.InlayHintFeature)((0,b.InlineValueFeature)((0,v.TypeHierarchyFeature)((0,y.LinkedEditingRangeFeature)((0,g.SemanticTokensFeature)((0,h.CallHierarchyFeature)(I)))))))));class A{_connection;constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,l.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,l.attachPartialResult)(this.connection,t)}}t._NotebooksImpl=A;const F=(0,C.NotebookSyncFeature)(A);function $(e,t){return function(n){return t(e(n))}}function W(e,t){return function(n){return t(e(n))}}function H(e,t){return function(n){return t(e(n))}}function U(e,t){return function(n){return t(e(n))}}function z(e,t){return function(n){return t(e(n))}}function V(e,t){return function(n){return t(e(n))}}function B(e,t){return function(n){return t(e(n))}}function K(e,t){return function(n){return t(e(n))}}},8817(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const i=n(8766);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(i.ShowDocumentRequest.type,e)}}},9202(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocumentContentFeature=void 0;const i=n(8766);t.TextDocumentContentFeature=e=>class extends e{get textDocumentContent(){return{refresh:e=>this.connection.sendRequest(i.TextDocumentContentRefreshRequest.type,{uri:e}),on:e=>this.connection.onRequest(i.TextDocumentContentRequest.type,(t,n)=>e(t,n))}}}},1662(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocuments=void 0;const i=n(8766);t.TextDocuments=class{_configuration;_syncedDocuments;_onDidChangeContent;_onDidOpen;_onDidClose;_onDidSave;_onWillSave;_willSaveWaitUntil;constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new i.Emitter,this._onDidOpen=new i.Emitter,this._onDidClose=new i.Emitter,this._onDidSave=new i.Emitter,this._onWillSave=new i.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=i.TextDocumentSyncKind.Incremental;const t=[];return t.push(e.onDidOpenTextDocument(e=>{const t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._syncedDocuments.set(t.uri,n);const i=Object.freeze({document:n});this._onDidOpen.fire(i),this._onDidChangeContent.fire(i)})),t.push(e.onDidChangeTextDocument(e=>{const t=e.textDocument,n=e.contentChanges;if(0===n.length)return;const{version:i}=t;if(null==i)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);let o=this._syncedDocuments.get(t.uri);void 0!==o&&(o=this._configuration.update(o,n,i),this._syncedDocuments.set(t.uri,o),this._onDidChangeContent.fire(Object.freeze({document:o})))})),t.push(e.onDidCloseTextDocument(e=>{const t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&(this._syncedDocuments.delete(e.textDocument.uri),this._onDidClose.fire(Object.freeze({document:t})))})),t.push(e.onWillSaveTextDocument(e=>{const t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))})),t.push(e.onWillSaveTextDocumentWaitUntil((e,t)=>{const n=this._syncedDocuments.get(e.textDocument.uri);return void 0!==n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]})),t.push(e.onDidSaveTextDocument(e=>{const t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onDidSave.fire(Object.freeze({document:t}))})),i.Disposable.create(()=>{t.forEach(e=>e.dispose())})}}},5026(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const i=n(8766);t.TypeHierarchyFeature=e=>class extends e{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(i.TypeHierarchyPrepareRequest.type,(t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)),onSupertypes:e=>{const t=i.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))},onSubtypes:e=>{const t=i.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(t,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n)))}}}}},8867(e,t){function n(e){return"string"==typeof e||e instanceof String}function i(e){return"function"==typeof e}function o(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=i,t.array=o,t.stringArray=function(e){return o(e)&&e.every(e=>n(e))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&i(e.then)}},6116(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.empty=void 0,t.v4=o,t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return o().asHex()};class n{_value;constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class i extends n{static _chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];static _timeHighBits=["8","9","a","b"];static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return i._oneOf(i._chars)}constructor(){super([i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-","4",i._randomHex(),i._randomHex(),i._randomHex(),"-",i._oneOf(i._timeHighBits),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex()].join(""))}}function o(){return new i}t.empty=new n("00000000-0000-0000-0000-000000000000");const r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return r.test(e)}},2112(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const i=n(8766);t.WorkspaceFoldersFeature=e=>class extends e{_onDidChangeWorkspaceFolders;_unregistration;_notificationIsAutoRegistered;constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);const t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new i.Emitter,this.connection.onNotification(i.DidChangeWorkspaceFoldersNotification.type,e=>{this._onDidChangeWorkspaceFolders.fire(e.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);const t=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=!0===t||"string"==typeof t}getWorkspaceFolders(){return this.connection.sendRequest(i.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._notificationIsAutoRegistered||this._unregistration||(this._unregistration=this.connection.client.register(i.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},3911(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystem=void 0,t.uriToFilePath=function(e){const t=a.parse(e);if("file:"!==t.protocol||!t.path)return;const n=t.path.split("/");for(let e=0,t=n.length;e<t;e++)n[e]=decodeURIComponent(n[e]);if("win32"===process.platform&&n.length>1){const e=n[0],t=n[1];0===e.length&&t.length>1&&":"===t[1]&&n.shift()}return c.normalize(n.join("/"))},t.resolve=f,t.resolveGlobalNodePath=h,t.resolveGlobalYarnPath=function(e){let t="yarn";const n={encoding:"utf8"};d()&&(t="yarn.cmd",n.shell=!0);const i=()=>{};try{process.on("SIGPIPE",i);const o=(0,l.spawnSync)(t,["global","dir","--json"],n),r=o.stdout;if(!r)return void(e&&(e("'yarn global dir' didn't return a value."),o.stderr&&e(o.stderr)));const s=r.trim().split(/\r?\n/);for(const e of s)try{const t=JSON.parse(e);if("log"===t.type)return c.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",i)}},t.resolveModulePath=function(e,t,n,i){return n?(c.isAbsolute(n)||(n=c.join(e,n)),f(t,n,n,i).then(e=>g.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`))).then(void 0,n=>f(t,h(i),e,i))):f(t,h(i),e,i)};const a=s(n(7016)),c=s(n(6928)),u=s(n(9896)),l=n(5317);function d(){return"win32"===process.platform}function f(e,t,n,i){const o="NODE_PATH",r=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((s,a)=>{const d=process.env,f=Object.create(null);Object.keys(d).forEach(e=>f[e]=d[e]),t&&u.existsSync(t)&&(f[o]?f[o]=t+c.delimiter+f[o]:f[o]=t,i&&i(`NODE_PATH value is: ${f[o]}`)),f.ELECTRON_RUN_AS_NODE="1";try{const t=(0,l.fork)("",[],{cwd:n,env:f,execArgv:["-e",r]});if(void 0===t.pid)return void a(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",e=>{a(e)}),t.on("message",n=>{"r"===n.c&&(t.send({c:"e"}),n.s?s(n.r):a(new Error(`Failed to resolve module: ${e}`)))});const i={c:"rs",a:e};t.send(i)}catch(e){a(e)}})}function h(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach(e=>n[e]=process.env[e]),n.NO_UPDATE_NOTIFIER="true";const i={encoding:"utf8",env:n};d()&&(t="npm.cmd",i.shell=!0);const o=()=>{};try{process.on("SIGPIPE",o);const n=(0,l.spawnSync)(t,["config","get","prefix"],i).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));const r=n.trim();return e&&e(`'npm config get prefix' value is: ${r}`),r.length>0?d()?c.join(r,"node_modules"):c.join(r,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",o)}}var g;!function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||u.existsSync(__filename.toUpperCase())&&u.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===c.normalize(t).indexOf(c.normalize(e)):0===c.normalize(t).toLowerCase().indexOf(c.normalize(e).toLowerCase())}}(g||(t.FileSystem=g={}))},1327(e,t,n){var i,o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},i(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=i(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return r(t,e),t}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Files=void 0,t.createConnection=function(e,t,n,i){let o,r,s,a;return void 0!==e&&"features"===e.__brand&&(o=e,e=t,t=n,n=i),f.ConnectionStrategy.is(e)||f.ConnectionOptions.is(e)?a=e:(r=e,s=t,a=n),function(e,t,n,i){let o=!1;if(!e&&!t&&process.argv.length>2){let n,i;const r=process.argv.slice(2);for(let s=0;s<r.length;s++){const a=r[s];if("--node-ipc"===a){e=new f.IPCMessageReader(process),t=new f.IPCMessageWriter(process);break}if("--stdio"===a){o=!0,e=process.stdin,t=process.stdout;break}if("--socket"===a){n=parseInt(r[s+1]);break}if("--pipe"===a){i=r[s+1];break}{const e=a.split("=");if("--socket"===e[0]){n=parseInt(e[1]);break}if("--pipe"===e[0]){i=e[1];break}}}if(n){const i=(0,f.createServerSocketTransport)(n);e=i[0],t=i[1]}else if(i){const n=(0,f.createServerPipeTransport)(i);e=n[0],t=n[1]}}const r="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!e)throw new Error("Connection input stream is not set. "+r);if(!t)throw new Error("Connection output stream is not set. "+r);if(u.func(e.read)&&u.func(e.on)){const t=e;t.on("end",()=>{process.exit(p?0:1)}),t.on("close",()=>{process.exit(p?0:1)})}return(0,l.createConnection)(i=>{const r=(0,f.createProtocolConnection)(e,t,i,n);return o&&function(e){function t(e){return e.map(e=>"string"==typeof e?e:(0,c.inspect)(e)).join(" ")}const n=new Map;console.assert=function(n,...i){if(!n)if(0===i.length)e.error("Assertion failed");else{const[n,...o]=i;e.error(`Assertion failed: ${n} ${t(o)}`)}},console.count=function(t="default"){const i=String(t);let o=n.get(i)??0;o+=1,n.set(i,o),e.log(`${i}: ${i}`)},console.countReset=function(e){void 0===e?n.clear():n.delete(String(e))},console.debug=function(...n){e.log(t(n))},console.dir=function(t,n){e.log((0,c.inspect)(t,n))},console.log=function(...n){e.log(t(n))},console.error=function(...n){e.error(t(n))},console.trace=function(...n){const i=(new Error).stack.replace(/(.+\n){2}/,"");let o="Trace";0!==n.length&&(o+=`: ${t(n)}`),e.log(`${o}\n${i}`)},console.warn=function(...n){e.warn(t(n))}}(i),r},m,i)}(r,s,a,o)};const c=n(7975),u=s(n(8867)),l=n(7874),d=s(n(3911)),f=n(7354);var h;a(n(7354),t),a(n(2861),t),function(e){e.uriToFilePath=d.uriToFilePath,e.resolveGlobalNodePath=d.resolveGlobalNodePath,e.resolveGlobalYarnPath=d.resolveGlobalYarnPath,e.resolve=d.resolve,e.resolveModulePath=d.resolveModulePath}(h||(t.Files=h={}));let g,p=!1;!function(){const e="--clientProcessId";function t(e){try{const t=parseInt(e);isNaN(t)||(g=setInterval(()=>{try{process.kill(t,0)}catch(e){process.exit(p?0:1)}},3e3))}catch(e){}}for(let n=2;n<process.argv.length;n++){const i=process.argv[n];if(i===e&&n+1<process.argv.length)return void t(process.argv[n+1]);{const n=i.split("=");n[0]===e&&t(n[1])}}}();const m={initialize:e=>{const t=e.processId;u.number(t)&&void 0===g&&setInterval(()=>{try{process.kill(t,0)}catch(e){process.exit(p?0:1)}},3e3)},get shutdownReceived(){return p},set shutdownReceived(e){p=e},exit:e=>{process.exit(e)}}},5317(e){e.exports=require("child_process")},6982(e){e.exports=require("crypto")},9896(e){e.exports=require("fs")},9278(e){e.exports=require("net")},7975(e){e.exports=require("node:util")},857(e){e.exports=require("os")},6928(e){e.exports=require("path")},7016(e){e.exports=require("url")},9023(e){e.exports=require("util")},5172(e,t,n){n.r(t),n.d(t,{TextDocument:()=>o});class i{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const t of e)if(i.isIncremental(t)){const e=c(t.range),n=this.offsetAt(e.start),i=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(i,this._content.length);const o=Math.max(e.start.line,0),r=Math.max(e.end.line,0);let a=this._lineOffsets;const u=s(t.text,!1,n);if(r-o===u.length)for(let e=0,t=u.length;e<t;e++)a[e+o+1]=u[e];else u.length<1e4?a.splice(o+1,r-o,...u):this._lineOffsets=a=a.slice(0,o+1).concat(u,a.slice(r+1));const l=t.text.length-(i-n);if(0!==l)for(let e=o+1+u.length,t=a.length;e<t;e++)a[e]=a[e]+l}else{if(!i.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return{line:0,character:e};for(;n<i;){const o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}const o=n-1;return{line:o,character:(e=this.ensureBeforeEOL(e,t[o]))-t[o]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const i=e.line+1<t.length?t[e.line+1]:this._content.length,o=Math.min(n+e.character,i);return this.ensureBeforeEOL(o,n)}ensureBeforeEOL(e,t){for(;e>t&&a(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var o;function r(e,t){if(e.length<=1)return e;const n=e.length/2|0,i=e.slice(0,n),o=e.slice(n);r(i,t),r(o,t);let s=0,a=0,c=0;for(;s<i.length&&a<o.length;){const n=t(i[s],o[a]);e[c++]=n<=0?i[s++]:o[a++]}for(;s<i.length;)e[c++]=i[s++];for(;a<o.length;)e[c++]=o[a++];return e}function s(e,t,n=0){const i=t?[n]:[];for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);a(o)&&(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,i.push(n+t+1))}return i}function a(e){return 13===e||10===e}function c(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function u(e){const t=c(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,o){return new i(e,t,n,o)},e.update=function(e,t,n){if(e instanceof i)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){const n=e.getText(),i=r(t.map(u),(e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n});let o=0;const s=[];for(const t of i){const i=e.offsetAt(t.range.start);if(i<o)throw new Error("Overlapping edit");i>o&&s.push(n.substring(o,i)),t.newText.length&&s.push(t.newText),o=e.offsetAt(t.range.end)}return s.push(n.substr(o)),s.join("")}}(o||(o={}))},6203(e,t,n){var i,o,r,s,a,c,u,l,d,f,h,g,p,m,y,v,b,_,R,D,C,S,w,E,T,P,k,x,O,M,N,q,L,I,j,A,F,$,W,H,U,z,V,B,K,G,X,J,Y,Q,Z,ee,te,ne,ie,oe,re,se,ae,ce,ue,le,de,fe,he,ge,pe,me,ye,ve,be,_e,Re,De,Ce,Se,we,Ee,Te,Pe,ke,xe;n.r(t),n.d(t,{AnnotatedTextEdit:()=>w,ApplyKind:()=>z,ChangeAnnotation:()=>C,ChangeAnnotationIdentifier:()=>S,CodeAction:()=>ue,CodeActionContext:()=>ae,CodeActionKind:()=>re,CodeActionTag:()=>ce,CodeActionTriggerKind:()=>se,CodeDescription:()=>b,CodeLens:()=>le,Color:()=>d,ColorInformation:()=>f,ColorPresentation:()=>h,Command:()=>R,CompletionItem:()=>B,CompletionItemKind:()=>F,CompletionItemLabelDetails:()=>V,CompletionItemTag:()=>W,CompletionList:()=>K,CreateFile:()=>T,DeleteFile:()=>k,Diagnostic:()=>_,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>Z,DocumentHighlightKind:()=>Q,DocumentLink:()=>fe,DocumentSymbol:()=>oe,DocumentUri:()=>i,EOL:()=>qe,FoldingRange:()=>p,FoldingRangeKind:()=>g,FormattingOptions:()=>de,Hover:()=>X,InlayHint:()=>Ce,InlayHintKind:()=>Re,InlayHintLabelPart:()=>De,InlineCompletionContext:()=>ke,InlineCompletionItem:()=>we,InlineCompletionList:()=>Ee,InlineCompletionTriggerKind:()=>Te,InlineValueContext:()=>_e,InlineValueEvaluatableExpression:()=>be,InlineValueText:()=>ye,InlineValueVariableLookup:()=>ve,InsertReplaceEdit:()=>H,InsertTextFormat:()=>$,InsertTextMode:()=>U,LanguageKind:()=>L,Location:()=>u,LocationLink:()=>l,MarkedString:()=>G,MarkupContent:()=>A,MarkupKind:()=>j,OptionalVersionedTextDocumentIdentifier:()=>q,ParameterInformation:()=>J,Position:()=>a,Range:()=>c,RenameFile:()=>P,SelectedCompletionInfo:()=>Pe,SelectionRange:()=>he,SemanticTokenModifiers:()=>pe,SemanticTokenTypes:()=>ge,SemanticTokens:()=>me,SignatureInformation:()=>Y,SnippetTextEdit:()=>O,StringValue:()=>Se,SymbolInformation:()=>ne,SymbolKind:()=>ee,SymbolTag:()=>te,TextDocument:()=>Le,TextDocumentEdit:()=>E,TextDocumentIdentifier:()=>M,TextDocumentItem:()=>I,TextEdit:()=>D,URI:()=>o,VersionedTextDocumentIdentifier:()=>N,WorkspaceChange:()=>Ne,WorkspaceEdit:()=>x,WorkspaceFolder:()=>xe,WorkspaceSymbol:()=>ie,integer:()=>r,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.uinteger(t.line)&&Ie.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,i){if(Ie.uinteger(e)&&Ie.uinteger(t)&&Ie.uinteger(n)&&Ie.uinteger(i))return{start:a.create(e,t),end:a.create(n,i)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.range)&&(Ie.string(t.uri)||Ie.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.targetRange)&&Ie.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Ie.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.numberRange(t.red,0,1)&&Ie.numberRange(t.green,0,1)&&Ie.numberRange(t.blue,0,1)&&Ie.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.label)&&(Ie.undefined(t.textEdit)||D.is(t))&&(Ie.undefined(t.additionalTextEdits)||Ie.typedArray(t.additionalTextEdits,D.is))}}(h||(h={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,i,o,r){const s={startLine:e,endLine:t};return Ie.defined(n)&&(s.startCharacter=n),Ie.defined(i)&&(s.endCharacter=i),Ie.defined(o)&&(s.kind=o),Ie.defined(r)&&(s.collapsedText=r),s},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.uinteger(t.startLine)&&Ie.uinteger(t.startLine)&&(Ie.undefined(t.startCharacter)||Ie.uinteger(t.startCharacter))&&(Ie.undefined(t.endCharacter)||Ie.uinteger(t.endCharacter))&&(Ie.undefined(t.kind)||Ie.string(t.kind))}}(p||(p={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){const t=e;return Ie.defined(t)&&u.is(t.location)&&Ie.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,i,o,r){const s={range:e,message:t};return Ie.defined(n)&&(s.severity=n),Ie.defined(i)&&(s.code=i),Ie.defined(o)&&(s.source=o),Ie.defined(r)&&(s.relatedInformation=r),s},e.is=function(e){var t;const n=e;return Ie.defined(n)&&c.is(n.range)&&Ie.string(n.message)&&(Ie.number(n.severity)||Ie.undefined(n.severity))&&(Ie.integer(n.code)||Ie.string(n.code)||Ie.undefined(n.code))&&(Ie.undefined(n.codeDescription)||Ie.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ie.string(n.source)||Ie.undefined(n.source))&&(Ie.undefined(n.relatedInformation)||Ie.typedArray(n.relatedInformation,m.is))}}(_||(_={})),function(e){e.create=function(e,t,...n){const i={title:e,command:t};return Ie.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.title)&&(void 0===t.tooltip||Ie.string(t.tooltip))&&Ie.string(t.command)}}(R||(R={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.newText)&&c.is(t.range)}}(D||(D={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.label)&&(Ie.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ie.string(t.description)||void 0===t.description)}}(C||(C={})),function(e){e.is=function(e){const t=e;return Ie.string(t)}}(S||(S={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return D.is(t)&&(C.is(t.annotationId)||S.is(t.annotationId))}}(w||(w={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){const t=e;return Ie.defined(t)&&q.is(t.textDocument)&&Array.isArray(t.edits)}}(E||(E={})),function(e){e.create=function(e,t,n){const i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"create"===t.kind&&Ie.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ie.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ie.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t,n,i){const o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==i&&(o.annotationId=i),o},e.is=function(e){const t=e;return t&&"rename"===t.kind&&Ie.string(t.oldUri)&&Ie.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ie.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ie.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t,n){const i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"delete"===t.kind&&Ie.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ie.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ie.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(k||(k={})),function(e){e.is=function(e){const t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>Ie.string(e.kind)?T.is(e)||P.is(e)||k.is(e):E.is(e)))}}(x||(x={}));class Oe{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let i,o;if(void 0===n?i=D.insert(e,t):S.is(n)?(o=n,i=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=w.insert(e,t,o)),this.edits.push(i),void 0!==o)return o}replace(e,t,n){let i,o;if(void 0===n?i=D.replace(e,t):S.is(n)?(o=n,i=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=w.replace(e,t,o)),this.edits.push(i),void 0!==o)return o}delete(e,t){let n,i;if(void 0===t?n=D.del(e):S.is(t)?(i=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=w.del(e,i)),this.edits.push(n),void 0!==i)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}}!function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&c.is(t.range)&&Se.isSnippet(t.snippet)&&(void 0===t.annotationId||C.is(t.annotationId)||S.is(t.annotationId))}}(O||(O={}));class Me{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(`Id ${n} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}}class Ne{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Me(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(E.is(e)){const t=new Oe(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{const n=new Oe(e.changes[t]);this._textEditChanges[t]=n})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(q.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[],i={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(i),n=new Oe(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){const n=[];this._workspaceEdit.changes[e]=n,t=new Oe(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Me,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,o,r;if(C.is(t)||S.is(t)?i=t:n=t,void 0===i?o=T.create(e,n):(r=S.is(i)?i:this._changeAnnotations.manage(i),o=T.create(e,n,r)),this._workspaceEdit.documentChanges.push(o),void 0!==r)return r}renameFile(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let o,r,s;if(C.is(n)||S.is(n)?o=n:i=n,void 0===o?r=P.create(e,t,i):(s=S.is(o)?o:this._changeAnnotations.manage(o),r=P.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(r),void 0!==s)return s}deleteFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,o,r;if(C.is(t)||S.is(t)?i=t:n=t,void 0===i?o=k.create(e,n):(r=S.is(i)?i:this._changeAnnotations.manage(i),o=k.create(e,n,r)),this._workspaceEdit.documentChanges.push(o),void 0!==r)return r}}!function(e){e.create=function(e){return{uri:e}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)}}(M||(M={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)&&Ie.integer(t.version)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)&&(null===t.version||Ie.integer(t.version))}}(q||(q={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(L||(L={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.string(t.uri)&&Ie.string(t.languageId)&&Ie.integer(t.version)&&Ie.string(t.text)}}(I||(I={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(j||(j={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(e)&&j.is(t.kind)&&Ie.string(t.value)}}(A||(A={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(F||(F={})),function(e){e.PlainText=1,e.Snippet=2}($||($={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Ie.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(H||(H={})),function(e){e.asIs=1,e.adjustIndentation=2}(U||(U={})),function(e){e.Replace=1,e.Merge=2}(z||(z={})),function(e){e.is=function(e){const t=e;return t&&(Ie.string(t.detail)||void 0===t.detail)&&(Ie.string(t.description)||void 0===t.description)}}(V||(V={})),function(e){e.create=function(e){return{label:e}}}(B||(B={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(K||(K={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Ie.string(t)||Ie.objectLiteral(t)&&Ie.string(t.language)&&Ie.string(t.value)}}(G||(G={})),function(e){e.is=function(e){const t=e;return!!t&&Ie.objectLiteral(t)&&(A.is(t.contents)||G.is(t.contents)||Ie.typedArray(t.contents,G.is))&&(void 0===e.range||c.is(e.range))}}(X||(X={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(J||(J={})),function(e){e.create=function(e,t,...n){const i={label:e};return Ie.defined(t)&&(i.documentation=t),Ie.defined(n)?i.parameters=n:i.parameters=[],i}}(Y||(Y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Q||(Q={})),function(e){e.create=function(e,t){const n={range:e};return Ie.number(t)&&(n.kind=t),n}}(Z||(Z={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ee||(ee={})),function(e){e.Deprecated=1}(te||(te={})),function(e){e.create=function(e,t,n,i,o){const r={name:e,kind:t,location:{uri:i,range:n}};return o&&(r.containerName=o),r}}(ne||(ne={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(ie||(ie={})),function(e){e.create=function(e,t,n,i,o,r){const s={name:e,detail:t,kind:n,range:i,selectionRange:o};return void 0!==r&&(s.children=r),s},e.is=function(e){const t=e;return t&&Ie.string(t.name)&&Ie.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||Ie.string(t.detail))&&(void 0===t.deprecated||Ie.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(oe||(oe={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(re||(re={})),function(e){e.Invoked=1,e.Automatic=2}(se||(se={})),function(e){e.create=function(e,t,n){const i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.typedArray(t.diagnostics,_.is)&&(void 0===t.only||Ie.typedArray(t.only,Ie.string))&&(void 0===t.triggerKind||t.triggerKind===se.Invoked||t.triggerKind===se.Automatic)}}(ae||(ae={})),function(e){e.LLMGenerated=1,e.is=function(t){return Ie.defined(t)&&t===e.LLMGenerated}}(ce||(ce={})),function(e){e.create=function(e,t,n){const i={title:e};let o=!0;return"string"==typeof t?(o=!1,i.kind=t):R.is(t)?i.command=t:i.edit=t,o&&void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return t&&Ie.string(t.title)&&(void 0===t.diagnostics||Ie.typedArray(t.diagnostics,_.is))&&(void 0===t.kind||Ie.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||R.is(t.command))&&(void 0===t.isPreferred||Ie.boolean(t.isPreferred))&&(void 0===t.edit||x.is(t.edit))&&(void 0===t.tags||Ie.typedArray(t.tags,ce.is))}}(ue||(ue={})),function(e){e.create=function(e,t){const n={range:e};return Ie.defined(t)&&(n.data=t),n},e.is=function(e){const t=e;return Ie.defined(t)&&c.is(t.range)&&(Ie.undefined(t.command)||R.is(t.command))}}(le||(le={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){const t=e;return Ie.defined(t)&&Ie.uinteger(t.tabSize)&&Ie.boolean(t.insertSpaces)}}(de||(de={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){const t=e;return Ie.defined(t)&&c.is(t.range)&&(Ie.undefined(t.target)||Ie.string(t.target))}}(fe||(fe={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){const n=t;return Ie.objectLiteral(n)&&c.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(he||(he={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(ge||(ge={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(pe||(pe={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(me||(me={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ie.string(t.text)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ie.boolean(t.caseSensitiveLookup)&&(Ie.string(t.variableName)||void 0===t.variableName)}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&(Ie.string(t.expression)||void 0===t.expression)}}(be||(be={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Ie.defined(t)&&c.is(e.stoppedLocation)}}(_e||(_e={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Re||(Re={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&(void 0===t.tooltip||Ie.string(t.tooltip)||A.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||R.is(t.command))}}(De||(De={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&a.is(t.position)&&(Ie.string(t.label)||Ie.typedArray(t.label,De.is))&&(void 0===t.kind||Re.is(t.kind))&&void 0===t.textEdits||Ie.typedArray(t.textEdits,D.is)&&(void 0===t.tooltip||Ie.string(t.tooltip)||A.is(t.tooltip))&&(void 0===t.paddingLeft||Ie.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ie.boolean(t.paddingRight))}}(Ce||(Ce={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}},e.isSnippet=function(e){const t=e;return Ie.objectLiteral(t)&&"snippet"===t.kind&&Ie.string(t.value)}}(Se||(Se={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(we||(we={})),function(e){e.create=function(e){return{items:e}}}(Ee||(Ee={})),function(e){e.Invoked=1,e.Automatic=2}(Te||(Te={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Pe||(Pe={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(ke||(ke={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&o.is(t.uri)&&Ie.string(t.name)}}(xe||(xe={}));const qe=["\n","\r\n","\r"];var Le,Ie;!function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,o=e.slice(0,i),r=e.slice(i);t(o,n),t(r,n);let s=0,a=0,c=0;for(;s<o.length&&a<r.length;){const t=n(o[s],r[a]);e[c++]=t<=0?o[s++]:r[a++]}for(;s<o.length;)e[c++]=o[s++];for(;a<r.length;)e[c++]=r[a++];return e}e.create=function(e,t,n,i){return new je(e,t,n,i)},e.is=function(e){const t=e;return!!(Ie.defined(t)&&Ie.string(t.uri)&&(Ie.undefined(t.languageId)||Ie.string(t.languageId))&&Ie.uinteger(t.lineCount)&&Ie.func(t.getText)&&Ie.func(t.positionAt)&&Ie.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText();const o=t(n,(e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n});let r=i.length;for(let t=o.length-1;t>=0;t--){const n=o[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=r))throw new Error("Overlapping edit");i=i.substring(0,s)+n.newText+i.substring(a,i.length),r=s}return i}}(Le||(Le={}));class je{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){const e=[],t=this._content;let n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);const o=t.charAt(i);n="\r"===o||"\n"===o,"\r"===o&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return a.create(0,e);for(;n<i;){const o=Math.floor((n+i)/2);t[o]>e?i=o:n=o+1}const o=n-1;return a.create(o,e-t[o])}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ie||(Ie={}))},7608(e,t,n){var i;n.r(t),n.d(t,{URI:()=>o,Utils:()=>r}),(()=>{var e={975:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",o=0,r=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(r===a-1||1===s);else if(r!==a-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",o=0):o=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),r=a,s=0;continue}}else if(2===i.length||1===i.length){i="",o=0,r=a,s=0;continue}t&&(i.length>0?i+="/..":i="..",o=2)}else i.length>0?i+="/"+e.slice(r+1,a):i=e.slice(r+1,a),o=a-r-1;r=a,s=0}else 46===n&&-1!==s?++s:s=-1}return i}var i={resolve:function(){for(var e,i="",o=!1,r=arguments.length-1;r>=-1&&!o;r--){var s;r>=0?s=arguments[r]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(i=s+"/"+i,o=47===s.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&o&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var r=e.length,s=r-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var c=n.length-a,u=s<c?s:c,l=-1,d=0;d<=u;++d){if(d===u){if(c>u){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>u&&(47===e.charCodeAt(o+d)?l=d:0===d&&(l=0));break}var f=e.charCodeAt(o+d);if(f!==n.charCodeAt(a+d))break;47===f&&(l=d)}var h="";for(d=o+l+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,o=-1,r=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!r){o=s;break}}else r=!1;return-1===o?i?"/":".":i&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,o=0,r=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(i=e.length-1;i>=0;--i){var u=e.charCodeAt(i);if(47===u){if(!s){o=i+1;break}}else-1===c&&(s=!1,c=i+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(r=i):(a=-1,r=c))}return o===r?r=c:-1===r&&(r=e.length),e.slice(o,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!s){o=i+1;break}}else-1===r&&(s=!1,r=i+1);return-1===r?"":e.slice(o,r)},extname:function(e){t(e);for(var n=-1,i=0,o=-1,r=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===o&&(r=!1,o=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!r){i=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===i+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+"/"+i:i}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,o=e.charCodeAt(0),r=47===o;r?(n.root="/",i=1):i=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,d=0;l>=i;--l)if(47!==(o=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===o?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):r&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};let r;if(n.r(o),n.d(o,{URI:()=>h,Utils:()=>T}),"object"==typeof process)r="win32"===process.platform;else if("object"==typeof navigator){let e=navigator.userAgent;r=e.indexOf("Windows")>=0}const s=/^\w[\w\d+.-]*$/,a=/^\//,c=/^\/\//;function u(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const l="",d="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,o,r=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,r),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||l),this.query=i||l,this.fragment=o||l,u(this,r))}get fsPath(){return b(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:o,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===o?o=this.query:null===o&&(o=l),void 0===r?r=this.fragment:null===r&&(r=l),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new p(t,n,i,o,r)}static parse(e,t=!1){const n=f.exec(e);return n?new p(n[2]||l,C(n[4]||l),C(n[5]||l),C(n[7]||l),C(n[9]||l),t):new p(l,l,l,l,l)}static file(e){let t=l;if(r&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const n=e.indexOf(d,2);-1===n?(t=e.substring(2),e=d):(t=e.substring(2,n),e=e.substring(n)||d)}return new p("file",t,e,l,l)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=r?1:void 0;class p extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=b(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function y(e,t,n){let i,o=-1;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(i+=encodeURIComponent(e.substring(o,r)),o=-1),void 0!==i&&(i+=e.charAt(r));else{void 0===i&&(i=e.substr(0,r));const t=m[s];void 0!==t?(-1!==o&&(i+=encodeURIComponent(e.substring(o,r)),o=-1),i+=t):-1===o&&(o=r)}}return-1!==o&&(i+=encodeURIComponent(e.substring(o))),void 0!==i?i:e}function v(e){let t;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=m[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r&&(n=n.replace(/\//g,"\\")),n}function _(e,t){const n=t?v:y;let i="",{scheme:o,authority:r,path:s,query:a,fragment:c}=e;if(o&&(i+=o,i+=":"),(r||"file"===o)&&(i+=d,i+=d),r){let e=r.indexOf("@");if(-1!==e){const t=r.substr(0,e);r=r.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}r=r.toLowerCase(),e=r.lastIndexOf(":"),-1===e?i+=n(r,!1,!0):(i+=n(r.substr(0,e),!1,!0),i+=r.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}i+=n(s,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=t?c:y(c,!1,!1)),i}function R(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+R(e.substr(3)):e}}const D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(D)?e.replace(D,e=>R(e)):e}var S=n(975);const w=S.posix||S,E="/";var T;!function(e){e.joinPath=function(e,...t){return e.with({path:w.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==E&&(n=E+n,i=!0);let o=w.resolve(n,...t);return i&&o[0]===E&&!e.authority&&(o=o.substring(1)),e.with({path:o})},e.dirname=function(e){if(0===e.path.length||e.path===E)return e;let t=w.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return w.basename(e.path)},e.extname=function(e){return w.extname(e.path)}}(T||(T={})),i=o})();const{URI:o,Utils:r}=i}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i=n(639),o=exports;for(var r in i)o[r]=i[r];i.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
3
3
  //# sourceMappingURL=eslintServer.js.map