@redocly/openapi-language-server 0.6.13 → 0.6.14

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -66,7 +66,7 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A
66
66
  `,`\r
67
67
  `,"\r"];(function(e){function t(o,s,a,c){return new Eu(o,s,a,c)}e.create=t;function n(o){let s=o;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),c=i(s,(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),l=a.length;for(let d=c.length-1;d>=0;d--){let h=c[d],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=l)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");l=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);let d=0,h=0,v=0;for(;d<c.length&&h<l.length;)s(c[d],l[h])<=0?o[v++]=c[d++]:o[v++]=l[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<l.length;)o[v++]=l[h++];return o}})(Nu||(Nu={}));Eu=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
68
68
  `,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
69
- `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Jn=mn(),of;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(of||(He.MessageDirection=of={}));var ju=class{constructor(t){this.method=t}};He.RegistrationType=ju;var Mu=class extends Jn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Mu;var Lu=class extends Jn.RequestType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolRequestType=Lu;var Iu=class extends Jn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Iu;var Fu=class extends Jn.NotificationType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolNotificationType=Fu});var Po=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function z_(e){return e===!0||e===!1}ve.boolean=z_;function sf(e){return typeof e=="string"||e instanceof String}ve.string=sf;function $_(e){return typeof e=="number"||e instanceof Number}ve.number=$_;function V_(e){return e instanceof Error}ve.error=V_;function Y_(e){return typeof e=="function"}ve.func=Y_;function af(e){return Array.isArray(e)}ve.array=af;function G_(e){return af(e)&&e.every(t=>sf(t))}ve.stringArray=G_;function K_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=K_;function Q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=Q_});var lf=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.ImplementationRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/implementation",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(_o.ImplementationRequest=uf={}))});var ff=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.TypeDefinitionRequest=void 0;var pf=se(),df;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=pf.MessageDirection.clientToServer,e.type=new pf.ProtocolRequestType(e.method)})(df||(Co.TypeDefinitionRequest=df={}))});var hf=S(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.DidChangeWorkspaceFoldersNotification=Xn.WorkspaceFoldersRequest=void 0;var So=se(),gf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=So.MessageDirection.serverToClient,e.type=new So.ProtocolRequestType0(e.method)})(gf||(Xn.WorkspaceFoldersRequest=gf={}));var mf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=So.MessageDirection.clientToServer,e.type=new So.ProtocolNotificationType(e.method)})(mf||(Xn.DidChangeWorkspaceFoldersNotification=mf={}))});var vf=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ConfigurationRequest=void 0;var yf=se(),bf;(function(e){e.method="workspace/configuration",e.messageDirection=yf.MessageDirection.serverToClient,e.type=new yf.ProtocolRequestType(e.method)})(bf||(Do.ConfigurationRequest=bf={}))});var _f=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ColorPresentationRequest=Zn.DocumentColorRequest=void 0;var Ro=se(),xf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(xf||(Zn.DocumentColorRequest=xf={}));var Pf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(Pf||(Zn.ColorPresentationRequest=Pf={}))});var Df=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.FoldingRangeRefreshRequest=er.FoldingRangeRequest=void 0;var To=se(),Cf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=To.MessageDirection.clientToServer,e.type=new To.ProtocolRequestType(e.method)})(Cf||(er.FoldingRangeRequest=Cf={}));var Sf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=To.MessageDirection.serverToClient,e.type=new To.ProtocolRequestType0(e.method)})(Sf||(er.FoldingRangeRefreshRequest=Sf={}))});var wf=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.DeclarationRequest=void 0;var Rf=se(),Tf;(function(e){e.method="textDocument/declaration",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(Tf||(wo.DeclarationRequest=Tf={}))});var Of=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.SelectionRangeRequest=void 0;var kf=se(),Af;(function(e){e.method="textDocument/selectionRange",e.messageDirection=kf.MessageDirection.clientToServer,e.type=new kf.ProtocolRequestType(e.method)})(Af||(ko.SelectionRangeRequest=Af={}))});var jf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WorkDoneProgressCancelNotification=$t.WorkDoneProgressCreateRequest=$t.WorkDoneProgress=void 0;var J_=mn(),Ao=se(),qf;(function(e){e.type=new J_.ProgressType;function t(n){return n===e.type}e.is=t})(qf||($t.WorkDoneProgress=qf={}));var Nf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Ao.MessageDirection.serverToClient,e.type=new Ao.ProtocolRequestType(e.method)})(Nf||($t.WorkDoneProgressCreateRequest=Nf={}));var Ef;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Ao.MessageDirection.clientToServer,e.type=new Ao.ProtocolNotificationType(e.method)})(Ef||($t.WorkDoneProgressCancelNotification=Ef={}))});var Ff=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var tr=se(),Mf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Mf||(Vt.CallHierarchyPrepareRequest=Mf={}));var Lf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Lf||(Vt.CallHierarchyIncomingCallsRequest=Lf={}));var If;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(If||(Vt.CallHierarchyOutgoingCallsRequest=If={}))});var $f=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var Ot=se(),Uf;(function(e){e.Relative="relative"})(Uf||(ze.TokenFormat=Uf={}));var Wr;(function(e){e.method="textDocument/semanticTokens",e.type=new Ot.RegistrationType(e.method)})(Wr||(ze.SemanticTokensRegistrationType=Wr={}));var Wf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Wf||(ze.SemanticTokensRequest=Wf={}));var Bf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Bf||(ze.SemanticTokensDeltaRequest=Bf={}));var Hf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Hf||(ze.SemanticTokensRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Ot.MessageDirection.serverToClient,e.type=new Ot.ProtocolRequestType0(e.method)})(zf||(ze.SemanticTokensRefreshRequest=zf={}))});var Gf=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ShowDocumentRequest=void 0;var Vf=se(),Yf;(function(e){e.method="window/showDocument",e.messageDirection=Vf.MessageDirection.serverToClient,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(Oo.ShowDocumentRequest=Yf={}))});var Jf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.LinkedEditingRangeRequest=void 0;var Kf=se(),Qf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Kf.MessageDirection.clientToServer,e.type=new Kf.ProtocolRequestType(e.method)})(Qf||(qo.LinkedEditingRangeRequest=Qf={}))});var og=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Xf;(function(e){e.file="file",e.folder="folder"})(Xf||(Ee.FileOperationPatternKind=Xf={}));var Zf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Zf||(Ee.WillCreateFilesRequest=Zf={}));var eg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidCreateFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillRenameFilesRequest=tg={}));var ng;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(ng||(Ee.DidRenameFilesNotification=ng={}));var rg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(rg||(Ee.DidDeleteFilesNotification=rg={}));var ig;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(ig||(Ee.WillDeleteFilesRequest=ig={}))});var lg=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.MonikerRequest=Yt.MonikerKind=Yt.UniquenessLevel=void 0;var sg=se(),ag;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ag||(Yt.UniquenessLevel=ag={}));var cg;(function(e){e.$import="import",e.$export="export",e.local="local"})(cg||(Yt.MonikerKind=cg={}));var ug;(function(e){e.method="textDocument/moniker",e.messageDirection=sg.MessageDirection.clientToServer,e.type=new sg.ProtocolRequestType(e.method)})(ug||(Yt.MonikerRequest=ug={}))});var gg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var nr=se(),pg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(pg||(Gt.TypeHierarchyPrepareRequest=pg={}));var dg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(dg||(Gt.TypeHierarchySupertypesRequest=dg={}));var fg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(fg||(Gt.TypeHierarchySubtypesRequest=fg={}))});var yg=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.InlineValueRefreshRequest=rr.InlineValueRequest=void 0;var No=se(),mg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(mg||(rr.InlineValueRequest=mg={}));var hg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(hg||(rr.InlineValueRefreshRequest=hg={}))});var Pg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.InlayHintRefreshRequest=Kt.InlayHintResolveRequest=Kt.InlayHintRequest=void 0;var ir=se(),bg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(bg||(Kt.InlayHintRequest=bg={}));var vg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(vg||(Kt.InlayHintResolveRequest=vg={}));var xg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(xg||(Kt.InlayHintRefreshRequest=xg={}))});var wg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Tg=mn(),X_=Po(),or=se(),_g;(function(e){function t(n){let r=n;return r&&X_.boolean(r.retriggerRequest)}e.is=t})(_g||(et.DiagnosticServerCancellationData=_g={}));var Cg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Cg||(et.DocumentDiagnosticReportKind=Cg={}));var Sg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Sg||(et.DocumentDiagnosticRequest=Sg={}));var Dg;(function(e){e.method="workspace/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Dg||(et.WorkspaceDiagnosticRequest=Dg={}));var Rg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=or.MessageDirection.serverToClient,e.type=new or.ProtocolRequestType0(e.method)})(Rg||(et.DiagnosticRefreshRequest=Rg={}))});var jg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Br=(xo(),ni(vo)),ct=Po(),ht=se(),Uu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Uu||(de.NotebookCellKind=Uu={}));var Wu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Br.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Wu||(de.ExecutionSummary=Wu={}));var Eo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Uu.is(s.kind)&&Br.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Wu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Eo||(de.NotebookCell=Eo={}));var kg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Br.integer.is(i.version)&&ct.typedArray(i.cells,Eo.is)}e.is=n})(kg||(de.NotebookDocument=kg={}));var sr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(sr||(de.NotebookDocumentSyncRegistrationType=sr={}));var Ag;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ag||(de.DidOpenNotebookDocumentNotification=Ag={}));var Og;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Br.uinteger.is(i.start)&&Br.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,Eo.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})(Og||(de.NotebookCellArrayChange=Og={}));var qg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(qg||(de.DidChangeNotebookDocumentNotification=qg={}));var Ng;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ng||(de.DidSaveNotebookDocumentNotification=Ng={}));var Eg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Eg||(de.DidCloseNotebookDocumentNotification=Eg={}))});var Ig=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.InlineCompletionRequest=void 0;var Mg=se(),Lg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Mg.MessageDirection.clientToServer,e.type=new Mg.ProtocolRequestType(e.method)})(Lg||(jo.InlineCompletionRequest=Lg={}))});var Jm=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var T=se(),Fg=(xo(),ni(vo)),Te=Po(),Z_=lf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return Z_.ImplementationRequest}});var eC=ff();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return eC.TypeDefinitionRequest}});var Ym=hf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Ym.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Ym.DidChangeWorkspaceFoldersNotification}});var tC=vf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return tC.ConfigurationRequest}});var Gm=_f();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return Gm.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return Gm.ColorPresentationRequest}});var Km=Df();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Km.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Km.FoldingRangeRefreshRequest}});var nC=wf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return nC.DeclarationRequest}});var rC=Of();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return rC.SelectionRangeRequest}});var Vu=jf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Vu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCancelNotification}});var Yu=Ff();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyPrepareRequest}});var ar=$f();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ar.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ar.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ar.SemanticTokensRegistrationType}});var iC=Gf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return iC.ShowDocumentRequest}});var oC=Jf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return oC.LinkedEditingRangeRequest}});var bn=og();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return bn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return bn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return bn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return bn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return bn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return bn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return bn.WillDeleteFilesRequest}});var Gu=lg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Gu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Gu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Gu.MonikerRequest}});var Ku=gg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchySupertypesRequest}});var Qm=yg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Qm.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Qm.InlineValueRefreshRequest}});var Qu=Pg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Qu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Qu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Qu.InlayHintRefreshRequest}});var Hr=wg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Hr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Hr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Hr.DiagnosticRefreshRequest}});var yt=jg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var sC=Ig();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return sC.InlineCompletionRequest}});var Bu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Bu||(u.TextDocumentFilter=Bu={}));var Hu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Hu||(u.NotebookDocumentFilter=Hu={}));var zu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Hu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(zu||(u.NotebookCellTextDocumentFilter=zu={}));var $u;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Bu.is(r)&&!zu.is(r))return!1;return!0}e.is=t})($u||(u.DocumentSelector=$u={}));var Ug;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ug||(u.RegistrationRequest=Ug={}));var Wg;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Wg||(u.UnregistrationRequest=Wg={}));var Bg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Bg||(u.ResourceOperationKind=Bg={}));var Hg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Hg||(u.FailureHandlingKind=Hg={}));var zg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(zg||(u.PositionEncodingKind=zg={}));var $g;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})($g||(u.StaticRegistrationOptions=$g={}));var Vg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||$u.is(r.documentSelector))}e.is=t})(Vg||(u.TextDocumentRegistrationOptions=Vg={}));var Yg;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(Yg||(u.WorkDoneProgressOptions=Yg={}));var Gg;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gg||(u.InitializeRequest=Gg={}));var Kg;(function(e){e.unknownProtocolVersion=1})(Kg||(u.InitializeErrorCodes=Kg={}));var Qg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Qg||(u.InitializedNotification=Qg={}));var Jg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Jg||(u.ShutdownRequest=Jg={}));var Xg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Xg||(u.ExitNotification=Xg={}));var Zg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Zg||(u.DidChangeConfigurationNotification=Zg={}));var em;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(em||(u.MessageType=em={}));var tm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(tm||(u.ShowMessageNotification=tm={}));var nm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(nm||(u.ShowMessageRequest=nm={}));var rm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.LogMessageNotification=rm={}));var im;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(im||(u.TelemetryEventNotification=im={}));var om;(function(e){e.None=0,e.Full=1,e.Incremental=2})(om||(u.TextDocumentSyncKind=om={}));var sm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(sm||(u.DidOpenTextDocumentNotification=sm={}));var am;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(am||(u.TextDocumentContentChangeEvent=am={}));var cm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(cm||(u.DidChangeTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.DidCloseTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(lm||(u.DidSaveTextDocumentNotification=lm={}));var pm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(pm||(u.TextDocumentSaveReason=pm={}));var dm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(dm||(u.WillSaveTextDocumentNotification=dm={}));var fm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(fm||(u.WillSaveTextDocumentWaitUntilRequest=fm={}));var gm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(u.DidChangeWatchedFilesNotification=gm={}));var mm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(mm||(u.FileChangeType=mm={}));var hm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Fg.URI.is(r.baseUri)||Fg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(hm||(u.RelativePattern=hm={}));var ym;(function(e){e.Create=1,e.Change=2,e.Delete=4})(ym||(u.WatchKind=ym={}));var bm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(u.PublishDiagnosticsNotification=bm={}));var vm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(vm||(u.CompletionTriggerKind=vm={}));var xm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(xm||(u.CompletionRequest=xm={}));var Pm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.CompletionResolveRequest=Pm={}));var _m;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(_m||(u.HoverRequest=_m={}));var Cm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Cm||(u.SignatureHelpTriggerKind=Cm={}));var Sm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.SignatureHelpRequest=Sm={}));var Dm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.DefinitionRequest=Dm={}));var Rm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.ReferencesRequest=Rm={}));var Tm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.DocumentHighlightRequest=Tm={}));var wm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.DocumentSymbolRequest=wm={}));var km;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(km||(u.CodeActionRequest=km={}));var Am;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.CodeActionResolveRequest=Am={}));var Om;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.WorkspaceSymbolRequest=Om={}));var qm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.WorkspaceSymbolResolveRequest=qm={}));var Nm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.CodeLensRequest=Nm={}));var Em;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Em||(u.CodeLensResolveRequest=Em={}));var jm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(jm||(u.CodeLensRefreshRequest=jm={}));var Mm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentLinkRequest=Mm={}));var Lm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentLinkResolveRequest=Lm={}));var Im;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentFormattingRequest=Im={}));var Fm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.DocumentRangeFormattingRequest=Fm={}));var Um;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DocumentRangesFormattingRequest=Um={}));var Wm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.DocumentOnTypeFormattingRequest=Wm={}));var Bm;(function(e){e.Identifier=1})(Bm||(u.PrepareSupportDefaultBehavior=Bm={}));var Hm;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.RenameRequest=Hm={}));var zm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.PrepareRenameRequest=zm={}));var $m;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(u.ExecuteCommandRequest=$m={}));var Vm;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(Vm||(u.ApplyWorkspaceEditRequest=Vm={}))});var Zm=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createProtocolConnection=void 0;var Xm=mn();function aC(e,t,n,r){return Xm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Xm.createMessageConnection)(e,t,n,r)}Mo.createProtocolConnection=aC});var th=S($e=>{"use strict";var cC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Lo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Lo(mn(),$e);Lo((xo(),ni(vo)),$e);Lo(se(),$e);Lo(Jm(),$e);var uC=Zm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return uC.createProtocolConnection}});var eh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(eh||($e.LSPErrorCodes=eh={}))});var ye=S(bt=>{"use strict";var lC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),nh=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var pC=qc();nh(qc(),bt);nh(th(),bt);function dC(e,t,n,r){return(0,pC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=dC});var Xu=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.SemanticTokensBuilder=Qt.SemanticTokensDiff=Qt.SemanticTokensFeature=void 0;var Io=ye(),fC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Io.SemanticTokensRefreshRequest.type),on:t=>{let n=Io.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Io.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Io.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qt.SemanticTokensFeature=fC;var Fo=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Qt.SemanticTokensDiff=Fo;var Ju=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Fo(this._prevData,this._data).computeDiff()}:this.build()}};Qt.SemanticTokensBuilder=Ju});var rh=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineCompletionFeature=void 0;var gC=ye(),mC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(gC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineCompletionFeature=mC});var el=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TextDocuments=void 0;var vn=ye(),Zu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new vn.Emitter,this._onDidOpen=new vn.Emitter,this._onDidClose=new vn.Emitter,this._onDidSave=new vn.Emitter,this._onWillSave=new vn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=vn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),vn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Wo.TextDocuments=Zu});var nl=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NotebookDocuments=cr.NotebookSyncFeature=void 0;var tt=ye(),ih=el(),hC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};cr.NotebookSyncFeature=hC;var Bo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Bo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var tl=class{constructor(t){t instanceof ih.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new ih.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[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(t){let n=new Bo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};cr.NotebookDocuments=tl});var rl=S(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function yC(e){return e===!0||e===!1}xe.boolean=yC;function oh(e){return typeof e=="string"||e instanceof String}xe.string=oh;function bC(e){return typeof e=="number"||e instanceof Number}xe.number=bC;function vC(e){return e instanceof Error}xe.error=vC;function sh(e){return typeof e=="function"}xe.func=sh;function ah(e){return Array.isArray(e)}xe.array=ah;function xC(e){return ah(e)&&e.every(t=>oh(t))}xe.stringArray=xC;function PC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=PC;function _C(e){return e&&sh(e.then)}xe.thenable=_C});var il=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var zr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},$r=class e extends zr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};$r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$r._timeHighBits=["8","9","a","b"];nt.empty=new zr("00000000-0000-0000-0000-000000000000");function ch(){return new $r}nt.v4=ch;var CC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function uh(e){return CC.test(e)}nt.isUUID=uh;function SC(e){if(!uh(e))throw new Error("invalid uuid");return new zr(e)}nt.parse=SC;function DC(){return ch().asHex()}nt.generateUuid=DC});var lh=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.attachPartialResult=Xt.ProgressFeature=Xt.attachWorkDone=void 0;var Jt=ye(),RC=il(),xn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,{kind:"end"})}};xn.Instances=new Map;var Ho=class extends xn{constructor(t,n){super(t,n),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Vr=class{constructor(){}begin(){}report(){}done(){}},zo=class extends Vr{constructor(){super(),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function TC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Vr;let n=t.workDoneToken;return delete t.workDoneToken,new xn(e,n)}Xt.attachWorkDone=TC;var wC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Jt.WorkDoneProgressCancelNotification.type,n=>{let r=xn.Instances.get(n.token);(r instanceof Ho||r instanceof zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Vr:new xn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,RC.generateUuid)();return this.connection.sendRequest(Jt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ho(this.connection,t))}else return Promise.resolve(new zo)}};Xt.ProgressFeature=wC;var ol;(function(e){e.type=new Jt.ProgressType})(ol||(ol={}));var sl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(ol.type,this._token,t)}};function kC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new sl(e,n)}Xt.attachPartialResult=kC});var ph=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ConfigurationFeature=void 0;var AC=ye(),OC=rl(),qC=e=>class extends e{getConfiguration(t){return t?OC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(AC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};$o.ConfigurationFeature=qC});var dh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WorkspaceFoldersFeature=void 0;var Vo=ye(),NC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Vo.Emitter,this.connection.onNotification(Vo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Vo.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(Vo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Yo.WorkspaceFoldersFeature=NC});var fh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.CallHierarchyFeature=void 0;var al=ye(),EC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(al.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=al.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=al.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.CallHierarchyFeature=EC});var gh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ShowDocumentFeature=void 0;var jC=ye(),MC=e=>class extends e{showDocument(t){return this.connection.sendRequest(jC.ShowDocumentRequest.type,t)}};Ko.ShowDocumentFeature=MC});var mh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.FileOperationsFeature=void 0;var ur=ye(),LC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(ur.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(ur.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(ur.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(ur.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(ur.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(ur.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Qo.FileOperationsFeature=LC});var hh=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.LinkedEditingRangeFeature=void 0;var IC=ye(),FC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(IC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Jo.LinkedEditingRangeFeature=FC});var yh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TypeHierarchyFeature=void 0;var cl=ye(),UC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(cl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=cl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=cl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xo.TypeHierarchyFeature=UC});var vh=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InlineValueFeature=void 0;var bh=ye(),WC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(bh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(bh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Zo.InlineValueFeature=WC});var Ph=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.FoldingRangeFeature=void 0;var xh=ye(),BC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(xh.FoldingRangeRefreshRequest.type),on:t=>{let n=xh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};es.FoldingRangeFeature=BC});var _h=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.InlayHintFeature=void 0;var ul=ye(),HC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ul.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(ul.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(ul.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ts.InlayHintFeature=HC});var Ch=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DiagnosticFeature=void 0;var Yr=ye(),zC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Yr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Yr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Yr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ns.DiagnosticFeature=zC});var Sh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.MonikerFeature=void 0;var $C=ye(),VC=e=>class extends e{get moniker(){return{on:t=>{let n=$C.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.MonikerFeature=VC});var Fh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=rl(),pl=il(),B=lh(),YC=ph(),GC=dh(),KC=fh(),QC=Xu(),JC=gh(),XC=mh(),ZC=hh(),e0=yh(),t0=vh(),n0=Ph(),r0=_h(),i0=Ch(),o0=nl(),s0=Sh();function ll(e){if(e!==null)return e}var dl=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=dl;var is=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},fl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}},Dh=(0,JC.ShowDocumentFeature)((0,B.ProgressFeature)(fl)),Rh;(function(e){function t(){return new os}e.create=t})(Rh||(Q.BulkRegistration=Rh={}));var os=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=pl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Th;(function(e){function t(){return new Gr(void 0,[])}e.create=t})(Th||(Q.BulkUnregistration=Th={}));var Gr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ss=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof os?this.registerMany(t):t instanceof Gr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=pl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=pl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new Gr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},gl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},wh=(0,XC.FileOperationsFeature)((0,GC.WorkspaceFoldersFeature)((0,YC.ConfigurationFeature)(gl))),as=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},cs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},us=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=us;var kh=(0,n0.FoldingRangeFeature)((0,s0.MonikerFeature)((0,i0.DiagnosticFeature)((0,r0.InlayHintFeature)((0,t0.InlineValueFeature)((0,e0.TypeHierarchyFeature)((0,ZC.LinkedEditingRangeFeature)((0,QC.SemanticTokensFeature)((0,KC.CallHierarchyFeature)(us))))))))),ls=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=ls;var Ah=(0,o0.NotebookSyncFeature)(ls);function Oh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=jh;function Mh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Mh;function Lh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Lh;function Ih(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Ih;function a0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Oh),tracer:n(e.tracer,t.tracer,Nh),telemetry:n(e.telemetry,t.telemetry,qh),client:n(e.client,t.client,Eh),window:n(e.window,t.window,jh),workspace:n(e.workspace,t.workspace,Mh),languages:n(e.languages,t.languages,Lh),notebooks:n(e.notebooks,t.notebooks,Ih)}}Q.combineFeatures=a0;function c0(e,t,n){let r=n&&n.console?new(n.console(is)):new is,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(as)):new as,s=n&&n.telemetry?new(n.telemetry(cs)):new cs,a=n&&n.client?new(n.client(ss)):new ss,c=n&&n.window?new(n.window(Dh)):new Dh,l=n&&n.workspace?new(n.workspace(wh)):new wh,d=n&&n.languages?new(n.languages(kh)):new kh,h=n&&n.notebooks?new(n.notebooks(Ah)):new Ah,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=c0});var ml=S(je=>{"use strict";var u0=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Wh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var l0=Xu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return l0.SemanticTokensBuilder}});var p0=rh();Wh(ye(),je);var d0=el();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return d0.TextDocuments}});var f0=nl();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return f0.NotebookDocuments}});Wh(Fh(),je);var Uh;(function(e){e.all={__brand:"features",languages:p0.InlineCompletionFeature}})(Uh||(je.ProposedFeatures=Uh={}))});var Hh=S((cw,Bh)=>{"use strict";Bh.exports=ye()});var hl=S(vt=>{"use strict";var g0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),$h=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&g0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var ps=ml();$h(Hh(),vt);$h(ml(),vt);var zh=!1,m0={initialize:e=>{},get shutdownReceived(){return zh},set shutdownReceived(e){zh=e},exit:e=>{}};function h0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),ps.ConnectionStrategy.is(e)||ps.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,ps.createProtocolConnection)(o,s,l,a);return(0,ps.createConnection)(c,m0,i)}vt.createConnection=h0});var Zt=S((lw,Vh)=>{"use strict";Vh.exports=hl()});var Rl=S((ek,oy)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function iy(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function oS(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var dr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=iy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=iy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=dr.resolve(t),n=dr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return oS("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};dr.posix=dr;oy.exports=dr});import{createConfig as hd,loadConfig as Cx,DEFAULT_CONFIG as Sx}from"@redocly/openapi-core";var Ol;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>_n}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.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(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={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 $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var _n;(function(k){k.joinPath=function(b,...E){return b.with({path:Nt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...E);return P&&C[0]===rn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let E=Nt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(_n||(_n={})),Ol=r})();var{URI:jt,Utils:ne}=Ol;import{CONFIG_FILE_NAME as My}from"@redocly/openapi-core";var ks={languageId:"yaml",filePattern:/\.ya?ml$/i},As={languageId:"json",filePattern:/\.json$/i},ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[ks,As];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),My);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new ws;function Os(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return jt.parse(e)}function Pt(e){return jt.parse(e).fsPath}function mr(e){let t=["https","http"],{scheme:n}=jt.parse(e);return t.includes(n)}function hr(e){return ne.basename(Se(e))}async function ql(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Px,Source as md,readFileFromUrl as _x}from"@redocly/openapi-core";var gi=Ie(Pr(),1);import{isAbsoluteUrl as bx}from"@redocly/openapi-core";function id(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function oa(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function od(e){return e==="$ref"}async function sa(e,t){let n=jt.parse(t);return ne.joinPath(n,e).toString()}async function sd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await sa(i,n)===t)return r}function ad(e){return typeof e=="string"}function mi(e){return typeof e=="function"}function cd(e){return e?.kind===gi.Kind.MAP}function aa(e){return e?.kind===gi.Kind.MAPPING}function ca(e){return e?.kind===gi.Kind.SEQ}function _r(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ua(e){return bx(e)||e.startsWith("file://")}var hi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=pd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=ud(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=ud(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&ld(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},yi;(function(e){function t(i,o,s,a){return new hi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof hi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=la(o.map(vx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(yi||(yi={}));function la(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);la(r,t),la(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function ud(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ld(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ld(e){return e===13||e===10}function pd(e){let 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 vx(e){let t=pd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var dd=new Map;function fd(e,t){return dd.set(e,t)}function gd(e){let t=[];for(let[n,r]of dd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return yi.create(e,"yaml",1,n)}function pa(e){return As.filePattern.test(e)}function xx(e){return ks.filePattern.test(e)}var St=class extends Px{resolveExternalRef(t,n){return ua(n)?n:t&&ua(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(mr(t)){let{body:n,mimeType:r}=await _x(t,{...this.config.http,customFetch:fetch});return new md(t,n,r)}return new md(t,(await Qe(t)).getText())}};var Dt;async function bi(e,t){try{let n=new St,r=e?await be.findConfig(e):void 0;if(r===void 0)return Dt=await hd(Sx),Dt;Dt=await Cx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Dt=await hd({})}return Dt}async function An(e){return Dt||await bi(e)}async function pn(e){return await da(e)?!0:!!Dt?.resolvedRefMap&&[...Dt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Os(hr(e),n))}async function da(e){let t=await be.findConfig(e);return t?Os(e,t):!1}var yd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:yd,additionalProperties:!1},Dx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ft={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},yd),{like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Dx},additionalProperties:!1}},additionalProperties:!1};var Rx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},fa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},vi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ft,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:fa,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Rx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var On={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Tx={type:"object",properties:{name:{type:"string"},items:On,queries:On,mutations:On,subscriptions:On,types:On,directives:On},required:["name"],additionalProperties:!1},wx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Tx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},qn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},wx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:fa,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ft,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1};var kx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Ax={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},bd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Ox={type:"object",properties:{beforeInfo:{type:"array",items:bd},end:{type:"array",items:bd}}},dn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qx={type:"object",properties:Si(dn.properties,["light","dark"])},Nx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Ex={type:"object",properties:{error:xi,info:xi,redirect:xi,success:xi}},jx={type:"object",properties:Nn(dn.properties,["dark"])},Mx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Lx={type:"object",properties:{accent:dn,border:qx,error:dn,http:Nx,primary:dn,responses:Ex,secondary:jx,success:dn,text:Mx,tonalOffset:{type:"number"},warning:dn}},Pi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ix={type:"object",properties:{small:Pi,medium:Pi,large:Pi,xlarge:Pi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Fx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ix})},vd={type:"object",properties:Si(ft.properties,["fontSize","lineHeight"])},Ux={type:"object",properties:{medium:vd,small:vd}},Wx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ux})},Bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Hx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},xd={type:"object",properties:{fullWidth:{type:"boolean"}}},zx={type:"object",properties:{buttons:Fx,httpBadges:Wx,layoutControls:Bx,panels:Hx,tryItButton:xd,tryItSendButton:xd}},Ci={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},$x={type:"object",properties:{maxWidth:Ci}},Vx={type:"object",properties:{maxWidth:Ci,middlePanelMaxWidth:Ci}},Yx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:$x,"three-panel":Vx}},Pd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Gx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Pd,defaultDetailsWidth:{type:"string"},examples:Pd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Cd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Kx={type:"object",properties:Si(Cd.properties,["textTransform"])},Qx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Cd,level1items:Kx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Qx,textColor:{type:"string"},width:{type:"string"}})},_i={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Xx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Zx={type:"object",properties:Nn(ft.properties,["fontSize"])},eP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},tP={type:"object",properties:Object.assign(Object.assign({code:Xx,fieldName:ft},Si(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_i,heading2:_i,heading3:_i,headings:Zx,lineHeight:{type:"string"},links:eP,optimizeSpeed:{type:"boolean"},rightPanelHeading:_i,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},nP={type:"object",properties:Object.assign({color:{type:"string"}},Nn(ft.properties,["fontWeight"]))},rP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:nP}},iP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},oP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},_d={type:"object",properties:{custom:{type:"string"}}},sP={type:"object",properties:{DownloadButton:_d,NextSectionButton:_d}},aP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},cP={type:"object",properties:{borderRadius:{type:"string"}}},uP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},lP={type:"object",properties:{breakpoints:Ci,codeBlock:rP,colors:Lx,components:zx,layout:Yx,logo:iP,fab:oP,overrides:sP,rightPanel:aP,schema:Gx,shape:cP,sidebar:Jx,spacing:uP,typography:tP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},pP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:kx}},required:["languages"]},Sd={type:"object",properties:{theme:lP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:pP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Ax,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Ox,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Si(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Nn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Rt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Sr={rules:Rt,oas2Rules:Rt,oas3_0Rules:Rt,oas3_1Rules:Rt,oas3_2Rules:Rt,async2Rules:Rt,async3Rules:Rt,arazzo1Rules:Rt,overlay1Rules:Rt};var Tt={type:"object",additionalProperties:!0},Dr={preprocessors:Tt,oas2Preprocessors:Tt,oas3_0Preprocessors:Tt,oas3_1Preprocessors:Tt,oas3_2Preprocessors:Tt,async2Preprocessors:Tt,async3Preprocessors:Tt,arazzo1Preprocessors:Tt,overlay1Preprocessors:Tt},wt={type:"object",additionalProperties:!0};var Rr={decorators:wt,oas2Decorators:wt,oas3_0Decorators:wt,oas3_1Decorators:wt,oas3_2Decorators:wt,async2Decorators:wt,async3Decorators:wt,arazzo1Decorators:wt,overlay1Decorators:wt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Dd={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},ga={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},ma={type:"array",items:Object.assign(Object.assign({},ga),{properties:Object.assign(Object.assign({},ga.properties),{items:{type:"array",items:ga}})})},dP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},fP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},gP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},mP={type:"object",properties:Object.assign({facets:gP},Re.properties),additionalProperties:!1},hP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Di={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ri={type:"object",properties:Object.assign({items:ma},Re.properties),additionalProperties:!1},Ti={type:"object",additionalProperties:dP},wi={type:"object",properties:Object.assign({items:ma,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},ki={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ai={type:"object",properties:{head:{type:"array",items:Dd},body:{type:"array",items:Dd}},additionalProperties:!1},Oi={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},qi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:fP,filters:mP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:hP}},Re.properties),additionalProperties:!1},Ni={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"redocly"}},additionalProperties:!1}},additionalProperties:!1},Ei={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},yP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},ji={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:yP},additionalProperties:!1},Mi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Li={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},En=Object.assign(Object.assign({},vi),{properties:Object.assign(Object.assign({},vi.properties),Sd.properties)}),bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},_P={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},CP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},SP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},ha={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},DP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:ha}},additionalProperties:!1,required:["trackingId"]},Ii={type:"object",properties:{adobe:bP,amplitude:vP,fullstory:xP,heap:PP,rudderstack:_P,segment:CP,gtm:SP,ga:DP}},Fi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Ui={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},RP={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},TP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:RP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ma,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},jn={type:"object",patternProperties:{".*":TP}},Bi={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Sr),Dr),Rr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var wP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},kP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},AP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:kP},excludes:{type:"array",items:wP},filters:{type:"array",items:AP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},OP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},qP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:OP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},NP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:qP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},EP={type:"object",additionalProperties:NP},Hi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:EP,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi},additionalProperties:!0};var ba="https://redocly.com/sso/teams",Mn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Mn||(Mn={}));var Ln;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Ln||(Ln={}));var ya;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(ya||(ya={}));var va=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function zi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?zi(i,t):i)]:[n,zi(r,t)]}).filter(Boolean))}var jP={type:"object",additionalProperties:{type:"string"}},MP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},$i={type:"string",enum:["error","warn","off"]},LP={type:"object",additionalProperties:!1,properties:{schemaCheck:$i,statusCodeCheck:$i,contentTypeCheck:$i,successCriteriaCheck:$i}},IP={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},FP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},UP={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Rd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[IP,FP]},inputs:jP,servers:MP,severity:LP,slo:UP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var WP={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},BP={type:"object",properties:{type:{type:"string",const:Mn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:WP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},HP={type:"object",properties:{type:{type:"string",const:Mn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ba},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},zP={oneOf:[BP,HP],discriminator:{propertyName:"type"}},$P={type:"object",additionalProperties:zP},VP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},YP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},GP={type:"object",additionalProperties:YP,default:{}},Pa={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:En,graphql:qn,theme:{type:"object",properties:{openapi:En,graphql:qn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Sr),Dr),Rr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},KP={type:"object",additionalProperties:!0},QP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Td={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},wd={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Td},default:{llmstxt:Td.default},additionalProperties:!1},JP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},fn={type:"object",additionalProperties:{type:"string"}},Ad={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:fn,cms:fn,reunite:fn,features:{type:"object",properties:{aiSearch:fn},additionalProperties:!1},content:{type:"object",properties:{"**":fn},additionalProperties:fn}},additionalProperties:fn},XP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},ZP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},e_={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[XP,ZP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},t_={type:"object",properties:{type:{type:"string",const:Ln.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},n_={type:"object",properties:{type:{type:"string",const:Ln.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},xa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[t_,n_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},r_=Object.assign(Object.assign({},xa),{properties:Object.assign(Object.assign({},xa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),i_={type:"object",oneOf:[xa,r_,e_],discriminator:{propertyName:"type"}},o_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:i_}}},kd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},s_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},a_={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Tr={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:GP,seo:wd,rbac:Ad,apiFunctions:JP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:s_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Pa},extends:{type:"array",items:{type:"string"}}},Sr),Rr),Dr),{ssoDirect:$P,sso:VP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:o_,removeAttribution:{type:"boolean"},i18n:kd,l10n:kd,metadata:KP,metadataGlobs:QP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Rd,logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi,mcp:a_}),default:{redirects:{},seo:wd.default},additionalProperties:!0},c_=Object.assign(Object.assign({},zi(Tr,"default")),{additionalProperties:!1}),_a=Object.assign(Object.assign({$id:"root-redocly-config"},Tr),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Tr.properties),{env:{type:"object",additionalProperties:c_}}),default:{},additionalProperties:!1});var Ca={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,mockServer:Tr.properties.mockServer,analytics:{type:"object",properties:{ga:ha}}},additionalProperties:!0,default:{}},u_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Ca.properties),{apis:{type:"object",additionalProperties:Pa},theme:Ca}),additionalProperties:!1};var l_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},p_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},d_={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},f_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0};var g_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},m_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},h_={type:"object",properties:{type:{type:"string",enum:va},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Ut={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:g_,links:{type:"array",items:m_},relations:{type:"array",items:h_},metadata:{type:"object",additionalProperties:!0}},_R={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"user"},metadata:l_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-operation"},metadata:d_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"data-schema"},metadata:f_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-description"},metadata:p_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},CR={type:"object",properties:Object.assign({},Ut),required:["key","title","type"],additionalProperties:!1};var Le=Ie(Zt(),1);import{getLineColLocation as T0,lintDocument as w0,makeDocumentFromString as vl,lintConfig as k0,detectSpec as A0,createConfigTypes as O0}from"@redocly/openapi-core";import{bundleDocument as y0,isPlainObject as b0,makeDocumentFromString as v0,getTypes as x0,detectSpec as P0}from"@redocly/openapi-core";var Yh=new Map,ds=new Map;function _0(e){return e?Array.from(e).map(([t,n])=>[t,oa(n)]):[]}async function yl(e,t){let n=await An(),r=new St(n.resolve),i=v0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await y0({document:i,config:n,externalRefResolver:r,types:x0(P0(i.parsed))}),d=_0(l);l&&(ds=new Map([...ds,...l])),Yh.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:b0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function C0(){return Array.from(Yh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:hr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function bl(e){return ds.has(e)?ds.get(e):null}import{createConfig as S0,lintDocument as D0}from"@redocly/openapi-core";async function Gh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await R0(i):i,c=await S0({...s,plugins:a},{configPath:r}),l=await D0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function R0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
69
+ `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Jn=mn(),of;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(of||(He.MessageDirection=of={}));var ju=class{constructor(t){this.method=t}};He.RegistrationType=ju;var Mu=class extends Jn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Mu;var Lu=class extends Jn.RequestType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolRequestType=Lu;var Iu=class extends Jn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Iu;var Fu=class extends Jn.NotificationType{constructor(t){super(t,Jn.ParameterStructures.byName)}};He.ProtocolNotificationType=Fu});var Po=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function z_(e){return e===!0||e===!1}ve.boolean=z_;function sf(e){return typeof e=="string"||e instanceof String}ve.string=sf;function $_(e){return typeof e=="number"||e instanceof Number}ve.number=$_;function V_(e){return e instanceof Error}ve.error=V_;function Y_(e){return typeof e=="function"}ve.func=Y_;function af(e){return Array.isArray(e)}ve.array=af;function G_(e){return af(e)&&e.every(t=>sf(t))}ve.stringArray=G_;function K_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=K_;function Q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=Q_});var lf=S(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.ImplementationRequest=void 0;var cf=se(),uf;(function(e){e.method="textDocument/implementation",e.messageDirection=cf.MessageDirection.clientToServer,e.type=new cf.ProtocolRequestType(e.method)})(uf||(_o.ImplementationRequest=uf={}))});var ff=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.TypeDefinitionRequest=void 0;var pf=se(),df;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=pf.MessageDirection.clientToServer,e.type=new pf.ProtocolRequestType(e.method)})(df||(Co.TypeDefinitionRequest=df={}))});var hf=S(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.DidChangeWorkspaceFoldersNotification=Xn.WorkspaceFoldersRequest=void 0;var So=se(),gf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=So.MessageDirection.serverToClient,e.type=new So.ProtocolRequestType0(e.method)})(gf||(Xn.WorkspaceFoldersRequest=gf={}));var mf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=So.MessageDirection.clientToServer,e.type=new So.ProtocolNotificationType(e.method)})(mf||(Xn.DidChangeWorkspaceFoldersNotification=mf={}))});var vf=S(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ConfigurationRequest=void 0;var yf=se(),bf;(function(e){e.method="workspace/configuration",e.messageDirection=yf.MessageDirection.serverToClient,e.type=new yf.ProtocolRequestType(e.method)})(bf||(Do.ConfigurationRequest=bf={}))});var _f=S(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ColorPresentationRequest=Zn.DocumentColorRequest=void 0;var Ro=se(),xf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(xf||(Zn.DocumentColorRequest=xf={}));var Pf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Ro.MessageDirection.clientToServer,e.type=new Ro.ProtocolRequestType(e.method)})(Pf||(Zn.ColorPresentationRequest=Pf={}))});var Df=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.FoldingRangeRefreshRequest=er.FoldingRangeRequest=void 0;var To=se(),Cf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=To.MessageDirection.clientToServer,e.type=new To.ProtocolRequestType(e.method)})(Cf||(er.FoldingRangeRequest=Cf={}));var Sf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=To.MessageDirection.serverToClient,e.type=new To.ProtocolRequestType0(e.method)})(Sf||(er.FoldingRangeRefreshRequest=Sf={}))});var wf=S(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.DeclarationRequest=void 0;var Rf=se(),Tf;(function(e){e.method="textDocument/declaration",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)})(Tf||(wo.DeclarationRequest=Tf={}))});var Of=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.SelectionRangeRequest=void 0;var kf=se(),Af;(function(e){e.method="textDocument/selectionRange",e.messageDirection=kf.MessageDirection.clientToServer,e.type=new kf.ProtocolRequestType(e.method)})(Af||(ko.SelectionRangeRequest=Af={}))});var jf=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.WorkDoneProgressCancelNotification=$t.WorkDoneProgressCreateRequest=$t.WorkDoneProgress=void 0;var J_=mn(),Ao=se(),qf;(function(e){e.type=new J_.ProgressType;function t(n){return n===e.type}e.is=t})(qf||($t.WorkDoneProgress=qf={}));var Nf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Ao.MessageDirection.serverToClient,e.type=new Ao.ProtocolRequestType(e.method)})(Nf||($t.WorkDoneProgressCreateRequest=Nf={}));var Ef;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Ao.MessageDirection.clientToServer,e.type=new Ao.ProtocolNotificationType(e.method)})(Ef||($t.WorkDoneProgressCancelNotification=Ef={}))});var Ff=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var tr=se(),Mf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Mf||(Vt.CallHierarchyPrepareRequest=Mf={}));var Lf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Lf||(Vt.CallHierarchyIncomingCallsRequest=Lf={}));var If;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(If||(Vt.CallHierarchyOutgoingCallsRequest=If={}))});var $f=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var Ot=se(),Uf;(function(e){e.Relative="relative"})(Uf||(ze.TokenFormat=Uf={}));var Wr;(function(e){e.method="textDocument/semanticTokens",e.type=new Ot.RegistrationType(e.method)})(Wr||(ze.SemanticTokensRegistrationType=Wr={}));var Wf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Wf||(ze.SemanticTokensRequest=Wf={}));var Bf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Bf||(ze.SemanticTokensDeltaRequest=Bf={}));var Hf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Ot.MessageDirection.clientToServer,e.type=new Ot.ProtocolRequestType(e.method),e.registrationMethod=Wr.method})(Hf||(ze.SemanticTokensRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Ot.MessageDirection.serverToClient,e.type=new Ot.ProtocolRequestType0(e.method)})(zf||(ze.SemanticTokensRefreshRequest=zf={}))});var Gf=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ShowDocumentRequest=void 0;var Vf=se(),Yf;(function(e){e.method="window/showDocument",e.messageDirection=Vf.MessageDirection.serverToClient,e.type=new Vf.ProtocolRequestType(e.method)})(Yf||(Oo.ShowDocumentRequest=Yf={}))});var Jf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.LinkedEditingRangeRequest=void 0;var Kf=se(),Qf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Kf.MessageDirection.clientToServer,e.type=new Kf.ProtocolRequestType(e.method)})(Qf||(qo.LinkedEditingRangeRequest=Qf={}))});var og=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Xf;(function(e){e.file="file",e.folder="folder"})(Xf||(Ee.FileOperationPatternKind=Xf={}));var Zf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Zf||(Ee.WillCreateFilesRequest=Zf={}));var eg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(eg||(Ee.DidCreateFilesNotification=eg={}));var tg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(tg||(Ee.WillRenameFilesRequest=tg={}));var ng;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(ng||(Ee.DidRenameFilesNotification=ng={}));var rg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(rg||(Ee.DidDeleteFilesNotification=rg={}));var ig;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(ig||(Ee.WillDeleteFilesRequest=ig={}))});var lg=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.MonikerRequest=Yt.MonikerKind=Yt.UniquenessLevel=void 0;var sg=se(),ag;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(ag||(Yt.UniquenessLevel=ag={}));var cg;(function(e){e.$import="import",e.$export="export",e.local="local"})(cg||(Yt.MonikerKind=cg={}));var ug;(function(e){e.method="textDocument/moniker",e.messageDirection=sg.MessageDirection.clientToServer,e.type=new sg.ProtocolRequestType(e.method)})(ug||(Yt.MonikerRequest=ug={}))});var gg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var nr=se(),pg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(pg||(Gt.TypeHierarchyPrepareRequest=pg={}));var dg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(dg||(Gt.TypeHierarchySupertypesRequest=dg={}));var fg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method)})(fg||(Gt.TypeHierarchySubtypesRequest=fg={}))});var yg=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.InlineValueRefreshRequest=rr.InlineValueRequest=void 0;var No=se(),mg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(mg||(rr.InlineValueRequest=mg={}));var hg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(hg||(rr.InlineValueRefreshRequest=hg={}))});var Pg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.InlayHintRefreshRequest=Kt.InlayHintResolveRequest=Kt.InlayHintRequest=void 0;var ir=se(),bg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(bg||(Kt.InlayHintRequest=bg={}));var vg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(vg||(Kt.InlayHintResolveRequest=vg={}));var xg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(xg||(Kt.InlayHintRefreshRequest=xg={}))});var wg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Tg=mn(),X_=Po(),or=se(),_g;(function(e){function t(n){let r=n;return r&&X_.boolean(r.retriggerRequest)}e.is=t})(_g||(et.DiagnosticServerCancellationData=_g={}));var Cg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Cg||(et.DocumentDiagnosticReportKind=Cg={}));var Sg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Sg||(et.DocumentDiagnosticRequest=Sg={}));var Dg;(function(e){e.method="workspace/diagnostic",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method),e.partialResult=new Tg.ProgressType})(Dg||(et.WorkspaceDiagnosticRequest=Dg={}));var Rg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=or.MessageDirection.serverToClient,e.type=new or.ProtocolRequestType0(e.method)})(Rg||(et.DiagnosticRefreshRequest=Rg={}))});var jg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Br=(xo(),ni(vo)),ct=Po(),ht=se(),Uu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Uu||(de.NotebookCellKind=Uu={}));var Wu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Br.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Wu||(de.ExecutionSummary=Wu={}));var Eo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Uu.is(s.kind)&&Br.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Wu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(Eo||(de.NotebookCell=Eo={}));var kg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Br.integer.is(i.version)&&ct.typedArray(i.cells,Eo.is)}e.is=n})(kg||(de.NotebookDocument=kg={}));var sr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(sr||(de.NotebookDocumentSyncRegistrationType=sr={}));var Ag;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ag||(de.DidOpenNotebookDocumentNotification=Ag={}));var Og;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Br.uinteger.is(i.start)&&Br.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,Eo.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})(Og||(de.NotebookCellArrayChange=Og={}));var qg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(qg||(de.DidChangeNotebookDocumentNotification=qg={}));var Ng;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Ng||(de.DidSaveNotebookDocumentNotification=Ng={}));var Eg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=sr.method})(Eg||(de.DidCloseNotebookDocumentNotification=Eg={}))});var Ig=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.InlineCompletionRequest=void 0;var Mg=se(),Lg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Mg.MessageDirection.clientToServer,e.type=new Mg.ProtocolRequestType(e.method)})(Lg||(jo.InlineCompletionRequest=Lg={}))});var Jm=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var T=se(),Fg=(xo(),ni(vo)),Te=Po(),Z_=lf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return Z_.ImplementationRequest}});var eC=ff();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return eC.TypeDefinitionRequest}});var Ym=hf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Ym.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Ym.DidChangeWorkspaceFoldersNotification}});var tC=vf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return tC.ConfigurationRequest}});var Gm=_f();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return Gm.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return Gm.ColorPresentationRequest}});var Km=Df();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Km.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Km.FoldingRangeRefreshRequest}});var nC=wf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return nC.DeclarationRequest}});var rC=Of();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return rC.SelectionRangeRequest}});var Vu=jf();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Vu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Vu.WorkDoneProgressCancelNotification}});var Yu=Ff();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Yu.CallHierarchyPrepareRequest}});var ar=$f();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ar.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ar.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ar.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ar.SemanticTokensRegistrationType}});var iC=Gf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return iC.ShowDocumentRequest}});var oC=Jf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return oC.LinkedEditingRangeRequest}});var bn=og();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return bn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return bn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return bn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return bn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return bn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return bn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return bn.WillDeleteFilesRequest}});var Gu=lg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Gu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Gu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Gu.MonikerRequest}});var Ku=gg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Ku.TypeHierarchySupertypesRequest}});var Qm=yg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Qm.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Qm.InlineValueRefreshRequest}});var Qu=Pg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Qu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Qu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Qu.InlayHintRefreshRequest}});var Hr=wg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Hr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Hr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Hr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Hr.DiagnosticRefreshRequest}});var yt=jg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var sC=Ig();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return sC.InlineCompletionRequest}});var Bu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Bu||(u.TextDocumentFilter=Bu={}));var Hu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Hu||(u.NotebookDocumentFilter=Hu={}));var zu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Hu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(zu||(u.NotebookCellTextDocumentFilter=zu={}));var $u;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Bu.is(r)&&!zu.is(r))return!1;return!0}e.is=t})($u||(u.DocumentSelector=$u={}));var Ug;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ug||(u.RegistrationRequest=Ug={}));var Wg;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Wg||(u.UnregistrationRequest=Wg={}));var Bg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Bg||(u.ResourceOperationKind=Bg={}));var Hg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Hg||(u.FailureHandlingKind=Hg={}));var zg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(zg||(u.PositionEncodingKind=zg={}));var $g;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})($g||(u.StaticRegistrationOptions=$g={}));var Vg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||$u.is(r.documentSelector))}e.is=t})(Vg||(u.TextDocumentRegistrationOptions=Vg={}));var Yg;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(Yg||(u.WorkDoneProgressOptions=Yg={}));var Gg;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gg||(u.InitializeRequest=Gg={}));var Kg;(function(e){e.unknownProtocolVersion=1})(Kg||(u.InitializeErrorCodes=Kg={}));var Qg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Qg||(u.InitializedNotification=Qg={}));var Jg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Jg||(u.ShutdownRequest=Jg={}));var Xg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Xg||(u.ExitNotification=Xg={}));var Zg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Zg||(u.DidChangeConfigurationNotification=Zg={}));var em;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(em||(u.MessageType=em={}));var tm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(tm||(u.ShowMessageNotification=tm={}));var nm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(nm||(u.ShowMessageRequest=nm={}));var rm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.LogMessageNotification=rm={}));var im;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(im||(u.TelemetryEventNotification=im={}));var om;(function(e){e.None=0,e.Full=1,e.Incremental=2})(om||(u.TextDocumentSyncKind=om={}));var sm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(sm||(u.DidOpenTextDocumentNotification=sm={}));var am;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(am||(u.TextDocumentContentChangeEvent=am={}));var cm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(cm||(u.DidChangeTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.DidCloseTextDocumentNotification=um={}));var lm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(lm||(u.DidSaveTextDocumentNotification=lm={}));var pm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(pm||(u.TextDocumentSaveReason=pm={}));var dm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(dm||(u.WillSaveTextDocumentNotification=dm={}));var fm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(fm||(u.WillSaveTextDocumentWaitUntilRequest=fm={}));var gm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(u.DidChangeWatchedFilesNotification=gm={}));var mm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(mm||(u.FileChangeType=mm={}));var hm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Fg.URI.is(r.baseUri)||Fg.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(hm||(u.RelativePattern=hm={}));var ym;(function(e){e.Create=1,e.Change=2,e.Delete=4})(ym||(u.WatchKind=ym={}));var bm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(bm||(u.PublishDiagnosticsNotification=bm={}));var vm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(vm||(u.CompletionTriggerKind=vm={}));var xm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(xm||(u.CompletionRequest=xm={}));var Pm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.CompletionResolveRequest=Pm={}));var _m;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(_m||(u.HoverRequest=_m={}));var Cm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Cm||(u.SignatureHelpTriggerKind=Cm={}));var Sm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.SignatureHelpRequest=Sm={}));var Dm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.DefinitionRequest=Dm={}));var Rm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.ReferencesRequest=Rm={}));var Tm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.DocumentHighlightRequest=Tm={}));var wm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.DocumentSymbolRequest=wm={}));var km;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(km||(u.CodeActionRequest=km={}));var Am;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.CodeActionResolveRequest=Am={}));var Om;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.WorkspaceSymbolRequest=Om={}));var qm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.WorkspaceSymbolResolveRequest=qm={}));var Nm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.CodeLensRequest=Nm={}));var Em;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Em||(u.CodeLensResolveRequest=Em={}));var jm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(jm||(u.CodeLensRefreshRequest=jm={}));var Mm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentLinkRequest=Mm={}));var Lm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentLinkResolveRequest=Lm={}));var Im;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentFormattingRequest=Im={}));var Fm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.DocumentRangeFormattingRequest=Fm={}));var Um;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DocumentRangesFormattingRequest=Um={}));var Wm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Wm||(u.DocumentOnTypeFormattingRequest=Wm={}));var Bm;(function(e){e.Identifier=1})(Bm||(u.PrepareSupportDefaultBehavior=Bm={}));var Hm;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.RenameRequest=Hm={}));var zm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.PrepareRenameRequest=zm={}));var $m;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(u.ExecuteCommandRequest=$m={}));var Vm;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(Vm||(u.ApplyWorkspaceEditRequest=Vm={}))});var Zm=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createProtocolConnection=void 0;var Xm=mn();function aC(e,t,n,r){return Xm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Xm.createMessageConnection)(e,t,n,r)}Mo.createProtocolConnection=aC});var th=S($e=>{"use strict";var cC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Lo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Lo(mn(),$e);Lo((xo(),ni(vo)),$e);Lo(se(),$e);Lo(Jm(),$e);var uC=Zm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return uC.createProtocolConnection}});var eh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(eh||($e.LSPErrorCodes=eh={}))});var ye=S(bt=>{"use strict";var lC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),nh=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var pC=qc();nh(qc(),bt);nh(th(),bt);function dC(e,t,n,r){return(0,pC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=dC});var Xu=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.SemanticTokensBuilder=Qt.SemanticTokensDiff=Qt.SemanticTokensFeature=void 0;var Io=ye(),fC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Io.SemanticTokensRefreshRequest.type),on:t=>{let n=Io.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Io.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Io.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Qt.SemanticTokensFeature=fC;var Fo=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Qt.SemanticTokensDiff=Fo;var Ju=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Fo(this._prevData,this._data).computeDiff()}:this.build()}};Qt.SemanticTokensBuilder=Ju});var rh=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.InlineCompletionFeature=void 0;var gC=ye(),mC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(gC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Uo.InlineCompletionFeature=mC});var el=S(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TextDocuments=void 0;var vn=ye(),Zu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new vn.Emitter,this._onDidOpen=new vn.Emitter,this._onDidClose=new vn.Emitter,this._onDidSave=new vn.Emitter,this._onWillSave=new vn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=vn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),vn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Wo.TextDocuments=Zu});var nl=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NotebookDocuments=cr.NotebookSyncFeature=void 0;var tt=ye(),ih=el(),hC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};cr.NotebookSyncFeature=hC;var Bo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Bo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var tl=class{constructor(t){t instanceof ih.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new ih.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[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(t){let n=new Bo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};cr.NotebookDocuments=tl});var rl=S(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function yC(e){return e===!0||e===!1}xe.boolean=yC;function oh(e){return typeof e=="string"||e instanceof String}xe.string=oh;function bC(e){return typeof e=="number"||e instanceof Number}xe.number=bC;function vC(e){return e instanceof Error}xe.error=vC;function sh(e){return typeof e=="function"}xe.func=sh;function ah(e){return Array.isArray(e)}xe.array=ah;function xC(e){return ah(e)&&e.every(t=>oh(t))}xe.stringArray=xC;function PC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=PC;function _C(e){return e&&sh(e.then)}xe.thenable=_C});var il=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var zr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},$r=class e extends zr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};$r._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];$r._timeHighBits=["8","9","a","b"];nt.empty=new zr("00000000-0000-0000-0000-000000000000");function ch(){return new $r}nt.v4=ch;var CC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function uh(e){return CC.test(e)}nt.isUUID=uh;function SC(e){if(!uh(e))throw new Error("invalid uuid");return new zr(e)}nt.parse=SC;function DC(){return ch().asHex()}nt.generateUuid=DC});var lh=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.attachPartialResult=Xt.ProgressFeature=Xt.attachWorkDone=void 0;var Jt=ye(),RC=il(),xn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Jt.WorkDoneProgress.type,this._token,{kind:"end"})}};xn.Instances=new Map;var Ho=class extends xn{constructor(t,n){super(t,n),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Vr=class{constructor(){}begin(){}report(){}done(){}},zo=class extends Vr{constructor(){super(),this._source=new Jt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function TC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Vr;let n=t.workDoneToken;return delete t.workDoneToken,new xn(e,n)}Xt.attachWorkDone=TC;var wC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Jt.WorkDoneProgressCancelNotification.type,n=>{let r=xn.Instances.get(n.token);(r instanceof Ho||r instanceof zo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Vr:new xn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,RC.generateUuid)();return this.connection.sendRequest(Jt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Ho(this.connection,t))}else return Promise.resolve(new zo)}};Xt.ProgressFeature=wC;var ol;(function(e){e.type=new Jt.ProgressType})(ol||(ol={}));var sl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(ol.type,this._token,t)}};function kC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new sl(e,n)}Xt.attachPartialResult=kC});var ph=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ConfigurationFeature=void 0;var AC=ye(),OC=rl(),qC=e=>class extends e{getConfiguration(t){return t?OC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(AC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};$o.ConfigurationFeature=qC});var dh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.WorkspaceFoldersFeature=void 0;var Vo=ye(),NC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Vo.Emitter,this.connection.onNotification(Vo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Vo.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(Vo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Yo.WorkspaceFoldersFeature=NC});var fh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.CallHierarchyFeature=void 0;var al=ye(),EC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(al.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=al.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=al.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.CallHierarchyFeature=EC});var gh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ShowDocumentFeature=void 0;var jC=ye(),MC=e=>class extends e{showDocument(t){return this.connection.sendRequest(jC.ShowDocumentRequest.type,t)}};Ko.ShowDocumentFeature=MC});var mh=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.FileOperationsFeature=void 0;var ur=ye(),LC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(ur.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(ur.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(ur.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(ur.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(ur.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(ur.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Qo.FileOperationsFeature=LC});var hh=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.LinkedEditingRangeFeature=void 0;var IC=ye(),FC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(IC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Jo.LinkedEditingRangeFeature=FC});var yh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TypeHierarchyFeature=void 0;var cl=ye(),UC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(cl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=cl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=cl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xo.TypeHierarchyFeature=UC});var vh=S(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.InlineValueFeature=void 0;var bh=ye(),WC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(bh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(bh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Zo.InlineValueFeature=WC});var Ph=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.FoldingRangeFeature=void 0;var xh=ye(),BC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(xh.FoldingRangeRefreshRequest.type),on:t=>{let n=xh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};es.FoldingRangeFeature=BC});var _h=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.InlayHintFeature=void 0;var ul=ye(),HC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ul.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(ul.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(ul.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ts.InlayHintFeature=HC});var Ch=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.DiagnosticFeature=void 0;var Yr=ye(),zC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Yr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Yr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Yr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Yr.WorkspaceDiagnosticRequest.partialResult,n)))}}};ns.DiagnosticFeature=zC});var Sh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.MonikerFeature=void 0;var $C=ye(),VC=e=>class extends e{get moniker(){return{on:t=>{let n=$C.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rs.MonikerFeature=VC});var Fh=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=rl(),pl=il(),B=lh(),YC=ph(),GC=dh(),KC=fh(),QC=Xu(),JC=gh(),XC=mh(),ZC=hh(),e0=yh(),t0=vh(),n0=Ph(),r0=_h(),i0=Ch(),o0=nl(),s0=Sh();function ll(e){if(e!==null)return e}var dl=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=dl;var is=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},fl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(ll)}},Dh=(0,JC.ShowDocumentFeature)((0,B.ProgressFeature)(fl)),Rh;(function(e){function t(){return new os}e.create=t})(Rh||(Q.BulkRegistration=Rh={}));var os=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=pl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Th;(function(e){function t(){return new Gr(void 0,[])}e.create=t})(Th||(Q.BulkUnregistration=Th={}));var Gr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ss=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof os?this.registerMany(t):t instanceof Gr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=pl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=pl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new Gr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},gl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},wh=(0,XC.FileOperationsFeature)((0,GC.WorkspaceFoldersFeature)((0,YC.ConfigurationFeature)(gl))),as=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},cs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},us=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=us;var kh=(0,n0.FoldingRangeFeature)((0,s0.MonikerFeature)((0,i0.DiagnosticFeature)((0,r0.InlayHintFeature)((0,t0.InlineValueFeature)((0,e0.TypeHierarchyFeature)((0,ZC.LinkedEditingRangeFeature)((0,QC.SemanticTokensFeature)((0,KC.CallHierarchyFeature)(us))))))))),ls=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=ls;var Ah=(0,o0.NotebookSyncFeature)(ls);function Oh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=jh;function Mh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Mh;function Lh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Lh;function Ih(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Ih;function a0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Oh),tracer:n(e.tracer,t.tracer,Nh),telemetry:n(e.telemetry,t.telemetry,qh),client:n(e.client,t.client,Eh),window:n(e.window,t.window,jh),workspace:n(e.workspace,t.workspace,Mh),languages:n(e.languages,t.languages,Lh),notebooks:n(e.notebooks,t.notebooks,Ih)}}Q.combineFeatures=a0;function c0(e,t,n){let r=n&&n.console?new(n.console(is)):new is,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(as)):new as,s=n&&n.telemetry?new(n.telemetry(cs)):new cs,a=n&&n.client?new(n.client(ss)):new ss,c=n&&n.window?new(n.window(Dh)):new Dh,l=n&&n.workspace?new(n.workspace(wh)):new wh,d=n&&n.languages?new(n.languages(kh)):new kh,h=n&&n.notebooks?new(n.notebooks(Ah)):new Ah,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=c0});var ml=S(je=>{"use strict";var u0=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Wh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var l0=Xu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return l0.SemanticTokensBuilder}});var p0=rh();Wh(ye(),je);var d0=el();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return d0.TextDocuments}});var f0=nl();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return f0.NotebookDocuments}});Wh(Fh(),je);var Uh;(function(e){e.all={__brand:"features",languages:p0.InlineCompletionFeature}})(Uh||(je.ProposedFeatures=Uh={}))});var Hh=S((cw,Bh)=>{"use strict";Bh.exports=ye()});var hl=S(vt=>{"use strict";var g0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),$h=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&g0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var ps=ml();$h(Hh(),vt);$h(ml(),vt);var zh=!1,m0={initialize:e=>{},get shutdownReceived(){return zh},set shutdownReceived(e){zh=e},exit:e=>{}};function h0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),ps.ConnectionStrategy.is(e)||ps.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,ps.createProtocolConnection)(o,s,l,a);return(0,ps.createConnection)(c,m0,i)}vt.createConnection=h0});var Zt=S((lw,Vh)=>{"use strict";Vh.exports=hl()});var Rl=S((ek,oy)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function iy(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function oS(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var dr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=iy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=iy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=dr.resolve(t),n=dr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return oS("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};dr.posix=dr;oy.exports=dr});import{createConfig as hd,loadConfig as Cx,DEFAULT_CONFIG as Sx}from"@redocly/openapi-core";var Ol;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(on.length===0?on+="..":on+="/..");return on.length>0?on+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>_n}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.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(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={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 $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var _n;(function(k){k.joinPath=function(b,...E){return b.with({path:Nt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...E);return P&&C[0]===rn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===rn)return b;let E=Nt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(_n||(_n={})),Ol=r})();var{URI:jt,Utils:ne}=Ol;import{CONFIG_FILE_NAME as My}from"@redocly/openapi-core";var ks={languageId:"yaml",filePattern:/\.ya?ml$/i},As={languageId:"json",filePattern:/\.json$/i},ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[ks,As];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),My);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new ws;function Os(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return jt.parse(e)}function Pt(e){return jt.parse(e).fsPath}function mr(e){let t=["https","http"],{scheme:n}=jt.parse(e);return t.includes(n)}function hr(e){return ne.basename(Se(e))}async function ql(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as Px,Source as md,readFileFromUrl as _x}from"@redocly/openapi-core";var gi=Ie(Pr(),1);import{isAbsoluteUrl as bx}from"@redocly/openapi-core";function id(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function oa(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function od(e){return e==="$ref"}async function sa(e,t){let n=jt.parse(t);return ne.joinPath(n,e).toString()}async function sd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await sa(i,n)===t)return r}function ad(e){return typeof e=="string"}function mi(e){return typeof e=="function"}function cd(e){return e?.kind===gi.Kind.MAP}function aa(e){return e?.kind===gi.Kind.MAPPING}function ca(e){return e?.kind===gi.Kind.SEQ}function _r(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ua(e){return bx(e)||e.startsWith("file://")}var hi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=pd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=ud(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=ud(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&ld(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},yi;(function(e){function t(i,o,s,a){return new hi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof hi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=la(o.map(vx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(yi||(yi={}));function la(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);la(r,t),la(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function ud(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ld(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ld(e){return e===13||e===10}function pd(e){let 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 vx(e){let t=pd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var dd=new Map;function fd(e,t){return dd.set(e,t)}function gd(e){let t=[];for(let[n,r]of dd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return yi.create(e,"yaml",1,n)}function pa(e){return As.filePattern.test(e)}function xx(e){return ks.filePattern.test(e)}var St=class extends Px{resolveExternalRef(t,n){return ua(n)?n:t&&ua(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(mr(t)){let{body:n,mimeType:r}=await _x(t,{...this.config.http,customFetch:fetch});return new md(t,n,r)}return new md(t,(await Qe(t)).getText())}};var Dt;async function bi(e,t){try{let n=new St,r=e?await be.findConfig(e):void 0;if(r===void 0)return Dt=await hd(Sx),Dt;Dt=await Cx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),Dt=await hd({})}return Dt}async function An(e){return Dt||await bi(e)}async function pn(e){return await da(e)?!0:!!Dt?.resolvedRefMap&&[...Dt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Os(hr(e),n))}async function da(e){let t=await be.findConfig(e);return t?Os(e,t):!1}var yd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:yd,additionalProperties:!1},Dx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ft={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},yd),{like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Dx},additionalProperties:!1}},additionalProperties:!1};var Rx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},fa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},vi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ft,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:fa,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Rx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var On={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Tx={type:"object",properties:{name:{type:"string"},items:On,queries:On,mutations:On,subscriptions:On,types:On,directives:On},required:["name"],additionalProperties:!1},wx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Tx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},qn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},wx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:fa,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ft,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1};var kx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Ax={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},bd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Ox={type:"object",properties:{beforeInfo:{type:"array",items:bd},end:{type:"array",items:bd}}},dn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},xi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},qx={type:"object",properties:Si(dn.properties,["light","dark"])},Nx={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Ex={type:"object",properties:{error:xi,info:xi,redirect:xi,success:xi}},jx={type:"object",properties:Nn(dn.properties,["dark"])},Mx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Lx={type:"object",properties:{accent:dn,border:qx,error:dn,http:Nx,primary:dn,responses:Ex,secondary:jx,success:dn,text:Mx,tonalOffset:{type:"number"},warning:dn}},Pi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ix={type:"object",properties:{small:Pi,medium:Pi,large:Pi,xlarge:Pi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Fx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ix})},vd={type:"object",properties:Si(ft.properties,["fontSize","lineHeight"])},Ux={type:"object",properties:{medium:vd,small:vd}},Wx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ux})},Bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Hx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},xd={type:"object",properties:{fullWidth:{type:"boolean"}}},zx={type:"object",properties:{buttons:Fx,httpBadges:Wx,layoutControls:Bx,panels:Hx,tryItButton:xd,tryItSendButton:xd}},Ci={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},$x={type:"object",properties:{maxWidth:Ci}},Vx={type:"object",properties:{maxWidth:Ci,middlePanelMaxWidth:Ci}},Yx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:$x,"three-panel":Vx}},Pd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Gx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Pd,defaultDetailsWidth:{type:"string"},examples:Pd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Cd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Kx={type:"object",properties:Si(Cd.properties,["textTransform"])},Qx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({},Nn(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Cd,level1items:Kx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Qx,textColor:{type:"string"},width:{type:"string"}})},_i={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Xx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Zx={type:"object",properties:Nn(ft.properties,["fontSize"])},eP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},tP={type:"object",properties:Object.assign(Object.assign({code:Xx,fieldName:ft},Si(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_i,heading2:_i,heading3:_i,headings:Zx,lineHeight:{type:"string"},links:eP,optimizeSpeed:{type:"boolean"},rightPanelHeading:_i,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},nP={type:"object",properties:Object.assign({color:{type:"string"}},Nn(ft.properties,["fontWeight"]))},rP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:nP}},iP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},oP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},_d={type:"object",properties:{custom:{type:"string"}}},sP={type:"object",properties:{DownloadButton:_d,NextSectionButton:_d}},aP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},cP={type:"object",properties:{borderRadius:{type:"string"}}},uP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},lP={type:"object",properties:{breakpoints:Ci,codeBlock:rP,colors:Lx,components:zx,layout:Yx,logo:iP,fab:oP,overrides:sP,rightPanel:aP,schema:Gx,shape:cP,sidebar:Jx,spacing:uP,typography:tP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},pP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:kx}},required:["languages"]},Sd={type:"object",properties:{theme:lP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:pP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Ax,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Ox,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Si(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Nn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Rt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Sr={rules:Rt,oas2Rules:Rt,oas3_0Rules:Rt,oas3_1Rules:Rt,oas3_2Rules:Rt,async2Rules:Rt,async3Rules:Rt,arazzo1Rules:Rt,overlay1Rules:Rt};var Tt={type:"object",additionalProperties:!0},Dr={preprocessors:Tt,oas2Preprocessors:Tt,oas3_0Preprocessors:Tt,oas3_1Preprocessors:Tt,oas3_2Preprocessors:Tt,async2Preprocessors:Tt,async3Preprocessors:Tt,arazzo1Preprocessors:Tt,overlay1Preprocessors:Tt},wt={type:"object",additionalProperties:!0};var Rr={decorators:wt,oas2Decorators:wt,oas3_0Decorators:wt,oas3_1Decorators:wt,oas3_2Decorators:wt,async2Decorators:wt,async3Decorators:wt,arazzo1Decorators:wt,overlay1Decorators:wt};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Dd={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},ga={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},ma={type:"array",items:Object.assign(Object.assign({},ga),{properties:Object.assign(Object.assign({},ga.properties),{items:{type:"array",items:ga}})})},dP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},fP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},gP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},mP={type:"object",properties:Object.assign({facets:gP},Re.properties),additionalProperties:!1},hP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Di={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ri={type:"object",properties:Object.assign({items:ma},Re.properties),additionalProperties:!1},Ti={type:"object",additionalProperties:dP},wi={type:"object",properties:Object.assign({items:ma,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},ki={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ai={type:"object",properties:{head:{type:"array",items:Dd},body:{type:"array",items:Dd}},additionalProperties:!1},Oi={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},qi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:fP,filters:mP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:hP}},Re.properties),additionalProperties:!1},Ni={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Ei={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},yP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},ji={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:yP},additionalProperties:!1},Mi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Li={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},En=Object.assign(Object.assign({},vi),{properties:Object.assign(Object.assign({},vi.properties),Sd.properties)}),bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},_P={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},CP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},SP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},ha={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},DP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:ha}},additionalProperties:!1,required:["trackingId"]},Ii={type:"object",properties:{adobe:bP,amplitude:vP,fullstory:xP,heap:PP,rudderstack:_P,segment:CP,gtm:SP,ga:DP}},Fi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Ui={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Wi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},RP={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},TP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:RP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ma,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},jn={type:"object",patternProperties:{".*":TP}},Bi={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Sr),Dr),Rr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var wP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},kP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},AP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:kP},excludes:{type:"array",items:wP},filters:{type:"array",items:AP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},OP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},qP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:OP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},NP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:qP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},EP={type:"object",additionalProperties:NP},Hi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:EP,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi},additionalProperties:!0};var ba="https://redocly.com/sso/teams",Mn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Mn||(Mn={}));var Ln;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Ln||(Ln={}));var ya;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(ya||(ya={}));var va=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"];function zi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?zi(i,t):i)]:[n,zi(r,t)]}).filter(Boolean))}var jP={type:"object",additionalProperties:{type:"string"}},MP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},$i={type:"string",enum:["error","warn","off"]},LP={type:"object",additionalProperties:!1,properties:{schemaCheck:$i,statusCodeCheck:$i,contentTypeCheck:$i,successCriteriaCheck:$i}},IP={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},FP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},UP={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Rd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[IP,FP]},inputs:jP,servers:MP,severity:LP,slo:UP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var WP={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},BP={type:"object",properties:{type:{type:"string",const:Mn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:WP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},HP={type:"object",properties:{type:{type:"string",const:Mn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ba},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},zP={oneOf:[BP,HP],discriminator:{propertyName:"type"}},$P={type:"object",additionalProperties:zP},VP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},YP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},GP={type:"object",additionalProperties:YP,default:{}},Pa={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:En,graphql:qn,theme:{type:"object",properties:{openapi:En,graphql:qn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Sr),Dr),Rr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},KP={type:"object",additionalProperties:!0},QP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Td={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},wd={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Td},default:{llmstxt:Td.default},additionalProperties:!1},JP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},fn={type:"object",additionalProperties:{type:"string"}},Ad={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:fn,cms:fn,reunite:fn,features:{type:"object",properties:{aiSearch:fn},additionalProperties:!1},content:{type:"object",properties:{"**":fn},additionalProperties:fn}},additionalProperties:fn},XP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},ZP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},e_={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[XP,ZP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},t_={type:"object",properties:{type:{type:"string",const:Ln.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},n_={type:"object",properties:{type:{type:"string",const:Ln.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},xa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[t_,n_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},r_=Object.assign(Object.assign({},xa),{properties:Object.assign(Object.assign({},xa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),i_={type:"object",oneOf:[xa,r_,e_],discriminator:{propertyName:"type"}},o_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:i_}}},kd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},s_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},a_={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},Tr={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:GP,seo:wd,rbac:Ad,apiFunctions:JP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:s_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Pa},extends:{type:"array",items:{type:"string"}}},Sr),Rr),Dr),{ssoDirect:$P,sso:VP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:o_,removeAttribution:{type:"boolean"},i18n:kd,l10n:kd,metadata:KP,metadataGlobs:QP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Rd,logo:Di,navbar:Ri,products:Ti,footer:wi,sidebar:ki,scripts:Ai,links:Oi,feedback:Ft,search:qi,aiAssistant:Ni,colorMode:Ei,navigation:ji,codeSnippet:Mi,markdown:Li,openapi:En,graphql:qn,analytics:Ii,userMenu:Fi,versionPicker:Ui,breadcrumbs:Wi,catalog:jn,entitiesCatalog:Hi,catalogClassic:jn,scorecard:Bi,mcp:a_}),default:{redirects:{},seo:wd.default},additionalProperties:!0},c_=Object.assign(Object.assign({},zi(Tr,"default")),{additionalProperties:!1}),_a=Object.assign(Object.assign({$id:"root-redocly-config"},Tr),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Tr.properties),{env:{type:"object",additionalProperties:c_}}),default:{},additionalProperties:!1});var Ca={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,mockServer:Tr.properties.mockServer,analytics:{type:"object",properties:{ga:ha}}},additionalProperties:!0,default:{}},u_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},Ca.properties),{apis:{type:"object",additionalProperties:Pa},theme:Ca}),additionalProperties:!1};var l_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},p_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},d_={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},f_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0};var g_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},m_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},h_={type:"object",properties:{type:{type:"string",enum:va},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Ut={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:g_,links:{type:"array",items:m_},relations:{type:"array",items:h_},metadata:{type:"object",additionalProperties:!0}},_R={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"user"},metadata:l_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-operation"},metadata:d_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"data-schema"},metadata:f_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"api-description"},metadata:p_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Ut),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},CR={type:"object",properties:Object.assign({},Ut),required:["key","title","type"],additionalProperties:!1};var Le=Ie(Zt(),1);import{getLineColLocation as T0,lintDocument as w0,makeDocumentFromString as vl,lintConfig as k0,detectSpec as A0,createConfigTypes as O0}from"@redocly/openapi-core";import{bundleDocument as y0,isPlainObject as b0,makeDocumentFromString as v0,getTypes as x0,detectSpec as P0}from"@redocly/openapi-core";var Yh=new Map,ds=new Map;function _0(e){return e?Array.from(e).map(([t,n])=>[t,oa(n)]):[]}async function yl(e,t){let n=await An(),r=new St(n.resolve),i=v0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await y0({document:i,config:n,externalRefResolver:r,types:x0(P0(i.parsed))}),d=_0(l);l&&(ds=new Map([...ds,...l])),Yh.set(e.uri,{uri:e.uri,name:hr(e.uri),definition:b0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function C0(){return Array.from(Yh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:hr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function bl(e){return ds.has(e)?ds.get(e):null}import{createConfig as S0,lintDocument as D0}from"@redocly/openapi-core";async function Gh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await R0(i):i,c=await S0({...s,plugins:a},{configPath:r}),l=await D0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function R0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
70
70
  Plugins code preview:`,e.substring(0,500)+"..."),[]}}var q0=800,N0=5,xl=id(M0,q0);async function E0(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await An(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await sa(i,r);if(t.includes(o))return o}return t[0]}function j0(e){try{return A0(e),!0}catch{return!1}}async function M0(e){let t=e.uri,n=await An();if(await pn(Pt(t)))try{let r=await da(Pt(t))?vl(e.getText(),t):vl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new St,o=await k0({config:{document:r},externalRefResolver:i,externalConfigTypes:O0(_a,n)}),s=[{uri:e.uri,diagnostics:[]}];return Kh(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{let r=gd(t),i=await E0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=vl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!j0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new St(n.resolve),c=await be.getRootWorkspaceFolderURI(),l=await sd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await w0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&be.scorecardStatus==="enabled"?await Gh(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=U0(v);yl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),fd(t,{dependencyPaths:a.getFiles(),durationMS:R}),Kh(h,s)}catch(a){L0(e.uri,a,s)}return s}}function fs(){return be.documents.all().map(xl)}function L0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Qh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Qh(e,t,n){let r=n.find(i=>i.uri===e);return r||(r={uri:e,diagnostics:[]},n.push(r)),r.diagnostics.push(t),n}function I0(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-language-server",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
4
4
  "description": "Redocly OpenAPI language server",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -8,10 +8,10 @@
8
8
  "author": "Redocly LLC <team@redocly.com>",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "peerDependencies": {
11
- "@redocly/openapi-core": "2.8.0"
11
+ "@redocly/openapi-core": "2.10.0"
12
12
  },
13
13
  "devDependencies": {
14
- "@types/node": "22.15.3",
14
+ "@types/node": "22.18.13",
15
15
  "esbuild": "0.25.10",
16
16
  "npm-dts": "1.3.12",
17
17
  "path-browserify": "1.0.1",
@@ -24,7 +24,7 @@
24
24
  "vscode-languageserver": "^9.0.1",
25
25
  "vscode-languageserver-textdocument": "^1.0.12",
26
26
  "vscode-uri": "^3.1.0",
27
- "@redocly/config": "0.36.2"
27
+ "@redocly/config": "0.37.0"
28
28
  },
29
29
  "overrides": {
30
30
  "@redocly/config": "workspace:*"