@redocly/openapi-language-server 0.10.8 → 0.10.9

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.
package/lib/index.js CHANGED
@@ -66,7 +66,7 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(pe.string(_.id)||pe.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,m)=>{let v=d.range.start.line-m.range.start.line;return v===0?d.range.start.character-m.range.start.character:v}),u=a.length;for(let d=c.length-1;d>=0;d--){let m=c[d],v=o.offsetAt(m.range.start),y=o.offsetAt(m.range.end);if(y<=u)a=a.substring(0,v)+m.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,m=0,v=0;for(;d<c.length&&m<u.length;)s(c[d],u[m])<=0?o[v++]=c[d++]:o[v++]=u[m++];for(;d<c.length;)o[v++]=c[d++];for(;m<u.length;)o[v++]=u[m++];return o}})(mu||(mu={}));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 rt.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 rt.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,I){return t.call(y)==="[object Number]"&&D<=y&&y<=I}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 m(y){return y!==null&&typeof y=="object"}e.objectLiteral=m;function v(y,D){return Array.isArray(y)&&y.every(D)}e.typedArray=v})(f||(f={}))});var ce=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=vn(),Tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Tf||(Ye.MessageDirection=Tf={}));var yu=class{constructor(t){this.method=t}};Ye.RegistrationType=yu;var bu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=bu;var vu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=vu;var Pu=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=Pu;var xu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=xu});var co=R(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function gC(e){return e===!0||e===!1}xe.boolean=gC;function Df(e){return typeof e=="string"||e instanceof String}xe.string=Df;function mC(e){return typeof e=="number"||e instanceof Number}xe.number=mC;function hC(e){return e instanceof Error}xe.error=hC;function yC(e){return typeof e=="function"}xe.func=yC;function wf(e){return Array.isArray(e)}xe.array=wf;function bC(e){return wf(e)&&e.every(t=>Df(t))}xe.stringArray=bC;function vC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=vC;function PC(e){return e!==null&&typeof e=="object"}xe.objectLiteral=PC});var Af=R(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.ImplementationRequest=void 0;var Sf=ce(),kf;(function(e){e.method="textDocument/implementation",e.messageDirection=Sf.MessageDirection.clientToServer,e.type=new Sf.ProtocolRequestType(e.method)})(kf||(uo.ImplementationRequest=kf={}))});var qf=R(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.TypeDefinitionRequest=void 0;var Ef=ce(),Nf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(lo.TypeDefinitionRequest=Nf={}))});var Lf=R(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var po=ce(),Of;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=po.MessageDirection.serverToClient,e.type=new po.ProtocolRequestType0(e.method)})(Of||(Jn.WorkspaceFoldersRequest=Of={}));var Mf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=po.MessageDirection.clientToServer,e.type=new po.ProtocolNotificationType(e.method)})(Mf||(Jn.DidChangeWorkspaceFoldersNotification=Mf={}))});var Ff=R(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.ConfigurationRequest=void 0;var jf=ce(),If;(function(e){e.method="workspace/configuration",e.messageDirection=jf.MessageDirection.serverToClient,e.type=new jf.ProtocolRequestType(e.method)})(If||(fo.ConfigurationRequest=If={}))});var Hf=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var go=ce(),Uf;(function(e){e.method="textDocument/documentColor",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Uf||(Xn.DocumentColorRequest=Uf={}));var Wf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Wf||(Xn.ColorPresentationRequest=Wf={}))});var $f=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var mo=ce(),Bf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(Bf||(Zn.FoldingRangeRequest=Bf={}));var zf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=mo.MessageDirection.serverToClient,e.type=new mo.ProtocolRequestType0(e.method)})(zf||(Zn.FoldingRangeRefreshRequest=zf={}))});var Kf=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DeclarationRequest=void 0;var Yf=ce(),Vf;(function(e){e.method="textDocument/declaration",e.messageDirection=Yf.MessageDirection.clientToServer,e.type=new Yf.ProtocolRequestType(e.method)})(Vf||(ho.DeclarationRequest=Vf={}))});var Jf=R(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.SelectionRangeRequest=void 0;var Gf=ce(),Qf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(yo.SelectionRangeRequest=Qf={}))});var tg=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.WorkDoneProgressCancelNotification=Xt.WorkDoneProgressCreateRequest=Xt.WorkDoneProgress=void 0;var xC=vn(),bo=ce(),Xf;(function(e){e.type=new xC.ProgressType;function t(n){return n===e.type}e.is=t})(Xf||(Xt.WorkDoneProgress=Xf={}));var Zf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType(e.method)})(Zf||(Xt.WorkDoneProgressCreateRequest=Zf={}));var eg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(eg||(Xt.WorkDoneProgressCancelNotification=eg={}))});var og=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CallHierarchyOutgoingCallsRequest=Zt.CallHierarchyIncomingCallsRequest=Zt.CallHierarchyPrepareRequest=void 0;var er=ce(),ng;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(ng||(Zt.CallHierarchyPrepareRequest=ng={}));var rg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(rg||(Zt.CallHierarchyIncomingCallsRequest=rg={}));var ig;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(ig||(Zt.CallHierarchyOutgoingCallsRequest=ig={}))});var pg=R(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var jt=ce(),sg;(function(e){e.Relative="relative"})(sg||(Ve.TokenFormat=sg={}));var Ir;(function(e){e.method="textDocument/semanticTokens",e.type=new jt.RegistrationType(e.method)})(Ir||(Ve.SemanticTokensRegistrationType=Ir={}));var ag;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(ag||(Ve.SemanticTokensRequest=ag={}));var cg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(cg||(Ve.SemanticTokensDeltaRequest=cg={}));var ug;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(ug||(Ve.SemanticTokensRangeRequest=ug={}));var lg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=jt.MessageDirection.serverToClient,e.type=new jt.ProtocolRequestType0(e.method)})(lg||(Ve.SemanticTokensRefreshRequest=lg={}))});var gg=R(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ShowDocumentRequest=void 0;var dg=ce(),fg;(function(e){e.method="window/showDocument",e.messageDirection=dg.MessageDirection.serverToClient,e.type=new dg.ProtocolRequestType(e.method)})(fg||(vo.ShowDocumentRequest=fg={}))});var yg=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.LinkedEditingRangeRequest=void 0;var mg=ce(),hg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=mg.MessageDirection.clientToServer,e.type=new mg.ProtocolRequestType(e.method)})(hg||(Po.LinkedEditingRangeRequest=hg={}))});var Tg=R(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var it=ce(),bg;(function(e){e.file="file",e.folder="folder"})(bg||(je.FileOperationPatternKind=bg={}));var vg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(vg||(je.WillCreateFilesRequest=vg={}));var Pg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Pg||(je.DidCreateFilesNotification=Pg={}));var xg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(xg||(je.WillRenameFilesRequest=xg={}));var _g;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(_g||(je.DidRenameFilesNotification=_g={}));var Cg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Cg||(je.DidDeleteFilesNotification=Cg={}));var Rg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(Rg||(je.WillDeleteFilesRequest=Rg={}))});var Ag=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.MonikerRequest=en.MonikerKind=en.UniquenessLevel=void 0;var Dg=ce(),wg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(wg||(en.UniquenessLevel=wg={}));var Sg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Sg||(en.MonikerKind=Sg={}));var kg;(function(e){e.method="textDocument/moniker",e.messageDirection=Dg.MessageDirection.clientToServer,e.type=new Dg.ProtocolRequestType(e.method)})(kg||(en.MonikerRequest=kg={}))});var Og=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.TypeHierarchySubtypesRequest=tn.TypeHierarchySupertypesRequest=tn.TypeHierarchyPrepareRequest=void 0;var tr=ce(),Eg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Eg||(tn.TypeHierarchyPrepareRequest=Eg={}));var Ng;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Ng||(tn.TypeHierarchySupertypesRequest=Ng={}));var qg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(qg||(tn.TypeHierarchySubtypesRequest=qg={}))});var jg=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var xo=ce(),Mg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(Mg||(nr.InlineValueRequest=Mg={}));var Lg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=xo.MessageDirection.serverToClient,e.type=new xo.ProtocolRequestType0(e.method)})(Lg||(nr.InlineValueRefreshRequest=Lg={}))});var Wg=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.InlayHintRefreshRequest=nn.InlayHintResolveRequest=nn.InlayHintRequest=void 0;var rr=ce(),Ig;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Ig||(nn.InlayHintRequest=Ig={}));var Fg;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Fg||(nn.InlayHintResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(Ug||(nn.InlayHintRefreshRequest=Ug={}))});var Kg=R(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DiagnosticRefreshRequest=ot.WorkspaceDiagnosticRequest=ot.DocumentDiagnosticRequest=ot.DocumentDiagnosticReportKind=ot.DiagnosticServerCancellationData=void 0;var Vg=vn(),_C=co(),ir=ce(),Hg;(function(e){function t(n){let r=n;return r&&_C.boolean(r.retriggerRequest)}e.is=t})(Hg||(ot.DiagnosticServerCancellationData=Hg={}));var Bg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Bg||(ot.DocumentDiagnosticReportKind=Bg={}));var zg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})(zg||(ot.DocumentDiagnosticRequest=zg={}));var $g;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})($g||(ot.WorkspaceDiagnosticRequest=$g={}));var Yg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Yg||(ot.DiagnosticRefreshRequest=Yg={}))});var tm=R(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Fr=(ao(),ni(so)),mt=co(),Dt=ce(),_u;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(_u||(ge.NotebookCellKind=_u={}));var Cu;(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 mt.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||mt.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})(Cu||(ge.ExecutionSummary=Cu={}));var _o;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return mt.objectLiteral(s)&&_u.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||mt.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)&&!Cu.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(mt.objectLiteral(o)&&mt.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 m=0;m<u.length;m++){let v=u[m];if(!i(o[v],s[v]))return!1}}return!0}})(_o||(ge.NotebookCell=_o={}));var Gg;(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 mt.objectLiteral(i)&&mt.string(i.uri)&&Fr.integer.is(i.version)&&mt.typedArray(i.cells,_o.is)}e.is=n})(Gg||(ge.NotebookDocument=Gg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var Qg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Qg||(ge.DidOpenNotebookDocumentNotification=Qg={}));var Jg;(function(e){function t(r){let i=r;return mt.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||mt.typedArray(i.cells,_o.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})(Jg||(ge.NotebookCellArrayChange=Jg={}));var Xg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Xg||(ge.DidChangeNotebookDocumentNotification=Xg={}));var Zg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Zg||(ge.DidSaveNotebookDocumentNotification=Zg={}));var em;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(em||(ge.DidCloseNotebookDocumentNotification=em={}))});var im=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.InlineCompletionRequest=void 0;var nm=ce(),rm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=nm.MessageDirection.clientToServer,e.type=new nm.ProtocolRequestType(e.method)})(rm||(Co.InlineCompletionRequest=rm={}))});var yh=R(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 w=ce(),om=(ao(),ni(so)),ke=co(),CC=Af();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return CC.ImplementationRequest}});var RC=qf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return RC.TypeDefinitionRequest}});var fh=Lf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fh.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fh.DidChangeWorkspaceFoldersNotification}});var TC=Ff();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return TC.ConfigurationRequest}});var gh=Hf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return gh.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return gh.ColorPresentationRequest}});var mh=$f();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return mh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return mh.FoldingRangeRefreshRequest}});var DC=Kf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return DC.DeclarationRequest}});var wC=Jf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return wC.SelectionRangeRequest}});var Su=tg();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return Su.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Su.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Su.WorkDoneProgressCancelNotification}});var ku=og();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ku.CallHierarchyPrepareRequest}});var sr=pg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var SC=gg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return SC.ShowDocumentRequest}});var kC=yg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return kC.LinkedEditingRangeRequest}});var _n=Tg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return _n.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _n.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _n.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _n.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _n.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _n.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _n.WillDeleteFilesRequest}});var Au=Ag();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return Au.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return Au.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return Au.MonikerRequest}});var Eu=Og();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySupertypesRequest}});var hh=jg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return hh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return hh.InlineValueRefreshRequest}});var Nu=Wg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Nu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Nu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Nu.InlayHintRefreshRequest}});var Ur=Kg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ur.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ur.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ur.DiagnosticRefreshRequest}});var wt=tm();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var AC=im();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return AC.InlineCompletionRequest}});var Ru;(function(e){function t(n){let r=n;return ke.string(r)||ke.string(r.language)||ke.string(r.scheme)||ke.string(r.pattern)}e.is=t})(Ru||(l.TextDocumentFilter=Ru={}));var Tu;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebookType)||ke.string(r.scheme)||ke.string(r.pattern))}e.is=t})(Tu||(l.NotebookDocumentFilter=Tu={}));var Du;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebook)||Tu.is(r.notebook))&&(r.language===void 0||ke.string(r.language))}e.is=t})(Du||(l.NotebookCellTextDocumentFilter=Du={}));var wu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!ke.string(r)&&!Ru.is(r)&&!Du.is(r))return!1;return!0}e.is=t})(wu||(l.DocumentSelector=wu={}));var sm;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(sm||(l.RegistrationRequest=sm={}));var am;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(am||(l.UnregistrationRequest=am={}));var cm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(cm||(l.ResourceOperationKind=cm={}));var um;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(um||(l.FailureHandlingKind=um={}));var lm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(lm||(l.PositionEncodingKind=lm={}));var pm;(function(e){function t(n){let r=n;return r&&ke.string(r.id)&&r.id.length>0}e.hasId=t})(pm||(l.StaticRegistrationOptions=pm={}));var dm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||wu.is(r.documentSelector))}e.is=t})(dm||(l.TextDocumentRegistrationOptions=dm={}));var fm;(function(e){function t(r){let i=r;return ke.objectLiteral(i)&&(i.workDoneProgress===void 0||ke.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&ke.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(fm||(l.WorkDoneProgressOptions=fm={}));var gm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(gm||(l.InitializeRequest=gm={}));var mm;(function(e){e.unknownProtocolVersion=1})(mm||(l.InitializeErrorCodes=mm={}));var hm;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(hm||(l.InitializedNotification=hm={}));var ym;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(ym||(l.ShutdownRequest=ym={}));var bm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(bm||(l.ExitNotification=bm={}));var vm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vm||(l.DidChangeConfigurationNotification=vm={}));var Pm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Pm||(l.MessageType=Pm={}));var xm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(xm||(l.ShowMessageNotification=xm={}));var _m;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(_m||(l.ShowMessageRequest=_m={}));var Cm;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Cm||(l.LogMessageNotification=Cm={}));var Rm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.TelemetryEventNotification=Rm={}));var Tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Tm||(l.TextDocumentSyncKind=Tm={}));var Dm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Dm||(l.DidOpenTextDocumentNotification=Dm={}));var wm;(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})(wm||(l.TextDocumentContentChangeEvent=wm={}));var Sm;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Sm||(l.DidChangeTextDocumentNotification=Sm={}));var km;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(km||(l.DidCloseTextDocumentNotification=km={}));var Am;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Am||(l.DidSaveTextDocumentNotification=Am={}));var Em;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Em||(l.TextDocumentSaveReason=Em={}));var Nm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Nm||(l.WillSaveTextDocumentNotification=Nm={}));var qm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qm||(l.WillSaveTextDocumentWaitUntilRequest=qm={}));var Om;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Om||(l.DidChangeWatchedFilesNotification=Om={}));var Mm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Mm||(l.FileChangeType=Mm={}));var Lm;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(om.URI.is(r.baseUri)||om.WorkspaceFolder.is(r.baseUri))&&ke.string(r.pattern)}e.is=t})(Lm||(l.RelativePattern=Lm={}));var jm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(jm||(l.WatchKind=jm={}));var Im;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Im||(l.PublishDiagnosticsNotification=Im={}));var Fm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Fm||(l.CompletionTriggerKind=Fm={}));var Um;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(l.CompletionRequest=Um={}));var Wm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(l.CompletionResolveRequest=Wm={}));var Hm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hm||(l.HoverRequest=Hm={}));var Bm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Bm||(l.SignatureHelpTriggerKind=Bm={}));var zm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.SignatureHelpRequest=zm={}));var $m;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.DefinitionRequest=$m={}));var Ym;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ym||(l.ReferencesRequest=Ym={}));var Vm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.DocumentHighlightRequest=Vm={}));var Km;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Km||(l.DocumentSymbolRequest=Km={}));var Gm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gm||(l.CodeActionRequest=Gm={}));var Qm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.CodeActionResolveRequest=Qm={}));var Jm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.WorkspaceSymbolRequest=Jm={}));var Xm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.WorkspaceSymbolResolveRequest=Xm={}));var Zm;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.CodeLensRequest=Zm={}));var eh;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(eh||(l.CodeLensResolveRequest=eh={}));var th;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(th||(l.CodeLensRefreshRequest=th={}));var nh;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(nh||(l.DocumentLinkRequest=nh={}));var rh;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(rh||(l.DocumentLinkResolveRequest=rh={}));var ih;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ih||(l.DocumentFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(oh||(l.DocumentRangeFormattingRequest=oh={}));var sh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(sh||(l.DocumentRangesFormattingRequest=sh={}));var ah;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ah||(l.DocumentOnTypeFormattingRequest=ah={}));var ch;(function(e){e.Identifier=1})(ch||(l.PrepareSupportDefaultBehavior=ch={}));var uh;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(uh||(l.RenameRequest=uh={}));var lh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(lh||(l.PrepareRenameRequest=lh={}));var ph;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ph||(l.ExecuteCommandRequest=ph={}));var dh;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(dh||(l.ApplyWorkspaceEditRequest=dh={}))});var vh=R(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.createProtocolConnection=void 0;var bh=vn();function EC(e,t,n,r){return bh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,bh.createMessageConnection)(e,t,n,r)}Ro.createProtocolConnection=EC});var xh=R(Ke=>{"use strict";var NC=Ke&&Ke.__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]})),To=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&NC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;To(vn(),Ke);To((ao(),ni(so)),Ke);To(ce(),Ke);To(yh(),Ke);var qC=vh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return qC.createProtocolConnection}});var Ph;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Ph||(Ke.LSPErrorCodes=Ph={}))});var ve=R(St=>{"use strict";var OC=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]})),_h=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&OC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var MC=gc();_h(gc(),St);_h(xh(),St);function LC(e,t,n,r){return(0,MC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=LC});var Ou=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.SemanticTokensBuilder=rn.SemanticTokensDiff=rn.SemanticTokensFeature=void 0;var Do=ve(),jC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Do.SemanticTokensRefreshRequest.type),on:t=>{let n=Do.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Do.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Do.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rn.SemanticTokensFeature=jC;var wo=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}]:[]}};rn.SemanticTokensDiff=wo;var qu=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 wo(this._prevData,this._data).computeDiff()}:this.build()}};rn.SemanticTokensBuilder=qu});var Ch=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.InlineCompletionFeature=void 0;var IC=ve(),FC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(IC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};So.InlineCompletionFeature=FC});var Lu=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.TextDocuments=void 0;var Cn=ve(),Mu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Cn.Emitter,this._onDidOpen=new Cn.Emitter,this._onDidClose=new Cn.Emitter,this._onDidSave=new Cn.Emitter,this._onWillSave=new Cn.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=Cn.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}))})),Cn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ko.TextDocuments=Mu});var Iu=R(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var st=ve(),Rh=Lu(),UC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(st.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(st.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(st.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(st.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=UC;var Ao=class e{onDidOpenTextDocument(t){return this.openHandler=t,st.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,st.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,st.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}};Ao.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ju=class{constructor(t){t instanceof Rh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Rh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new st.Emitter,this._onDidChange=new st.Emitter,this._onDidSave=new st.Emitter,this._onDidClose=new st.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 Ao,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=[],m=[],v=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let h=U.structure.array;if(o.cells.splice(h.start,h.deleteCount,...h.cells!==void 0?h.cells:[]),U.structure.didOpen!==void 0)for(let g of U.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(U.structure.didClose)for(let g of U.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(U.data!==void 0){let h=new Map(U.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=h.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(m.push({old:Y[0],new:S}),h.delete(S.document),h.size===0)break}}}if(U.textContent!==void 0)for(let h of U.textContent)n.changeTextDocument({textDocument:h.document,contentChanges:h.changes}),v.push(h.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let D=[];for(let U of u)D.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let G=[];for(let U of v)G.push(this.getNotebookCell(U));(D.length>0||I.length>0||m.length>0||G.length>0)&&(y.cells={added:D,removed:I,changed:{data:m,textContent:G}}),(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)}})),st.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=ju});var Fu=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function WC(e){return e===!0||e===!1}_e.boolean=WC;function Th(e){return typeof e=="string"||e instanceof String}_e.string=Th;function HC(e){return typeof e=="number"||e instanceof Number}_e.number=HC;function BC(e){return e instanceof Error}_e.error=BC;function Dh(e){return typeof e=="function"}_e.func=Dh;function wh(e){return Array.isArray(e)}_e.array=wh;function zC(e){return wh(e)&&e.every(t=>Th(t))}_e.stringArray=zC;function $C(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=$C;function YC(e){return e&&Dh(e.then)}_e.thenable=YC});var Uu=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.generateUuid=at.parse=at.isUUID=at.v4=at.empty=void 0;var Wr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Hr=class e extends Wr{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(""))}};Hr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Hr._timeHighBits=["8","9","a","b"];at.empty=new Wr("00000000-0000-0000-0000-000000000000");function Sh(){return new Hr}at.v4=Sh;var VC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function kh(e){return VC.test(e)}at.isUUID=kh;function KC(e){if(!kh(e))throw new Error("invalid uuid");return new Wr(e)}at.parse=KC;function GC(){return Sh().asHex()}at.generateUuid=GC});var Ah=R(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.attachPartialResult=sn.ProgressFeature=sn.attachWorkDone=void 0;var on=ve(),QC=Uu(),Rn=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(on.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(on.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(on.WorkDoneProgress.type,this._token,{kind:"end"})}};Rn.Instances=new Map;var Eo=class extends Rn{constructor(t,n){super(t,n),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Br=class{constructor(){}begin(){}report(){}done(){}},No=class extends Br{constructor(){super(),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function JC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Br;let n=t.workDoneToken;return delete t.workDoneToken,new Rn(e,n)}sn.attachWorkDone=JC;var XC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(on.WorkDoneProgressCancelNotification.type,n=>{let r=Rn.Instances.get(n.token);(r instanceof Eo||r instanceof No)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Br:new Rn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,QC.generateUuid)();return this.connection.sendRequest(on.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Eo(this.connection,t))}else return Promise.resolve(new No)}};sn.ProgressFeature=XC;var Wu;(function(e){e.type=new on.ProgressType})(Wu||(Wu={}));var Hu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Wu.type,this._token,t)}};function ZC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Hu(e,n)}sn.attachPartialResult=ZC});var Eh=R(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationFeature=void 0;var eR=ve(),tR=Fu(),nR=e=>class extends e{getConfiguration(t){return t?tR.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(eR.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};qo.ConfigurationFeature=nR});var Nh=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.WorkspaceFoldersFeature=void 0;var Oo=ve(),rR=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Oo.Emitter,this.connection.onNotification(Oo.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(Oo.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(Oo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Mo.WorkspaceFoldersFeature=rR});var qh=R(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.CallHierarchyFeature=void 0;var Bu=ve(),iR=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Bu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Bu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Lo.CallHierarchyFeature=iR});var Oh=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ShowDocumentFeature=void 0;var oR=ve(),sR=e=>class extends e{showDocument(t){return this.connection.sendRequest(oR.ShowDocumentRequest.type,t)}};jo.ShowDocumentFeature=sR});var Mh=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.FileOperationsFeature=void 0;var cr=ve(),aR=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Io.FileOperationsFeature=aR});var Lh=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.LinkedEditingRangeFeature=void 0;var cR=ve(),uR=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(cR.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Fo.LinkedEditingRangeFeature=uR});var jh=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.TypeHierarchyFeature=void 0;var zu=ve(),lR=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(zu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=zu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=zu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Uo.TypeHierarchyFeature=lR});var Fh=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.InlineValueFeature=void 0;var Ih=ve(),pR=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Ih.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Ih.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Wo.InlineValueFeature=pR});var Wh=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.FoldingRangeFeature=void 0;var Uh=ve(),dR=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Uh.FoldingRangeRefreshRequest.type),on:t=>{let n=Uh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ho.FoldingRangeFeature=dR});var Hh=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlayHintFeature=void 0;var $u=ve(),fR=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest($u.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest($u.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest($u.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Bo.InlayHintFeature=fR});var Bh=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DiagnosticFeature=void 0;var zr=ve(),gR=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};zo.DiagnosticFeature=gR});var zh=R($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.MonikerFeature=void 0;var mR=ve(),hR=e=>class extends e{get moniker(){return{on:t=>{let n=mR.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};$o.MonikerFeature=hR});var oy=R(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createConnection=J.combineFeatures=J.combineNotebooksFeatures=J.combineLanguagesFeatures=J.combineWorkspaceFeatures=J.combineWindowFeatures=J.combineClientFeatures=J.combineTracerFeatures=J.combineTelemetryFeatures=J.combineConsoleFeatures=J._NotebooksImpl=J._LanguagesImpl=J.BulkUnregistration=J.BulkRegistration=J.ErrorMessageTracker=void 0;var E=ve(),ct=Fu(),Vu=Uu(),B=Ah(),yR=Eh(),bR=Nh(),vR=qh(),PR=Ou(),xR=Oh(),_R=Mh(),CR=Lh(),RR=jh(),TR=Fh(),DR=Wh(),wR=Hh(),SR=Bh(),kR=Iu(),AR=zh();function Yu(e){if(e!==null)return e}var Ku=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)})}};J.ErrorMessageTracker=Ku;var Yo=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Gu=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}},$h=(0,xR.ShowDocumentFeature)((0,B.ProgressFeature)(Gu)),Yh;(function(e){function t(){return new Vo}e.create=t})(Yh||(J.BulkRegistration=Yh={}));var Vo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=ct.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Vu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Vh;(function(e){function t(){return new $r(void 0,[])}e.create=t})(Vh||(J.BulkUnregistration=Vh={}));var $r=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=ct.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Ko=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 Vo?this.registerMany(t):t instanceof $r?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ct.string(n)?n:n.method,o=Vu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=ct.string(t)?t:t.method,i=Vu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new $r(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Qu=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(E.ApplyWorkspaceEditRequest.type,r)}},Kh=(0,_R.FileOperationsFeature)((0,bR.WorkspaceFoldersFeature)((0,yR.ConfigurationFeature)(Qu))),Go=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Qo=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Jo=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)}};J._LanguagesImpl=Jo;var Gh=(0,DR.FoldingRangeFeature)((0,AR.MonikerFeature)((0,SR.DiagnosticFeature)((0,wR.InlayHintFeature)((0,TR.InlineValueFeature)((0,RR.TypeHierarchyFeature)((0,CR.LinkedEditingRangeFeature)((0,PR.SemanticTokensFeature)((0,vR.CallHierarchyFeature)(Jo))))))))),Xo=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)}};J._NotebooksImpl=Xo;var Qh=(0,kR.NotebookSyncFeature)(Xo);function Jh(e,t){return function(n){return t(e(n))}}J.combineConsoleFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}J.combineTelemetryFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}J.combineTracerFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}J.combineClientFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}J.combineWindowFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}J.combineWorkspaceFeatures=ny;function ry(e,t){return function(n){return t(e(n))}}J.combineLanguagesFeatures=ry;function iy(e,t){return function(n){return t(e(n))}}J.combineNotebooksFeatures=iy;function ER(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Jh),tracer:n(e.tracer,t.tracer,Zh),telemetry:n(e.telemetry,t.telemetry,Xh),client:n(e.client,t.client,ey),window:n(e.window,t.window,ty),workspace:n(e.workspace,t.workspace,ny),languages:n(e.languages,t.languages,ry),notebooks:n(e.notebooks,t.notebooks,iy)}}J.combineFeatures=ER;function NR(e,t,n){let r=n&&n.console?new(n.console(Yo)):new Yo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Go)):new Go,s=n&&n.telemetry?new(n.telemetry(Qo)):new Qo,a=n&&n.client?new(n.client(Ko)):new Ko,c=n&&n.window?new(n.window($h)):new $h,u=n&&n.workspace?new(n.workspace(Kh)):new Kh,d=n&&n.languages?new(n.languages(Gh)):new Gh,m=n&&n.notebooks?new(n.notebooks(Qh)):new Qh,v=[r,o,s,a,c,u,d,m];function y(h){return h instanceof Promise?h:ct.thenable(h)?new Promise((g,S)=>{h.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(h)}let D,I,G,U={listen:()=>i.listen(),sendRequest:(h,...g)=>i.sendRequest(ct.string(h)?h:h.method,...g),onRequest:(h,g)=>i.onRequest(h,g),sendNotification:(h,g)=>{let S=ct.string(h)?h:h.method;return i.sendNotification(S,g)},onNotification:(h,g)=>i.onNotification(h,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:h=>(I=h,{dispose:()=>{I=void 0}}),onInitialized:h=>i.onNotification(E.InitializedNotification.type,h),onShutdown:h=>(D=h,{dispose:()=>{D=void 0}}),onExit:h=>(G=h,{dispose:()=>{G=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 m},onDidChangeConfiguration:h=>i.onNotification(E.DidChangeConfigurationNotification.type,h),onDidChangeWatchedFiles:h=>i.onNotification(E.DidChangeWatchedFilesNotification.type,h),__textDocumentSync:void 0,onDidOpenTextDocument:h=>i.onNotification(E.DidOpenTextDocumentNotification.type,h),onDidChangeTextDocument:h=>i.onNotification(E.DidChangeTextDocumentNotification.type,h),onDidCloseTextDocument:h=>i.onNotification(E.DidCloseTextDocumentNotification.type,h),onWillSaveTextDocument:h=>i.onNotification(E.WillSaveTextDocumentNotification.type,h),onWillSaveTextDocumentWaitUntil:h=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,h),onDidSaveTextDocument:h=>i.onNotification(E.DidSaveTextDocumentNotification.type,h),sendDiagnostics:h=>i.sendNotification(E.PublishDiagnosticsNotification.type,h),onHover:h=>i.onRequest(E.HoverRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:h=>i.onRequest(E.CompletionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:h=>i.onRequest(E.CompletionResolveRequest.type,h),onSignatureHelp:h=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:h=>i.onRequest(E.DeclarationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:h=>i.onRequest(E.DefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:h=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:h=>i.onRequest(E.ImplementationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:h=>i.onRequest(E.ReferencesRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:h=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:h=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:h=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:h=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,h),onCodeAction:h=>i.onRequest(E.CodeActionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:h=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>h(g,S)),onCodeLens:h=>i.onRequest(E.CodeLensRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:h=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>h(g,S)),onDocumentFormatting:h=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:h=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:h=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>h(g,S)),onRenameRequest:h=>i.onRequest(E.RenameRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:h=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>h(g,S)),onDocumentLinks:h=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:h=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>h(g,S)),onDocumentColor:h=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:h=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:h=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:h=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:h=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let h of v)h.attach(U);return i.onRequest(E.InitializeRequest.type,h=>{t.initialize(h),ct.string(h.trace)&&(o.trace=E.Trace.fromString(h.trace));for(let g of v)g.initialize(h.capabilities);if(I){let g=I(h,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,h),void 0);return y(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let Z=Y.capabilities;Z||(Z={},Y.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!ct.number(Z.textDocumentSync)&&!ct.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ut of v)ut.fillServerCapabilities(Z);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of v)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{G&&G()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,h=>{o.trace=E.Trace.fromString(h.value)}),U}J.createConnection=NR});var Ju=R(Ie=>{"use strict";var qR=Ie&&Ie.__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]})),ay=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qR(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var OR=Ou();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return OR.SemanticTokensBuilder}});var MR=Ch();ay(ve(),Ie);var LR=Lu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return LR.TextDocuments}});var jR=Iu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return jR.NotebookDocuments}});ay(oy(),Ie);var sy;(function(e){e.all={__brand:"features",languages:MR.InlineCompletionFeature}})(sy||(Ie.ProposedFeatures=sy={}))});var uy=R((nk,cy)=>{"use strict";cy.exports=ve()});var es=R(kt=>{"use strict";var IR=kt&&kt.__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]})),py=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&IR(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConnection=void 0;var Zo=Ju();py(uy(),kt);py(Ju(),kt);var ly=!1,FR={initialize:e=>{},get shutdownReceived(){return ly},set shutdownReceived(e){ly=e},exit:e=>{}};function UR(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Zo.ConnectionStrategy.is(e)||Zo.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Zo.createProtocolConnection)(o,s,u,a);return(0,Zo.createConnection)(c,FR,i)}kt.createConnection=UR});var It=R((ik,dy)=>{"use strict";dy.exports=es()});var ml=R((e1,Sy)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function wy(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 WT(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var dr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),Et(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=wy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Et(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=wy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Et(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];Et(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=dr.resolve(t),n=dr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,u=o<c?o:c,d=-1,m=0;m<=u;++m){if(m===u){if(c>u){if(n.charCodeAt(s+m)===47)return n.slice(s+m+1);if(m===0)return n.slice(s+m)}else o>u&&(t.charCodeAt(r+m)===47?d=m:m===0&&(d=0));break}var v=t.charCodeAt(r+m),y=n.charCodeAt(s+m);if(v!==y)break;v===47&&(d=m)}var D="";for(m=r+d+1;m<=i;++m)(m===i||t.charCodeAt(m)===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(Et(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');Et(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){Et(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 WT("/",t)},parse:function(t){Et(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,m=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:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};dr.posix=dr;Sy.exports=dr});import{createConfig as ed,loadConfig as ux,loadIgnoreConfig as lx,DEFAULT_CONFIG as px,IGNORE_FILE as dx}from"@redocly/openapi-core";var xl;(()=>{"use strict";var e={975:k=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var T,q="",L=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)T=x.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||L!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Te=q.lastIndexOf("/");if(Te!==q.length-1){Te===-1?(q="",L=0):L=(q=q.slice(0,Te)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",L=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",L=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),L=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return q}var M={resolve:function(){for(var x,C="",T=!1,q=arguments.length-1;q>=-1&&!T;q--){var L;q>=0?L=arguments[q]:(x===void 0&&(x=process.cwd()),L=x),b(L),L.length!==0&&(C=L+"/"+C,T=L.charCodeAt(0)===47)}return C=O(C,!T),T?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,T=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&T&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return b(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var T=arguments[C];b(T),T.length>0&&(x===void 0?x=T:x+="/"+T)}return x===void 0?".":M.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=M.resolve(x))===(C=M.resolve(C)))return"";for(var T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var q=x.length,L=q-T,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=L<$?L:$,Te=-1,ne=0;ne<=V;++ne){if(ne===V){if($>V){if(C.charCodeAt(N+ne)===47)return C.slice(N+ne+1);if(ne===0)return C.slice(N+ne)}else L>V&&(x.charCodeAt(T+ne)===47?Te=ne:ne===0&&(Te=0));break}var lt=x.charCodeAt(T+ne);if(lt!==C.charCodeAt(N+ne))break;lt===47&&(Te=ne)}var un="";for(ne=T+Te+1;ne<=q;++ne)ne!==q&&x.charCodeAt(ne)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+C.slice(N+Te):(N+=Te,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(b(x),x.length===0)return".";for(var C=x.charCodeAt(0),T=C===47,q=-1,L=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!L){q=N;break}}else L=!1;return q===-1?T?"/":".":T&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(x);var T,q=0,L=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(T=x.length-1;T>=0;--T){var Te=x.charCodeAt(T);if(Te===47){if(!N){q=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===C.charCodeAt($)?--$==-1&&(L=T):($=-1,L=V))}return q===L?L=V:L===-1&&(L=x.length),x.slice(q,L)}for(T=x.length-1;T>=0;--T)if(x.charCodeAt(T)===47){if(!N){q=T+1;break}}else L===-1&&(N=!1,L=T+1);return L===-1?"":x.slice(q,L)},extname:function(x){b(x);for(var C=-1,T=0,q=-1,L=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(L=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!L){T=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===T+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,T){var q=T.dir||T.root,L=T.base||(T.name||"")+(T.ext||"");return q?q===T.root?q+L:q+"/"+L:L})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var T,q=x.charCodeAt(0),L=q===47;L?(C.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,ne=x.length-1,lt=0;ne>=T;--ne)if((q=x.charCodeAt(ne))!==47)V===-1&&(Te=!1,V=ne+1),q===46?N===-1?N=ne:lt!==1&&(lt=1):N!==-1&&(lt=-1);else if(!Te){$=ne+1;break}return N===-1||V===-1||lt===0||lt===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&L?x.slice(1,V):x.slice($,V)):($===0&&L?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):L&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,k.exports=M}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,b)=>{for(var O in b)n.o(b,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:b[O]})},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:()=>Dn}),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="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;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,O,M,x,C,T=!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(q,L){return q||L?q:"file"})(b,T),this.authority=O||u,this.path=(function(q,L){switch(q){case"https":case"http":case"file":L?L[0]!==d&&(L=d+L):L=d}return L})(this.scheme,M||u),this.query=x||u,this.fragment=C||u,c(this,T))}get fsPath(){return h(this,!1)}with(b){if(!b)return this;let{scheme:O,authority:M,path:x,query:C,fragment:T}=b;return O===void 0?O=this.scheme:O===null&&(O=u),M===void 0?M=this.authority:M===null&&(M=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),T===void 0?T=this.fragment:T===null&&(T=u),O===this.scheme&&M===this.authority&&x===this.path&&C===this.query&&T===this.fragment?this:new D(O,M,x,C,T)}static parse(b,O=!1){let M=m.exec(b);return M?new D(M[2]||u,Z(M[4]||u),Z(M[5]||u),Z(M[7]||u),Z(M[9]||u),O):new D(u,u,u,u,u)}static file(b){let O=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let M=b.indexOf(d,2);M===-1?(O=b.substring(2),b=d):(O=b.substring(2,M),b=b.substring(M)||d)}return new D("file",O,b,u,u)}static from(b){let O=new D(b.scheme,b.authority,b.path,b.query,b.fragment);return c(O,!0),O}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let O=new D(b);return O._formatted=b.external,O._fsPath=b._sep===y?b.fsPath:null,O}}return b}}let y=i?1:void 0;class D extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=h(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G(k,b,O){let M,x=-1;for(let C=0;C<k.length;C++){let T=k.charCodeAt(C);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||O&&T===91||O&&T===93||O&&T===58)x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M!==void 0&&(M+=k.charAt(C));else{M===void 0&&(M=k.substr(0,C));let q=I[T];q!==void 0?(x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M+=q):x===-1&&(x=C)}}return x!==-1&&(M+=encodeURIComponent(k.substring(x))),M!==void 0?M:k}function U(k){let b;for(let O=0;O<k.length;O++){let M=k.charCodeAt(O);M===35||M===63?(b===void 0&&(b=k.substr(0,O)),b+=I[M]):b!==void 0&&(b+=k[O])}return b!==void 0?b:k}function h(k,b){let O;return O=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&&(O=O.replace(/\//g,"\\")),O}function g(k,b){let O=b?U:G,M="",{scheme:x,authority:C,path:T,query:q,fragment:L}=k;if(x&&(M+=x,M+=":"),(C||x==="file")&&(M+=d,M+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?M+=O($,!1,!1):(M+=O($.substr(0,N),!1,!1),M+=":",M+=O($.substr(N+1),!1,!0)),M+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?M+=O(C,!1,!0):(M+=O(C.substr(0,N),!1,!0),M+=C.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}M+=O(T,!0,!1)}return q&&(M+="?",M+=O(q,!1,!1)),L&&(M+="#",M+=b?L:G(L,!1,!1)),M}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(k){return k.match(Y)?k.replace(Y,(b=>S(b))):k}var ut=n(975);let Ut=ut.posix||ut,cn="/";var Dn;(function(k){k.joinPath=function(b,...O){return b.with({path:Ut.join(b.path,...O)})},k.resolvePath=function(b,...O){let M=b.path,x=!1;M[0]!==cn&&(M=cn+M,x=!0);let C=Ut.resolve(M,...O);return x&&C[0]===cn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===cn)return b;let O=Ut.dirname(b.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),b.with({path:O})},k.basename=function(b){return Ut.basename(b.path)},k.extname=function(b){return Ut.extname(b.path)}})(Dn||(Dn={})),xl=r})();var{URI:Qe,Utils:K}=xl;import{isBrowser as Rb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as Cb}from"@redocly/openapi-core";var Ps={languageId:"yaml",filePattern:/\.ya?ml$/i},xs={languageId:"json",filePattern:/\.json$/i},vs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ps,xs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(Ue(t)),Cb);return await this._fs.exists(n)?De(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}},ae=new vs;function mr(e,t){let n=r=>K.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return Qe.parse(e)}function Nt(e){return e.startsWith("file://")?e:Qe.file(e).toString()}function De(e){let t=Qe.parse(e).fsPath;return Rb&&t.startsWith("/")?t.slice(1):t}function hr(e){let t=["https","http"],{scheme:n}=Qe.parse(e);return t.includes(n)}function yr(e){return K.basename(Ue(e))}async function _l(e,t="/"){let n=K.resolvePath(Ue(t));for(;e.path!=="/";)try{(await ae.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as ax,Source as Zp,readFileFromUrl as cx,isAbsoluteUrl as Js}from"@redocly/openapi-core";var ri=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=Tl(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=Cl(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 m=r.text.length-(s-o);if(m!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+m}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=Cl(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&&Rl(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}},ii;(function(e){function t(i,o,s,a){return new ri(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ri)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=_s(o.map(Tb),(d,m)=>{let v=d.range.start.line-m.range.start.line;return v===0?d.range.start.character-m.range.start.character:v}),c=0,u=[];for(let d of a){let m=i.offsetAt(d.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&u.push(s.substring(c,m)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(ii||(ii={}));function _s(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);_s(r,t),_s(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 Cl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Rl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Rl(e){return e===13||e===10}function Tl(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 Tb(e){let t=Tl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var hi=Ee(On(),1),Jp=new Map;function Xp(e,t){return Jp.set(e,t)}function Qs(e){let t=[];for(let[n,r]of Jp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Xe(e){let t=ae.documents.get(e);if(t)return t;let n=await ae.fs.readFile(Ue(e),"utf-8");return ii.create(e,"yaml",1,n)}function _r(e){return xs.filePattern.test(e)}function yi(e){return Ps.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(yi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=hi.safeLoad(i,{filename:e})}if(t?.kind===hi.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 Pt=class extends ax{resolveExternalRef(t,n){return Js(n)?n:t&&Js(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(hr(t)){let{body:i,mimeType:o}=await cx(t,{...this.config.http,customFetch:fetch});return new Zp(t,i,o)}let n=Nt(t),r=Js(t)?De(t):t;return new Zp(r,(await Xe(n)).getText())}};var $t;async function bi(e,t){let n=!1;try{let r=new Pt,i=e?await ae.findConfig(e):void 0;if(i===void 0){let o=await lx(i,r);$t=await ed(px,{externalRefResolver:r,ignore:o})}else $t=await ux({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),$t=await ed({})}return{config:$t,loadFailed:n}}async function Yt(e){return $t||(await bi(e)).config}async function hn(e){return await Xs(e)?!0:!!$t?.resolvedRefMap&&[...$t.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>mr(yr(Nt(e)),n))}async function Xs(e){let t=await ae.findConfig(e);return t?mr(e,t):!1}function fx(e){return e.endsWith(dx)}import{clearPluginsCache as bx}from"@redocly/openapi-core";var td=new Set([".js",".mjs",".cjs",".ts"]),gx=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,mx=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function hx(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ae,r=K.dirname(Qe.file(e.configPath)),i=new Set;async function o(a){if(K.extname(a))return await n.exists(a)?a:void 0;let c=K.dirname(a),u=K.basename(a),d=await n.readDir(c).catch(()=>[]);for(let m of td)if(d.includes(u+m))return K.joinPath(c,u+m)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!td.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(mx,""),u=K.dirname(a);for(let[,d]of c.matchAll(gx)){let m=await o(K.resolvePath(u,d));m&&await s(m)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Qe.parse(a).fsPath)}function yx(e,t){return t.some(n=>mr(n,e))}var md={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:md,additionalProperties:!1},vx={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Rr={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...md,like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:vx},additionalProperties:!1}},additionalProperties:!1},Px={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},na={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ci={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Rr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:na,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:Px,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Mn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},xx={type:"object",properties:{name:{type:"string"},items:Mn,queries:Mn,mutations:Mn,subscriptions:Mn,types:Mn,directives:Mn},required:["name"],additionalProperties:!1},_x={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:xx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Cx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Tx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Cx,license:Rx},additionalProperties:!1},Ri={type:"object",properties:{menu:{type:"object",properties:{..._x.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:na,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:Rr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Tx},additionalProperties:!1},Dx={type:"object",properties:{downloadUrls:na,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Rr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},wx={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Sx={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"}}},nd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},kx={type:"object",properties:{beforeInfo:{type:"array",items:nd},end:{type:"array",items:nd}}},yn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},vi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Ax={type:"object",properties:Ai(yn.properties,["light","dark"])},Ex={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"}}},Nx={type:"object",properties:{error:vi,info:vi,redirect:vi,success:vi}},qx={type:"object",properties:Ln(yn.properties,["dark"])},Ox={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Mx={type:"object",properties:{accent:yn,border:Ax,error:yn,http:Ex,primary:yn,responses:Nx,secondary:qx,success:yn,text:Ox,tonalOffset:{type:"number"},warning:yn}},Pi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Lx={type:"object",properties:{small:Pi,medium:Pi,large:Pi,xlarge:Pi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},jx={type:"object",properties:{...Ln(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Lx}},rd={type:"object",properties:Ai(Ct.properties,["fontSize","lineHeight"])},Ix={type:"object",properties:{medium:rd,small:rd}},Fx={type:"object",properties:{...Ln(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:Ix}},Ux={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Wx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},id={type:"object",properties:{fullWidth:{type:"boolean"}}},Hx={type:"object",properties:{buttons:jx,httpBadges:Fx,layoutControls:Ux,panels:Wx,tryItButton:id,tryItSendButton:id}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Bx={type:"object",properties:{maxWidth:Ti}},zx={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},$x={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Bx,"three-panel":zx}},od={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Yx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:od,defaultDetailsWidth:{type:"string"},examples:od,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},hd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Vx={type:"object",properties:Ai(hd.properties,["textTransform"])},Kx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Gx={type:"object",properties:{...Ln(Ct.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:hd,level1items:Vx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Kx,textColor:{type:"string"},width:{type:"string"}}},xi={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Qx={type:"object",properties:{...Ct.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"}}},Jx={type:"object",properties:Ln(Ct.properties,["fontSize"])},Xx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Zx={type:"object",properties:{code:Qx,fieldName:Ct,...Ai(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:xi,heading2:xi,heading3:xi,headings:Jx,lineHeight:{type:"string"},links:Xx,optimizeSpeed:{type:"boolean"},rightPanelHeading:xi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},e_={type:"object",properties:{color:{type:"string"},...Ln(Ct.properties,["fontWeight"])}},t_={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:e_}},n_={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},r_={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},sd={type:"object",properties:{custom:{type:"string"}}},i_={type:"object",properties:{DownloadButton:sd,NextSectionButton:sd}},o_={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},s_={type:"object",properties:{borderRadius:{type:"string"}}},a_={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},c_={type:"object",properties:{breakpoints:Ti,codeBlock:t_,colors:Mx,components:Hx,layout:$x,logo:n_,fab:r_,overrides:i_,rightPanel:o_,schema:Yx,shape:s_,sidebar:Gx,spacing:a_,typography:Zx,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},u_={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:wx}},required:["languages"]},yd={type:"object",properties:{theme:c_,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:u_,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:Sx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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 Ai(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Ln(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var nt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var l_={rules:nt,oas2Rules:nt,oas3_0Rules:nt,oas3_1Rules:nt,oas3_2Rules:nt,async2Rules:nt,async3Rules:nt,arazzo1Rules:nt,arazzo1_1Rules:nt,overlay1Rules:nt,openrpc1Rules:nt,graphqlRules:nt};var dt={nodeTypeName:void 0,type:"object",additionalProperties:!0},p_={preprocessors:dt,oas2Preprocessors:dt,oas3_0Preprocessors:dt,oas3_1Preprocessors:dt,oas3_2Preprocessors:dt,async2Preprocessors:dt,async3Preprocessors:dt,arazzo1Preprocessors:dt,arazzo1_1Preprocessors:dt,overlay1Preprocessors:dt,openrpc1Preprocessors:dt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0};var d_={decorators:ft,oas2Decorators:ft,oas3_0Decorators:ft,oas3_1Decorators:ft,oas3_2Decorators:ft,async2Decorators:ft,async3Decorators:ft,arazzo1Decorators:ft,arazzo1_1Decorators:ft,overlay1Decorators:ft,openrpc1Decorators:ft},f_={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Ei={...l_,...d_,...p_,extends:f_},bd=e=>e,_t=bd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Se={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},ad={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},Zs={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},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"]},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}}},ra={type:"array",items:{...Zs,properties:{...Zs.properties,items:{type:"array",items:Zs}}}},g_={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},m_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},h_={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}},y_={type:"object",properties:{facets:h_,...Se.properties},additionalProperties:!1},b_={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},vd={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pd={type:"object",properties:{items:ra,...Se.properties},additionalProperties:!1},xd={type:"object",additionalProperties:g_},_d={type:"object",properties:{items:ra,copyrightText:{type:"string"},logo:Se,...Se.properties},additionalProperties:!1},Cd={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Se.properties},additionalProperties:!1},Rd={type:"object",properties:{head:{type:"array",items:ad},body:{type:"array",items:ad}},additionalProperties:!1},Td={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}},Dd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:m_,filters:y_,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:b_},...Se.properties},additionalProperties:!1},wd={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Sd={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Se.properties},additionalProperties:!1},ia={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},v_={type:"object",properties:{...Se.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},kd={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},actions:v_},additionalProperties:!1},Ad={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Se.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Se.properties},additionalProperties:!1},expand:{type:"object",properties:{...Se.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Se.properties},additionalProperties:!1}},additionalProperties:!1},Ed={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...Se.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Se.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Se.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Di={...Ci,properties:{...Ci.properties,...yd.properties}},Cw={...Ci,properties:{...Ci.properties,...yd.properties}},P_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},x_={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"]},__={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},C_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},R_={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"]},T_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},D_={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Nd={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"]},w_={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:Nd}},additionalProperties:!1,required:["trackingId"]},qd={type:"object",properties:{adobe:P_,amplitude:x_,fullstory:__,heap:C_,rudderstack:R_,segment:T_,gtm:D_,ga:w_}},Od={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...Se.properties},additionalProperties:!1},Md={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ld={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}}},additionalProperties:!1},S_={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},k_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:S_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ra,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},wi={type:"object",patternProperties:{".*":k_}},Si={nodeTypeName:_t.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:_t.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ei},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},A_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},E_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},N_={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Mt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:E_},excludes:{type:"array",items:A_},filters:{type:"array",items:N_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},q_={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},O_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:q_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},M_={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:O_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},L_={type:"object",additionalProperties:M_},jd={type:"object",properties:{show:{type:"boolean"},entityTypes:L_,catalogs:{type:"object",properties:{all:Mt,services:Mt,domains:Mt,teams:Mt,users:Mt,apiDescriptions:Mt,dataSchemas:Mt,apiOperations:Mt},additionalProperties:Mt}},additionalProperties:!1},cd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},oa={type:"string",enum:["and","or"]},ea={type:"object",properties:{field:{type:"string"},operator:cd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:cd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},j_={type:"object",properties:{operator:oa,conditions:{type:"array",items:ea}},required:["operator","conditions"],additionalProperties:!1},ud={type:"array",items:{oneOf:[ea,{type:"object",properties:{operator:oa,conditions:{type:"array",items:{oneOf:[ea,j_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Id={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},I_={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:Id},required:["subject","assertions"],additionalProperties:!1}},F_={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:Id,where:I_,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},U_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},F_]}},W_={type:"object",properties:{name:{type:"string"},extends:Ei.extends,rules:U_},required:["name"],additionalProperties:!1},ld={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},H_={oneOf:[ld,{type:"array",items:ld}]},B_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ud,{type:"object",properties:{operator:oa,conditions:ud},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:W_,minItems:1},trigger:H_},required:["name","key","entities","levels"],additionalProperties:!1},Fd={type:"array",items:B_},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:vd,navbar:Pd,products:xd,footer:_d,sidebar:Cd,scripts:Rd,links:Td,feedback:Rr,search:Dd,aiAssistant:wd,colorMode:Sd,palette:ia,navigation:kd,codeSnippet:Ad,markdown:Ed,openapi:Di,asyncapi:Dx,graphql:Ri,analytics:qd,userMenu:Od,versionPicker:Md,breadcrumbs:Ld,catalog:wi,entitiesCatalog:jd,catalogClassic:wi,scorecard:Si,scorecardClassic:Si,scorecards:Fd},additionalProperties:!0};var z_=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(z_||{}),$_=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))($_||{});var Y_=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Y_||{});var Ud="^[a-z0-9]+(?:-[a-z0-9]+)*$",Rw=new RegExp(Ud);var V_=63,Tw=`Unique ID cannot exceed ${V_} characters`,Wd="redocly",Hd=[Wd,"corporate","guest"],Dw=`Unique ID cannot be a reserved word (${Hd.join(", ")})`,pd=["REDOCLY","CORPORATE","GUEST"],K_={type:"object",additionalProperties:{type:"string"}},G_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},_i={type:"string",enum:["error","warn","off"]},Q_={type:"object",additionalProperties:!1,properties:{schemaCheck:_i,statusCodeCheck:_i,contentTypeCheck:_i,successCriteriaCheck:_i}},J_={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},X_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Z_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},e0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:[J_,X_]},inputs:K_,servers:G_,severity:Q_,slo:Z_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},t0={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},n0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:t0,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},r0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},i0={oneOf:[n0,r0],discriminator:{propertyName:"type"}},o0={type:"object",additionalProperties:i0},Bd={oneOf:[{type:"array",items:{type:"string",enum:pd},uniqueItems:!0},{type:"string",enum:pd}]},dd={type:"string",pattern:Ud,not:{enum:Hd.filter(e=>e!==Wd)}},zd={oneOf:[{type:"array",items:dd,uniqueItems:!0},dd]},$d={type:"boolean"},Yd={type:"string",pattern:"^https?://.*"},Vd={type:"string",pattern:"^https?://.*"},s0={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},a0={type:"object",additionalProperties:s0,nodeTypeName:_t.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},c0={type:"string",enum:["info","success","warning","error"]},ee={type:"object",additionalProperties:{type:"string"}},u0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:c0,rbac:ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},l0={type:"array",items:u0},Kd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:Di,graphql:Ri,theme:{type:"object",properties:{openapi:Di,graphql:Ri},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ei},required:["root"]},p0={type:"object",additionalProperties:!0},d0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},f0={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},g0={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:f0},additionalProperties:!1},m0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},h0={type:"object",properties:{catalogs:{type:"object",properties:{all:ee,services:ee,domains:ee,teams:ee,users:ee,apiDescriptions:ee,dataSchemas:ee,apiOperations:ee},additionalProperties:ee},entitiesTypes:{type:"object",properties:{service:ee,domain:ee,team:ee,user:ee,apiDescription:ee,apiOperation:ee,dataSchema:ee},additionalProperties:ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":ee},additionalProperties:ee}},additionalProperties:!1},Gd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ee,cms:ee,reunite:ee,features:{type:"object",properties:{aiSearch:ee,mcp:ee},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:h0},additionalProperties:ee},y0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},b0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},v0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[y0,b0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},P0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},x0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ta={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[P0,x0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},_0={...ta,properties:{...ta.properties,type:{type:"string",const:"APIGEE_EDGE"}}},C0={type:"object",oneOf:[ta,_0,v0],discriminator:{propertyName:"type"}},R0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:C0}}},fd={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"]},T0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},D0={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},w0={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},S0={type:"object",properties:{requiresLogin:$d,logoutReturnUrl:Yd,residency:Vd,sso:Bd,idps:zd,rbac:Gd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ki={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:a0,seo:g0,rbac:Gd,apiFunctions:m0,requiresLogin:$d,responseHeaders:{type:"object",additionalProperties:{type:"array",items:T0}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:Kd},...Ei,ssoDirect:o0,sso:Bd,idps:zd,residency:Vd,logoutReturnUrl:Yd,access:S0,developerOnboarding:R0,removeAttribution:{type:"boolean"},i18n:fd,l10n:fd,metadata:p0,metadataGlobs:d0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:e0,logo:vd,navbar:Pd,products:xd,footer:_d,sidebar:Cd,scripts:Rd,links:Td,feedback:Rr,search:Dd,aiAssistant:wd,colorMode:Sd,palette:ia,navigation:kd,codeSnippet:Ad,markdown:Ed,openapi:Di,graphql:Ri,analytics:qd,userMenu:Od,versionPicker:Md,breadcrumbs:Ld,catalog:wi,entitiesCatalog:jd,catalogClassic:wi,scorecard:Si,scorecardClassic:Si,scorecards:Fd,mcp:D0,skills:w0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:l0},not:{required:["sso","idps"]},additionalProperties:!0},k0={...ki,additionalProperties:!1},Qd={$id:"root-redocly-config",...ki,properties:{plugins:{type:"array",items:{type:"string"}},...ki.properties,env:{type:"object",additionalProperties:k0}},additionalProperties:!1},gd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:ia,mockServer:ki.properties.mockServer,analytics:{type:"object",properties:{ga:Nd}}},additionalProperties:!0},ww={$id:"product-config-override",type:"object",properties:{...gd.properties,apis:{type:"object",additionalProperties:Kd},theme:gd},additionalProperties:!1},A0=["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"],Pe=bd({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),E0={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},N0={type:"object",nodeTypeName:Pe.ApiDescriptionEntityMetadata,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},q0={type:"object",nodeTypeName:Pe.ApiOperationEntityMetadata,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},O0={type:"object",nodeTypeName:Pe.DataSchemaEntityMetadata,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},M0={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},L0={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},j0={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:L0}},required:["channels"],additionalProperties:!1},I0={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:j0},additionalProperties:!1},F0={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},U0={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:A0},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Vt={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:I0,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:F0},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:U0},metadata:M0},Ni={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Vt,type:{type:"string",const:"user"},metadata:E0},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...Vt,type:{type:"string",const:"api-operation"},metadata:q0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...Vt,type:{type:"string",const:"data-schema"},metadata:O0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...Vt,type:{type:"string",const:"api-description"},metadata:N0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...Vt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...Vt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...Vt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},qi={type:"object",nodeTypeName:Pe.Entity,properties:{...Vt},required:["key","title","type"],additionalProperties:!1};var We=Ee(It(),1);import{getLineColLocation as tT,lintDocument as nT,makeDocumentFromString as rs,lintConfig as rT,lintEntityFile as iT,detectSpec as oT,createConfigTypes as sT}from"@redocly/openapi-core";var ts=Ee(On(),1);function fy(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),m=d?Date.now()-d:0;try{if(m<t&&m>=0)r.set(u.uri,setTimeout(()=>a(u),t-m));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),m=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))),m?v(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:v,reject:y}])})}return c}function Xu(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 gy(e){return e==="$ref"}function Zu(e,t){return e?K.dirname(Qe.file(e)).toString():t}async function el(e,t){let n=Qe.parse(t);return K.joinPath(n,e).toString()}async function my(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await el(i,n)===t)return r}function hy(e){return typeof e=="string"}function Yr(e){return typeof e=="function"}function yy(e){return e?.kind===ts.Kind.MAP}function tl(e){return e?.kind===ts.Kind.MAPPING}function nl(e){return e?.kind===ts.Kind.SEQ}function Vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as WR,isPlainObject as HR,makeDocumentFromString as BR,getTypes as zR,detectSpec as $R}from"@redocly/openapi-core";var by=new Map,ns=new Map;function YR(e){return e?Array.from(e).map(([t,n])=>[t,Xu(n)]):[]}async function rl(e,t){let n=await Yt(),r=new Pt(n.resolve),i=BR(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await WR({document:i,config:n,externalRefResolver:r,types:zR($R(i.parsed))}),c=YR(a);a&&(ns=new Map([...ns,...a])),by.set(e.uri,{uri:e.uri,name:yr(e.uri),definition:HR(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function VR(){return Array.from(by).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:yr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function il(e){return ns.get(e)??ns.get(De(e))??null}import{createConfig as vy,lintDocument as KR,loadIgnoreConfig as GR,regexFromString as QR}from"@redocly/openapi-core";async function Py(e,t,n,r,i,o){let s=[],a=await GR(r,t),c=typeof i=="string"?await JR(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,m=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...m,...o},y=ZR(n.targets,v);y?.rules&&r&&(u=await XR(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let m=u[d.name]??await vy({...d,plugins:c},{configPath:r,ignore:a}),v=await KR({document:e,externalRefResolver:t,config:m});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function JR(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){let n=t instanceof Error?t.message:String(t);return console.error("Failed to load plugins module:",n),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 rt.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 rt.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,I){return t.call(y)==="[object Number]"&&D<=y&&y<=I}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 m(y){return y!==null&&typeof y=="object"}e.objectLiteral=m;function v(y,D){return Array.isArray(y)&&y.every(D)}e.typedArray=v})(f||(f={}))});var ce=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var Qn=vn(),Tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Tf||(Ye.MessageDirection=Tf={}));var yu=class{constructor(t){this.method=t}};Ye.RegistrationType=yu;var bu=class extends Qn.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=bu;var vu=class extends Qn.RequestType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolRequestType=vu;var Pu=class extends Qn.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=Pu;var xu=class extends Qn.NotificationType{constructor(t){super(t,Qn.ParameterStructures.byName)}};Ye.ProtocolNotificationType=xu});var co=R(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.objectLiteral=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function gC(e){return e===!0||e===!1}xe.boolean=gC;function Df(e){return typeof e=="string"||e instanceof String}xe.string=Df;function mC(e){return typeof e=="number"||e instanceof Number}xe.number=mC;function hC(e){return e instanceof Error}xe.error=hC;function yC(e){return typeof e=="function"}xe.func=yC;function wf(e){return Array.isArray(e)}xe.array=wf;function bC(e){return wf(e)&&e.every(t=>Df(t))}xe.stringArray=bC;function vC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=vC;function PC(e){return e!==null&&typeof e=="object"}xe.objectLiteral=PC});var Af=R(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.ImplementationRequest=void 0;var Sf=ce(),kf;(function(e){e.method="textDocument/implementation",e.messageDirection=Sf.MessageDirection.clientToServer,e.type=new Sf.ProtocolRequestType(e.method)})(kf||(uo.ImplementationRequest=kf={}))});var qf=R(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.TypeDefinitionRequest=void 0;var Ef=ce(),Nf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(lo.TypeDefinitionRequest=Nf={}))});var Lf=R(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.DidChangeWorkspaceFoldersNotification=Jn.WorkspaceFoldersRequest=void 0;var po=ce(),Of;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=po.MessageDirection.serverToClient,e.type=new po.ProtocolRequestType0(e.method)})(Of||(Jn.WorkspaceFoldersRequest=Of={}));var Mf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=po.MessageDirection.clientToServer,e.type=new po.ProtocolNotificationType(e.method)})(Mf||(Jn.DidChangeWorkspaceFoldersNotification=Mf={}))});var Ff=R(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.ConfigurationRequest=void 0;var jf=ce(),If;(function(e){e.method="workspace/configuration",e.messageDirection=jf.MessageDirection.serverToClient,e.type=new jf.ProtocolRequestType(e.method)})(If||(fo.ConfigurationRequest=If={}))});var Hf=R(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ColorPresentationRequest=Xn.DocumentColorRequest=void 0;var go=ce(),Uf;(function(e){e.method="textDocument/documentColor",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Uf||(Xn.DocumentColorRequest=Uf={}));var Wf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=go.MessageDirection.clientToServer,e.type=new go.ProtocolRequestType(e.method)})(Wf||(Xn.ColorPresentationRequest=Wf={}))});var $f=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.FoldingRangeRefreshRequest=Zn.FoldingRangeRequest=void 0;var mo=ce(),Bf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=mo.MessageDirection.clientToServer,e.type=new mo.ProtocolRequestType(e.method)})(Bf||(Zn.FoldingRangeRequest=Bf={}));var zf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=mo.MessageDirection.serverToClient,e.type=new mo.ProtocolRequestType0(e.method)})(zf||(Zn.FoldingRangeRefreshRequest=zf={}))});var Kf=R(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.DeclarationRequest=void 0;var Yf=ce(),Vf;(function(e){e.method="textDocument/declaration",e.messageDirection=Yf.MessageDirection.clientToServer,e.type=new Yf.ProtocolRequestType(e.method)})(Vf||(ho.DeclarationRequest=Vf={}))});var Jf=R(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.SelectionRangeRequest=void 0;var Gf=ce(),Qf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(yo.SelectionRangeRequest=Qf={}))});var tg=R(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.WorkDoneProgressCancelNotification=Xt.WorkDoneProgressCreateRequest=Xt.WorkDoneProgress=void 0;var xC=vn(),bo=ce(),Xf;(function(e){e.type=new xC.ProgressType;function t(n){return n===e.type}e.is=t})(Xf||(Xt.WorkDoneProgress=Xf={}));var Zf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType(e.method)})(Zf||(Xt.WorkDoneProgressCreateRequest=Zf={}));var eg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(eg||(Xt.WorkDoneProgressCancelNotification=eg={}))});var og=R(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.CallHierarchyOutgoingCallsRequest=Zt.CallHierarchyIncomingCallsRequest=Zt.CallHierarchyPrepareRequest=void 0;var er=ce(),ng;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(ng||(Zt.CallHierarchyPrepareRequest=ng={}));var rg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(rg||(Zt.CallHierarchyIncomingCallsRequest=rg={}));var ig;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=er.MessageDirection.clientToServer,e.type=new er.ProtocolRequestType(e.method)})(ig||(Zt.CallHierarchyOutgoingCallsRequest=ig={}))});var pg=R(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var jt=ce(),sg;(function(e){e.Relative="relative"})(sg||(Ve.TokenFormat=sg={}));var Ir;(function(e){e.method="textDocument/semanticTokens",e.type=new jt.RegistrationType(e.method)})(Ir||(Ve.SemanticTokensRegistrationType=Ir={}));var ag;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(ag||(Ve.SemanticTokensRequest=ag={}));var cg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(cg||(Ve.SemanticTokensDeltaRequest=cg={}));var ug;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=jt.MessageDirection.clientToServer,e.type=new jt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(ug||(Ve.SemanticTokensRangeRequest=ug={}));var lg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=jt.MessageDirection.serverToClient,e.type=new jt.ProtocolRequestType0(e.method)})(lg||(Ve.SemanticTokensRefreshRequest=lg={}))});var gg=R(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ShowDocumentRequest=void 0;var dg=ce(),fg;(function(e){e.method="window/showDocument",e.messageDirection=dg.MessageDirection.serverToClient,e.type=new dg.ProtocolRequestType(e.method)})(fg||(vo.ShowDocumentRequest=fg={}))});var yg=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.LinkedEditingRangeRequest=void 0;var mg=ce(),hg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=mg.MessageDirection.clientToServer,e.type=new mg.ProtocolRequestType(e.method)})(hg||(Po.LinkedEditingRangeRequest=hg={}))});var Tg=R(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var it=ce(),bg;(function(e){e.file="file",e.folder="folder"})(bg||(je.FileOperationPatternKind=bg={}));var vg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(vg||(je.WillCreateFilesRequest=vg={}));var Pg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Pg||(je.DidCreateFilesNotification=Pg={}));var xg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(xg||(je.WillRenameFilesRequest=xg={}));var _g;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(_g||(je.DidRenameFilesNotification=_g={}));var Cg;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolNotificationType(e.method)})(Cg||(je.DidDeleteFilesNotification=Cg={}));var Rg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=it.MessageDirection.clientToServer,e.type=new it.ProtocolRequestType(e.method)})(Rg||(je.WillDeleteFilesRequest=Rg={}))});var Ag=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.MonikerRequest=en.MonikerKind=en.UniquenessLevel=void 0;var Dg=ce(),wg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(wg||(en.UniquenessLevel=wg={}));var Sg;(function(e){e.$import="import",e.$export="export",e.local="local"})(Sg||(en.MonikerKind=Sg={}));var kg;(function(e){e.method="textDocument/moniker",e.messageDirection=Dg.MessageDirection.clientToServer,e.type=new Dg.ProtocolRequestType(e.method)})(kg||(en.MonikerRequest=kg={}))});var Og=R(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.TypeHierarchySubtypesRequest=tn.TypeHierarchySupertypesRequest=tn.TypeHierarchyPrepareRequest=void 0;var tr=ce(),Eg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Eg||(tn.TypeHierarchyPrepareRequest=Eg={}));var Ng;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(Ng||(tn.TypeHierarchySupertypesRequest=Ng={}));var qg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(qg||(tn.TypeHierarchySubtypesRequest=qg={}))});var jg=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.InlineValueRefreshRequest=nr.InlineValueRequest=void 0;var xo=ce(),Mg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(Mg||(nr.InlineValueRequest=Mg={}));var Lg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=xo.MessageDirection.serverToClient,e.type=new xo.ProtocolRequestType0(e.method)})(Lg||(nr.InlineValueRefreshRequest=Lg={}))});var Wg=R(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.InlayHintRefreshRequest=nn.InlayHintResolveRequest=nn.InlayHintRequest=void 0;var rr=ce(),Ig;(function(e){e.method="textDocument/inlayHint",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Ig||(nn.InlayHintRequest=Ig={}));var Fg;(function(e){e.method="inlayHint/resolve",e.messageDirection=rr.MessageDirection.clientToServer,e.type=new rr.ProtocolRequestType(e.method)})(Fg||(nn.InlayHintResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=rr.MessageDirection.serverToClient,e.type=new rr.ProtocolRequestType0(e.method)})(Ug||(nn.InlayHintRefreshRequest=Ug={}))});var Kg=R(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.DiagnosticRefreshRequest=ot.WorkspaceDiagnosticRequest=ot.DocumentDiagnosticRequest=ot.DocumentDiagnosticReportKind=ot.DiagnosticServerCancellationData=void 0;var Vg=vn(),_C=co(),ir=ce(),Hg;(function(e){function t(n){let r=n;return r&&_C.boolean(r.retriggerRequest)}e.is=t})(Hg||(ot.DiagnosticServerCancellationData=Hg={}));var Bg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Bg||(ot.DocumentDiagnosticReportKind=Bg={}));var zg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})(zg||(ot.DocumentDiagnosticRequest=zg={}));var $g;(function(e){e.method="workspace/diagnostic",e.messageDirection=ir.MessageDirection.clientToServer,e.type=new ir.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})($g||(ot.WorkspaceDiagnosticRequest=$g={}));var Yg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=ir.MessageDirection.serverToClient,e.type=new ir.ProtocolRequestType0(e.method)})(Yg||(ot.DiagnosticRefreshRequest=Yg={}))});var tm=R(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.DidCloseNotebookDocumentNotification=ge.DidSaveNotebookDocumentNotification=ge.DidChangeNotebookDocumentNotification=ge.NotebookCellArrayChange=ge.DidOpenNotebookDocumentNotification=ge.NotebookDocumentSyncRegistrationType=ge.NotebookDocument=ge.NotebookCell=ge.ExecutionSummary=ge.NotebookCellKind=void 0;var Fr=(ao(),ni(so)),mt=co(),Dt=ce(),_u;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(_u||(ge.NotebookCellKind=_u={}));var Cu;(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 mt.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||mt.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})(Cu||(ge.ExecutionSummary=Cu={}));var _o;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return mt.objectLiteral(s)&&_u.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||mt.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)&&!Cu.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(mt.objectLiteral(o)&&mt.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 m=0;m<u.length;m++){let v=u[m];if(!i(o[v],s[v]))return!1}}return!0}})(_o||(ge.NotebookCell=_o={}));var Gg;(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 mt.objectLiteral(i)&&mt.string(i.uri)&&Fr.integer.is(i.version)&&mt.typedArray(i.cells,_o.is)}e.is=n})(Gg||(ge.NotebookDocument=Gg={}));var or;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(or||(ge.NotebookDocumentSyncRegistrationType=or={}));var Qg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Qg||(ge.DidOpenNotebookDocumentNotification=Qg={}));var Jg;(function(e){function t(r){let i=r;return mt.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||mt.typedArray(i.cells,_o.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})(Jg||(ge.NotebookCellArrayChange=Jg={}));var Xg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Xg||(ge.DidChangeNotebookDocumentNotification=Xg={}));var Zg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(Zg||(ge.DidSaveNotebookDocumentNotification=Zg={}));var em;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=or.method})(em||(ge.DidCloseNotebookDocumentNotification=em={}))});var im=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.InlineCompletionRequest=void 0;var nm=ce(),rm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=nm.MessageDirection.clientToServer,e.type=new nm.ProtocolRequestType(e.method)})(rm||(Co.InlineCompletionRequest=rm={}))});var yh=R(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 w=ce(),om=(ao(),ni(so)),ke=co(),CC=Af();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return CC.ImplementationRequest}});var RC=qf();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return RC.TypeDefinitionRequest}});var fh=Lf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fh.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fh.DidChangeWorkspaceFoldersNotification}});var TC=Ff();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return TC.ConfigurationRequest}});var gh=Hf();Object.defineProperty(l,"DocumentColorRequest",{enumerable:!0,get:function(){return gh.DocumentColorRequest}});Object.defineProperty(l,"ColorPresentationRequest",{enumerable:!0,get:function(){return gh.ColorPresentationRequest}});var mh=$f();Object.defineProperty(l,"FoldingRangeRequest",{enumerable:!0,get:function(){return mh.FoldingRangeRequest}});Object.defineProperty(l,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return mh.FoldingRangeRefreshRequest}});var DC=Kf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return DC.DeclarationRequest}});var wC=Jf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return wC.SelectionRangeRequest}});var Su=tg();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return Su.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Su.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Su.WorkDoneProgressCancelNotification}});var ku=og();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ku.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ku.CallHierarchyPrepareRequest}});var sr=pg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return sr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return sr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return sr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return sr.SemanticTokensRegistrationType}});var SC=gg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return SC.ShowDocumentRequest}});var kC=yg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return kC.LinkedEditingRangeRequest}});var _n=Tg();Object.defineProperty(l,"FileOperationPatternKind",{enumerable:!0,get:function(){return _n.FileOperationPatternKind}});Object.defineProperty(l,"DidCreateFilesNotification",{enumerable:!0,get:function(){return _n.DidCreateFilesNotification}});Object.defineProperty(l,"WillCreateFilesRequest",{enumerable:!0,get:function(){return _n.WillCreateFilesRequest}});Object.defineProperty(l,"DidRenameFilesNotification",{enumerable:!0,get:function(){return _n.DidRenameFilesNotification}});Object.defineProperty(l,"WillRenameFilesRequest",{enumerable:!0,get:function(){return _n.WillRenameFilesRequest}});Object.defineProperty(l,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return _n.DidDeleteFilesNotification}});Object.defineProperty(l,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return _n.WillDeleteFilesRequest}});var Au=Ag();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return Au.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return Au.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return Au.MonikerRequest}});var Eu=Og();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Eu.TypeHierarchySupertypesRequest}});var hh=jg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return hh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return hh.InlineValueRefreshRequest}});var Nu=Wg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return Nu.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Nu.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Nu.InlayHintRefreshRequest}});var Ur=Kg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ur.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ur.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ur.DiagnosticRefreshRequest}});var wt=tm();Object.defineProperty(l,"NotebookCellKind",{enumerable:!0,get:function(){return wt.NotebookCellKind}});Object.defineProperty(l,"ExecutionSummary",{enumerable:!0,get:function(){return wt.ExecutionSummary}});Object.defineProperty(l,"NotebookCell",{enumerable:!0,get:function(){return wt.NotebookCell}});Object.defineProperty(l,"NotebookDocument",{enumerable:!0,get:function(){return wt.NotebookDocument}});Object.defineProperty(l,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return wt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(l,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidOpenNotebookDocumentNotification}});Object.defineProperty(l,"NotebookCellArrayChange",{enumerable:!0,get:function(){return wt.NotebookCellArrayChange}});Object.defineProperty(l,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidChangeNotebookDocumentNotification}});Object.defineProperty(l,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidSaveNotebookDocumentNotification}});Object.defineProperty(l,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return wt.DidCloseNotebookDocumentNotification}});var AC=im();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return AC.InlineCompletionRequest}});var Ru;(function(e){function t(n){let r=n;return ke.string(r)||ke.string(r.language)||ke.string(r.scheme)||ke.string(r.pattern)}e.is=t})(Ru||(l.TextDocumentFilter=Ru={}));var Tu;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebookType)||ke.string(r.scheme)||ke.string(r.pattern))}e.is=t})(Tu||(l.NotebookDocumentFilter=Tu={}));var Du;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(ke.string(r.notebook)||Tu.is(r.notebook))&&(r.language===void 0||ke.string(r.language))}e.is=t})(Du||(l.NotebookCellTextDocumentFilter=Du={}));var wu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!ke.string(r)&&!Ru.is(r)&&!Du.is(r))return!1;return!0}e.is=t})(wu||(l.DocumentSelector=wu={}));var sm;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(sm||(l.RegistrationRequest=sm={}));var am;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(am||(l.UnregistrationRequest=am={}));var cm;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(cm||(l.ResourceOperationKind=cm={}));var um;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(um||(l.FailureHandlingKind=um={}));var lm;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(lm||(l.PositionEncodingKind=lm={}));var pm;(function(e){function t(n){let r=n;return r&&ke.string(r.id)&&r.id.length>0}e.hasId=t})(pm||(l.StaticRegistrationOptions=pm={}));var dm;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||wu.is(r.documentSelector))}e.is=t})(dm||(l.TextDocumentRegistrationOptions=dm={}));var fm;(function(e){function t(r){let i=r;return ke.objectLiteral(i)&&(i.workDoneProgress===void 0||ke.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&ke.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(fm||(l.WorkDoneProgressOptions=fm={}));var gm;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(gm||(l.InitializeRequest=gm={}));var mm;(function(e){e.unknownProtocolVersion=1})(mm||(l.InitializeErrorCodes=mm={}));var hm;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(hm||(l.InitializedNotification=hm={}));var ym;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(ym||(l.ShutdownRequest=ym={}));var bm;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(bm||(l.ExitNotification=bm={}));var vm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(vm||(l.DidChangeConfigurationNotification=vm={}));var Pm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Pm||(l.MessageType=Pm={}));var xm;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(xm||(l.ShowMessageNotification=xm={}));var _m;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(_m||(l.ShowMessageRequest=_m={}));var Cm;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Cm||(l.LogMessageNotification=Cm={}));var Rm;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Rm||(l.TelemetryEventNotification=Rm={}));var Tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Tm||(l.TextDocumentSyncKind=Tm={}));var Dm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Dm||(l.DidOpenTextDocumentNotification=Dm={}));var wm;(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})(wm||(l.TextDocumentContentChangeEvent=wm={}));var Sm;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Sm||(l.DidChangeTextDocumentNotification=Sm={}));var km;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(km||(l.DidCloseTextDocumentNotification=km={}));var Am;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Am||(l.DidSaveTextDocumentNotification=Am={}));var Em;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(Em||(l.TextDocumentSaveReason=Em={}));var Nm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Nm||(l.WillSaveTextDocumentNotification=Nm={}));var qm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qm||(l.WillSaveTextDocumentWaitUntilRequest=qm={}));var Om;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Om||(l.DidChangeWatchedFilesNotification=Om={}));var Mm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(Mm||(l.FileChangeType=Mm={}));var Lm;(function(e){function t(n){let r=n;return ke.objectLiteral(r)&&(om.URI.is(r.baseUri)||om.WorkspaceFolder.is(r.baseUri))&&ke.string(r.pattern)}e.is=t})(Lm||(l.RelativePattern=Lm={}));var jm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(jm||(l.WatchKind=jm={}));var Im;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Im||(l.PublishDiagnosticsNotification=Im={}));var Fm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Fm||(l.CompletionTriggerKind=Fm={}));var Um;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(l.CompletionRequest=Um={}));var Wm;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(l.CompletionResolveRequest=Wm={}));var Hm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Hm||(l.HoverRequest=Hm={}));var Bm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Bm||(l.SignatureHelpTriggerKind=Bm={}));var zm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zm||(l.SignatureHelpRequest=zm={}));var $m;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})($m||(l.DefinitionRequest=$m={}));var Ym;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Ym||(l.ReferencesRequest=Ym={}));var Vm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Vm||(l.DocumentHighlightRequest=Vm={}));var Km;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Km||(l.DocumentSymbolRequest=Km={}));var Gm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Gm||(l.CodeActionRequest=Gm={}));var Qm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Qm||(l.CodeActionResolveRequest=Qm={}));var Jm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Jm||(l.WorkspaceSymbolRequest=Jm={}));var Xm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Xm||(l.WorkspaceSymbolResolveRequest=Xm={}));var Zm;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Zm||(l.CodeLensRequest=Zm={}));var eh;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(eh||(l.CodeLensResolveRequest=eh={}));var th;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(th||(l.CodeLensRefreshRequest=th={}));var nh;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(nh||(l.DocumentLinkRequest=nh={}));var rh;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(rh||(l.DocumentLinkResolveRequest=rh={}));var ih;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ih||(l.DocumentFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(oh||(l.DocumentRangeFormattingRequest=oh={}));var sh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(sh||(l.DocumentRangesFormattingRequest=sh={}));var ah;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ah||(l.DocumentOnTypeFormattingRequest=ah={}));var ch;(function(e){e.Identifier=1})(ch||(l.PrepareSupportDefaultBehavior=ch={}));var uh;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(uh||(l.RenameRequest=uh={}));var lh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(lh||(l.PrepareRenameRequest=lh={}));var ph;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ph||(l.ExecuteCommandRequest=ph={}));var dh;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(dh||(l.ApplyWorkspaceEditRequest=dh={}))});var vh=R(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.createProtocolConnection=void 0;var bh=vn();function EC(e,t,n,r){return bh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,bh.createMessageConnection)(e,t,n,r)}Ro.createProtocolConnection=EC});var xh=R(Ke=>{"use strict";var NC=Ke&&Ke.__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]})),To=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&NC(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;To(vn(),Ke);To((ao(),ni(so)),Ke);To(ce(),Ke);To(yh(),Ke);var qC=vh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return qC.createProtocolConnection}});var Ph;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Ph||(Ke.LSPErrorCodes=Ph={}))});var ve=R(St=>{"use strict";var OC=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]})),_h=St&&St.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&OC(t,e,n)};Object.defineProperty(St,"__esModule",{value:!0});St.createProtocolConnection=void 0;var MC=gc();_h(gc(),St);_h(xh(),St);function LC(e,t,n,r){return(0,MC.createMessageConnection)(e,t,n,r)}St.createProtocolConnection=LC});var Ou=R(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.SemanticTokensBuilder=rn.SemanticTokensDiff=rn.SemanticTokensFeature=void 0;var Do=ve(),jC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Do.SemanticTokensRefreshRequest.type),on:t=>{let n=Do.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Do.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Do.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};rn.SemanticTokensFeature=jC;var wo=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}]:[]}};rn.SemanticTokensDiff=wo;var qu=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 wo(this._prevData,this._data).computeDiff()}:this.build()}};rn.SemanticTokensBuilder=qu});var Ch=R(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.InlineCompletionFeature=void 0;var IC=ve(),FC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(IC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};So.InlineCompletionFeature=FC});var Lu=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.TextDocuments=void 0;var Cn=ve(),Mu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Cn.Emitter,this._onDidOpen=new Cn.Emitter,this._onDidClose=new Cn.Emitter,this._onDidSave=new Cn.Emitter,this._onWillSave=new Cn.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=Cn.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}))})),Cn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ko.TextDocuments=Mu});var Iu=R(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NotebookDocuments=ar.NotebookSyncFeature=void 0;var st=ve(),Rh=Lu(),UC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(st.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(st.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(st.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(st.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};ar.NotebookSyncFeature=UC;var Ao=class e{onDidOpenTextDocument(t){return this.openHandler=t,st.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,st.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,st.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}};Ao.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ju=class{constructor(t){t instanceof Rh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Rh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new st.Emitter,this._onDidChange=new st.Emitter,this._onDidSave=new st.Emitter,this._onDidClose=new st.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 Ao,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=[],m=[],v=[];if(c.cells!==void 0){let U=c.cells;if(U.structure!==void 0){let h=U.structure.array;if(o.cells.splice(h.start,h.deleteCount,...h.cells!==void 0?h.cells:[]),U.structure.didOpen!==void 0)for(let g of U.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(U.structure.didClose)for(let g of U.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(U.data!==void 0){let h=new Map(U.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let S=h.get(o.cells[g].document);if(S!==void 0){let Y=o.cells.splice(g,1,S);if(m.push({old:Y[0],new:S}),h.delete(S.document),h.size===0)break}}}if(U.textContent!==void 0)for(let h of U.textContent)n.changeTextDocument({textDocument:h.document,contentChanges:h.changes}),v.push(h.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let D=[];for(let U of u)D.push(this.getNotebookCell(U));let I=[];for(let U of d)I.push(this.getNotebookCell(U));let G=[];for(let U of v)G.push(this.getNotebookCell(U));(D.length>0||I.length>0||m.length>0||G.length>0)&&(y.cells={added:D,removed:I,changed:{data:m,textContent:G}}),(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)}})),st.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};ar.NotebookDocuments=ju});var Fu=R(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.thenable=_e.typedArray=_e.stringArray=_e.array=_e.func=_e.error=_e.number=_e.string=_e.boolean=void 0;function WC(e){return e===!0||e===!1}_e.boolean=WC;function Th(e){return typeof e=="string"||e instanceof String}_e.string=Th;function HC(e){return typeof e=="number"||e instanceof Number}_e.number=HC;function BC(e){return e instanceof Error}_e.error=BC;function Dh(e){return typeof e=="function"}_e.func=Dh;function wh(e){return Array.isArray(e)}_e.array=wh;function zC(e){return wh(e)&&e.every(t=>Th(t))}_e.stringArray=zC;function $C(e,t){return Array.isArray(e)&&e.every(t)}_e.typedArray=$C;function YC(e){return e&&Dh(e.then)}_e.thenable=YC});var Uu=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.generateUuid=at.parse=at.isUUID=at.v4=at.empty=void 0;var Wr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Hr=class e extends Wr{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(""))}};Hr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Hr._timeHighBits=["8","9","a","b"];at.empty=new Wr("00000000-0000-0000-0000-000000000000");function Sh(){return new Hr}at.v4=Sh;var VC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function kh(e){return VC.test(e)}at.isUUID=kh;function KC(e){if(!kh(e))throw new Error("invalid uuid");return new Wr(e)}at.parse=KC;function GC(){return Sh().asHex()}at.generateUuid=GC});var Ah=R(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.attachPartialResult=sn.ProgressFeature=sn.attachWorkDone=void 0;var on=ve(),QC=Uu(),Rn=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(on.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(on.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(on.WorkDoneProgress.type,this._token,{kind:"end"})}};Rn.Instances=new Map;var Eo=class extends Rn{constructor(t,n){super(t,n),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Br=class{constructor(){}begin(){}report(){}done(){}},No=class extends Br{constructor(){super(),this._source=new on.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function JC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Br;let n=t.workDoneToken;return delete t.workDoneToken,new Rn(e,n)}sn.attachWorkDone=JC;var XC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(on.WorkDoneProgressCancelNotification.type,n=>{let r=Rn.Instances.get(n.token);(r instanceof Eo||r instanceof No)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Br:new Rn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,QC.generateUuid)();return this.connection.sendRequest(on.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Eo(this.connection,t))}else return Promise.resolve(new No)}};sn.ProgressFeature=XC;var Wu;(function(e){e.type=new on.ProgressType})(Wu||(Wu={}));var Hu=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Wu.type,this._token,t)}};function ZC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Hu(e,n)}sn.attachPartialResult=ZC});var Eh=R(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.ConfigurationFeature=void 0;var eR=ve(),tR=Fu(),nR=e=>class extends e{getConfiguration(t){return t?tR.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(eR.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};qo.ConfigurationFeature=nR});var Nh=R(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.WorkspaceFoldersFeature=void 0;var Oo=ve(),rR=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Oo.Emitter,this.connection.onNotification(Oo.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(Oo.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(Oo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Mo.WorkspaceFoldersFeature=rR});var qh=R(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.CallHierarchyFeature=void 0;var Bu=ve(),iR=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Bu.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Bu.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Bu.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Lo.CallHierarchyFeature=iR});var Oh=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ShowDocumentFeature=void 0;var oR=ve(),sR=e=>class extends e{showDocument(t){return this.connection.sendRequest(oR.ShowDocumentRequest.type,t)}};jo.ShowDocumentFeature=sR});var Mh=R(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.FileOperationsFeature=void 0;var cr=ve(),aR=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(cr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(cr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(cr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(cr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(cr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(cr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Io.FileOperationsFeature=aR});var Lh=R(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.LinkedEditingRangeFeature=void 0;var cR=ve(),uR=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(cR.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Fo.LinkedEditingRangeFeature=uR});var jh=R(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.TypeHierarchyFeature=void 0;var zu=ve(),lR=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(zu.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=zu.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=zu.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Uo.TypeHierarchyFeature=lR});var Fh=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.InlineValueFeature=void 0;var Ih=ve(),pR=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Ih.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(Ih.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Wo.InlineValueFeature=pR});var Wh=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.FoldingRangeFeature=void 0;var Uh=ve(),dR=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(Uh.FoldingRangeRefreshRequest.type),on:t=>{let n=Uh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ho.FoldingRangeFeature=dR});var Hh=R(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.InlayHintFeature=void 0;var $u=ve(),fR=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest($u.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest($u.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest($u.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Bo.InlayHintFeature=fR});var Bh=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DiagnosticFeature=void 0;var zr=ve(),gR=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};zo.DiagnosticFeature=gR});var zh=R($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.MonikerFeature=void 0;var mR=ve(),hR=e=>class extends e{get moniker(){return{on:t=>{let n=mR.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};$o.MonikerFeature=hR});var oy=R(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.createConnection=J.combineFeatures=J.combineNotebooksFeatures=J.combineLanguagesFeatures=J.combineWorkspaceFeatures=J.combineWindowFeatures=J.combineClientFeatures=J.combineTracerFeatures=J.combineTelemetryFeatures=J.combineConsoleFeatures=J._NotebooksImpl=J._LanguagesImpl=J.BulkUnregistration=J.BulkRegistration=J.ErrorMessageTracker=void 0;var E=ve(),ct=Fu(),Vu=Uu(),B=Ah(),yR=Eh(),bR=Nh(),vR=qh(),PR=Ou(),xR=Oh(),_R=Mh(),CR=Lh(),RR=jh(),TR=Fh(),DR=Wh(),wR=Hh(),SR=Bh(),kR=Iu(),AR=zh();function Yu(e){if(e!==null)return e}var Ku=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)})}};J.ErrorMessageTracker=Ku;var Yo=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(E.MessageType.Error,t)}warn(t){this.send(E.MessageType.Warning,t)}info(t){this.send(E.MessageType.Info,t)}log(t){this.send(E.MessageType.Log,t)}debug(t){this.send(E.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(E.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,E.RAL)().console.error("Sending log message failed")})}},Gu=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:E.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Yu)}},$h=(0,xR.ShowDocumentFeature)((0,B.ProgressFeature)(Gu)),Yh;(function(e){function t(){return new Vo}e.create=t})(Yh||(J.BulkRegistration=Yh={}));var Vo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=ct.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Vu.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Vh;(function(e){function t(){return new $r(void 0,[])}e.create=t})(Vh||(J.BulkUnregistration=Vh={}));var $r=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(E.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=ct.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(E.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Ko=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 Vo?this.registerMany(t):t instanceof $r?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=ct.string(n)?n:n.method,o=Vu.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(E.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=ct.string(t)?t:t.method,i=Vu.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(E.RegistrationRequest.type,o).then(s=>E.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(E.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(E.RegistrationRequest.type,n).then(()=>new $r(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Qu=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(E.ApplyWorkspaceEditRequest.type,r)}},Kh=(0,_R.FileOperationsFeature)((0,bR.WorkspaceFoldersFeature)((0,yR.ConfigurationFeature)(Qu))),Go=class{constructor(){this._trace=E.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!==E.Trace.Off&&this.connection.sendNotification(E.LogTraceNotification.type,{message:t,verbose:this._trace===E.Trace.Verbose?n:void 0}).catch(()=>{})}},Qo=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(E.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Jo=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)}};J._LanguagesImpl=Jo;var Gh=(0,DR.FoldingRangeFeature)((0,AR.MonikerFeature)((0,SR.DiagnosticFeature)((0,wR.InlayHintFeature)((0,TR.InlineValueFeature)((0,RR.TypeHierarchyFeature)((0,CR.LinkedEditingRangeFeature)((0,PR.SemanticTokensFeature)((0,vR.CallHierarchyFeature)(Jo))))))))),Xo=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)}};J._NotebooksImpl=Xo;var Qh=(0,kR.NotebookSyncFeature)(Xo);function Jh(e,t){return function(n){return t(e(n))}}J.combineConsoleFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}J.combineTelemetryFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}J.combineTracerFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}J.combineClientFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}J.combineWindowFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}J.combineWorkspaceFeatures=ny;function ry(e,t){return function(n){return t(e(n))}}J.combineLanguagesFeatures=ry;function iy(e,t){return function(n){return t(e(n))}}J.combineNotebooksFeatures=iy;function ER(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Jh),tracer:n(e.tracer,t.tracer,Zh),telemetry:n(e.telemetry,t.telemetry,Xh),client:n(e.client,t.client,ey),window:n(e.window,t.window,ty),workspace:n(e.workspace,t.workspace,ny),languages:n(e.languages,t.languages,ry),notebooks:n(e.notebooks,t.notebooks,iy)}}J.combineFeatures=ER;function NR(e,t,n){let r=n&&n.console?new(n.console(Yo)):new Yo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Go)):new Go,s=n&&n.telemetry?new(n.telemetry(Qo)):new Qo,a=n&&n.client?new(n.client(Ko)):new Ko,c=n&&n.window?new(n.window($h)):new $h,u=n&&n.workspace?new(n.workspace(Kh)):new Kh,d=n&&n.languages?new(n.languages(Gh)):new Gh,m=n&&n.notebooks?new(n.notebooks(Qh)):new Qh,v=[r,o,s,a,c,u,d,m];function y(h){return h instanceof Promise?h:ct.thenable(h)?new Promise((g,S)=>{h.then(Y=>g(Y),Y=>S(Y))}):Promise.resolve(h)}let D,I,G,U={listen:()=>i.listen(),sendRequest:(h,...g)=>i.sendRequest(ct.string(h)?h:h.method,...g),onRequest:(h,g)=>i.onRequest(h,g),sendNotification:(h,g)=>{let S=ct.string(h)?h:h.method;return i.sendNotification(S,g)},onNotification:(h,g)=>i.onNotification(h,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:h=>(I=h,{dispose:()=>{I=void 0}}),onInitialized:h=>i.onNotification(E.InitializedNotification.type,h),onShutdown:h=>(D=h,{dispose:()=>{D=void 0}}),onExit:h=>(G=h,{dispose:()=>{G=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 m},onDidChangeConfiguration:h=>i.onNotification(E.DidChangeConfigurationNotification.type,h),onDidChangeWatchedFiles:h=>i.onNotification(E.DidChangeWatchedFilesNotification.type,h),__textDocumentSync:void 0,onDidOpenTextDocument:h=>i.onNotification(E.DidOpenTextDocumentNotification.type,h),onDidChangeTextDocument:h=>i.onNotification(E.DidChangeTextDocumentNotification.type,h),onDidCloseTextDocument:h=>i.onNotification(E.DidCloseTextDocumentNotification.type,h),onWillSaveTextDocument:h=>i.onNotification(E.WillSaveTextDocumentNotification.type,h),onWillSaveTextDocumentWaitUntil:h=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,h),onDidSaveTextDocument:h=>i.onNotification(E.DidSaveTextDocumentNotification.type,h),sendDiagnostics:h=>i.sendNotification(E.PublishDiagnosticsNotification.type,h),onHover:h=>i.onRequest(E.HoverRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:h=>i.onRequest(E.CompletionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:h=>i.onRequest(E.CompletionResolveRequest.type,h),onSignatureHelp:h=>i.onRequest(E.SignatureHelpRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:h=>i.onRequest(E.DeclarationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:h=>i.onRequest(E.DefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:h=>i.onRequest(E.TypeDefinitionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:h=>i.onRequest(E.ImplementationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:h=>i.onRequest(E.ReferencesRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:h=>i.onRequest(E.DocumentHighlightRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:h=>i.onRequest(E.DocumentSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:h=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:h=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,h),onCodeAction:h=>i.onRequest(E.CodeActionRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:h=>i.onRequest(E.CodeActionResolveRequest.type,(g,S)=>h(g,S)),onCodeLens:h=>i.onRequest(E.CodeLensRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:h=>i.onRequest(E.CodeLensResolveRequest.type,(g,S)=>h(g,S)),onDocumentFormatting:h=>i.onRequest(E.DocumentFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:h=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:h=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,S)=>h(g,S)),onRenameRequest:h=>i.onRequest(E.RenameRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:h=>i.onRequest(E.PrepareRenameRequest.type,(g,S)=>h(g,S)),onDocumentLinks:h=>i.onRequest(E.DocumentLinkRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:h=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,S)=>h(g,S)),onDocumentColor:h=>i.onRequest(E.DocumentColorRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:h=>i.onRequest(E.ColorPresentationRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:h=>i.onRequest(E.FoldingRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:h=>i.onRequest(E.SelectionRangeRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:h=>i.onRequest(E.ExecuteCommandRequest.type,(g,S)=>h(g,S,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let h of v)h.attach(U);return i.onRequest(E.InitializeRequest.type,h=>{t.initialize(h),ct.string(h.trace)&&(o.trace=E.Trace.fromString(h.trace));for(let g of v)g.initialize(h.capabilities);if(I){let g=I(h,new E.CancellationTokenSource().token,(0,B.attachWorkDone)(i,h),void 0);return y(g).then(S=>{if(S instanceof E.ResponseError)return S;let Y=S;Y||(Y={capabilities:{}});let Z=Y.capabilities;Z||(Z={},Y.capabilities=Z),Z.textDocumentSync===void 0||Z.textDocumentSync===null?Z.textDocumentSync=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None:!ct.number(Z.textDocumentSync)&&!ct.number(Z.textDocumentSync.change)&&(Z.textDocumentSync.change=ct.number(U.__textDocumentSync)?U.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ut of v)ut.fillServerCapabilities(Z);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let S of v)S.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,D)return D(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{G&&G()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,h=>{o.trace=E.Trace.fromString(h.value)}),U}J.createConnection=NR});var Ju=R(Ie=>{"use strict";var qR=Ie&&Ie.__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]})),ay=Ie&&Ie.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qR(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var OR=Ou();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return OR.SemanticTokensBuilder}});var MR=Ch();ay(ve(),Ie);var LR=Lu();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return LR.TextDocuments}});var jR=Iu();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return jR.NotebookDocuments}});ay(oy(),Ie);var sy;(function(e){e.all={__brand:"features",languages:MR.InlineCompletionFeature}})(sy||(Ie.ProposedFeatures=sy={}))});var uy=R((nk,cy)=>{"use strict";cy.exports=ve()});var es=R(kt=>{"use strict";var IR=kt&&kt.__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]})),py=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&IR(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createConnection=void 0;var Zo=Ju();py(uy(),kt);py(Ju(),kt);var ly=!1,FR={initialize:e=>{},get shutdownReceived(){return ly},set shutdownReceived(e){ly=e},exit:e=>{}};function UR(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Zo.ConnectionStrategy.is(e)||Zo.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Zo.createProtocolConnection)(o,s,u,a);return(0,Zo.createConnection)(c,FR,i)}kt.createConnection=UR});var It=R((ik,dy)=>{"use strict";dy.exports=es()});var ml=R((e1,Sy)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function wy(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 WT(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var dr={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),Et(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=wy(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(Et(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=wy(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return Et(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];Et(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":dr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=dr.resolve(t),n=dr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,u=o<c?o:c,d=-1,m=0;m<=u;++m){if(m===u){if(c>u){if(n.charCodeAt(s+m)===47)return n.slice(s+m+1);if(m===0)return n.slice(s+m)}else o>u&&(t.charCodeAt(r+m)===47?d=m:m===0&&(d=0));break}var v=t.charCodeAt(r+m),y=n.charCodeAt(s+m);if(v!==y)break;v===47&&(d=m)}var D="";for(m=r+d+1;m<=i;++m)(m===i||t.charCodeAt(m)===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(Et(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');Et(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){Et(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 WT("/",t)},parse:function(t){Et(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,m=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:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};dr.posix=dr;Sy.exports=dr});import{createConfig as ed,loadConfig as ux,loadIgnoreConfig as lx,DEFAULT_CONFIG as px,IGNORE_FILE as dx}from"@redocly/openapi-core";var xl;(()=>{"use strict";var e={975:k=>{function b(x){if(typeof x!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(x))}function O(x,C){for(var T,q="",L=0,N=-1,$=0,V=0;V<=x.length;++V){if(V<x.length)T=x.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(q.length<2||L!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Te=q.lastIndexOf("/");if(Te!==q.length-1){Te===-1?(q="",L=0):L=(q=q.slice(0,Te)).length-1-q.lastIndexOf("/"),N=V,$=0;continue}}else if(q.length===2||q.length===1){q="",L=0,N=V,$=0;continue}}C&&(q.length>0?q+="/..":q="..",L=2)}else q.length>0?q+="/"+x.slice(N+1,V):q=x.slice(N+1,V),L=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return q}var M={resolve:function(){for(var x,C="",T=!1,q=arguments.length-1;q>=-1&&!T;q--){var L;q>=0?L=arguments[q]:(x===void 0&&(x=process.cwd()),L=x),b(L),L.length!==0&&(C=L+"/"+C,T=L.charCodeAt(0)===47)}return C=O(C,!T),T?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(x){if(b(x),x.length===0)return".";var C=x.charCodeAt(0)===47,T=x.charCodeAt(x.length-1)===47;return(x=O(x,!C)).length!==0||C||(x="."),x.length>0&&T&&(x+="/"),C?"/"+x:x},isAbsolute:function(x){return b(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,C=0;C<arguments.length;++C){var T=arguments[C];b(T),T.length>0&&(x===void 0?x=T:x+="/"+T)}return x===void 0?".":M.normalize(x)},relative:function(x,C){if(b(x),b(C),x===C||(x=M.resolve(x))===(C=M.resolve(C)))return"";for(var T=1;T<x.length&&x.charCodeAt(T)===47;++T);for(var q=x.length,L=q-T,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var $=C.length-N,V=L<$?L:$,Te=-1,ne=0;ne<=V;++ne){if(ne===V){if($>V){if(C.charCodeAt(N+ne)===47)return C.slice(N+ne+1);if(ne===0)return C.slice(N+ne)}else L>V&&(x.charCodeAt(T+ne)===47?Te=ne:ne===0&&(Te=0));break}var lt=x.charCodeAt(T+ne);if(lt!==C.charCodeAt(N+ne))break;lt===47&&(Te=ne)}var un="";for(ne=T+Te+1;ne<=q;++ne)ne!==q&&x.charCodeAt(ne)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+C.slice(N+Te):(N+=Te,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(x){return x},dirname:function(x){if(b(x),x.length===0)return".";for(var C=x.charCodeAt(0),T=C===47,q=-1,L=!0,N=x.length-1;N>=1;--N)if((C=x.charCodeAt(N))===47){if(!L){q=N;break}}else L=!1;return q===-1?T?"/":".":T&&q===1?"//":x.slice(0,q)},basename:function(x,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(x);var T,q=0,L=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=x.length){if(C.length===x.length&&C===x)return"";var $=C.length-1,V=-1;for(T=x.length-1;T>=0;--T){var Te=x.charCodeAt(T);if(Te===47){if(!N){q=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===C.charCodeAt($)?--$==-1&&(L=T):($=-1,L=V))}return q===L?L=V:L===-1&&(L=x.length),x.slice(q,L)}for(T=x.length-1;T>=0;--T)if(x.charCodeAt(T)===47){if(!N){q=T+1;break}}else L===-1&&(N=!1,L=T+1);return L===-1?"":x.slice(q,L)},extname:function(x){b(x);for(var C=-1,T=0,q=-1,L=!0,N=0,$=x.length-1;$>=0;--$){var V=x.charCodeAt($);if(V!==47)q===-1&&(L=!1,q=$+1),V===46?C===-1?C=$:N!==1&&(N=1):C!==-1&&(N=-1);else if(!L){T=$+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===T+1?"":x.slice(C,q)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return(function(C,T){var q=T.dir||T.root,L=T.base||(T.name||"")+(T.ext||"");return q?q===T.root?q+L:q+"/"+L:L})(0,x)},parse:function(x){b(x);var C={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return C;var T,q=x.charCodeAt(0),L=q===47;L?(C.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,ne=x.length-1,lt=0;ne>=T;--ne)if((q=x.charCodeAt(ne))!==47)V===-1&&(Te=!1,V=ne+1),q===46?N===-1?N=ne:lt!==1&&(lt=1):N!==-1&&(lt=-1);else if(!Te){$=ne+1;break}return N===-1||V===-1||lt===0||lt===1&&N===V-1&&N===$+1?V!==-1&&(C.base=C.name=$===0&&L?x.slice(1,V):x.slice($,V)):($===0&&L?(C.name=x.slice(1,N),C.base=x.slice(1,V)):(C.name=x.slice($,N),C.base=x.slice($,V)),C.ext=x.slice(N,V)),$>0?C.dir=x.slice(0,$-1):L&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,k.exports=M}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var O=t[k]={exports:{}};return e[k](O,O.exports,n),O.exports}n.d=(k,b)=>{for(var O in b)n.o(b,O)&&!n.o(k,O)&&Object.defineProperty(k,O,{enumerable:!0,get:b[O]})},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:()=>Dn}),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="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;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,O,M,x,C,T=!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(q,L){return q||L?q:"file"})(b,T),this.authority=O||u,this.path=(function(q,L){switch(q){case"https":case"http":case"file":L?L[0]!==d&&(L=d+L):L=d}return L})(this.scheme,M||u),this.query=x||u,this.fragment=C||u,c(this,T))}get fsPath(){return h(this,!1)}with(b){if(!b)return this;let{scheme:O,authority:M,path:x,query:C,fragment:T}=b;return O===void 0?O=this.scheme:O===null&&(O=u),M===void 0?M=this.authority:M===null&&(M=u),x===void 0?x=this.path:x===null&&(x=u),C===void 0?C=this.query:C===null&&(C=u),T===void 0?T=this.fragment:T===null&&(T=u),O===this.scheme&&M===this.authority&&x===this.path&&C===this.query&&T===this.fragment?this:new D(O,M,x,C,T)}static parse(b,O=!1){let M=m.exec(b);return M?new D(M[2]||u,Z(M[4]||u),Z(M[5]||u),Z(M[7]||u),Z(M[9]||u),O):new D(u,u,u,u,u)}static file(b){let O=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let M=b.indexOf(d,2);M===-1?(O=b.substring(2),b=d):(O=b.substring(2,M),b=b.substring(M)||d)}return new D("file",O,b,u,u)}static from(b){let O=new D(b.scheme,b.authority,b.path,b.query,b.fragment);return c(O,!0),O}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let O=new D(b);return O._formatted=b.external,O._fsPath=b._sep===y?b.fsPath:null,O}}return b}}let y=i?1:void 0;class D extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=h(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function G(k,b,O){let M,x=-1;for(let C=0;C<k.length;C++){let T=k.charCodeAt(C);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||O&&T===91||O&&T===93||O&&T===58)x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M!==void 0&&(M+=k.charAt(C));else{M===void 0&&(M=k.substr(0,C));let q=I[T];q!==void 0?(x!==-1&&(M+=encodeURIComponent(k.substring(x,C)),x=-1),M+=q):x===-1&&(x=C)}}return x!==-1&&(M+=encodeURIComponent(k.substring(x))),M!==void 0?M:k}function U(k){let b;for(let O=0;O<k.length;O++){let M=k.charCodeAt(O);M===35||M===63?(b===void 0&&(b=k.substr(0,O)),b+=I[M]):b!==void 0&&(b+=k[O])}return b!==void 0?b:k}function h(k,b){let O;return O=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&&(O=O.replace(/\//g,"\\")),O}function g(k,b){let O=b?U:G,M="",{scheme:x,authority:C,path:T,query:q,fragment:L}=k;if(x&&(M+=x,M+=":"),(C||x==="file")&&(M+=d,M+=d),C){let N=C.indexOf("@");if(N!==-1){let $=C.substr(0,N);C=C.substr(N+1),N=$.lastIndexOf(":"),N===-1?M+=O($,!1,!1):(M+=O($.substr(0,N),!1,!1),M+=":",M+=O($.substr(N+1),!1,!0)),M+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?M+=O(C,!1,!0):(M+=O(C.substr(0,N),!1,!0),M+=C.substr(N))}if(T){if(T.length>=3&&T.charCodeAt(0)===47&&T.charCodeAt(2)===58){let N=T.charCodeAt(1);N>=65&&N<=90&&(T=`/${String.fromCharCode(N+32)}:${T.substr(3)}`)}else if(T.length>=2&&T.charCodeAt(1)===58){let N=T.charCodeAt(0);N>=65&&N<=90&&(T=`${String.fromCharCode(N+32)}:${T.substr(2)}`)}M+=O(T,!0,!1)}return q&&(M+="?",M+=O(q,!1,!1)),L&&(M+="#",M+=b?L:G(L,!1,!1)),M}function S(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+S(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Z(k){return k.match(Y)?k.replace(Y,(b=>S(b))):k}var ut=n(975);let Ut=ut.posix||ut,cn="/";var Dn;(function(k){k.joinPath=function(b,...O){return b.with({path:Ut.join(b.path,...O)})},k.resolvePath=function(b,...O){let M=b.path,x=!1;M[0]!==cn&&(M=cn+M,x=!0);let C=Ut.resolve(M,...O);return x&&C[0]===cn&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===cn)return b;let O=Ut.dirname(b.path);return O.length===1&&O.charCodeAt(0)===46&&(O=""),b.with({path:O})},k.basename=function(b){return Ut.basename(b.path)},k.extname=function(b){return Ut.extname(b.path)}})(Dn||(Dn={})),xl=r})();var{URI:Qe,Utils:K}=xl;import{isBrowser as Rb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as Cb}from"@redocly/openapi-core";var Ps={languageId:"yaml",filePattern:/\.ya?ml$/i},xs={languageId:"json",filePattern:/\.json$/i},vs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ps,xs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=K.resolvePath(K.dirname(Ue(t)),Cb);return await this._fs.exists(n)?De(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}},ae=new vs;function mr(e,t){let n=r=>K.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return Qe.parse(e)}function Nt(e){return e.startsWith("file://")?e:Qe.file(e).toString()}function De(e){let t=Qe.parse(e).fsPath;return Rb&&t.startsWith("/")?t.slice(1):t}function hr(e){let t=["https","http"],{scheme:n}=Qe.parse(e);return t.includes(n)}function yr(e){return K.basename(Ue(e))}async function _l(e,t="/"){let n=K.resolvePath(Ue(t));for(;e.path!=="/";)try{(await ae.fs.stat(K.resolvePath(n,e.path))).isDirectory()||(e=K.dirname(e));break}catch{e=K.dirname(e)}return e}import{BaseResolver as ax,Source as Zp,readFileFromUrl as cx,isAbsoluteUrl as Js}from"@redocly/openapi-core";var ri=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=Tl(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=Cl(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 m=r.text.length-(s-o);if(m!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+m}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=Cl(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&&Rl(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}},ii;(function(e){function t(i,o,s,a){return new ri(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof ri)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=_s(o.map(Tb),(d,m)=>{let v=d.range.start.line-m.range.start.line;return v===0?d.range.start.character-m.range.start.character:v}),c=0,u=[];for(let d of a){let m=i.offsetAt(d.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&u.push(s.substring(c,m)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(ii||(ii={}));function _s(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);_s(r,t),_s(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 Cl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Rl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Rl(e){return e===13||e===10}function Tl(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 Tb(e){let t=Tl(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var hi=Ee(On(),1),Jp=new Map;function Xp(e,t){return Jp.set(e,t)}function Qs(e){let t=[];for(let[n,r]of Jp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Xe(e){let t=ae.documents.get(e);if(t)return t;let n=await ae.fs.readFile(Ue(e),"utf-8");return ii.create(e,"yaml",1,n)}function _r(e){return xs.filePattern.test(e)}function yi(e){return Ps.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(yi(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=hi.safeLoad(i,{filename:e})}if(t?.kind===hi.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 Pt=class extends ax{resolveExternalRef(t,n){return Js(n)?n:t&&Js(t)?new URL(n,t).href:t?K.resolvePath(K.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(hr(t)){let{body:i,mimeType:o}=await cx(t,{...this.config.http,customFetch:fetch});return new Zp(t,i,o)}let n=Nt(t),r=Js(t)?De(t):t;return new Zp(r,(await Xe(n)).getText())}};var $t;async function bi(e,t){let n=!1;try{let r=new Pt,i=e?await ae.findConfig(e):void 0;if(i===void 0){let o=await lx(i,r);$t=await ed(px,{externalRefResolver:r,ignore:o})}else $t=await ux({configPath:i,externalRefResolver:r})}catch(r){n=!0;let i=r instanceof Error?r.message:String(r);t?.createEventHandleLoadConfigError?.(i),$t=await ed({})}return{config:$t,loadFailed:n}}async function Yt(e){return $t||(await bi(e)).config}async function hn(e){return await Xs(e)?!0:!!$t?.resolvedRefMap&&[...$t.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>mr(yr(Nt(e)),n))}async function Xs(e){let t=await ae.findConfig(e);return t?mr(e,t):!1}function fx(e){return e.endsWith(dx)}import{clearPluginsCache as bx}from"@redocly/openapi-core";var td=new Set([".js",".mjs",".cjs",".ts"]),gx=/(?:\brequire\(|\b(?:import|export)\b[^'"]*?\bfrom\s+)['"](\.[^'"]+)['"]/g,mx=/\/\*[\s\S]*?\*\/|\/\/[^\n]*/g;async function hx(e){let t=e.resolvedConfig?.plugins;if(!e.configPath||!t?.length)return[];let{fs:n}=ae,r=K.dirname(Qe.file(e.configPath)),i=new Set;async function o(a){if(K.extname(a))return await n.exists(a)?a:void 0;let c=K.dirname(a),u=K.basename(a),d=await n.readDir(c).catch(()=>[]);for(let m of td)if(d.includes(u+m))return K.joinPath(c,u+m)}async function s(a){if(i.has(a.toString())||!await n.exists(a)||(i.add(a.toString()),!td.has(K.extname(a))))return;let c=(await n.readFile(a,"utf-8")).replace(mx,""),u=K.dirname(a);for(let[,d]of c.matchAll(gx)){let m=await o(K.resolvePath(u,d));m&&await s(m)}}for(let a of t)await s(K.resolvePath(r,a.replace(/\\/g,"/")));return[...i].map(a=>Qe.parse(a).fsPath)}function yx(e,t){return t.some(n=>mr(n,e))}var md={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Cr={type:"object",properties:md,additionalProperties:!1},vx={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Rr={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...md,like:Cr,dislike:Cr,satisfied:Cr,neutral:Cr,dissatisfied:Cr},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:vx},additionalProperties:!1}},additionalProperties:!1},Px={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},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},na={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ci={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Rr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:na,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:Px,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Mn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},xx={type:"object",properties:{name:{type:"string"},items:Mn,queries:Mn,mutations:Mn,subscriptions:Mn,types:Mn,directives:Mn},required:["name"],additionalProperties:!1},_x={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:xx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},Cx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Tx={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Cx,license:Rx},additionalProperties:!1},Ri={type:"object",properties:{menu:{type:"object",properties:{..._x.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:na,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:Rr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Tx},additionalProperties:!1},Dx={type:"object",properties:{downloadUrls:na,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Rr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},wx={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Sx={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"}}},nd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},kx={type:"object",properties:{beforeInfo:{type:"array",items:nd},end:{type:"array",items:nd}}},yn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},vi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Ax={type:"object",properties:Ai(yn.properties,["light","dark"])},Ex={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"}}},Nx={type:"object",properties:{error:vi,info:vi,redirect:vi,success:vi}},qx={type:"object",properties:Ln(yn.properties,["dark"])},Ox={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Mx={type:"object",properties:{accent:yn,border:Ax,error:yn,http:Ex,primary:yn,responses:Nx,secondary:qx,success:yn,text:Ox,tonalOffset:{type:"number"},warning:yn}},Pi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Lx={type:"object",properties:{small:Pi,medium:Pi,large:Pi,xlarge:Pi}},Ct={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},jx={type:"object",properties:{...Ln(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Lx}},rd={type:"object",properties:Ai(Ct.properties,["fontSize","lineHeight"])},Ix={type:"object",properties:{medium:rd,small:rd}},Fx={type:"object",properties:{...Ln(Ct.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:Ix}},Ux={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Wx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},id={type:"object",properties:{fullWidth:{type:"boolean"}}},Hx={type:"object",properties:{buttons:jx,httpBadges:Fx,layoutControls:Ux,panels:Wx,tryItButton:id,tryItSendButton:id}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Bx={type:"object",properties:{maxWidth:Ti}},zx={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},$x={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Bx,"three-panel":zx}},od={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Yx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:od,defaultDetailsWidth:{type:"string"},examples:od,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},hd={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Vx={type:"object",properties:Ai(hd.properties,["textTransform"])},Kx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Gx={type:"object",properties:{...Ln(Ct.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:hd,level1items:Vx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Kx,textColor:{type:"string"},width:{type:"string"}}},xi={type:"object",properties:{...Ct.properties,color:{type:"string"},transform:{type:"string"}}},Qx={type:"object",properties:{...Ct.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"}}},Jx={type:"object",properties:Ln(Ct.properties,["fontSize"])},Xx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Zx={type:"object",properties:{code:Qx,fieldName:Ct,...Ai(Ct.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:xi,heading2:xi,heading3:xi,headings:Jx,lineHeight:{type:"string"},links:Xx,optimizeSpeed:{type:"boolean"},rightPanelHeading:xi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},e_={type:"object",properties:{color:{type:"string"},...Ln(Ct.properties,["fontWeight"])}},t_={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:e_}},n_={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},r_={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},sd={type:"object",properties:{custom:{type:"string"}}},i_={type:"object",properties:{DownloadButton:sd,NextSectionButton:sd}},o_={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},s_={type:"object",properties:{borderRadius:{type:"string"}}},a_={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},c_={type:"object",properties:{breakpoints:Ti,codeBlock:t_,colors:Mx,components:Hx,layout:$x,logo:n_,fab:r_,overrides:i_,rightPanel:o_,schema:Yx,shape:s_,sidebar:Gx,spacing:a_,typography:Zx,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},u_={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:wx}},required:["languages"]},yd={type:"object",properties:{theme:c_,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:u_,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:Sx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",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 Ai(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Ln(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var nt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var l_={rules:nt,oas2Rules:nt,oas3_0Rules:nt,oas3_1Rules:nt,oas3_2Rules:nt,async2Rules:nt,async3Rules:nt,arazzo1Rules:nt,arazzo1_1Rules:nt,overlay1Rules:nt,openrpc1Rules:nt,graphqlRules:nt};var dt={nodeTypeName:void 0,type:"object",additionalProperties:!0},p_={preprocessors:dt,oas2Preprocessors:dt,oas3_0Preprocessors:dt,oas3_1Preprocessors:dt,oas3_2Preprocessors:dt,async2Preprocessors:dt,async3Preprocessors:dt,arazzo1Preprocessors:dt,arazzo1_1Preprocessors:dt,overlay1Preprocessors:dt,openrpc1Preprocessors:dt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0};var d_={decorators:ft,oas2Decorators:ft,oas3_0Decorators:ft,oas3_1Decorators:ft,oas3_2Decorators:ft,async2Decorators:ft,async3Decorators:ft,arazzo1Decorators:ft,arazzo1_1Decorators:ft,overlay1Decorators:ft,openrpc1Decorators:ft},f_={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Ei={...l_,...d_,...p_,extends:f_},bd=e=>e,_t=bd({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Se={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},ad={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},Zs={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},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"]},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}}},ra={type:"array",items:{...Zs,properties:{...Zs.properties,items:{type:"array",items:Zs}}}},g_={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},m_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},h_={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}},y_={type:"object",properties:{facets:h_,...Se.properties},additionalProperties:!1},b_={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},vd={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pd={type:"object",properties:{items:ra,...Se.properties},additionalProperties:!1},xd={type:"object",additionalProperties:g_},_d={type:"object",properties:{items:ra,copyrightText:{type:"string"},logo:Se,...Se.properties},additionalProperties:!1},Cd={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Se.properties},additionalProperties:!1},Rd={type:"object",properties:{head:{type:"array",items:ad},body:{type:"array",items:ad}},additionalProperties:!1},Td={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}},Dd={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:m_,filters:y_,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:b_},...Se.properties},additionalProperties:!1},wd={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Sd={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Se.properties},additionalProperties:!1},ia={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},v_={type:"object",properties:{...Se.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},kd={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Se.properties},additionalProperties:!1},actions:v_},additionalProperties:!1},Ad={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Se.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Se.properties},additionalProperties:!1},expand:{type:"object",properties:{...Se.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Se.properties},additionalProperties:!1}},additionalProperties:!1},Ed={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...Se.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Se.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Se.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Di={...Ci,properties:{...Ci.properties,...yd.properties}},Cw={...Ci,properties:{...Ci.properties,...yd.properties}},P_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},x_={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"]},__={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},C_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},R_={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"]},T_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},D_={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Nd={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"]},w_={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:Nd}},additionalProperties:!1,required:["trackingId"]},qd={type:"object",properties:{adobe:P_,amplitude:x_,fullstory:__,heap:C_,rudderstack:R_,segment:T_,gtm:D_,ga:w_}},Od={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...Se.properties},additionalProperties:!1},Md={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ld={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}}},additionalProperties:!1},S_={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},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"}}}},k_={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:S_},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ra,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},wi={type:"object",patternProperties:{".*":k_}},Si={nodeTypeName:_t.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:_t.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ei},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},A_={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},E_={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},N_={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"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Mt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:E_},excludes:{type:"array",items:A_},filters:{type:"array",items:N_},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},q_={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},O_={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:q_},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},M_={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:O_,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},L_={type:"object",additionalProperties:M_},jd={type:"object",properties:{show:{type:"boolean"},entityTypes:L_,catalogs:{type:"object",properties:{all:Mt,services:Mt,domains:Mt,teams:Mt,users:Mt,apiDescriptions:Mt,dataSchemas:Mt,apiOperations:Mt},additionalProperties:Mt}},additionalProperties:!1},cd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},oa={type:"string",enum:["and","or"]},ea={type:"object",properties:{field:{type:"string"},operator:cd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:cd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},j_={type:"object",properties:{operator:oa,conditions:{type:"array",items:ea}},required:["operator","conditions"],additionalProperties:!1},ud={type:"array",items:{oneOf:[ea,{type:"object",properties:{operator:oa,conditions:{type:"array",items:{oneOf:[ea,j_]}}},required:["operator","conditions"],additionalProperties:!1}]}},Id={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},I_={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:Id},required:["subject","assertions"],additionalProperties:!1}},F_={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:Id,where:I_,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},U_={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},F_]}},W_={type:"object",properties:{name:{type:"string"},extends:Ei.extends,rules:U_},required:["name"],additionalProperties:!1},ld={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},H_={oneOf:[ld,{type:"array",items:ld}]},B_={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ud,{type:"object",properties:{operator:oa,conditions:ud},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:W_,minItems:1},trigger:H_},required:["name","key","entities","levels"],additionalProperties:!1},Fd={type:"array",items:B_},xt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:vd,navbar:Pd,products:xd,footer:_d,sidebar:Cd,scripts:Rd,links:Td,feedback:Rr,search:Dd,aiAssistant:wd,colorMode:Sd,palette:ia,navigation:kd,codeSnippet:Ad,markdown:Ed,openapi:Di,asyncapi:Dx,graphql:Ri,analytics:qd,userMenu:Od,versionPicker:Md,breadcrumbs:Ld,catalog:wi,entitiesCatalog:jd,catalogClassic:wi,scorecard:Si,scorecardClassic:Si,scorecards:Fd},additionalProperties:!0};var z_=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(z_||{}),$_=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))($_||{});var Y_=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Y_||{});var Ud="^[a-z0-9]+(?:-[a-z0-9]+)*$",Rw=new RegExp(Ud);var V_=63,Tw=`Unique ID cannot exceed ${V_} characters`,Wd="redocly",Hd=[Wd,"corporate","guest"],Dw=`Unique ID cannot be a reserved word (${Hd.join(", ")})`,pd=["REDOCLY","CORPORATE","GUEST"],K_={type:"object",additionalProperties:{type:"string"}},G_={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},_i={type:"string",enum:["error","warn","off"]},Q_={type:"object",additionalProperties:!1,properties:{schemaCheck:_i,statusCodeCheck:_i,contentTypeCheck:_i,successCriteriaCheck:_i}},J_={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},X_={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Z_={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},e0={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{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:[J_,X_]},inputs:K_,servers:G_,severity:Q_,slo:Z_},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},t0={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},n0={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:t0,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},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},r0={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},i0={oneOf:[n0,r0],discriminator:{propertyName:"type"}},o0={type:"object",additionalProperties:i0},Bd={oneOf:[{type:"array",items:{type:"string",enum:pd},uniqueItems:!0},{type:"string",enum:pd}]},dd={type:"string",pattern:Ud,not:{enum:Hd.filter(e=>e!==Wd)}},zd={oneOf:[{type:"array",items:dd,uniqueItems:!0},dd]},$d={type:"boolean"},Yd={type:"string",pattern:"^https?://.*"},Vd={type:"string",pattern:"^https?://.*"},s0={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},a0={type:"object",additionalProperties:s0,nodeTypeName:_t.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},c0={type:"string",enum:["info","success","warning","error"]},ee={type:"object",additionalProperties:{type:"string"}},u0={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:c0,rbac:ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},l0={type:"array",items:u0},Kd={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:Di,graphql:Ri,theme:{type:"object",properties:{openapi:Di,graphql:Ri},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ei},required:["root"]},p0={type:"object",additionalProperties:!0},d0={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},f0={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},g0={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:f0},additionalProperties:!1},m0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},h0={type:"object",properties:{catalogs:{type:"object",properties:{all:ee,services:ee,domains:ee,teams:ee,users:ee,apiDescriptions:ee,dataSchemas:ee,apiOperations:ee},additionalProperties:ee},entitiesTypes:{type:"object",properties:{service:ee,domain:ee,team:ee,user:ee,apiDescription:ee,apiOperation:ee,dataSchema:ee},additionalProperties:ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":ee},additionalProperties:ee}},additionalProperties:!1},Gd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ee,cms:ee,reunite:ee,features:{type:"object",properties:{aiSearch:ee,mcp:ee},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:h0},additionalProperties:ee},y0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},b0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},v0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[y0,b0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},P0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},x0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ta={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[P0,x0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},_0={...ta,properties:{...ta.properties,type:{type:"string",const:"APIGEE_EDGE"}}},C0={type:"object",oneOf:[ta,_0,v0],discriminator:{propertyName:"type"}},R0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:C0}}},fd={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"]},T0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},D0={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},w0={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},S0={type:"object",properties:{requiresLogin:$d,logoutReturnUrl:Yd,residency:Vd,sso:Bd,idps:zd,rbac:Gd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ki={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:a0,seo:g0,rbac:Gd,apiFunctions:m0,requiresLogin:$d,responseHeaders:{type:"object",additionalProperties:{type:"array",items:T0}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:Kd},...Ei,ssoDirect:o0,sso:Bd,idps:zd,residency:Vd,logoutReturnUrl:Yd,access:S0,developerOnboarding:R0,removeAttribution:{type:"boolean"},i18n:fd,l10n:fd,metadata:p0,metadataGlobs:d0,ignore:{type:"array",items:{type:"string"}},theme:xt,reunite:e0,logo:vd,navbar:Pd,products:xd,footer:_d,sidebar:Cd,scripts:Rd,links:Td,feedback:Rr,search:Dd,aiAssistant:wd,colorMode:Sd,palette:ia,navigation:kd,codeSnippet:Ad,markdown:Ed,openapi:Di,graphql:Ri,analytics:qd,userMenu:Od,versionPicker:Md,breadcrumbs:Ld,catalog:wi,entitiesCatalog:jd,catalogClassic:wi,scorecard:Si,scorecardClassic:Si,scorecards:Fd,mcp:D0,skills:w0,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:l0},not:{required:["sso","idps"]},additionalProperties:!0},k0={...ki,additionalProperties:!1},Qd={$id:"root-redocly-config",...ki,properties:{plugins:{type:"array",items:{type:"string"}},...ki.properties,env:{type:"object",additionalProperties:k0}},additionalProperties:!1},gd={type:"object",properties:{logo:xt.properties.logo,navbar:xt.properties.navbar,footer:xt.properties.footer,sidebar:xt.properties.sidebar,search:xt.properties.search,codeSnippet:xt.properties.codeSnippet,breadcrumbs:xt.properties.breadcrumbs,openapi:xt.properties.openapi,feedback:xt.properties.feedback,palette:ia,mockServer:ki.properties.mockServer,analytics:{type:"object",properties:{ga:Nd}}},additionalProperties:!0},ww={$id:"product-config-override",type:"object",properties:{...gd.properties,apis:{type:"object",additionalProperties:Kd},theme:gd},additionalProperties:!1},A0=["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"],Pe=bd({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),E0={type:"object",nodeTypeName:Pe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},N0={type:"object",nodeTypeName:Pe.ApiDescriptionEntityMetadata,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},q0={type:"object",nodeTypeName:Pe.ApiOperationEntityMetadata,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},O0={type:"object",nodeTypeName:Pe.DataSchemaEntityMetadata,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},M0={type:"object",properties:{},nodeTypeName:Pe.EntityMetadata,additionalProperties:!0},L0={type:"object",nodeTypeName:Pe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},j0={type:"object",nodeTypeName:Pe.EntitySlackContact,properties:{channels:{type:"array",items:L0}},required:["channels"],additionalProperties:!1},I0={type:"object",nodeTypeName:Pe.EntityContact,properties:{slack:j0},additionalProperties:!1},F0={type:"object",nodeTypeName:Pe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},U0={type:"object",nodeTypeName:Pe.EntityRelation,properties:{type:{type:"string",enum:A0},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Vt={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:I0,links:{type:"array",nodeTypeName:Pe.EntityLinkList,items:F0},relations:{type:"array",nodeTypeName:Pe.EntityRelationList,items:U0},metadata:M0},Ni={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Vt,type:{type:"string",const:"user"},metadata:E0},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Pe.UserEntity},{type:"object",nodeTypeName:Pe.ApiOperationEntity,properties:{...Vt,type:{type:"string",const:"api-operation"},metadata:q0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DataSchemaEntity,properties:{...Vt,type:{type:"string",const:"data-schema"},metadata:O0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ApiDescriptionEntity,properties:{...Vt,type:{type:"string",const:"api-description"},metadata:N0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.ServiceEntity,properties:{...Vt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.DomainEntity,properties:{...Vt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Pe.TeamEntity,properties:{...Vt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},qi={type:"object",nodeTypeName:Pe.Entity,properties:{...Vt},required:["key","title","type"],additionalProperties:!1};var We=Ee(It(),1);import{getLineColLocation as tT,lintDocument as nT,makeDocumentFromString as rs,lintConfig as rT,lintEntityFile as iT,detectSpec as oT,createConfigTypes as sT}from"@redocly/openapi-core";var ts=Ee(On(),1);function fy(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),m=d?Date.now()-d:0;try{if(m<t&&m>=0)r.set(u.uri,setTimeout(()=>a(u),t-m));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),m=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))),m?v(e(o.get(u.uri))):s.set(u.uri,[...D,{resolve:v,reject:y}])})}return c}function Xu(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 gy(e){return e==="$ref"}function Zu(e,t){return e?K.dirname(Qe.file(e)).toString():t}async function el(e,t){let n=Qe.parse(t);return K.joinPath(n,e).toString()}async function my(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await el(i,n)===t)return r}function hy(e){return typeof e=="string"}function Yr(e){return typeof e=="function"}function yy(e){return e?.kind===ts.Kind.MAP}function tl(e){return e?.kind===ts.Kind.MAPPING}function nl(e){return e?.kind===ts.Kind.SEQ}function Vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as WR,isPlainObject as HR,makeDocumentFromString as BR,getTypes as zR,detectSpec as $R}from"@redocly/openapi-core";var by=new Map,ns=new Map;function YR(e){return e?Array.from(e).map(([t,n])=>[t,Xu(n)]):[]}async function rl(e,t){let n=await Yt(),r=new Pt(n.resolve),i=BR(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await WR({document:i,config:n,externalRefResolver:r,types:zR($R(i.parsed))}),c=YR(a);a&&(ns=new Map([...ns,...a])),by.set(e.uri,{uri:e.uri,name:yr(e.uri),definition:HR(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function VR(){return Array.from(by).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:yr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function il(e){return ns.get(e)??ns.get(De(e))??null}import{createConfig as vy,lintDocument as KR,loadIgnoreConfig as GR,regexFromString as QR}from"@redocly/openapi-core";async function Py(e,t,n,r,i,o){let s=[],a=await GR(r,t),c=typeof i=="string"?await JR(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,m=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...m,...o},y=ZR(n.targets,v);y?.rules&&r&&(u=await XR(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let m=u[d.name]??await vy({...d,plugins:c},{configPath:r,ignore:a}),v=await KR({document:e,externalRefResolver:t,config:m});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function JR(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){let n=t instanceof Error?t.message:String(t);return console.error("Failed to load plugins module:",n),console.error(`
70
70
  Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function XR(e,t,n=[],r=[],i,o){let s={};for(let a of n){let c={[a.name]:{root:e,rules:t}},u=await vy({apis:c,...a,plugins:r},{configPath:i,...o&&{ignore:o}});s[a.name]=u.forAlias(a.name)}return s}function ZR(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>eT(i,o,t)))return n}}function eT(e,t,n){if(t.match(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}Z)?\/(\d{4}-\d{2}-\d{2})?$/)){if(!n[e])return!1;let[r,i]=t.split("/"),o=new Date(n[e]);return isNaN(o.getTime())?!1:!(o<new Date(r)||i&&o>new Date(i))}else if(t.match(/^\/.*\//)){if(!n[e])return!1;try{return QR(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var aT=800,sl=fy(pT,aT);async function cT(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await Yt(),r=await ae.getRootWorkspaceFolderURI(),i=Zu(n.configPath,r);for(let{root:o}of Object.values(n.resolvedConfig.apis??{})){let s=await el(o,i);if(t.includes(s))return s}return t[0]}function uT(e){try{return oT(e),!0}catch{return!1}}async function lT(e){try{let t=rs(e.getText(),e.uri),n=new Pt,r=await iT({document:t,entitySchema:Ni,entityDefaultSchema:qi,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return ol(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function pT(e){let t=e.uri,n=await Yt();if(await hn(De(t)))try{let r=await Xs(De(t))?rs(e.getText(),t):rs(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new Pt,o=await rT({config:{document:r},externalRefResolver:i,externalConfigTypes:sT(Qd,n)}),s=[{uri:e.uri,diagnostics:[]}];return ol(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(mn({uri:De(t),textDocument:e}))return await lT(e);{let r=Qs(t),i=await cT(r||[]);i&&(e=await Xe(i),t=i);let o;try{o=rs(e.getText(),De(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!uT(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new Pt(n.resolve),c=await ae.getRootWorkspaceFolderURI(),u=Zu(n.configPath,c),d=await my(n.resolvedConfig.apis??{},e.uri,u),m=Date.now(),v=[],y=[];try{y=(await nT({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:S})=>!S);let U=ae.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,h=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,g=U&&ae.scorecardStatus==="enabled"?await Py(o,a,U,n.configPath,ae.remoteScorecardAndPlugins?.plugins,h):[];v=[...y,...g]}catch(U){let h=U instanceof Error?U.message:String(U);v.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${h}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let D=mT(y);rl(e,D);let I=Date.now()-m;s=[...new Set([e.uri,...[...a.getFiles()].map(U=>Ue(U).toString())])].map(U=>({uri:U,diagnostics:[]})),Xp(t,{dependencyPaths:a.getFiles(),durationMS:I}),ol(v,s)}catch(a){dT(e.uri,a,s)}return s}}}function Kr(){return ae.documents.all().map(sl)}function dT(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Nt(t.source.absoluteRef):e,o=t.line-1,s=t.col-1,a=We.Position.create(o,s),c=We.Diagnostic.create(We.Range.create(a,a),t.message,We.DiagnosticSeverity.Error);xy(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function xy(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 fT(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean: