@redocly/openapi-language-server 0.6.27 → 0.6.28

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 +2 -2
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 Hu(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}),u=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<=u)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");u=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),u=o.slice(a);i(c,s),i(u,s);let d=0,h=0,v=0;for(;d<c.length&&h<u.length;)s(c[d],u[h])<=0?o[v++]=c[d++]:o[v++]=u[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<u.length;)o[v++]=u[h++];return o}})(Bu||(Bu={}));Hu=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,D,F){return t.call(y)==="[object Number]"&&D<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;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,D){return Array.isArray(y)&&y.every(D)}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 er=hn(),Cf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Cf||(He.MessageDirection=Cf={}));var zu=class{constructor(t){this.method=t}};He.RegistrationType=zu;var $u=class extends er.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=$u;var Yu=class extends er.RequestType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolRequestType=Yu;var Vu=class extends er.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Vu;var Ku=class extends er.NotificationType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolNotificationType=Ku});var wo=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 yC(e){return e===!0||e===!1}ve.boolean=yC;function Sf(e){return typeof e=="string"||e instanceof String}ve.string=Sf;function bC(e){return typeof e=="number"||e instanceof Number}ve.number=bC;function vC(e){return e instanceof Error}ve.error=vC;function xC(e){return typeof e=="function"}ve.func=xC;function Rf(e){return Array.isArray(e)}ve.array=Rf;function PC(e){return Rf(e)&&e.every(t=>Sf(t))}ve.stringArray=PC;function _C(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=_C;function CC(e){return e!==null&&typeof e=="object"}ve.objectLiteral=CC});var wf=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ImplementationRequest=void 0;var Df=se(),Tf;(function(e){e.method="textDocument/implementation",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Tf||(ko.ImplementationRequest=Tf={}))});var Of=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TypeDefinitionRequest=void 0;var kf=se(),Af;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=kf.MessageDirection.clientToServer,e.type=new kf.ProtocolRequestType(e.method)})(Af||(Ao.TypeDefinitionRequest=Af={}))});var Nf=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DidChangeWorkspaceFoldersNotification=tr.WorkspaceFoldersRequest=void 0;var Oo=se(),qf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Oo.MessageDirection.serverToClient,e.type=new Oo.ProtocolRequestType0(e.method)})(qf||(tr.WorkspaceFoldersRequest=qf={}));var Ef;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Oo.MessageDirection.clientToServer,e.type=new Oo.ProtocolNotificationType(e.method)})(Ef||(tr.DidChangeWorkspaceFoldersNotification=Ef={}))});var Lf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationRequest=void 0;var jf=se(),Mf;(function(e){e.method="workspace/configuration",e.messageDirection=jf.MessageDirection.serverToClient,e.type=new jf.ProtocolRequestType(e.method)})(Mf||(qo.ConfigurationRequest=Mf={}))});var Uf=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ColorPresentationRequest=nr.DocumentColorRequest=void 0;var Eo=se(),Ff;(function(e){e.method="textDocument/documentColor",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(Ff||(nr.DocumentColorRequest=Ff={}));var If;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(If||(nr.ColorPresentationRequest=If={}))});var Hf=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.FoldingRangeRefreshRequest=rr.FoldingRangeRequest=void 0;var No=se(),Wf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(Wf||(rr.FoldingRangeRequest=Wf={}));var Bf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(Bf||(rr.FoldingRangeRefreshRequest=Bf={}))});var Yf=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeclarationRequest=void 0;var zf=se(),$f;(function(e){e.method="textDocument/declaration",e.messageDirection=zf.MessageDirection.clientToServer,e.type=new zf.ProtocolRequestType(e.method)})($f||(jo.DeclarationRequest=$f={}))});var Gf=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.SelectionRangeRequest=void 0;var Vf=se(),Kf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Vf.MessageDirection.clientToServer,e.type=new Vf.ProtocolRequestType(e.method)})(Kf||(Mo.SelectionRangeRequest=Kf={}))});var Zf=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WorkDoneProgressCancelNotification=Yt.WorkDoneProgressCreateRequest=Yt.WorkDoneProgress=void 0;var SC=hn(),Lo=se(),Qf;(function(e){e.type=new SC.ProgressType;function t(n){return n===e.type}e.is=t})(Qf||(Yt.WorkDoneProgress=Qf={}));var Jf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Lo.MessageDirection.serverToClient,e.type=new Lo.ProtocolRequestType(e.method)})(Jf||(Yt.WorkDoneProgressCreateRequest=Jf={}));var Xf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolNotificationType(e.method)})(Xf||(Yt.WorkDoneProgressCancelNotification=Xf={}))});var rg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var ir=se(),eg;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(eg||(Vt.CallHierarchyPrepareRequest=eg={}));var tg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(tg||(Vt.CallHierarchyIncomingCallsRequest=tg={}));var ng;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(ng||(Vt.CallHierarchyOutgoingCallsRequest=ng={}))});var ug=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 qt=se(),ig;(function(e){e.Relative="relative"})(ig||(ze.TokenFormat=ig={}));var $r;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})($r||(ze.SemanticTokensRegistrationType=$r={}));var og;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(og||(ze.SemanticTokensRequest=og={}));var sg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(sg||(ze.SemanticTokensDeltaRequest=sg={}));var ag;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(ag||(ze.SemanticTokensRangeRequest=ag={}));var cg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(cg||(ze.SemanticTokensRefreshRequest=cg={}))});var dg=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ShowDocumentRequest=void 0;var lg=se(),pg;(function(e){e.method="window/showDocument",e.messageDirection=lg.MessageDirection.serverToClient,e.type=new lg.ProtocolRequestType(e.method)})(pg||(Fo.ShowDocumentRequest=pg={}))});var mg=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeRequest=void 0;var fg=se(),gg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=fg.MessageDirection.clientToServer,e.type=new fg.ProtocolRequestType(e.method)})(gg||(Io.LinkedEditingRangeRequest=gg={}))});var Cg=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.WillDeleteFilesRequest=Ne.DidDeleteFilesNotification=Ne.DidRenameFilesNotification=Ne.WillRenameFilesRequest=Ne.DidCreateFilesNotification=Ne.WillCreateFilesRequest=Ne.FileOperationPatternKind=void 0;var Ze=se(),hg;(function(e){e.file="file",e.folder="folder"})(hg||(Ne.FileOperationPatternKind=hg={}));var yg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(yg||(Ne.WillCreateFilesRequest=yg={}));var bg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(bg||(Ne.DidCreateFilesNotification=bg={}));var vg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(vg||(Ne.WillRenameFilesRequest=vg={}));var xg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(xg||(Ne.DidRenameFilesNotification=xg={}));var Pg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Pg||(Ne.DidDeleteFilesNotification=Pg={}));var _g;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(_g||(Ne.WillDeleteFilesRequest=_g={}))});var wg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.MonikerRequest=Kt.MonikerKind=Kt.UniquenessLevel=void 0;var Sg=se(),Rg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Rg||(Kt.UniquenessLevel=Rg={}));var Dg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Dg||(Kt.MonikerKind=Dg={}));var Tg;(function(e){e.method="textDocument/moniker",e.messageDirection=Sg.MessageDirection.clientToServer,e.type=new Sg.ProtocolRequestType(e.method)})(Tg||(Kt.MonikerRequest=Tg={}))});var qg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var or=se(),kg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(kg||(Gt.TypeHierarchyPrepareRequest=kg={}));var Ag;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Ag||(Gt.TypeHierarchySupertypesRequest=Ag={}));var Og;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Og||(Gt.TypeHierarchySubtypesRequest=Og={}))});var jg=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.InlineValueRefreshRequest=sr.InlineValueRequest=void 0;var Uo=se(),Eg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Uo.MessageDirection.clientToServer,e.type=new Uo.ProtocolRequestType(e.method)})(Eg||(sr.InlineValueRequest=Eg={}));var Ng;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Uo.MessageDirection.serverToClient,e.type=new Uo.ProtocolRequestType0(e.method)})(Ng||(sr.InlineValueRefreshRequest=Ng={}))});var Ig=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.InlayHintRefreshRequest=Qt.InlayHintResolveRequest=Qt.InlayHintRequest=void 0;var ar=se(),Mg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Mg||(Qt.InlayHintRequest=Mg={}));var Lg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Lg||(Qt.InlayHintResolveRequest=Lg={}));var Fg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Fg||(Qt.InlayHintRefreshRequest=Fg={}))});var Yg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var $g=hn(),RC=wo(),cr=se(),Ug;(function(e){function t(n){let r=n;return r&&RC.boolean(r.retriggerRequest)}e.is=t})(Ug||(et.DiagnosticServerCancellationData=Ug={}));var Wg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Wg||(et.DocumentDiagnosticReportKind=Wg={}));var Bg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new $g.ProgressType})(Bg||(et.DocumentDiagnosticRequest=Bg={}));var Hg;(function(e){e.method="workspace/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new $g.ProgressType})(Hg||(et.WorkspaceDiagnosticRequest=Hg={}));var zg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(zg||(et.DiagnosticRefreshRequest=zg={}))});var Zg=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 Yr=(To(),ai(Do)),ut=wo(),_t=se(),Gu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Gu||(de.NotebookCellKind=Gu={}));var Qu;(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 ut.objectLiteral(o)&&Yr.uinteger.is(o.executionOrder)&&(o.success===void 0||ut.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})(Qu||(de.ExecutionSummary=Qu={}));var Wo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ut.objectLiteral(s)&&Gu.is(s.kind)&&Yr.DocumentUri.is(s.document)&&(s.metadata===void 0||ut.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)&&!Qu.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 u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(ut.objectLiteral(o)&&ut.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})(Wo||(de.NotebookCell=Wo={}));var Vg;(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 ut.objectLiteral(i)&&ut.string(i.uri)&&Yr.integer.is(i.version)&&ut.typedArray(i.cells,Wo.is)}e.is=n})(Vg||(de.NotebookDocument=Vg={}));var ur;(function(e){e.method="notebookDocument/sync",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.RegistrationType(e.method)})(ur||(de.NotebookDocumentSyncRegistrationType=ur={}));var Kg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Kg||(de.DidOpenNotebookDocumentNotification=Kg={}));var Gg;(function(e){function t(r){let i=r;return ut.objectLiteral(i)&&Yr.uinteger.is(i.start)&&Yr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ut.typedArray(i.cells,Wo.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})(Gg||(de.NotebookCellArrayChange=Gg={}));var Qg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Qg||(de.DidChangeNotebookDocumentNotification=Qg={}));var Jg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Jg||(de.DidSaveNotebookDocumentNotification=Jg={}));var Xg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Xg||(de.DidCloseNotebookDocumentNotification=Xg={}))});var nm=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlineCompletionRequest=void 0;var em=se(),tm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=em.MessageDirection.clientToServer,e.type=new em.ProtocolRequestType(e.method)})(tm||(Bo.InlineCompletionRequest=tm={}))});var mh=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var T=se(),rm=(To(),ai(Do)),Te=wo(),DC=wf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return DC.ImplementationRequest}});var TC=Of();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return TC.TypeDefinitionRequest}});var ph=Nf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ph.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ph.DidChangeWorkspaceFoldersNotification}});var wC=Lf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return wC.ConfigurationRequest}});var dh=Uf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return dh.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return dh.ColorPresentationRequest}});var fh=Hf();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return fh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return fh.FoldingRangeRefreshRequest}});var kC=Yf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return kC.DeclarationRequest}});var AC=Gf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return AC.SelectionRangeRequest}});var tl=Zf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return tl.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return tl.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return tl.WorkDoneProgressCancelNotification}});var nl=rg();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return nl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return nl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return nl.CallHierarchyPrepareRequest}});var lr=ug();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return lr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return lr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return lr.SemanticTokensRegistrationType}});var OC=dg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return OC.ShowDocumentRequest}});var qC=mg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return qC.LinkedEditingRangeRequest}});var vn=Cg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return vn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return vn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return vn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return vn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return vn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return vn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return vn.WillDeleteFilesRequest}});var rl=wg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return rl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return rl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return rl.MonikerRequest}});var il=qg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return il.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return il.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return il.TypeHierarchySupertypesRequest}});var gh=jg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return gh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return gh.InlineValueRefreshRequest}});var ol=Ig();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return ol.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return ol.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return ol.InlayHintRefreshRequest}});var Vr=Yg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Vr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Vr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Vr.DiagnosticRefreshRequest}});var Ct=Zg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return Ct.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return Ct.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return Ct.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return Ct.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Ct.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Ct.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidCloseNotebookDocumentNotification}});var EC=nm();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return EC.InlineCompletionRequest}});var Ju;(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})(Ju||(l.TextDocumentFilter=Ju={}));var Xu;(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})(Xu||(l.NotebookDocumentFilter=Xu={}));var Zu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Xu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Zu||(l.NotebookCellTextDocumentFilter=Zu={}));var el;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Ju.is(r)&&!Zu.is(r))return!1;return!0}e.is=t})(el||(l.DocumentSelector=el={}));var im;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(im||(l.RegistrationRequest=im={}));var om;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(om||(l.UnregistrationRequest=om={}));var sm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(sm||(l.ResourceOperationKind=sm={}));var am;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(am||(l.FailureHandlingKind=am={}));var cm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(cm||(l.PositionEncodingKind=cm={}));var um;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(um||(l.StaticRegistrationOptions=um={}));var lm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||el.is(r.documentSelector))}e.is=t})(lm||(l.TextDocumentRegistrationOptions=lm={}));var pm;(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})(pm||(l.WorkDoneProgressOptions=pm={}));var dm;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(dm||(l.InitializeRequest=dm={}));var fm;(function(e){e.unknownProtocolVersion=1})(fm||(l.InitializeErrorCodes=fm={}));var gm;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(l.InitializedNotification=gm={}));var mm;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(mm||(l.ShutdownRequest=mm={}));var hm;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(hm||(l.ExitNotification=hm={}));var ym;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(ym||(l.DidChangeConfigurationNotification=ym={}));var bm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(bm||(l.MessageType=bm={}));var vm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(vm||(l.ShowMessageNotification=vm={}));var xm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(xm||(l.ShowMessageRequest=xm={}));var Pm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Pm||(l.LogMessageNotification=Pm={}));var _m;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(_m||(l.TelemetryEventNotification=_m={}));var Cm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Cm||(l.TextDocumentSyncKind=Cm={}));var Sm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Sm||(l.DidOpenTextDocumentNotification=Sm={}));var Rm;(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})(Rm||(l.TextDocumentContentChangeEvent=Rm={}));var Dm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Dm||(l.DidChangeTextDocumentNotification=Dm={}));var Tm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Tm||(l.DidCloseTextDocumentNotification=Tm={}));var wm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(wm||(l.DidSaveTextDocumentNotification=wm={}));var km;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(km||(l.TextDocumentSaveReason=km={}));var Am;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Am||(l.WillSaveTextDocumentNotification=Am={}));var Om;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(l.WillSaveTextDocumentWaitUntilRequest=Om={}));var qm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(qm||(l.DidChangeWatchedFilesNotification=qm={}));var Em;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Em||(l.FileChangeType=Em={}));var Nm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(rm.URI.is(r.baseUri)||rm.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(Nm||(l.RelativePattern=Nm={}));var jm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(jm||(l.WatchKind=jm={}));var Mm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Mm||(l.PublishDiagnosticsNotification=Mm={}));var Lm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Lm||(l.CompletionTriggerKind=Lm={}));var Fm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(l.CompletionRequest=Fm={}));var Im;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(l.CompletionResolveRequest=Im={}));var Um;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(l.HoverRequest=Um={}));var Wm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Wm||(l.SignatureHelpTriggerKind=Wm={}));var Bm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(l.SignatureHelpRequest=Bm={}));var Hm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(l.DefinitionRequest=Hm={}));var zm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(l.ReferencesRequest=zm={}));var $m;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(l.DocumentHighlightRequest=$m={}));var Ym;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Ym||(l.DocumentSymbolRequest=Ym={}));var Vm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Vm||(l.CodeActionRequest=Vm={}));var Km;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Km||(l.CodeActionResolveRequest=Km={}));var Gm;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gm||(l.WorkspaceSymbolRequest=Gm={}));var Qm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Qm||(l.WorkspaceSymbolResolveRequest=Qm={}));var Jm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Jm||(l.CodeLensRequest=Jm={}));var Xm;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Xm||(l.CodeLensResolveRequest=Xm={}));var Zm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(Zm||(l.CodeLensRefreshRequest=Zm={}));var eh;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(eh||(l.DocumentLinkRequest=eh={}));var th;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(th||(l.DocumentLinkResolveRequest=th={}));var nh;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(nh||(l.DocumentFormattingRequest=nh={}));var rh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(rh||(l.DocumentRangeFormattingRequest=rh={}));var ih;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ih||(l.DocumentRangesFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(oh||(l.DocumentOnTypeFormattingRequest=oh={}));var sh;(function(e){e.Identifier=1})(sh||(l.PrepareSupportDefaultBehavior=sh={}));var ah;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ah||(l.RenameRequest=ah={}));var ch;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ch||(l.PrepareRenameRequest=ch={}));var uh;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(uh||(l.ExecuteCommandRequest=uh={}));var lh;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(lh||(l.ApplyWorkspaceEditRequest=lh={}))});var yh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.createProtocolConnection=void 0;var hh=hn();function NC(e,t,n,r){return hh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,hh.createMessageConnection)(e,t,n,r)}Ho.createProtocolConnection=NC});var vh=S($e=>{"use strict";var jC=$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]})),zo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;zo(hn(),$e);zo((To(),ai(Do)),$e);zo(se(),$e);zo(mh(),$e);var MC=yh();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return MC.createProtocolConnection}});var bh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(bh||($e.LSPErrorCodes=bh={}))});var ye=S(St=>{"use strict";var LC=St&&St.__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]})),xh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&LC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var FC=Wc();xh(Wc(),St);xh(vh(),St);function IC(e,t,n,r){return(0,FC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=IC});var al=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.SemanticTokensBuilder=Jt.SemanticTokensDiff=Jt.SemanticTokensFeature=void 0;var $o=ye(),UC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest($o.SemanticTokensRefreshRequest.type),on:t=>{let n=$o.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=$o.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=$o.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jt.SemanticTokensFeature=UC;var Yo=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}]:[]}};Jt.SemanticTokensDiff=Yo;var sl=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 Yo(this._prevData,this._data).computeDiff()}:this.build()}};Jt.SemanticTokensBuilder=sl});var Ph=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.InlineCompletionFeature=void 0;var WC=ye(),BC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(WC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Vo.InlineCompletionFeature=BC});var ul=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.TextDocuments=void 0;var xn=ye(),cl=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.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=xn.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}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ko.TextDocuments=cl});var pl=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.NotebookDocuments=pr.NotebookSyncFeature=void 0;var tt=ye(),_h=ul(),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)})}}};pr.NotebookSyncFeature=HC;var Go=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}};Go.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ll=class{constructor(t){t instanceof _h.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new _h.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 Go,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 u=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.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 Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.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 D=[];for(let V of u)D.push(this.getNotebookCell(V));let F=[];for(let V of d)F.push(this.getNotebookCell(V));let $=[];for(let V of v)$.push(this.getNotebookCell(V));(D.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:D,removed:F,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])}};pr.NotebookDocuments=ll});var dl=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 zC(e){return e===!0||e===!1}xe.boolean=zC;function Ch(e){return typeof e=="string"||e instanceof String}xe.string=Ch;function $C(e){return typeof e=="number"||e instanceof Number}xe.number=$C;function YC(e){return e instanceof Error}xe.error=YC;function Sh(e){return typeof e=="function"}xe.func=Sh;function Rh(e){return Array.isArray(e)}xe.array=Rh;function VC(e){return Rh(e)&&e.every(t=>Ch(t))}xe.stringArray=VC;function KC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=KC;function GC(e){return e&&Sh(e.then)}xe.thenable=GC});var fl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Kr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Gr=class e extends Kr{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(""))}};Gr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Gr._timeHighBits=["8","9","a","b"];nt.empty=new Kr("00000000-0000-0000-0000-000000000000");function Dh(){return new Gr}nt.v4=Dh;var QC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Th(e){return QC.test(e)}nt.isUUID=Th;function JC(e){if(!Th(e))throw new Error("invalid uuid");return new Kr(e)}nt.parse=JC;function XC(){return Dh().asHex()}nt.generateUuid=XC});var wh=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.attachPartialResult=Zt.ProgressFeature=Zt.attachWorkDone=void 0;var Xt=ye(),ZC=fl(),Pn=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(Xt.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(Xt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,{kind:"end"})}};Pn.Instances=new Map;var Qo=class extends Pn{constructor(t,n){super(t,n),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Qr=class{constructor(){}begin(){}report(){}done(){}},Jo=class extends Qr{constructor(){super(),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function e0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Qr;let n=t.workDoneToken;return delete t.workDoneToken,new Pn(e,n)}Zt.attachWorkDone=e0;var t0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Xt.WorkDoneProgressCancelNotification.type,n=>{let r=Pn.Instances.get(n.token);(r instanceof Qo||r instanceof Jo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Qr:new Pn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,ZC.generateUuid)();return this.connection.sendRequest(Xt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Qo(this.connection,t))}else return Promise.resolve(new Jo)}};Zt.ProgressFeature=t0;var gl;(function(e){e.type=new Xt.ProgressType})(gl||(gl={}));var ml=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(gl.type,this._token,t)}};function n0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new ml(e,n)}Zt.attachPartialResult=n0});var kh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ConfigurationFeature=void 0;var r0=ye(),i0=dl(),o0=e=>class extends e{getConfiguration(t){return t?i0.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(r0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Xo.ConfigurationFeature=o0});var Ah=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.WorkspaceFoldersFeature=void 0;var Zo=ye(),s0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Zo.Emitter,this.connection.onNotification(Zo.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(Zo.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(Zo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};es.WorkspaceFoldersFeature=s0});var Oh=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.CallHierarchyFeature=void 0;var hl=ye(),a0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(hl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=hl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=hl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ts.CallHierarchyFeature=a0});var qh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ShowDocumentFeature=void 0;var c0=ye(),u0=e=>class extends e{showDocument(t){return this.connection.sendRequest(c0.ShowDocumentRequest.type,t)}};ns.ShowDocumentFeature=u0});var Eh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.FileOperationsFeature=void 0;var dr=ye(),l0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(dr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(dr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(dr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(dr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(dr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(dr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};rs.FileOperationsFeature=l0});var Nh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.LinkedEditingRangeFeature=void 0;var p0=ye(),d0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(p0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};is.LinkedEditingRangeFeature=d0});var jh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TypeHierarchyFeature=void 0;var yl=ye(),f0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(yl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=yl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=yl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.TypeHierarchyFeature=f0});var Lh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.InlineValueFeature=void 0;var Mh=ye(),g0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Mh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Mh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ss.InlineValueFeature=g0});var Ih=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FoldingRangeFeature=void 0;var Fh=ye(),m0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Fh.FoldingRangeRefreshRequest.type),on:t=>{let n=Fh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.FoldingRangeFeature=m0});var Uh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlayHintFeature=void 0;var bl=ye(),h0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(bl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(bl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(bl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};cs.InlayHintFeature=h0});var Wh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.DiagnosticFeature=void 0;var Jr=ye(),y0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Jr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Jr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Jr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.WorkspaceDiagnosticRequest.partialResult,n)))}}};us.DiagnosticFeature=y0});var Bh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.MonikerFeature=void 0;var b0=ye(),v0=e=>class extends e{get moniker(){return{on:t=>{let n=b0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ls.MonikerFeature=v0});var ry=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=dl(),xl=fl(),B=wh(),x0=kh(),P0=Ah(),_0=Oh(),C0=al(),S0=qh(),R0=Eh(),D0=Nh(),T0=jh(),w0=Lh(),k0=Ih(),A0=Uh(),O0=Wh(),q0=pl(),E0=Bh();function vl(e){if(e!==null)return e}var Pl=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=Pl;var ps=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")})}},_l=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(vl)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(vl)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(vl)}},Hh=(0,S0.ShowDocumentFeature)((0,B.ProgressFeature)(_l)),zh;(function(e){function t(){return new ds}e.create=t})(zh||(Q.BulkRegistration=zh={}));var ds=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=xl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},$h;(function(e){function t(){return new Xr(void 0,[])}e.create=t})($h||(Q.BulkUnregistration=$h={}));var Xr=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}},fs=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 ds?this.registerMany(t):t instanceof Xr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=xl.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=xl.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 Xr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Cl=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)}},Yh=(0,R0.FileOperationsFeature)((0,P0.WorkspaceFoldersFeature)((0,x0.ConfigurationFeature)(Cl))),gs=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(()=>{})}},ms=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")})}},hs=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=hs;var Vh=(0,k0.FoldingRangeFeature)((0,E0.MonikerFeature)((0,O0.DiagnosticFeature)((0,A0.InlayHintFeature)((0,w0.InlineValueFeature)((0,T0.TypeHierarchyFeature)((0,D0.LinkedEditingRangeFeature)((0,C0.SemanticTokensFeature)((0,_0.CallHierarchyFeature)(hs))))))))),ys=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=ys;var Kh=(0,q0.NotebookSyncFeature)(ys);function Gh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=ny;function N0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Gh),tracer:n(e.tracer,t.tracer,Jh),telemetry:n(e.telemetry,t.telemetry,Qh),client:n(e.client,t.client,Xh),window:n(e.window,t.window,Zh),workspace:n(e.workspace,t.workspace,ey),languages:n(e.languages,t.languages,ty),notebooks:n(e.notebooks,t.notebooks,ny)}}Q.combineFeatures=N0;function j0(e,t,n){let r=n&&n.console?new(n.console(ps)):new ps,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(gs)):new gs,s=n&&n.telemetry?new(n.telemetry(ms)):new ms,a=n&&n.client?new(n.client(fs)):new fs,c=n&&n.window?new(n.window(Hh)):new Hh,u=n&&n.workspace?new(n.workspace(Yh)):new Yh,d=n&&n.languages?new(n.languages(Vh)):new Vh,h=n&&n.notebooks?new(n.notebooks(Kh)):new Kh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let D,F,$,V={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=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(D=m,{dispose:()=>{D=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 u},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(V);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(F){let g=F(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 Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return Y})}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,D)return D(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)}),V}Q.createConnection=j0});var Sl=S(je=>{"use strict";var M0=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]})),oy=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&M0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var L0=al();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return L0.SemanticTokensBuilder}});var F0=Ph();oy(ye(),je);var I0=ul();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return I0.TextDocuments}});var U0=pl();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return U0.NotebookDocuments}});oy(ry(),je);var iy;(function(e){e.all={__brand:"features",languages:F0.InlineCompletionFeature}})(iy||(je.ProposedFeatures=iy={}))});var ay=S((Bw,sy)=>{"use strict";sy.exports=ye()});var Rl=S(Rt=>{"use strict";var W0=Rt&&Rt.__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]})),uy=Rt&&Rt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&W0(t,e,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createConnection=void 0;var bs=Sl();uy(ay(),Rt);uy(Sl(),Rt);var cy=!1,B0={initialize:e=>{},get shutdownReceived(){return cy},set shutdownReceived(e){cy=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),bs.ConnectionStrategy.is(e)||bs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,bs.createProtocolConnection)(o,s,u,a);return(0,bs.createConnection)(c,B0,i)}Rt.createConnection=H0});var en=S((zw,ly)=>{"use strict";ly.exports=Rl()});var Ll=S((Lk,xy)=>{"use strict";function Dt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function vy(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 FS(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 mr={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),Dt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=vy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Dt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=vy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Dt(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];Dt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mr.normalize(t)},relative:function(t,n){if(Dt(t),Dt(n),t===n||(t=mr.resolve(t),n=mr.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,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(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 D="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Dt(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');Dt(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 u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===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){Dt(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 FS("/",t)},parse:function(t){Dt(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,u=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!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};mr.posix=mr;xy.exports=mr});import{createConfig as wd,loadConfig as Lx,DEFAULT_CONFIG as Fx}from"@redocly/openapi-core";var Bl;(()=>{"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 N(P,C){for(var R,E="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)R=P.charCodeAt(K);else{if(R===47)break;R=47}if(R===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var Ce=E.lastIndexOf("/");if(Ce!==E.length-1){Ce===-1?(E="",M=0):M=(E=E.slice(0,Ce)).length-1-E.lastIndexOf("/"),q=K,z=0;continue}}else if(E.length===2||E.length===1){E="",M=0,q=K,z=0;continue}}C&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+P.slice(q+1,K):E=P.slice(q+1,K),M=K-q-1;q=K,z=0}else R===46&&z!==-1?++z:z=-1}return E}var j={resolve:function(){for(var P,C="",R=!1,E=arguments.length-1;E>=-1&&!R;E--){var M;E>=0?M=arguments[E]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,R=M.charCodeAt(0)===47)}return C=N(C,!R),R?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,R=P.charCodeAt(P.length-1)===47;return(P=N(P,!C)).length!==0||C||(P="."),P.length>0&&R&&(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 R=arguments[C];b(R),R.length>0&&(P===void 0?P=R:P+="/"+R)}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 R=1;R<P.length&&P.charCodeAt(R)===47;++R);for(var E=P.length,M=E-R,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(R+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(R+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=R+Ce+1;ee<=E;++ee)ee!==E&&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),R=C===47,E=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){E=q;break}}else M=!1;return E===-1?R?"/":".":R&&E===1?"//":P.slice(0,E)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var R,E=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,K=-1;for(R=P.length-1;R>=0;--R){var Ce=P.charCodeAt(R);if(Ce===47){if(!q){E=R+1;break}}else K===-1&&(q=!1,K=R+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=R):(z=-1,M=K))}return E===M?M=K:M===-1&&(M=P.length),P.slice(E,M)}for(R=P.length-1;R>=0;--R)if(P.charCodeAt(R)===47){if(!q){E=R+1;break}}else M===-1&&(q=!1,M=R+1);return M===-1?"":P.slice(E,M)},extname:function(P){b(P);for(var C=-1,R=0,E=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)E===-1&&(M=!1,E=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){R=z+1;break}}return C===-1||E===-1||q===0||q===1&&C===E-1&&C===R+1?"":P.slice(C,E)},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,R){var E=R.dir||R.root,M=R.base||(R.name||"")+(R.ext||"");return E?E===R.root?E+M:E+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var R,E=P.charCodeAt(0),M=E===47;M?(C.root="/",R=1):R=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=R;--ee)if((E=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),E===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),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 N=t[k]={exports:{}};return e[k](N,N.exports,n),N.exports}n.d=(k,b)=>{for(var N in b)n.o(b,N)&&!n.o(k,N)&&Object.defineProperty(k,N,{enumerable:!0,get:b[N]})},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:()=>Cn}),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 u="",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,N,j,P,C,R=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(E,M){return E||M?E:"file"})(b,R),this.authority=N||u,this.path=(function(E,M){switch(E){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=C||u,c(this,R))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:N,authority:j,path:P,query:C,fragment:R}=b;return N===void 0?N=this.scheme:N===null&&(N=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),C===void 0?C=this.query:C===null&&(C=u),R===void 0?R=this.fragment:R===null&&(R=u),N===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&R===this.fragment?this:new D(N,j,P,C,R)}static parse(b,N=!1){let j=h.exec(b);return j?new D(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),N):new D(u,u,u,u,u)}static file(b){let N=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(N=b.substring(2),b=d):(N=b.substring(2,j),b=b.substring(j)||d)}return new D("file",N,b,u,u)}static from(b){let N=new D(b.scheme,b.authority,b.path,b.query,b.fragment);return c(N,!0),N}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let N=new D(b);return N._formatted=b.external,N._fsPath=b._sep===y?b.fsPath:null,N}}return b}}let y=i?1:void 0;class D 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 F={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,N){let j,P=-1;for(let C=0;C<k.length;C++){let R=k.charCodeAt(C);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||b&&R===47||N&&R===91||N&&R===93||N&&R===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 E=F[R];E!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=E):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function V(k){let b;for(let N=0;N<k.length;N++){let j=k.charCodeAt(N);j===35||j===63?(b===void 0&&(b=k.substr(0,N)),b+=F[j]):b!==void 0&&(b+=k[N])}return b!==void 0?b:k}function m(k,b){let N;return N=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&&(N=N.replace(/\//g,"\\")),N}function g(k,b){let N=b?V:$,j="",{scheme:P,authority:C,path:R,query:E,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+=N(z,!1,!1):(j+=N(z.substr(0,q),!1,!1),j+=":",j+=N(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=N(C,!1,!0):(j+=N(C.substr(0,q),!1,!0),j+=C.substr(q))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){let q=R.charCodeAt(1);q>=65&&q<=90&&(R=`/${String.fromCharCode(q+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){let q=R.charCodeAt(0);q>=65&&q<=90&&(R=`${String.fromCharCode(q+32)}:${R.substr(2)}`)}j+=N(R,!0,!1)}return E&&(j+="?",j+=N(E,!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 Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var Cn;(function(k){k.joinPath=function(b,...N){return b.with({path:Nt.join(b.path,...N)})},k.resolvePath=function(b,...N){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...N);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 N=Nt.dirname(b.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),b.with({path:N})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(Cn||(Cn={})),Bl=r})();var{URI:Mt,Utils:ne}=Bl;import{CONFIG_FILE_NAME as Jy}from"@redocly/openapi-core";var Ms={languageId:"yaml",filePattern:/\.ya?ml$/i},Ls={languageId:"json",filePattern:/\.json$/i},js=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ms,Ls];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Jy);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 js;function Fs(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Mt.parse(e)}function st(e){return Mt.parse(e).fsPath}function br(e){let t=["https","http"],{scheme:n}=Mt.parse(e);return t.includes(n)}function vr(e){return ne.basename(Se(e))}async function Hl(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 jx,Source as Td,readFileFromUrl as Mx}from"@redocly/openapi-core";var vi=Le(On(),1);import{isAbsoluteUrl as Ex}from"@redocly/openapi-core";function md(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:D})=>D(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:D})=>D(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let D=s.get(u.uri)||[];d||(s.set(u.uri,[...D,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:v,reject:y}])})}return c}function da(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 hd(e){return e==="$ref"}async function fa(e,t){let n=Mt.parse(t);return ne.joinPath(n,e).toString()}async function yd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await fa(i,n)===t)return r}function bd(e){return typeof e=="string"}function Sr(e){return typeof e=="function"}function vd(e){return e?.kind===vi.Kind.MAP}function ga(e){return e?.kind===vi.Kind.MAPPING}function ma(e){return e?.kind===vi.Kind.SEQ}function Rr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ha(e){return Ex(e)||e.startsWith("file://")}var xi=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=_d(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),u=this._lineOffsets,d=xd(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[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=xd(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&&Pd(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}},Pi;(function(e){function t(i,o,s,a){return new xi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof xi)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=ya(o.map(Nx),(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,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(Pi||(Pi={}));function ya(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ya(r,t),ya(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 xd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Pd(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Pd(e){return e===13||e===10}function _d(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 Nx(e){let t=_d(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var _i=Le(On(),1),Cd=new Map;function Sd(e,t){return Cd.set(e,t)}function Rd(e){let t=[];for(let[n,r]of Cd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ve(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return Pi.create(e,"yaml",1,n)}function ba(e){return Ls.filePattern.test(e)}function Dd(e){return Ms.filePattern.test(e)}function pn({uri:e,ast:t,textDocument:n}){if(!(Dd(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=_i.safeLoad(i,{filename:e})}if(t?.kind===_i.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var mt=class extends jx{resolveExternalRef(t,n){return ha(n)?n:t&&ha(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(br(t)){let{body:n,mimeType:r}=await Mx(t,{...this.config.http,customFetch:fetch});return new Td(t,n,r)}return new Td(t,(await Ve(t)).getText())}};var kt;async function Ci(e,t){try{let n=new mt,r=e?await be.findConfig(e):void 0;if(r===void 0)return kt=await wd(Fx),kt;kt=await Lx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),kt=await wd({})}return kt}async function qn(e){return kt||await Ci(e)}async function dn(e){return await va(e)?!0:!!kt?.resolvedRefMap&&[...kt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Fs(vr(e),n))}async function va(e){let t=await be.findConfig(e);return t?Fs(e,t):!1}var kd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Dr={type:"object",properties:kd,additionalProperties:!1},Ix={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ut={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({},kd),{like:Dr,dislike:Dr,satisfied:Dr,neutral:Dr,dissatisfied:Dr}),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:Ix},additionalProperties:!1}},additionalProperties:!1};var Ux={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},xa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Si={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ut,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:xa,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:Ux,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var En={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Wx={type:"object",properties:{name:{type:"string"},items:En,queries:En,mutations:En,subscriptions:En,types:En,directives:En},required:["name"],additionalProperties:!1},Bx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Wx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Hx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},zx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},$x={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Hx,license:zx},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Bx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:xa,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:Ut,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:$x},additionalProperties:!1};var Yx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Vx={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"}}},Ad={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Kx={type:"object",properties:{beforeInfo:{type:"array",items:Ad},end:{type:"array",items:Ad}}},fn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ri={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Gx={type:"object",properties:ki(fn.properties,["light","dark"])},Qx={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"}}},Jx={type:"object",properties:{error:Ri,info:Ri,redirect:Ri,success:Ri}},Xx={type:"object",properties:jn(fn.properties,["dark"])},Zx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},eP={type:"object",properties:{accent:fn,border:Gx,error:fn,http:Qx,primary:fn,responses:Jx,secondary:Xx,success:fn,text:Zx,tonalOffset:{type:"number"},warning:fn}},Di={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},tP={type:"object",properties:{small:Di,medium:Di,large:Di,xlarge:Di}},ht={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},nP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:tP})},Od={type:"object",properties:ki(ht.properties,["fontSize","lineHeight"])},rP={type:"object",properties:{medium:Od,small:Od}},iP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:rP})},oP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},sP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},qd={type:"object",properties:{fullWidth:{type:"boolean"}}},aP={type:"object",properties:{buttons:nP,httpBadges:iP,layoutControls:oP,panels:sP,tryItButton:qd,tryItSendButton:qd}},wi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},cP={type:"object",properties:{maxWidth:wi}},uP={type:"object",properties:{maxWidth:wi,middlePanelMaxWidth:wi}},lP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:cP,"three-panel":uP}},Ed={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},pP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ed,defaultDetailsWidth:{type:"string"},examples:Ed,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},jd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},dP={type:"object",properties:ki(jd.properties,["textTransform"])},fP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},gP={type:"object",properties:Object.assign(Object.assign({},jn(ht.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:jd,level1items:dP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:fP,textColor:{type:"string"},width:{type:"string"}})},Ti={type:"object",properties:Object.assign(Object.assign({},ht.properties),{color:{type:"string"},transform:{type:"string"}})},mP={type:"object",properties:Object.assign(Object.assign({},ht.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"}})},hP={type:"object",properties:jn(ht.properties,["fontSize"])},yP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},bP={type:"object",properties:Object.assign(Object.assign({code:mP,fieldName:ht},ki(ht.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ti,heading2:Ti,heading3:Ti,headings:hP,lineHeight:{type:"string"},links:yP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ti,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},vP={type:"object",properties:Object.assign({color:{type:"string"}},jn(ht.properties,["fontWeight"]))},xP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:vP}},PP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_P={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Nd={type:"object",properties:{custom:{type:"string"}}},CP={type:"object",properties:{DownloadButton:Nd,NextSectionButton:Nd}},SP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},RP={type:"object",properties:{borderRadius:{type:"string"}}},DP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},TP={type:"object",properties:{breakpoints:wi,codeBlock:xP,colors:eP,components:aP,layout:lP,logo:PP,fab:_P,overrides:CP,rightPanel:SP,schema:pP,shape:RP,sidebar:gP,spacing:DP,typography:bP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},wP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Yx}},required:["languages"]},Md={type:"object",properties:{theme:TP,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:wP,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:Vx,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:Kx,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 ki(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var yt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Tr={rules:yt,oas2Rules:yt,oas3_0Rules:yt,oas3_1Rules:yt,oas3_2Rules:yt,async2Rules:yt,async3Rules:yt,arazzo1Rules:yt,overlay1Rules:yt,openrpc1Rules:yt};var bt={type:"object",additionalProperties:!0},wr={preprocessors:bt,oas2Preprocessors:bt,oas3_0Preprocessors:bt,oas3_1Preprocessors:bt,oas3_2Preprocessors:bt,async2Preprocessors:bt,async3Preprocessors:bt,arazzo1Preprocessors:bt,overlay1Preprocessors:bt,openrpc1Preprocessors:bt},vt={type:"object",additionalProperties:!0};var kr={decorators:vt,oas2Decorators:vt,oas3_0Decorators:vt,oas3_1Decorators:vt,oas3_2Decorators:vt,async2Decorators:vt,async3Decorators:vt,arazzo1Decorators:vt,overlay1Decorators:vt,openrpc1Decorators:vt};var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ld={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},Pa={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}}},_a={type:"array",items:Object.assign(Object.assign({},Pa),{properties:Object.assign(Object.assign({},Pa.properties),{items:{type:"array",items:Pa}})})},kP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},AP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},OP={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}},qP={type:"object",properties:Object.assign({facets:OP},De.properties),additionalProperties:!1},EP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Ai={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Oi={type:"object",properties:Object.assign({items:_a},De.properties),additionalProperties:!1},qi={type:"object",additionalProperties:kP},Ei={type:"object",properties:Object.assign({items:_a,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Ni={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},ji={type:"object",properties:{head:{type:"array",items:Ld},body:{type:"array",items:Ld}},additionalProperties:!1},Mi={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}},Li={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:AP,filters:qP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:EP}},De.properties),additionalProperties:!1},Fi={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},Ii={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},NP={type:"object",properties:Object.assign(Object.assign({},De.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},Ui={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},actions:NP},additionalProperties:!1},Wi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},De.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Bi={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"}},De.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},De.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},De.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Mn=Object.assign(Object.assign({},Si),{properties:Object.assign(Object.assign({},Si.properties),Md.properties)}),jP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},MP={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"]},LP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},FP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},IP={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"]},UP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},WP={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"]},Ca={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"]},BP={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:Ca}},additionalProperties:!1,required:["trackingId"]},Hi={type:"object",properties:{adobe:jP,amplitude:MP,fullstory:LP,heap:FP,rudderstack:IP,segment:UP,gtm:WP,ga:BP}},zi={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"}},De.properties),additionalProperties:!1},$i={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Yi={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},HP={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"}}}},zP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:HP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:_a,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":zP}},Fn={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"}}},Tr),wr),kr),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 $P={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},YP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},VP={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},At={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:YP},excludes:{type:"array",items:$P},filters:{type:"array",items:VP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},KP={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},GP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:KP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},QP={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:GP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},JP={type:"object",additionalProperties:QP},Vi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:JP,catalogs:{type:"object",properties:{all:At,services:At,domains:At,teams:At,users:At,apiDescriptions:At,dataSchemas:At,apiOperations:At},additionalProperties:At}},additionalProperties:!1};var Ar={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Sa={type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},XP={type:"object",properties:{operator:Ar,conditions:{type:"array",items:Sa}},required:["operator","conditions"],additionalProperties:!1},Fd={type:"array",items:{oneOf:[Sa,{type:"object",properties:{operator:Ar,conditions:{type:"array",items:{oneOf:[Sa,XP]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ud={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},ZP={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Ud},required:["subject","assertions"],additionalProperties:!1}},e_={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Ud,where:ZP,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},t_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},e_]}},n_={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:t_},required:["name"],additionalProperties:!1},Id={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},r_={oneOf:[Id,{type:"array",items:Id}]},i_={type:"object",properties:{name:{type:"string"},description:{type:"string"},entities:{oneOf:[Fd,{type:"object",properties:{operator:Ar,conditions:Fd},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:n_,minItems:1},trigger:r_},required:["name","entities","levels"],additionalProperties:!1},Ki={type:"array",items:i_};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn},additionalProperties:!0};var Da="https://redocly.com/sso/teams",In;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(In||(In={}));var Un;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Un||(Un={}));var Ra;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Ra||(Ra={}));var Ta=["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 Gi(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"?Gi(i,t):i)]:[n,Gi(r,t)]}).filter(Boolean))}var o_={type:"object",additionalProperties:{type:"string"}},s_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Qi={type:"string",enum:["error","warn","off"]},a_={type:"object",additionalProperties:!1,properties:{schemaCheck:Qi,statusCodeCheck:Qi,contentTypeCheck:Qi,successCriteriaCheck:Qi}},c_={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},u_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},l_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Wd={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:[c_,u_]},inputs:o_,servers:s_,severity:a_,slo:l_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var p_={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},d_={type:"object",properties:{type:{type:"string",const:In.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:p_,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},f_={type:"object",properties:{type:{type:"string",const:In.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Da},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},g_={oneOf:[d_,f_],discriminator:{propertyName:"type"}},m_={type:"object",additionalProperties:g_},$d={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Yd={type:"boolean"},Vd={type:"string",pattern:"^https?://.*"},Kd={type:"string",pattern:"^https?://.*"},h_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},y_={type:"object",additionalProperties:h_,default:{}},b_={type:"string",enum:["info","success","warning","error"],default:"info"},v_={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:b_},required:["content"],additionalProperties:!1},x_={type:"array",items:v_,default:[]},ka={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:Mn,graphql:Nn,theme:{type:"object",properties:{openapi:Mn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Tr),wr),kr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},P_={type:"object",additionalProperties:!0},__={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Bd={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},Hd={type:"object",properties:{title:{type:"string"},projectTitle:{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:Bd},default:{llmstxt:Bd.default},additionalProperties:!1},C_={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},gn={type:"object",additionalProperties:{type:"string"}},Aa={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:gn,cms:gn,reunite:gn,features:{type:"object",properties:{aiSearch:gn},additionalProperties:!1},content:{type:"object",properties:{"**":gn},additionalProperties:gn}},additionalProperties:gn},S_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},R_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},D_={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:[S_,R_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},T_={type:"object",properties:{type:{type:"string",const:Un.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},w_={type:"object",properties:{type:{type:"string",const:Un.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},wa={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_,w_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},k_=Object.assign(Object.assign({},wa),{properties:Object.assign(Object.assign({},wa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),A_={type:"object",oneOf:[wa,k_,D_],discriminator:{propertyName:"type"}},O_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:A_}}},zd={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"]},q_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},E_={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:[]}}},N_={type:"object",properties:{requiresLogin:Yd,logoutReturnUrl:Vd,residency:Kd,sso:$d,rbac:Aa},additionalProperties:!1},Or={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:y_,seo:Hd,rbac:Aa,apiFunctions:C_,requiresLogin:Yd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:q_}},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:ka},extends:{type:"array",items:{type:"string"}}},Tr),kr),wr),{ssoDirect:m_,sso:$d,residency:Kd,logoutReturnUrl:Vd,access:N_,developerOnboarding:O_,removeAttribution:{type:"boolean"},i18n:zd,l10n:zd,metadata:P_,metadataGlobs:__,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Wd,logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn,mcp:E_,banner:x_}),default:{redirects:{},seo:Hd.default},additionalProperties:!0},j_=Object.assign(Object.assign({},Gi(Or,"default")),{additionalProperties:!1}),Oa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:j_}}),default:{},additionalProperties:!1});var qa={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:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ca}}},additionalProperties:!0,default:{}},M_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},qa.properties),{apis:{type:"object",additionalProperties:ka},theme:qa}),additionalProperties:!1};var L_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},F_={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},I_={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},U_={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 W_={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},B_={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:Ta},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Wt={version:{type:"string"},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:W_,links:{type:"array",items:B_},relations:{type:"array",items:H_},metadata:{type:"object",additionalProperties:!0}},Ji={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"user"},metadata:L_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-operation"},metadata:I_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"data-schema"},metadata:U_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-description"},metadata:F_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},Xi={type:"object",properties:Object.assign({},Wt),required:["key","title","type"],additionalProperties:!1};var Fe=Le(en(),1);import{getLineColLocation as eS,lintDocument as tS,makeDocumentFromString as xs,lintConfig as nS,lintEntityFile as rS,detectSpec as iS,createConfigTypes as oS}from"@redocly/openapi-core";import{bundleDocument as z0,isPlainObject as $0,makeDocumentFromString as Y0,getTypes as V0,detectSpec as K0}from"@redocly/openapi-core";var py=new Map,vs=new Map;function G0(e){return e?Array.from(e).map(([t,n])=>[t,da(n)]):[]}async function Dl(e,t){let n=await qn(),r=new mt(n.resolve),i=Y0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:u}=await z0({document:i,config:n,externalRefResolver:r,types:V0(K0(i.parsed))}),d=G0(u);u&&(vs=new Map([...vs,...u])),py.set(e.uri,{uri:e.uri,name:vr(e.uri),definition:$0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function Q0(){return Array.from(py).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:vr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Tl(e){return vs.has(e)?vs.get(e):null}import{createConfig as J0,lintDocument as X0}from"@redocly/openapi-core";async function dy(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await Z0(i):i,c=await J0({...s,plugins:a},{configPath:r}),u=await X0({document:e,externalRefResolver:t,config:c});o.push(...u.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function Z0(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,D,F){return t.call(y)==="[object Number]"&&D<=y&&y<=F}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;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,D){return Array.isArray(y)&&y.every(D)}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 er=hn(),Cf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Cf||(He.MessageDirection=Cf={}));var zu=class{constructor(t){this.method=t}};He.RegistrationType=zu;var $u=class extends er.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=$u;var Yu=class extends er.RequestType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolRequestType=Yu;var Vu=class extends er.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Vu;var Ku=class extends er.NotificationType{constructor(t){super(t,er.ParameterStructures.byName)}};He.ProtocolNotificationType=Ku});var wo=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 yC(e){return e===!0||e===!1}ve.boolean=yC;function Sf(e){return typeof e=="string"||e instanceof String}ve.string=Sf;function bC(e){return typeof e=="number"||e instanceof Number}ve.number=bC;function vC(e){return e instanceof Error}ve.error=vC;function xC(e){return typeof e=="function"}ve.func=xC;function Rf(e){return Array.isArray(e)}ve.array=Rf;function PC(e){return Rf(e)&&e.every(t=>Sf(t))}ve.stringArray=PC;function _C(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=_C;function CC(e){return e!==null&&typeof e=="object"}ve.objectLiteral=CC});var wf=S(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ImplementationRequest=void 0;var Df=se(),Tf;(function(e){e.method="textDocument/implementation",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Tf||(ko.ImplementationRequest=Tf={}))});var Of=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.TypeDefinitionRequest=void 0;var kf=se(),Af;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=kf.MessageDirection.clientToServer,e.type=new kf.ProtocolRequestType(e.method)})(Af||(Ao.TypeDefinitionRequest=Af={}))});var Nf=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DidChangeWorkspaceFoldersNotification=tr.WorkspaceFoldersRequest=void 0;var Oo=se(),qf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=Oo.MessageDirection.serverToClient,e.type=new Oo.ProtocolRequestType0(e.method)})(qf||(tr.WorkspaceFoldersRequest=qf={}));var Ef;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=Oo.MessageDirection.clientToServer,e.type=new Oo.ProtocolNotificationType(e.method)})(Ef||(tr.DidChangeWorkspaceFoldersNotification=Ef={}))});var Lf=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationRequest=void 0;var jf=se(),Mf;(function(e){e.method="workspace/configuration",e.messageDirection=jf.MessageDirection.serverToClient,e.type=new jf.ProtocolRequestType(e.method)})(Mf||(qo.ConfigurationRequest=Mf={}))});var Uf=S(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ColorPresentationRequest=nr.DocumentColorRequest=void 0;var Eo=se(),Ff;(function(e){e.method="textDocument/documentColor",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(Ff||(nr.DocumentColorRequest=Ff={}));var If;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Eo.MessageDirection.clientToServer,e.type=new Eo.ProtocolRequestType(e.method)})(If||(nr.ColorPresentationRequest=If={}))});var Hf=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.FoldingRangeRefreshRequest=rr.FoldingRangeRequest=void 0;var No=se(),Wf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=No.MessageDirection.clientToServer,e.type=new No.ProtocolRequestType(e.method)})(Wf||(rr.FoldingRangeRequest=Wf={}));var Bf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=No.MessageDirection.serverToClient,e.type=new No.ProtocolRequestType0(e.method)})(Bf||(rr.FoldingRangeRefreshRequest=Bf={}))});var Yf=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeclarationRequest=void 0;var zf=se(),$f;(function(e){e.method="textDocument/declaration",e.messageDirection=zf.MessageDirection.clientToServer,e.type=new zf.ProtocolRequestType(e.method)})($f||(jo.DeclarationRequest=$f={}))});var Gf=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.SelectionRangeRequest=void 0;var Vf=se(),Kf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Vf.MessageDirection.clientToServer,e.type=new Vf.ProtocolRequestType(e.method)})(Kf||(Mo.SelectionRangeRequest=Kf={}))});var Zf=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.WorkDoneProgressCancelNotification=Yt.WorkDoneProgressCreateRequest=Yt.WorkDoneProgress=void 0;var SC=hn(),Lo=se(),Qf;(function(e){e.type=new SC.ProgressType;function t(n){return n===e.type}e.is=t})(Qf||(Yt.WorkDoneProgress=Qf={}));var Jf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Lo.MessageDirection.serverToClient,e.type=new Lo.ProtocolRequestType(e.method)})(Jf||(Yt.WorkDoneProgressCreateRequest=Jf={}));var Xf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolNotificationType(e.method)})(Xf||(Yt.WorkDoneProgressCancelNotification=Xf={}))});var rg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CallHierarchyOutgoingCallsRequest=Vt.CallHierarchyIncomingCallsRequest=Vt.CallHierarchyPrepareRequest=void 0;var ir=se(),eg;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(eg||(Vt.CallHierarchyPrepareRequest=eg={}));var tg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(tg||(Vt.CallHierarchyIncomingCallsRequest=tg={}));var ng;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method)})(ng||(Vt.CallHierarchyOutgoingCallsRequest=ng={}))});var ug=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 qt=se(),ig;(function(e){e.Relative="relative"})(ig||(ze.TokenFormat=ig={}));var $r;(function(e){e.method="textDocument/semanticTokens",e.type=new qt.RegistrationType(e.method)})($r||(ze.SemanticTokensRegistrationType=$r={}));var og;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(og||(ze.SemanticTokensRequest=og={}));var sg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(sg||(ze.SemanticTokensDeltaRequest=sg={}));var ag;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=qt.MessageDirection.clientToServer,e.type=new qt.ProtocolRequestType(e.method),e.registrationMethod=$r.method})(ag||(ze.SemanticTokensRangeRequest=ag={}));var cg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=qt.MessageDirection.serverToClient,e.type=new qt.ProtocolRequestType0(e.method)})(cg||(ze.SemanticTokensRefreshRequest=cg={}))});var dg=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ShowDocumentRequest=void 0;var lg=se(),pg;(function(e){e.method="window/showDocument",e.messageDirection=lg.MessageDirection.serverToClient,e.type=new lg.ProtocolRequestType(e.method)})(pg||(Fo.ShowDocumentRequest=pg={}))});var mg=S(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.LinkedEditingRangeRequest=void 0;var fg=se(),gg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=fg.MessageDirection.clientToServer,e.type=new fg.ProtocolRequestType(e.method)})(gg||(Io.LinkedEditingRangeRequest=gg={}))});var Cg=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.WillDeleteFilesRequest=Ne.DidDeleteFilesNotification=Ne.DidRenameFilesNotification=Ne.WillRenameFilesRequest=Ne.DidCreateFilesNotification=Ne.WillCreateFilesRequest=Ne.FileOperationPatternKind=void 0;var Ze=se(),hg;(function(e){e.file="file",e.folder="folder"})(hg||(Ne.FileOperationPatternKind=hg={}));var yg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(yg||(Ne.WillCreateFilesRequest=yg={}));var bg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(bg||(Ne.DidCreateFilesNotification=bg={}));var vg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(vg||(Ne.WillRenameFilesRequest=vg={}));var xg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(xg||(Ne.DidRenameFilesNotification=xg={}));var Pg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Pg||(Ne.DidDeleteFilesNotification=Pg={}));var _g;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(_g||(Ne.WillDeleteFilesRequest=_g={}))});var wg=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.MonikerRequest=Kt.MonikerKind=Kt.UniquenessLevel=void 0;var Sg=se(),Rg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Rg||(Kt.UniquenessLevel=Rg={}));var Dg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Dg||(Kt.MonikerKind=Dg={}));var Tg;(function(e){e.method="textDocument/moniker",e.messageDirection=Sg.MessageDirection.clientToServer,e.type=new Sg.ProtocolRequestType(e.method)})(Tg||(Kt.MonikerRequest=Tg={}))});var qg=S(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.TypeHierarchySubtypesRequest=Gt.TypeHierarchySupertypesRequest=Gt.TypeHierarchyPrepareRequest=void 0;var or=se(),kg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(kg||(Gt.TypeHierarchyPrepareRequest=kg={}));var Ag;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Ag||(Gt.TypeHierarchySupertypesRequest=Ag={}));var Og;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=or.MessageDirection.clientToServer,e.type=new or.ProtocolRequestType(e.method)})(Og||(Gt.TypeHierarchySubtypesRequest=Og={}))});var jg=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.InlineValueRefreshRequest=sr.InlineValueRequest=void 0;var Uo=se(),Eg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=Uo.MessageDirection.clientToServer,e.type=new Uo.ProtocolRequestType(e.method)})(Eg||(sr.InlineValueRequest=Eg={}));var Ng;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Uo.MessageDirection.serverToClient,e.type=new Uo.ProtocolRequestType0(e.method)})(Ng||(sr.InlineValueRefreshRequest=Ng={}))});var Ig=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.InlayHintRefreshRequest=Qt.InlayHintResolveRequest=Qt.InlayHintRequest=void 0;var ar=se(),Mg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Mg||(Qt.InlayHintRequest=Mg={}));var Lg;(function(e){e.method="inlayHint/resolve",e.messageDirection=ar.MessageDirection.clientToServer,e.type=new ar.ProtocolRequestType(e.method)})(Lg||(Qt.InlayHintResolveRequest=Lg={}));var Fg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=ar.MessageDirection.serverToClient,e.type=new ar.ProtocolRequestType0(e.method)})(Fg||(Qt.InlayHintRefreshRequest=Fg={}))});var Yg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var $g=hn(),RC=wo(),cr=se(),Ug;(function(e){function t(n){let r=n;return r&&RC.boolean(r.retriggerRequest)}e.is=t})(Ug||(et.DiagnosticServerCancellationData=Ug={}));var Wg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Wg||(et.DocumentDiagnosticReportKind=Wg={}));var Bg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new $g.ProgressType})(Bg||(et.DocumentDiagnosticRequest=Bg={}));var Hg;(function(e){e.method="workspace/diagnostic",e.messageDirection=cr.MessageDirection.clientToServer,e.type=new cr.ProtocolRequestType(e.method),e.partialResult=new $g.ProgressType})(Hg||(et.WorkspaceDiagnosticRequest=Hg={}));var zg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=cr.MessageDirection.serverToClient,e.type=new cr.ProtocolRequestType0(e.method)})(zg||(et.DiagnosticRefreshRequest=zg={}))});var Zg=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 Yr=(To(),ai(Do)),ut=wo(),_t=se(),Gu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Gu||(de.NotebookCellKind=Gu={}));var Qu;(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 ut.objectLiteral(o)&&Yr.uinteger.is(o.executionOrder)&&(o.success===void 0||ut.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})(Qu||(de.ExecutionSummary=Qu={}));var Wo;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ut.objectLiteral(s)&&Gu.is(s.kind)&&Yr.DocumentUri.is(s.document)&&(s.metadata===void 0||ut.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)&&!Qu.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 u=0;u<o.length;u++)if(!i(o[u],s[u]))return!1}if(ut.objectLiteral(o)&&ut.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})(Wo||(de.NotebookCell=Wo={}));var Vg;(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 ut.objectLiteral(i)&&ut.string(i.uri)&&Yr.integer.is(i.version)&&ut.typedArray(i.cells,Wo.is)}e.is=n})(Vg||(de.NotebookDocument=Vg={}));var ur;(function(e){e.method="notebookDocument/sync",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.RegistrationType(e.method)})(ur||(de.NotebookDocumentSyncRegistrationType=ur={}));var Kg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Kg||(de.DidOpenNotebookDocumentNotification=Kg={}));var Gg;(function(e){function t(r){let i=r;return ut.objectLiteral(i)&&Yr.uinteger.is(i.start)&&Yr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ut.typedArray(i.cells,Wo.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})(Gg||(de.NotebookCellArrayChange=Gg={}));var Qg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Qg||(de.DidChangeNotebookDocumentNotification=Qg={}));var Jg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Jg||(de.DidSaveNotebookDocumentNotification=Jg={}));var Xg;(function(e){e.method="notebookDocument/didClose",e.messageDirection=_t.MessageDirection.clientToServer,e.type=new _t.ProtocolNotificationType(e.method),e.registrationMethod=ur.method})(Xg||(de.DidCloseNotebookDocumentNotification=Xg={}))});var nm=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlineCompletionRequest=void 0;var em=se(),tm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=em.MessageDirection.clientToServer,e.type=new em.ProtocolRequestType(e.method)})(tm||(Bo.InlineCompletionRequest=tm={}))});var mh=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var T=se(),rm=(To(),ai(Do)),Te=wo(),DC=wf();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return DC.ImplementationRequest}});var TC=Of();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return TC.TypeDefinitionRequest}});var ph=Nf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ph.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ph.DidChangeWorkspaceFoldersNotification}});var wC=Lf();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return wC.ConfigurationRequest}});var dh=Uf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return dh.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return dh.ColorPresentationRequest}});var fh=Hf();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return fh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return fh.FoldingRangeRefreshRequest}});var kC=Yf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return kC.DeclarationRequest}});var AC=Gf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return AC.SelectionRangeRequest}});var tl=Zf();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return tl.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return tl.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return tl.WorkDoneProgressCancelNotification}});var nl=rg();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return nl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return nl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return nl.CallHierarchyPrepareRequest}});var lr=ug();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return lr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return lr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return lr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return lr.SemanticTokensRegistrationType}});var OC=dg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return OC.ShowDocumentRequest}});var qC=mg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return qC.LinkedEditingRangeRequest}});var vn=Cg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return vn.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return vn.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return vn.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return vn.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return vn.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return vn.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return vn.WillDeleteFilesRequest}});var rl=wg();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return rl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return rl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return rl.MonikerRequest}});var il=qg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return il.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return il.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return il.TypeHierarchySupertypesRequest}});var gh=jg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return gh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return gh.InlineValueRefreshRequest}});var ol=Ig();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return ol.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return ol.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return ol.InlayHintRefreshRequest}});var Vr=Yg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Vr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Vr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Vr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Vr.DiagnosticRefreshRequest}});var Ct=Zg();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return Ct.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return Ct.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return Ct.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return Ct.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Ct.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Ct.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Ct.DidCloseNotebookDocumentNotification}});var EC=nm();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return EC.InlineCompletionRequest}});var Ju;(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})(Ju||(l.TextDocumentFilter=Ju={}));var Xu;(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})(Xu||(l.NotebookDocumentFilter=Xu={}));var Zu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Xu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Zu||(l.NotebookCellTextDocumentFilter=Zu={}));var el;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Ju.is(r)&&!Zu.is(r))return!1;return!0}e.is=t})(el||(l.DocumentSelector=el={}));var im;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(im||(l.RegistrationRequest=im={}));var om;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(om||(l.UnregistrationRequest=om={}));var sm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(sm||(l.ResourceOperationKind=sm={}));var am;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(am||(l.FailureHandlingKind=am={}));var cm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(cm||(l.PositionEncodingKind=cm={}));var um;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(um||(l.StaticRegistrationOptions=um={}));var lm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||el.is(r.documentSelector))}e.is=t})(lm||(l.TextDocumentRegistrationOptions=lm={}));var pm;(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})(pm||(l.WorkDoneProgressOptions=pm={}));var dm;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(dm||(l.InitializeRequest=dm={}));var fm;(function(e){e.unknownProtocolVersion=1})(fm||(l.InitializeErrorCodes=fm={}));var gm;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(gm||(l.InitializedNotification=gm={}));var mm;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(mm||(l.ShutdownRequest=mm={}));var hm;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(hm||(l.ExitNotification=hm={}));var ym;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(ym||(l.DidChangeConfigurationNotification=ym={}));var bm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(bm||(l.MessageType=bm={}));var vm;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(vm||(l.ShowMessageNotification=vm={}));var xm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(xm||(l.ShowMessageRequest=xm={}));var Pm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Pm||(l.LogMessageNotification=Pm={}));var _m;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(_m||(l.TelemetryEventNotification=_m={}));var Cm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Cm||(l.TextDocumentSyncKind=Cm={}));var Sm;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Sm||(l.DidOpenTextDocumentNotification=Sm={}));var Rm;(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})(Rm||(l.TextDocumentContentChangeEvent=Rm={}));var Dm;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Dm||(l.DidChangeTextDocumentNotification=Dm={}));var Tm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Tm||(l.DidCloseTextDocumentNotification=Tm={}));var wm;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(wm||(l.DidSaveTextDocumentNotification=wm={}));var km;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(km||(l.TextDocumentSaveReason=km={}));var Am;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Am||(l.WillSaveTextDocumentNotification=Am={}));var Om;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(l.WillSaveTextDocumentWaitUntilRequest=Om={}));var qm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(qm||(l.DidChangeWatchedFilesNotification=qm={}));var Em;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Em||(l.FileChangeType=Em={}));var Nm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(rm.URI.is(r.baseUri)||rm.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(Nm||(l.RelativePattern=Nm={}));var jm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(jm||(l.WatchKind=jm={}));var Mm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(Mm||(l.PublishDiagnosticsNotification=Mm={}));var Lm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Lm||(l.CompletionTriggerKind=Lm={}));var Fm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(l.CompletionRequest=Fm={}));var Im;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(l.CompletionResolveRequest=Im={}));var Um;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(l.HoverRequest=Um={}));var Wm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Wm||(l.SignatureHelpTriggerKind=Wm={}));var Bm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(l.SignatureHelpRequest=Bm={}));var Hm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(l.DefinitionRequest=Hm={}));var zm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(l.ReferencesRequest=zm={}));var $m;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})($m||(l.DocumentHighlightRequest=$m={}));var Ym;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Ym||(l.DocumentSymbolRequest=Ym={}));var Vm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Vm||(l.CodeActionRequest=Vm={}));var Km;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Km||(l.CodeActionResolveRequest=Km={}));var Gm;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Gm||(l.WorkspaceSymbolRequest=Gm={}));var Qm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Qm||(l.WorkspaceSymbolResolveRequest=Qm={}));var Jm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Jm||(l.CodeLensRequest=Jm={}));var Xm;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Xm||(l.CodeLensResolveRequest=Xm={}));var Zm;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(Zm||(l.CodeLensRefreshRequest=Zm={}));var eh;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(eh||(l.DocumentLinkRequest=eh={}));var th;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(th||(l.DocumentLinkResolveRequest=th={}));var nh;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(nh||(l.DocumentFormattingRequest=nh={}));var rh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(rh||(l.DocumentRangeFormattingRequest=rh={}));var ih;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ih||(l.DocumentRangesFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(oh||(l.DocumentOnTypeFormattingRequest=oh={}));var sh;(function(e){e.Identifier=1})(sh||(l.PrepareSupportDefaultBehavior=sh={}));var ah;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ah||(l.RenameRequest=ah={}));var ch;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(ch||(l.PrepareRenameRequest=ch={}));var uh;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(uh||(l.ExecuteCommandRequest=uh={}));var lh;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})(lh||(l.ApplyWorkspaceEditRequest=lh={}))});var yh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.createProtocolConnection=void 0;var hh=hn();function NC(e,t,n,r){return hh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,hh.createMessageConnection)(e,t,n,r)}Ho.createProtocolConnection=NC});var vh=S($e=>{"use strict";var jC=$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]})),zo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;zo(hn(),$e);zo((To(),ai(Do)),$e);zo(se(),$e);zo(mh(),$e);var MC=yh();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return MC.createProtocolConnection}});var bh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(bh||($e.LSPErrorCodes=bh={}))});var ye=S(St=>{"use strict";var LC=St&&St.__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]})),xh=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&LC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var FC=Wc();xh(Wc(),St);xh(vh(),St);function IC(e,t,n,r){return(0,FC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=IC});var al=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.SemanticTokensBuilder=Jt.SemanticTokensDiff=Jt.SemanticTokensFeature=void 0;var $o=ye(),UC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest($o.SemanticTokensRefreshRequest.type),on:t=>{let n=$o.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=$o.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=$o.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jt.SemanticTokensFeature=UC;var Yo=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}]:[]}};Jt.SemanticTokensDiff=Yo;var sl=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 Yo(this._prevData,this._data).computeDiff()}:this.build()}};Jt.SemanticTokensBuilder=sl});var Ph=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.InlineCompletionFeature=void 0;var WC=ye(),BC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(WC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Vo.InlineCompletionFeature=BC});var ul=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.TextDocuments=void 0;var xn=ye(),cl=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new xn.Emitter,this._onDidOpen=new xn.Emitter,this._onDidClose=new xn.Emitter,this._onDidSave=new xn.Emitter,this._onWillSave=new xn.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=xn.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}))})),xn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ko.TextDocuments=cl});var pl=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.NotebookDocuments=pr.NotebookSyncFeature=void 0;var tt=ye(),_h=ul(),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)})}}};pr.NotebookSyncFeature=HC;var Go=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}};Go.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ll=class{constructor(t){t instanceof _h.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new _h.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 Go,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 u=[],d=[],h=[],v=[];if(c.cells!==void 0){let V=c.cells;if(V.structure!==void 0){let m=V.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),V.structure.didOpen!==void 0)for(let g of V.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(V.structure.didClose)for(let g of V.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(V.data!==void 0){let m=new Map(V.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 Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(V.textContent!==void 0)for(let m of V.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 D=[];for(let V of u)D.push(this.getNotebookCell(V));let F=[];for(let V of d)F.push(this.getNotebookCell(V));let $=[];for(let V of v)$.push(this.getNotebookCell(V));(D.length>0||F.length>0||h.length>0||$.length>0)&&(y.cells={added:D,removed:F,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])}};pr.NotebookDocuments=ll});var dl=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 zC(e){return e===!0||e===!1}xe.boolean=zC;function Ch(e){return typeof e=="string"||e instanceof String}xe.string=Ch;function $C(e){return typeof e=="number"||e instanceof Number}xe.number=$C;function YC(e){return e instanceof Error}xe.error=YC;function Sh(e){return typeof e=="function"}xe.func=Sh;function Rh(e){return Array.isArray(e)}xe.array=Rh;function VC(e){return Rh(e)&&e.every(t=>Ch(t))}xe.stringArray=VC;function KC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=KC;function GC(e){return e&&Sh(e.then)}xe.thenable=GC});var fl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Kr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Gr=class e extends Kr{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(""))}};Gr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Gr._timeHighBits=["8","9","a","b"];nt.empty=new Kr("00000000-0000-0000-0000-000000000000");function Dh(){return new Gr}nt.v4=Dh;var QC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Th(e){return QC.test(e)}nt.isUUID=Th;function JC(e){if(!Th(e))throw new Error("invalid uuid");return new Kr(e)}nt.parse=JC;function XC(){return Dh().asHex()}nt.generateUuid=XC});var wh=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.attachPartialResult=Zt.ProgressFeature=Zt.attachWorkDone=void 0;var Xt=ye(),ZC=fl(),Pn=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(Xt.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(Xt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Xt.WorkDoneProgress.type,this._token,{kind:"end"})}};Pn.Instances=new Map;var Qo=class extends Pn{constructor(t,n){super(t,n),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Qr=class{constructor(){}begin(){}report(){}done(){}},Jo=class extends Qr{constructor(){super(),this._source=new Xt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function e0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Qr;let n=t.workDoneToken;return delete t.workDoneToken,new Pn(e,n)}Zt.attachWorkDone=e0;var t0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Xt.WorkDoneProgressCancelNotification.type,n=>{let r=Pn.Instances.get(n.token);(r instanceof Qo||r instanceof Jo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Qr:new Pn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,ZC.generateUuid)();return this.connection.sendRequest(Xt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Qo(this.connection,t))}else return Promise.resolve(new Jo)}};Zt.ProgressFeature=t0;var gl;(function(e){e.type=new Xt.ProgressType})(gl||(gl={}));var ml=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(gl.type,this._token,t)}};function n0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new ml(e,n)}Zt.attachPartialResult=n0});var kh=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ConfigurationFeature=void 0;var r0=ye(),i0=dl(),o0=e=>class extends e{getConfiguration(t){return t?i0.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(r0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Xo.ConfigurationFeature=o0});var Ah=S(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.WorkspaceFoldersFeature=void 0;var Zo=ye(),s0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Zo.Emitter,this.connection.onNotification(Zo.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(Zo.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(Zo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};es.WorkspaceFoldersFeature=s0});var Oh=S(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.CallHierarchyFeature=void 0;var hl=ye(),a0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(hl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=hl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=hl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ts.CallHierarchyFeature=a0});var qh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ShowDocumentFeature=void 0;var c0=ye(),u0=e=>class extends e{showDocument(t){return this.connection.sendRequest(c0.ShowDocumentRequest.type,t)}};ns.ShowDocumentFeature=u0});var Eh=S(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.FileOperationsFeature=void 0;var dr=ye(),l0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(dr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(dr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(dr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(dr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(dr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(dr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};rs.FileOperationsFeature=l0});var Nh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.LinkedEditingRangeFeature=void 0;var p0=ye(),d0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(p0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};is.LinkedEditingRangeFeature=d0});var jh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TypeHierarchyFeature=void 0;var yl=ye(),f0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(yl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=yl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=yl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.TypeHierarchyFeature=f0});var Lh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.InlineValueFeature=void 0;var Mh=ye(),g0=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Mh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Mh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};ss.InlineValueFeature=g0});var Ih=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FoldingRangeFeature=void 0;var Fh=ye(),m0=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Fh.FoldingRangeRefreshRequest.type),on:t=>{let n=Fh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};as.FoldingRangeFeature=m0});var Uh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.InlayHintFeature=void 0;var bl=ye(),h0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(bl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(bl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(bl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};cs.InlayHintFeature=h0});var Wh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.DiagnosticFeature=void 0;var Jr=ye(),y0=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Jr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Jr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Jr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Jr.WorkspaceDiagnosticRequest.partialResult,n)))}}};us.DiagnosticFeature=y0});var Bh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.MonikerFeature=void 0;var b0=ye(),v0=e=>class extends e{get moniker(){return{on:t=>{let n=b0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ls.MonikerFeature=v0});var ry=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=dl(),xl=fl(),B=wh(),x0=kh(),P0=Ah(),_0=Oh(),C0=al(),S0=qh(),R0=Eh(),D0=Nh(),T0=jh(),w0=Lh(),k0=Ih(),A0=Uh(),O0=Wh(),q0=pl(),E0=Bh();function vl(e){if(e!==null)return e}var Pl=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=Pl;var ps=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")})}},_l=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(vl)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(vl)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(vl)}},Hh=(0,S0.ShowDocumentFeature)((0,B.ProgressFeature)(_l)),zh;(function(e){function t(){return new ds}e.create=t})(zh||(Q.BulkRegistration=zh={}));var ds=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=xl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},$h;(function(e){function t(){return new Xr(void 0,[])}e.create=t})($h||(Q.BulkUnregistration=$h={}));var Xr=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}},fs=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 ds?this.registerMany(t):t instanceof Xr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=xl.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=xl.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 Xr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Cl=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)}},Yh=(0,R0.FileOperationsFeature)((0,P0.WorkspaceFoldersFeature)((0,x0.ConfigurationFeature)(Cl))),gs=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(()=>{})}},ms=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")})}},hs=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=hs;var Vh=(0,k0.FoldingRangeFeature)((0,E0.MonikerFeature)((0,O0.DiagnosticFeature)((0,A0.InlayHintFeature)((0,w0.InlineValueFeature)((0,T0.TypeHierarchyFeature)((0,D0.LinkedEditingRangeFeature)((0,C0.SemanticTokensFeature)((0,_0.CallHierarchyFeature)(hs))))))))),ys=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=ys;var Kh=(0,q0.NotebookSyncFeature)(ys);function Gh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Gh;function Qh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Qh;function Jh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=ny;function N0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Gh),tracer:n(e.tracer,t.tracer,Jh),telemetry:n(e.telemetry,t.telemetry,Qh),client:n(e.client,t.client,Xh),window:n(e.window,t.window,Zh),workspace:n(e.workspace,t.workspace,ey),languages:n(e.languages,t.languages,ty),notebooks:n(e.notebooks,t.notebooks,ny)}}Q.combineFeatures=N0;function j0(e,t,n){let r=n&&n.console?new(n.console(ps)):new ps,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(gs)):new gs,s=n&&n.telemetry?new(n.telemetry(ms)):new ms,a=n&&n.client?new(n.client(fs)):new fs,c=n&&n.window?new(n.window(Hh)):new Hh,u=n&&n.workspace?new(n.workspace(Yh)):new Yh,d=n&&n.languages?new(n.languages(Vh)):new Vh,h=n&&n.notebooks?new(n.notebooks(Kh)):new Kh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let D,F,$,V={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=>(F=m,{dispose:()=>{F=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(D=m,{dispose:()=>{D=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 u},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(V);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(F){let g=F(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 Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(V.__textDocumentSync)?V.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return Y})}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,D)return D(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)}),V}Q.createConnection=j0});var Sl=S(je=>{"use strict";var M0=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]})),oy=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&M0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var L0=al();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return L0.SemanticTokensBuilder}});var F0=Ph();oy(ye(),je);var I0=ul();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return I0.TextDocuments}});var U0=pl();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return U0.NotebookDocuments}});oy(ry(),je);var iy;(function(e){e.all={__brand:"features",languages:F0.InlineCompletionFeature}})(iy||(je.ProposedFeatures=iy={}))});var ay=S((Bw,sy)=>{"use strict";sy.exports=ye()});var Rl=S(Rt=>{"use strict";var W0=Rt&&Rt.__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]})),uy=Rt&&Rt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&W0(t,e,n)};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createConnection=void 0;var bs=Sl();uy(ay(),Rt);uy(Sl(),Rt);var cy=!1,B0={initialize:e=>{},get shutdownReceived(){return cy},set shutdownReceived(e){cy=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),bs.ConnectionStrategy.is(e)||bs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,bs.createProtocolConnection)(o,s,u,a);return(0,bs.createConnection)(c,B0,i)}Rt.createConnection=H0});var en=S((zw,ly)=>{"use strict";ly.exports=Rl()});var Ll=S((Lk,xy)=>{"use strict";function Dt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function vy(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 FS(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 mr={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),Dt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=vy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Dt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=vy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Dt(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];Dt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":mr.normalize(t)},relative:function(t,n){if(Dt(t),Dt(n),t===n||(t=mr.resolve(t),n=mr.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,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(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 D="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(Dt(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');Dt(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 u=t.charCodeAt(s);if(u===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(u===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){Dt(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 FS("/",t)},parse:function(t){Dt(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,u=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!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};mr.posix=mr;xy.exports=mr});import{createConfig as wd,loadConfig as Lx,DEFAULT_CONFIG as Fx}from"@redocly/openapi-core";var Bl;(()=>{"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 N(P,C){for(var R,E="",M=0,q=-1,z=0,K=0;K<=P.length;++K){if(K<P.length)R=P.charCodeAt(K);else{if(R===47)break;R=47}if(R===47){if(!(q===K-1||z===1))if(q!==K-1&&z===2){if(E.length<2||M!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var Ce=E.lastIndexOf("/");if(Ce!==E.length-1){Ce===-1?(E="",M=0):M=(E=E.slice(0,Ce)).length-1-E.lastIndexOf("/"),q=K,z=0;continue}}else if(E.length===2||E.length===1){E="",M=0,q=K,z=0;continue}}C&&(E.length>0?E+="/..":E="..",M=2)}else E.length>0?E+="/"+P.slice(q+1,K):E=P.slice(q+1,K),M=K-q-1;q=K,z=0}else R===46&&z!==-1?++z:z=-1}return E}var j={resolve:function(){for(var P,C="",R=!1,E=arguments.length-1;E>=-1&&!R;E--){var M;E>=0?M=arguments[E]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,R=M.charCodeAt(0)===47)}return C=N(C,!R),R?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,R=P.charCodeAt(P.length-1)===47;return(P=N(P,!C)).length!==0||C||(P="."),P.length>0&&R&&(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 R=arguments[C];b(R),R.length>0&&(P===void 0?P=R:P+="/"+R)}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 R=1;R<P.length&&P.charCodeAt(R)===47;++R);for(var E=P.length,M=E-R,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,K=M<z?M:z,Ce=-1,ee=0;ee<=K;++ee){if(ee===K){if(z>K){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>K&&(P.charCodeAt(R+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(R+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var on="";for(ee=R+Ce+1;ee<=E;++ee)ee!==E&&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),R=C===47,E=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){E=q;break}}else M=!1;return E===-1?R?"/":".":R&&E===1?"//":P.slice(0,E)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var R,E=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,K=-1;for(R=P.length-1;R>=0;--R){var Ce=P.charCodeAt(R);if(Ce===47){if(!q){E=R+1;break}}else K===-1&&(q=!1,K=R+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=R):(z=-1,M=K))}return E===M?M=K:M===-1&&(M=P.length),P.slice(E,M)}for(R=P.length-1;R>=0;--R)if(P.charCodeAt(R)===47){if(!q){E=R+1;break}}else M===-1&&(q=!1,M=R+1);return M===-1?"":P.slice(E,M)},extname:function(P){b(P);for(var C=-1,R=0,E=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var K=P.charCodeAt(z);if(K!==47)E===-1&&(M=!1,E=z+1),K===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){R=z+1;break}}return C===-1||E===-1||q===0||q===1&&C===E-1&&C===R+1?"":P.slice(C,E)},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,R){var E=R.dir||R.root,M=R.base||(R.name||"")+(R.ext||"");return E?E===R.root?E+M:E+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var R,E=P.charCodeAt(0),M=E===47;M?(C.root="/",R=1):R=0;for(var q=-1,z=0,K=-1,Ce=!0,ee=P.length-1,ot=0;ee>=R;--ee)if((E=P.charCodeAt(ee))!==47)K===-1&&(Ce=!1,K=ee+1),E===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||K===-1||ot===0||ot===1&&q===K-1&&q===z+1?K!==-1&&(C.base=C.name=z===0&&M?P.slice(1,K):P.slice(z,K)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,K)):(C.name=P.slice(z,q),C.base=P.slice(z,K)),C.ext=P.slice(q,K)),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 N=t[k]={exports:{}};return e[k](N,N.exports,n),N.exports}n.d=(k,b)=>{for(var N in b)n.o(b,N)&&!n.o(k,N)&&Object.defineProperty(k,N,{enumerable:!0,get:b[N]})},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:()=>Cn}),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 u="",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,N,j,P,C,R=!1){typeof b=="object"?(this.scheme=b.scheme||u,this.authority=b.authority||u,this.path=b.path||u,this.query=b.query||u,this.fragment=b.fragment||u):(this.scheme=(function(E,M){return E||M?E:"file"})(b,R),this.authority=N||u,this.path=(function(E,M){switch(E){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=C||u,c(this,R))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:N,authority:j,path:P,query:C,fragment:R}=b;return N===void 0?N=this.scheme:N===null&&(N=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),C===void 0?C=this.query:C===null&&(C=u),R===void 0?R=this.fragment:R===null&&(R=u),N===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&R===this.fragment?this:new D(N,j,P,C,R)}static parse(b,N=!1){let j=h.exec(b);return j?new D(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),N):new D(u,u,u,u,u)}static file(b){let N=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(N=b.substring(2),b=d):(N=b.substring(2,j),b=b.substring(j)||d)}return new D("file",N,b,u,u)}static from(b){let N=new D(b.scheme,b.authority,b.path,b.query,b.fragment);return c(N,!0),N}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let N=new D(b);return N._formatted=b.external,N._fsPath=b._sep===y?b.fsPath:null,N}}return b}}let y=i?1:void 0;class D 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 F={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,N){let j,P=-1;for(let C=0;C<k.length;C++){let R=k.charCodeAt(C);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||b&&R===47||N&&R===91||N&&R===93||N&&R===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 E=F[R];E!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=E):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function V(k){let b;for(let N=0;N<k.length;N++){let j=k.charCodeAt(N);j===35||j===63?(b===void 0&&(b=k.substr(0,N)),b+=F[j]):b!==void 0&&(b+=k[N])}return b!==void 0?b:k}function m(k,b){let N;return N=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&&(N=N.replace(/\//g,"\\")),N}function g(k,b){let N=b?V:$,j="",{scheme:P,authority:C,path:R,query:E,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+=N(z,!1,!1):(j+=N(z.substr(0,q),!1,!1),j+=":",j+=N(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=N(C,!1,!0):(j+=N(C.substr(0,q),!1,!0),j+=C.substr(q))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){let q=R.charCodeAt(1);q>=65&&q<=90&&(R=`/${String.fromCharCode(q+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){let q=R.charCodeAt(0);q>=65&&q<=90&&(R=`${String.fromCharCode(q+32)}:${R.substr(2)}`)}j+=N(R,!0,!1)}return E&&(j+="?",j+=N(E,!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 Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var it=n(975);let Nt=it.posix||it,rn="/";var Cn;(function(k){k.joinPath=function(b,...N){return b.with({path:Nt.join(b.path,...N)})},k.resolvePath=function(b,...N){let j=b.path,P=!1;j[0]!==rn&&(j=rn+j,P=!0);let C=Nt.resolve(j,...N);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 N=Nt.dirname(b.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),b.with({path:N})},k.basename=function(b){return Nt.basename(b.path)},k.extname=function(b){return Nt.extname(b.path)}})(Cn||(Cn={})),Bl=r})();var{URI:Mt,Utils:ne}=Bl;import{CONFIG_FILE_NAME as Jy}from"@redocly/openapi-core";var Ms={languageId:"yaml",filePattern:/\.ya?ml$/i},Ls={languageId:"json",filePattern:/\.json$/i},js=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ms,Ls];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),Jy);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 js;function Fs(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Mt.parse(e)}function st(e){return Mt.parse(e).fsPath}function br(e){let t=["https","http"],{scheme:n}=Mt.parse(e);return t.includes(n)}function vr(e){return ne.basename(Se(e))}async function Hl(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 jx,Source as Td,readFileFromUrl as Mx}from"@redocly/openapi-core";var vi=Le(On(),1);import{isAbsoluteUrl as Ex}from"@redocly/openapi-core";function md(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(u){let d=i.get(u.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:D})=>D(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:D})=>D(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let D=s.get(u.uri)||[];d||(s.set(u.uri,[...D,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:v,reject:y}])})}return c}function da(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 hd(e){return e==="$ref"}async function fa(e,t){let n=Mt.parse(t);return ne.joinPath(n,e).toString()}async function yd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await fa(i,n)===t)return r}function bd(e){return typeof e=="string"}function Sr(e){return typeof e=="function"}function vd(e){return e?.kind===vi.Kind.MAP}function ga(e){return e?.kind===vi.Kind.MAPPING}function ma(e){return e?.kind===vi.Kind.SEQ}function Rr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ha(e){return Ex(e)||e.startsWith("file://")}var xi=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=_d(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),u=this._lineOffsets,d=xd(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[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=xd(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&&Pd(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}},Pi;(function(e){function t(i,o,s,a){return new xi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof xi)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=ya(o.map(Nx),(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,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(Pi||(Pi={}));function ya(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ya(r,t),ya(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 xd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Pd(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Pd(e){return e===13||e===10}function _d(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 Nx(e){let t=_d(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var _i=Le(On(),1),Cd=new Map;function Sd(e,t){return Cd.set(e,t)}function Rd(e){let t=[];for(let[n,r]of Cd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Ve(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(Se(e),"utf-8");return Pi.create(e,"yaml",1,n)}function ba(e){return Ls.filePattern.test(e)}function Dd(e){return Ms.filePattern.test(e)}function pn({uri:e,ast:t,textDocument:n}){if(!(Dd(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=_i.safeLoad(i,{filename:e})}if(t?.kind===_i.Kind.MAP){let i=["openapi","swagger","asyncapi","arazzo"];for(let o of t.mappings){let s=o.key?.value;if(i.includes(s))return!1}}return!0}var mt=class extends jx{resolveExternalRef(t,n){return ha(n)?n:t&&ha(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(br(t)){let{body:n,mimeType:r}=await Mx(t,{...this.config.http,customFetch:fetch});return new Td(t,n,r)}return new Td(t,(await Ve(t)).getText())}};var kt;async function Ci(e,t){try{let n=new mt,r=e?await be.findConfig(e):void 0;if(r===void 0)return kt=await wd(Fx),kt;kt=await Lx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),kt=await wd({})}return kt}async function qn(e){return kt||await Ci(e)}async function dn(e){return await va(e)?!0:!!kt?.resolvedRefMap&&[...kt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Fs(vr(e),n))}async function va(e){let t=await be.findConfig(e);return t?Fs(e,t):!1}var kd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Dr={type:"object",properties:kd,additionalProperties:!1},Ix={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ut={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({},kd),{like:Dr,dislike:Dr,satisfied:Dr,neutral:Dr,dissatisfied:Dr}),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:Ix},additionalProperties:!1}},additionalProperties:!1};var Ux={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},xa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Si={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ut,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:xa,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:Ux,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var En={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Wx={type:"object",properties:{name:{type:"string"},items:En,queries:En,mutations:En,subscriptions:En,types:En,directives:En},required:["name"],additionalProperties:!1},Bx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Wx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Hx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},zx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},$x={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Hx,license:zx},additionalProperties:!1},Nn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Bx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:xa,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:Ut,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:$x},additionalProperties:!1};var Yx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Vx={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"}}},Ad={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Kx={type:"object",properties:{beforeInfo:{type:"array",items:Ad},end:{type:"array",items:Ad}}},fn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ri={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Gx={type:"object",properties:ki(fn.properties,["light","dark"])},Qx={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"}}},Jx={type:"object",properties:{error:Ri,info:Ri,redirect:Ri,success:Ri}},Xx={type:"object",properties:jn(fn.properties,["dark"])},Zx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},eP={type:"object",properties:{accent:fn,border:Gx,error:fn,http:Qx,primary:fn,responses:Jx,secondary:Xx,success:fn,text:Zx,tonalOffset:{type:"number"},warning:fn}},Di={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},tP={type:"object",properties:{small:Di,medium:Di,large:Di,xlarge:Di}},ht={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},nP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:tP})},Od={type:"object",properties:ki(ht.properties,["fontSize","lineHeight"])},rP={type:"object",properties:{medium:Od,small:Od}},iP={type:"object",properties:Object.assign(Object.assign({},jn(ht.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:rP})},oP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},sP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},qd={type:"object",properties:{fullWidth:{type:"boolean"}}},aP={type:"object",properties:{buttons:nP,httpBadges:iP,layoutControls:oP,panels:sP,tryItButton:qd,tryItSendButton:qd}},wi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},cP={type:"object",properties:{maxWidth:wi}},uP={type:"object",properties:{maxWidth:wi,middlePanelMaxWidth:wi}},lP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:cP,"three-panel":uP}},Ed={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},pP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ed,defaultDetailsWidth:{type:"string"},examples:Ed,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},jd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},dP={type:"object",properties:ki(jd.properties,["textTransform"])},fP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},gP={type:"object",properties:Object.assign(Object.assign({},jn(ht.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:jd,level1items:dP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:fP,textColor:{type:"string"},width:{type:"string"}})},Ti={type:"object",properties:Object.assign(Object.assign({},ht.properties),{color:{type:"string"},transform:{type:"string"}})},mP={type:"object",properties:Object.assign(Object.assign({},ht.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"}})},hP={type:"object",properties:jn(ht.properties,["fontSize"])},yP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},bP={type:"object",properties:Object.assign(Object.assign({code:mP,fieldName:ht},ki(ht.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ti,heading2:Ti,heading3:Ti,headings:hP,lineHeight:{type:"string"},links:yP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ti,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},vP={type:"object",properties:Object.assign({color:{type:"string"}},jn(ht.properties,["fontWeight"]))},xP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:vP}},PP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_P={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Nd={type:"object",properties:{custom:{type:"string"}}},CP={type:"object",properties:{DownloadButton:Nd,NextSectionButton:Nd}},SP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},RP={type:"object",properties:{borderRadius:{type:"string"}}},DP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},TP={type:"object",properties:{breakpoints:wi,codeBlock:xP,colors:eP,components:aP,layout:lP,logo:PP,fab:_P,overrides:CP,rightPanel:SP,schema:pP,shape:RP,sidebar:gP,spacing:DP,typography:bP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},wP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Yx}},required:["languages"]},Md={type:"object",properties:{theme:TP,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:wP,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:Vx,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:Kx,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 ki(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function jn(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var yt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};var Tr={rules:yt,oas2Rules:yt,oas3_0Rules:yt,oas3_1Rules:yt,oas3_2Rules:yt,async2Rules:yt,async3Rules:yt,arazzo1Rules:yt,overlay1Rules:yt,openrpc1Rules:yt};var bt={type:"object",additionalProperties:!0},wr={preprocessors:bt,oas2Preprocessors:bt,oas3_0Preprocessors:bt,oas3_1Preprocessors:bt,oas3_2Preprocessors:bt,async2Preprocessors:bt,async3Preprocessors:bt,arazzo1Preprocessors:bt,overlay1Preprocessors:bt,openrpc1Preprocessors:bt},vt={type:"object",additionalProperties:!0};var kr={decorators:vt,oas2Decorators:vt,oas3_0Decorators:vt,oas3_1Decorators:vt,oas3_2Decorators:vt,async2Decorators:vt,async3Decorators:vt,arazzo1Decorators:vt,overlay1Decorators:vt,openrpc1Decorators:vt};var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ld={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},Pa={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}}},_a={type:"array",items:Object.assign(Object.assign({},Pa),{properties:Object.assign(Object.assign({},Pa.properties),{items:{type:"array",items:Pa}})})},kP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},AP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},OP={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}},qP={type:"object",properties:Object.assign({facets:OP},De.properties),additionalProperties:!1},EP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Ai={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Oi={type:"object",properties:Object.assign({items:_a},De.properties),additionalProperties:!1},qi={type:"object",additionalProperties:kP},Ei={type:"object",properties:Object.assign({items:_a,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Ni={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},ji={type:"object",properties:{head:{type:"array",items:Ld},body:{type:"array",items:Ld}},additionalProperties:!1},Mi={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}},Li={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:AP,filters:qP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:EP}},De.properties),additionalProperties:!1},Fi={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},Ii={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},NP={type:"object",properties:Object.assign(Object.assign({},De.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},Ui={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},actions:NP},additionalProperties:!1},Wi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},De.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Bi={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"}},De.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},De.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},De.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Mn=Object.assign(Object.assign({},Si),{properties:Object.assign(Object.assign({},Si.properties),Md.properties)}),jP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},MP={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"]},LP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},FP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},IP={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"]},UP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},WP={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"]},Ca={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"]},BP={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:Ca}},additionalProperties:!1,required:["trackingId"]},Hi={type:"object",properties:{adobe:jP,amplitude:MP,fullstory:LP,heap:FP,rudderstack:IP,segment:UP,gtm:WP,ga:BP}},zi={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"}},De.properties),additionalProperties:!1},$i={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Yi={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},HP={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"}}}},zP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:HP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:_a,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ln={type:"object",patternProperties:{".*":zP}},Fn={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"}}},Tr),wr),kr),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 $P={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},YP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},VP={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},At={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:YP},excludes:{type:"array",items:$P},filters:{type:"array",items:VP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},KP={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},GP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:KP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},QP={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:GP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},JP={type:"object",additionalProperties:QP},Vi={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:JP,catalogs:{type:"object",properties:{all:At,services:At,domains:At,teams:At,users:At,apiDescriptions:At,dataSchemas:At,apiOperations:At},additionalProperties:At}},additionalProperties:!1};var Ar={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none","and","or","not"]},Sa={type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Ar,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}}}}}},XP={type:"object",properties:{operator:Ar,conditions:{type:"array",items:Sa}},required:["operator","conditions"],additionalProperties:!1},Fd={type:"array",items:{oneOf:[Sa,{type:"object",properties:{operator:Ar,conditions:{type:"array",items:{oneOf:[Sa,XP]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ud={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},ZP={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Ud},required:["subject","assertions"],additionalProperties:!1}},e_={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Ud,where:ZP,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},t_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},e_]}},n_={type:"object",properties:{name:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:t_},required:["name"],additionalProperties:!1},Id={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},r_={oneOf:[Id,{type:"array",items:Id}]},i_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Fd,{type:"object",properties:{operator:Ar,conditions:Fd},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:n_,minItems:1},trigger:r_},required:["name","key","entities","levels"],additionalProperties:!1},Ki={type:"array",items:i_};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn},additionalProperties:!0};var Da="https://redocly.com/sso/teams",In;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(In||(In={}));var Un;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Un||(Un={}));var Ra;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(Ra||(Ra={}));var Ta=["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 Gi(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"?Gi(i,t):i)]:[n,Gi(r,t)]}).filter(Boolean))}var o_={type:"object",additionalProperties:{type:"string"}},s_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Qi={type:"string",enum:["error","warn","off"]},a_={type:"object",additionalProperties:!1,properties:{schemaCheck:Qi,statusCodeCheck:Qi,contentTypeCheck:Qi,successCriteriaCheck:Qi}},c_={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},u_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},l_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Wd={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:[c_,u_]},inputs:o_,servers:s_,severity:a_,slo:l_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var p_={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},d_={type:"object",properties:{type:{type:"string",const:In.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:p_,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},f_={type:"object",properties:{type:{type:"string",const:In.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Da},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},g_={oneOf:[d_,f_],discriminator:{propertyName:"type"}},m_={type:"object",additionalProperties:g_},$d={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Yd={type:"boolean"},Vd={type:"string",pattern:"^https?://.*"},Kd={type:"string",pattern:"^https?://.*"},h_={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},y_={type:"object",additionalProperties:h_,default:{}},b_={type:"string",enum:["info","success","warning","error"],default:"info"},v_={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:b_},required:["content"],additionalProperties:!1},x_={type:"array",items:v_,default:[]},ka={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:Mn,graphql:Nn,theme:{type:"object",properties:{openapi:Mn,graphql:Nn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Tr),wr),kr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},P_={type:"object",additionalProperties:!0},__={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Bd={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},Hd={type:"object",properties:{title:{type:"string"},projectTitle:{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:Bd},default:{llmstxt:Bd.default},additionalProperties:!1},C_={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},gn={type:"object",additionalProperties:{type:"string"}},Aa={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:gn,cms:gn,reunite:gn,features:{type:"object",properties:{aiSearch:gn},additionalProperties:!1},content:{type:"object",properties:{"**":gn},additionalProperties:gn}},additionalProperties:gn},S_={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},R_={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},D_={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:[S_,R_]}},additionalProperties:!1,required:["type","apiBaseUrl"]},T_={type:"object",properties:{type:{type:"string",const:Un.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},w_={type:"object",properties:{type:{type:"string",const:Un.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},wa={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_,w_],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},k_=Object.assign(Object.assign({},wa),{properties:Object.assign(Object.assign({},wa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),A_={type:"object",oneOf:[wa,k_,D_],discriminator:{propertyName:"type"}},O_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:A_}}},zd={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"]},q_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},E_={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:[]}}},N_={type:"object",properties:{requiresLogin:Yd,logoutReturnUrl:Vd,residency:Kd,sso:$d,rbac:Aa},additionalProperties:!1},Or={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:y_,seo:Hd,rbac:Aa,apiFunctions:C_,requiresLogin:Yd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:q_}},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:ka},extends:{type:"array",items:{type:"string"}}},Tr),kr),wr),{ssoDirect:m_,sso:$d,residency:Kd,logoutReturnUrl:Vd,access:N_,developerOnboarding:O_,removeAttribution:{type:"boolean"},i18n:zd,l10n:zd,metadata:P_,metadataGlobs:__,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Wd,logo:Ai,navbar:Oi,products:qi,footer:Ei,sidebar:Ni,scripts:ji,links:Mi,feedback:Ut,search:Li,aiAssistant:Fi,colorMode:Ii,navigation:Ui,codeSnippet:Wi,markdown:Bi,openapi:Mn,graphql:Nn,analytics:Hi,userMenu:zi,versionPicker:$i,breadcrumbs:Yi,catalog:Ln,entitiesCatalog:Vi,catalogClassic:Ln,scorecard:Fn,scorecards:Ki,scorecardClassic:Fn,mcp:E_,banner:x_}),default:{redirects:{},seo:Hd.default},additionalProperties:!0},j_=Object.assign(Object.assign({},Gi(Or,"default")),{additionalProperties:!1}),Oa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:j_}}),default:{},additionalProperties:!1});var qa={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:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ca}}},additionalProperties:!0,default:{}},M_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},qa.properties),{apis:{type:"object",additionalProperties:ka},theme:qa}),additionalProperties:!1};var L_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},F_={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},I_={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},U_={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 W_={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},B_={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:Ta},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Wt={version:{type:"string"},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:W_,links:{type:"array",items:B_},relations:{type:"array",items:H_},metadata:{type:"object",additionalProperties:!0}},Ji={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"user"},metadata:L_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-operation"},metadata:I_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"data-schema"},metadata:U_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"api-description"},metadata:F_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Wt),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},Xi={type:"object",properties:Object.assign({},Wt),required:["key","title","type"],additionalProperties:!1};var Fe=Le(en(),1);import{getLineColLocation as eS,lintDocument as tS,makeDocumentFromString as xs,lintConfig as nS,lintEntityFile as rS,detectSpec as iS,createConfigTypes as oS}from"@redocly/openapi-core";import{bundleDocument as z0,isPlainObject as $0,makeDocumentFromString as Y0,getTypes as V0,detectSpec as K0}from"@redocly/openapi-core";var py=new Map,vs=new Map;function G0(e){return e?Array.from(e).map(([t,n])=>[t,da(n)]):[]}async function Dl(e,t){let n=await qn(),r=new mt(n.resolve),i=Y0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:u}=await z0({document:i,config:n,externalRefResolver:r,types:V0(K0(i.parsed))}),d=G0(u);u&&(vs=new Map([...vs,...u])),py.set(e.uri,{uri:e.uri,name:vr(e.uri),definition:$0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function Q0(){return Array.from(py).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:vr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function Tl(e){return vs.has(e)?vs.get(e):null}import{createConfig as J0,lintDocument as X0}from"@redocly/openapi-core";async function dy(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await Z0(i):i,c=await J0({...s,plugins:a},{configPath:r}),u=await X0({document:e,externalRefResolver:t,config:c});o.push(...u.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function Z0(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 sS=800,kl=md(lS,sS);async function aS(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await qn(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await fa(i,r);if(t.includes(o))return o}return t[0]}function cS(e){try{return iS(e),!0}catch{return!1}}async function uS(e){try{let t=xs(e.getText(),e.uri),n=new mt,r=await rS({document:t,entitySchema:Ji,entityDefaultSchema:Xi,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return wl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function lS(e){let t=e.uri,n=await qn();if(await dn(st(t)))try{let r=await va(st(t))?xs(e.getText(),t):xs(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new mt,o=await nS({config:{document:r},externalRefResolver:i,externalConfigTypes:oS(Oa,n)}),s=[{uri:e.uri,diagnostics:[]}];return wl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(pn({uri:st(t),textDocument:e}))return await uS(e);{let r=Rd(t),i=await aS(r||[]);i&&(e=await Ve(i),t=i);let o;try{o=xs(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!cS(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new mt(n.resolve),c=await be.getRootWorkspaceFolderURI(),u=await yd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await tS({document:o,config:n.forAlias(u),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,V=$&&be.scorecardStatus==="enabled"?await dy(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...V]}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=gS(v);Dl(e,y);let D=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),Sd(t,{dependencyPaths:a.getFiles(),durationMS:D}),wl(h,s)}catch(a){pS(e.uri,a,s)}return s}}}function Zr(){return be.documents.all().map(kl)}function pS(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=Fe.Position.create(o,s),c=Fe.Diagnostic.create(Fe.Range.create(a,a),t.message,Fe.DiagnosticSeverity.Error);fy(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function fy(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 dS(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.27",
3
+ "version": "0.6.28",
4
4
  "description": "Redocly OpenAPI language server",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -8,7 +8,7 @@
8
8
  "author": "Redocly LLC <team@redocly.com>",
9
9
  "license": "SEE LICENSE IN LICENSE",
10
10
  "peerDependencies": {
11
- "@redocly/openapi-core": "2.14.5"
11
+ "@redocly/openapi-core": "2.14.7"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@types/node": "22.18.13",