@redocly/openapi-language-server 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -66,7 +66,7 @@ ${JSON.stringify(p,null,4)}`);let C=p;if(le.string(C.id)||le.number(C.id)){let A
66
66
  `,`\r
67
67
  `,"\r"];(function(e){function t(o,s,a,c){return new Yu(o,s,a,c)}e.create=t;function n(o){let s=o;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),c=i(s,(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),u=a.length;for(let d=c.length-1;d>=0;d--){let h=c[d],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=u)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");u=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),u=o.slice(a);i(c,s),i(u,s);let d=0,h=0,v=0;for(;d<c.length&&h<u.length;)s(c[d],u[h])<=0?o[v++]=c[d++]:o[v++]=u[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<u.length;)o[v++]=u[h++];return o}})($u||($u={}));Yu=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 nt.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 nt.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var ae=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var sr=xn(),Tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Tf||(Ye.MessageDirection=Tf={}));var Vu=class{constructor(t){this.method=t}};Ye.RegistrationType=Vu;var Ku=class extends sr.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=Ku;var Gu=class extends sr.RequestType{constructor(t){super(t,sr.ParameterStructures.byName)}};Ye.ProtocolRequestType=Gu;var Qu=class extends sr.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=Qu;var Ju=class extends sr.NotificationType{constructor(t){super(t,sr.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Ju});var No=S(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.objectLiteral=Pe.typedArray=Pe.stringArray=Pe.array=Pe.func=Pe.error=Pe.number=Pe.string=Pe.boolean=void 0;function U_(e){return e===!0||e===!1}Pe.boolean=U_;function Rf(e){return typeof e=="string"||e instanceof String}Pe.string=Rf;function W_(e){return typeof e=="number"||e instanceof Number}Pe.number=W_;function B_(e){return e instanceof Error}Pe.error=B_;function H_(e){return typeof e=="function"}Pe.func=H_;function Df(e){return Array.isArray(e)}Pe.array=Df;function z_(e){return Df(e)&&e.every(t=>Rf(t))}Pe.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}Pe.typedArray=$_;function Y_(e){return e!==null&&typeof e=="object"}Pe.objectLiteral=Y_});var Af=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ImplementationRequest=void 0;var wf=ae(),kf;(function(e){e.method="textDocument/implementation",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)})(kf||(Oo.ImplementationRequest=kf={}))});var Of=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.TypeDefinitionRequest=void 0;var Ef=ae(),Nf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(qo.TypeDefinitionRequest=Nf={}))});var Mf=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DidChangeWorkspaceFoldersNotification=ar.WorkspaceFoldersRequest=void 0;var jo=ae(),qf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=jo.MessageDirection.serverToClient,e.type=new jo.ProtocolRequestType0(e.method)})(qf||(ar.WorkspaceFoldersRequest=qf={}));var jf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolNotificationType(e.method)})(jf||(ar.DidChangeWorkspaceFoldersNotification=jf={}))});var Ff=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.ConfigurationRequest=void 0;var Lf=ae(),If;(function(e){e.method="workspace/configuration",e.messageDirection=Lf.MessageDirection.serverToClient,e.type=new Lf.ProtocolRequestType(e.method)})(If||(Mo.ConfigurationRequest=If={}))});var Bf=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ColorPresentationRequest=cr.DocumentColorRequest=void 0;var Lo=ae(),Uf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolRequestType(e.method)})(Uf||(cr.DocumentColorRequest=Uf={}));var Wf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolRequestType(e.method)})(Wf||(cr.ColorPresentationRequest=Wf={}))});var $f=S(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.FoldingRangeRefreshRequest=ur.FoldingRangeRequest=void 0;var Io=ae(),Hf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Io.MessageDirection.clientToServer,e.type=new Io.ProtocolRequestType(e.method)})(Hf||(ur.FoldingRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Io.MessageDirection.serverToClient,e.type=new Io.ProtocolRequestType0(e.method)})(zf||(ur.FoldingRangeRefreshRequest=zf={}))});var Kf=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeclarationRequest=void 0;var Yf=ae(),Vf;(function(e){e.method="textDocument/declaration",e.messageDirection=Yf.MessageDirection.clientToServer,e.type=new Yf.ProtocolRequestType(e.method)})(Vf||(Fo.DeclarationRequest=Vf={}))});var Jf=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.SelectionRangeRequest=void 0;var Gf=ae(),Qf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(Uo.SelectionRangeRequest=Qf={}))});var tg=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.WorkDoneProgressCancelNotification=Qt.WorkDoneProgressCreateRequest=Qt.WorkDoneProgress=void 0;var V_=xn(),Wo=ae(),Xf;(function(e){e.type=new V_.ProgressType;function t(n){return n===e.type}e.is=t})(Xf||(Qt.WorkDoneProgress=Xf={}));var Zf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Wo.MessageDirection.serverToClient,e.type=new Wo.ProtocolRequestType(e.method)})(Zf||(Qt.WorkDoneProgressCreateRequest=Zf={}));var eg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Wo.MessageDirection.clientToServer,e.type=new Wo.ProtocolNotificationType(e.method)})(eg||(Qt.WorkDoneProgressCancelNotification=eg={}))});var og=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CallHierarchyOutgoingCallsRequest=Jt.CallHierarchyIncomingCallsRequest=Jt.CallHierarchyPrepareRequest=void 0;var lr=ae(),ng;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(ng||(Jt.CallHierarchyPrepareRequest=ng={}));var rg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(rg||(Jt.CallHierarchyIncomingCallsRequest=rg={}));var ig;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(ig||(Jt.CallHierarchyOutgoingCallsRequest=ig={}))});var pg=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var It=ae(),sg;(function(e){e.Relative="relative"})(sg||(Ve.TokenFormat=sg={}));var Vr;(function(e){e.method="textDocument/semanticTokens",e.type=new It.RegistrationType(e.method)})(Vr||(Ve.SemanticTokensRegistrationType=Vr={}));var ag;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(ag||(Ve.SemanticTokensRequest=ag={}));var cg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(cg||(Ve.SemanticTokensDeltaRequest=cg={}));var ug;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(ug||(Ve.SemanticTokensRangeRequest=ug={}));var lg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=It.MessageDirection.serverToClient,e.type=new It.ProtocolRequestType0(e.method)})(lg||(Ve.SemanticTokensRefreshRequest=lg={}))});var gg=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ShowDocumentRequest=void 0;var dg=ae(),fg;(function(e){e.method="window/showDocument",e.messageDirection=dg.MessageDirection.serverToClient,e.type=new dg.ProtocolRequestType(e.method)})(fg||(Bo.ShowDocumentRequest=fg={}))});var yg=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.LinkedEditingRangeRequest=void 0;var mg=ae(),hg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=mg.MessageDirection.clientToServer,e.type=new mg.ProtocolRequestType(e.method)})(hg||(Ho.LinkedEditingRangeRequest=hg={}))});var Tg=S(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.WillDeleteFilesRequest=Le.DidDeleteFilesNotification=Le.DidRenameFilesNotification=Le.WillRenameFilesRequest=Le.DidCreateFilesNotification=Le.WillCreateFilesRequest=Le.FileOperationPatternKind=void 0;var rt=ae(),bg;(function(e){e.file="file",e.folder="folder"})(bg||(Le.FileOperationPatternKind=bg={}));var vg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(vg||(Le.WillCreateFilesRequest=vg={}));var xg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(xg||(Le.DidCreateFilesNotification=xg={}));var Pg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(Pg||(Le.WillRenameFilesRequest=Pg={}));var Cg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(Cg||(Le.DidRenameFilesNotification=Cg={}));var _g;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(_g||(Le.DidDeleteFilesNotification=_g={}));var Sg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(Sg||(Le.WillDeleteFilesRequest=Sg={}))});var Ag=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.MonikerRequest=Xt.MonikerKind=Xt.UniquenessLevel=void 0;var Rg=ae(),Dg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Dg||(Xt.UniquenessLevel=Dg={}));var wg;(function(e){e.$import="import",e.$export="export",e.local="local"})(wg||(Xt.MonikerKind=wg={}));var kg;(function(e){e.method="textDocument/moniker",e.messageDirection=Rg.MessageDirection.clientToServer,e.type=new Rg.ProtocolRequestType(e.method)})(kg||(Xt.MonikerRequest=kg={}))});var qg=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.TypeHierarchySubtypesRequest=Zt.TypeHierarchySupertypesRequest=Zt.TypeHierarchyPrepareRequest=void 0;var pr=ae(),Eg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Eg||(Zt.TypeHierarchyPrepareRequest=Eg={}));var Ng;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Ng||(Zt.TypeHierarchySupertypesRequest=Ng={}));var Og;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Og||(Zt.TypeHierarchySubtypesRequest=Og={}))});var Lg=S(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.InlineValueRefreshRequest=dr.InlineValueRequest=void 0;var zo=ae(),jg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=zo.MessageDirection.clientToServer,e.type=new zo.ProtocolRequestType(e.method)})(jg||(dr.InlineValueRequest=jg={}));var Mg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=zo.MessageDirection.serverToClient,e.type=new zo.ProtocolRequestType0(e.method)})(Mg||(dr.InlineValueRefreshRequest=Mg={}))});var Wg=S(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.InlayHintRefreshRequest=en.InlayHintResolveRequest=en.InlayHintRequest=void 0;var fr=ae(),Ig;(function(e){e.method="textDocument/inlayHint",e.messageDirection=fr.MessageDirection.clientToServer,e.type=new fr.ProtocolRequestType(e.method)})(Ig||(en.InlayHintRequest=Ig={}));var Fg;(function(e){e.method="inlayHint/resolve",e.messageDirection=fr.MessageDirection.clientToServer,e.type=new fr.ProtocolRequestType(e.method)})(Fg||(en.InlayHintResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=fr.MessageDirection.serverToClient,e.type=new fr.ProtocolRequestType0(e.method)})(Ug||(en.InlayHintRefreshRequest=Ug={}))});var Kg=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DiagnosticRefreshRequest=it.WorkspaceDiagnosticRequest=it.DocumentDiagnosticRequest=it.DocumentDiagnosticReportKind=it.DiagnosticServerCancellationData=void 0;var Vg=xn(),K_=No(),gr=ae(),Bg;(function(e){function t(n){let r=n;return r&&K_.boolean(r.retriggerRequest)}e.is=t})(Bg||(it.DiagnosticServerCancellationData=Bg={}));var Hg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Hg||(it.DocumentDiagnosticReportKind=Hg={}));var zg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=gr.MessageDirection.clientToServer,e.type=new gr.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})(zg||(it.DocumentDiagnosticRequest=zg={}));var $g;(function(e){e.method="workspace/diagnostic",e.messageDirection=gr.MessageDirection.clientToServer,e.type=new gr.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})($g||(it.WorkspaceDiagnosticRequest=$g={}));var Yg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=gr.MessageDirection.serverToClient,e.type=new gr.ProtocolRequestType0(e.method)})(Yg||(it.DiagnosticRefreshRequest=Yg={}))});var tm=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.DidCloseNotebookDocumentNotification=me.DidSaveNotebookDocumentNotification=me.DidChangeNotebookDocumentNotification=me.NotebookCellArrayChange=me.DidOpenNotebookDocumentNotification=me.NotebookDocumentSyncRegistrationType=me.NotebookDocument=me.NotebookCell=me.ExecutionSummary=me.NotebookCellKind=void 0;var Kr=(Eo(),pi(Ao)),dt=No(),Dt=ae(),Xu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Xu||(me.NotebookCellKind=Xu={}));var Zu;(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 dt.objectLiteral(o)&&Kr.uinteger.is(o.executionOrder)&&(o.success===void 0||dt.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})(Zu||(me.ExecutionSummary=Zu={}));var $o;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return dt.objectLiteral(s)&&Xu.is(s.kind)&&Kr.DocumentUri.is(s.document)&&(s.metadata===void 0||dt.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)&&!Zu.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(dt.objectLiteral(o)&&dt.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})($o||(me.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 dt.objectLiteral(i)&&dt.string(i.uri)&&Kr.integer.is(i.version)&&dt.typedArray(i.cells,$o.is)}e.is=n})(Gg||(me.NotebookDocument=Gg={}));var mr;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(mr||(me.NotebookDocumentSyncRegistrationType=mr={}));var Qg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Qg||(me.DidOpenNotebookDocumentNotification=Qg={}));var Jg;(function(e){function t(r){let i=r;return dt.objectLiteral(i)&&Kr.uinteger.is(i.start)&&Kr.uinteger.is(i.deleteCount)&&(i.cells===void 0||dt.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||(me.NotebookCellArrayChange=Jg={}));var Xg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Xg||(me.DidChangeNotebookDocumentNotification=Xg={}));var Zg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Zg||(me.DidSaveNotebookDocumentNotification=Zg={}));var em;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(em||(me.DidCloseNotebookDocumentNotification=em={}))});var im=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineCompletionRequest=void 0;var nm=ae(),rm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=nm.MessageDirection.clientToServer,e.type=new nm.ProtocolRequestType(e.method)})(rm||(Yo.InlineCompletionRequest=rm={}))});var yh=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var D=ae(),om=(Eo(),pi(Ao)),we=No(),G_=Af();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return G_.ImplementationRequest}});var Q_=Of();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var fh=Mf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fh.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fh.DidChangeWorkspaceFoldersNotification}});var J_=Ff();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var gh=Bf();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 X_=Kf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=Jf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var il=tg();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return il.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return il.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return il.WorkDoneProgressCancelNotification}});var ol=og();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ol.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ol.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ol.CallHierarchyPrepareRequest}});var hr=pg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return hr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return hr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return hr.SemanticTokensRegistrationType}});var e0=gg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return e0.ShowDocumentRequest}});var t0=yg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return t0.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 sl=Ag();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return sl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return sl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return sl.MonikerRequest}});var al=qg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return al.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return al.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return al.TypeHierarchySupertypesRequest}});var hh=Lg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return hh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return hh.InlineValueRefreshRequest}});var cl=Wg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return cl.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return cl.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return cl.InlayHintRefreshRequest}});var Gr=Kg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Gr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Gr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Gr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Gr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Gr.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 n0=im();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return n0.InlineCompletionRequest}});var el;(function(e){function t(n){let r=n;return we.string(r)||we.string(r.language)||we.string(r.scheme)||we.string(r.pattern)}e.is=t})(el||(l.TextDocumentFilter=el={}));var tl;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebookType)||we.string(r.scheme)||we.string(r.pattern))}e.is=t})(tl||(l.NotebookDocumentFilter=tl={}));var nl;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||tl.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(nl||(l.NotebookCellTextDocumentFilter=nl={}));var rl;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!el.is(r)&&!nl.is(r))return!1;return!0}e.is=t})(rl||(l.DocumentSelector=rl={}));var sm;(function(e){e.method="client/registerCapability",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(sm||(l.RegistrationRequest=sm={}));var am;(function(e){e.method="client/unregisterCapability",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.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&&we.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||rl.is(r.documentSelector))}e.is=t})(dm||(l.TextDocumentRegistrationOptions=dm={}));var fm;(function(e){function t(r){let i=r;return we.objectLiteral(i)&&(i.workDoneProgress===void 0||we.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&we.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(fm||(l.WorkDoneProgressOptions=fm={}));var gm;(function(e){e.method="initialize",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(hm||(l.InitializedNotification=hm={}));var ym;(function(e){e.method="shutdown",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType0(e.method)})(ym||(l.ShutdownRequest=ym={}));var bm;(function(e){e.method="exit",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType0(e.method)})(bm||(l.ExitNotification=bm={}));var vm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(vm||(l.DidChangeConfigurationNotification=vm={}));var xm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(xm||(l.MessageType=xm={}));var Pm;(function(e){e.method="window/showMessage",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Pm||(l.ShowMessageNotification=Pm={}));var Cm;(function(e){e.method="window/showMessageRequest",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(Cm||(l.ShowMessageRequest=Cm={}));var _m;(function(e){e.method="window/logMessage",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(_m||(l.LogMessageNotification=_m={}));var Sm;(function(e){e.method="telemetry/event",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Sm||(l.TelemetryEventNotification=Sm={}));var Tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Tm||(l.TextDocumentSyncKind=Tm={}));var Rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Rm||(l.DidOpenTextDocumentNotification=Rm={}));var Dm;(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})(Dm||(l.TextDocumentContentChangeEvent=Dm={}));var wm;(function(e){e.method="textDocument/didChange",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(wm||(l.DidChangeTextDocumentNotification=wm={}));var km;(function(e){e.method="textDocument/didClose",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(km||(l.DidCloseTextDocumentNotification=km={}));var Am;(function(e){e.method="textDocument/didSave",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Nm||(l.WillSaveTextDocumentNotification=Nm={}));var Om;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Om||(l.WillSaveTextDocumentWaitUntilRequest=Om={}));var qm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(qm||(l.DidChangeWatchedFilesNotification=qm={}));var jm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(jm||(l.FileChangeType=jm={}));var Mm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(om.URI.is(r.baseUri)||om.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(Mm||(l.RelativePattern=Mm={}));var Lm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Lm||(l.WatchKind=Lm={}));var Im;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Um||(l.CompletionRequest=Um={}));var Wm;(function(e){e.method="completionItem/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Wm||(l.CompletionResolveRequest=Wm={}));var Bm;(function(e){e.method="textDocument/hover",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Bm||(l.HoverRequest=Bm={}));var Hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Hm||(l.SignatureHelpTriggerKind=Hm={}));var zm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(zm||(l.SignatureHelpRequest=zm={}));var $m;(function(e){e.method="textDocument/definition",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})($m||(l.DefinitionRequest=$m={}));var Ym;(function(e){e.method="textDocument/references",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Ym||(l.ReferencesRequest=Ym={}));var Vm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Vm||(l.DocumentHighlightRequest=Vm={}));var Km;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Km||(l.DocumentSymbolRequest=Km={}));var Gm;(function(e){e.method="textDocument/codeAction",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Gm||(l.CodeActionRequest=Gm={}));var Qm;(function(e){e.method="codeAction/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Qm||(l.CodeActionResolveRequest=Qm={}));var Jm;(function(e){e.method="workspace/symbol",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Jm||(l.WorkspaceSymbolRequest=Jm={}));var Xm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Xm||(l.WorkspaceSymbolResolveRequest=Xm={}));var Zm;(function(e){e.method="textDocument/codeLens",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Zm||(l.CodeLensRequest=Zm={}));var eh;(function(e){e.method="codeLens/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(eh||(l.CodeLensResolveRequest=eh={}));var th;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType0(e.method)})(th||(l.CodeLensRefreshRequest=th={}));var nh;(function(e){e.method="textDocument/documentLink",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(nh||(l.DocumentLinkRequest=nh={}));var rh;(function(e){e.method="documentLink/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(rh||(l.DocumentLinkResolveRequest=rh={}));var ih;(function(e){e.method="textDocument/formatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ih||(l.DocumentFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(oh||(l.DocumentRangeFormattingRequest=oh={}));var sh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(sh||(l.DocumentRangesFormattingRequest=sh={}));var ah;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(uh||(l.RenameRequest=uh={}));var lh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(lh||(l.PrepareRenameRequest=lh={}));var ph;(function(e){e.method="workspace/executeCommand",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ph||(l.ExecuteCommandRequest=ph={}));var dh;(function(e){e.method="workspace/applyEdit",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType("workspace/applyEdit")})(dh||(l.ApplyWorkspaceEditRequest=dh={}))});var vh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.createProtocolConnection=void 0;var bh=xn();function r0(e,t,n,r){return bh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,bh.createMessageConnection)(e,t,n,r)}Vo.createProtocolConnection=r0});var Ph=S(Ke=>{"use strict";var i0=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]})),Ko=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&i0(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Ko(xn(),Ke);Ko((Eo(),pi(Ao)),Ke);Ko(ae(),Ke);Ko(yh(),Ke);var o0=vh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return o0.createProtocolConnection}});var xh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(xh||(Ke.LSPErrorCodes=xh={}))});var xe=S(kt=>{"use strict";var s0=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]})),Ch=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&s0(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createProtocolConnection=void 0;var a0=zc();Ch(zc(),kt);Ch(Ph(),kt);function c0(e,t,n,r){return(0,a0.createMessageConnection)(e,t,n,r)}kt.createProtocolConnection=c0});var ll=S(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.SemanticTokensBuilder=tn.SemanticTokensDiff=tn.SemanticTokensFeature=void 0;var Go=xe(),u0=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Go.SemanticTokensRefreshRequest.type),on:t=>{let n=Go.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Go.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Go.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};tn.SemanticTokensFeature=u0;var Qo=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}]:[]}};tn.SemanticTokensDiff=Qo;var ul=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 Qo(this._prevData,this._data).computeDiff()}:this.build()}};tn.SemanticTokensBuilder=ul});var _h=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.InlineCompletionFeature=void 0;var l0=xe(),p0=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(l0.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Jo.InlineCompletionFeature=p0});var dl=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TextDocuments=void 0;var Sn=xe(),pl=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Sn.Emitter,this._onDidOpen=new Sn.Emitter,this._onDidClose=new Sn.Emitter,this._onDidSave=new Sn.Emitter,this._onWillSave=new Sn.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=Sn.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}))})),Sn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Xo.TextDocuments=pl});var gl=S(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.NotebookDocuments=yr.NotebookSyncFeature=void 0;var ot=xe(),Sh=dl(),d0=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(ot.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(ot.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(ot.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(ot.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};yr.NotebookSyncFeature=d0;var Zo=class e{onDidOpenTextDocument(t){return this.openHandler=t,ot.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,ot.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,ot.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}};Zo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var fl=class{constructor(t){t instanceof Sh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Sh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new ot.Emitter,this._onDidChange=new ot.Emitter,this._onDidSave=new ot.Emitter,this._onDidClose=new ot.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 Zo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let u=[],d=[],h=[],v=[];if(c.cells!==void 0){let W=c.cells;if(W.structure!==void 0){let m=W.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),W.structure.didOpen!==void 0)for(let g of W.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(W.structure.didClose)for(let g of W.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(W.data!==void 0){let m=new Map(W.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(W.textContent!==void 0)for(let m of W.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let W of u)R.push(this.getNotebookCell(W));let I=[];for(let W of d)I.push(this.getNotebookCell(W));let K=[];for(let W of v)K.push(this.getNotebookCell(W));(R.length>0||I.length>0||h.length>0||K.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:K}}),(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)}})),ot.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};yr.NotebookDocuments=fl});var ml=S(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.thenable=Ce.typedArray=Ce.stringArray=Ce.array=Ce.func=Ce.error=Ce.number=Ce.string=Ce.boolean=void 0;function f0(e){return e===!0||e===!1}Ce.boolean=f0;function Th(e){return typeof e=="string"||e instanceof String}Ce.string=Th;function g0(e){return typeof e=="number"||e instanceof Number}Ce.number=g0;function m0(e){return e instanceof Error}Ce.error=m0;function Rh(e){return typeof e=="function"}Ce.func=Rh;function Dh(e){return Array.isArray(e)}Ce.array=Dh;function h0(e){return Dh(e)&&e.every(t=>Th(t))}Ce.stringArray=h0;function y0(e,t){return Array.isArray(e)&&e.every(t)}Ce.typedArray=y0;function b0(e){return e&&Rh(e.then)}Ce.thenable=b0});var hl=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.generateUuid=st.parse=st.isUUID=st.v4=st.empty=void 0;var Qr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Jr=class e extends Qr{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(""))}};Jr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Jr._timeHighBits=["8","9","a","b"];st.empty=new Qr("00000000-0000-0000-0000-000000000000");function wh(){return new Jr}st.v4=wh;var v0=/^[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 v0.test(e)}st.isUUID=kh;function x0(e){if(!kh(e))throw new Error("invalid uuid");return new Qr(e)}st.parse=x0;function P0(){return wh().asHex()}st.generateUuid=P0});var Ah=S(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.attachPartialResult=rn.ProgressFeature=rn.attachWorkDone=void 0;var nn=xe(),C0=hl(),Tn=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(nn.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(nn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(nn.WorkDoneProgress.type,this._token,{kind:"end"})}};Tn.Instances=new Map;var es=class extends Tn{constructor(t,n){super(t,n),this._source=new nn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Xr=class{constructor(){}begin(){}report(){}done(){}},ts=class extends Xr{constructor(){super(),this._source=new nn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function _0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Xr;let n=t.workDoneToken;return delete t.workDoneToken,new Tn(e,n)}rn.attachWorkDone=_0;var S0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(nn.WorkDoneProgressCancelNotification.type,n=>{let r=Tn.Instances.get(n.token);(r instanceof es||r instanceof ts)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Xr:new Tn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,C0.generateUuid)();return this.connection.sendRequest(nn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new es(this.connection,t))}else return Promise.resolve(new ts)}};rn.ProgressFeature=S0;var yl;(function(e){e.type=new nn.ProgressType})(yl||(yl={}));var bl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(yl.type,this._token,t)}};function T0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new bl(e,n)}rn.attachPartialResult=T0});var Eh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ConfigurationFeature=void 0;var R0=xe(),D0=ml(),w0=e=>class extends e{getConfiguration(t){return t?D0.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(R0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};ns.ConfigurationFeature=w0});var Nh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.WorkspaceFoldersFeature=void 0;var rs=xe(),k0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new rs.Emitter,this.connection.onNotification(rs.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(rs.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(rs.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};is.WorkspaceFoldersFeature=k0});var Oh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.CallHierarchyFeature=void 0;var vl=xe(),A0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(vl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=vl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=vl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.CallHierarchyFeature=A0});var qh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ShowDocumentFeature=void 0;var E0=xe(),N0=e=>class extends e{showDocument(t){return this.connection.sendRequest(E0.ShowDocumentRequest.type,t)}};ss.ShowDocumentFeature=N0});var jh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FileOperationsFeature=void 0;var br=xe(),O0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(br.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(br.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(br.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(br.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(br.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(br.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};as.FileOperationsFeature=O0});var Mh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.LinkedEditingRangeFeature=void 0;var q0=xe(),j0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(q0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};cs.LinkedEditingRangeFeature=j0});var Lh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TypeHierarchyFeature=void 0;var xl=xe(),M0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(xl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=xl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=xl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};us.TypeHierarchyFeature=M0});var Fh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.InlineValueFeature=void 0;var Ih=xe(),L0=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)))}}};ls.InlineValueFeature=L0});var Wh=S(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.FoldingRangeFeature=void 0;var Uh=xe(),I0=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)))}}}};ps.FoldingRangeFeature=I0});var Bh=S(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.InlayHintFeature=void 0;var Pl=xe(),F0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Pl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Pl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Pl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ds.InlayHintFeature=F0});var Hh=S(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.DiagnosticFeature=void 0;var Zr=xe(),U0=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)))}}};fs.DiagnosticFeature=U0});var zh=S(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.MonikerFeature=void 0;var W0=xe(),B0=e=>class extends e{get moniker(){return{on:t=>{let n=W0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};gs.MonikerFeature=B0});var oy=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var E=xe(),at=ml(),_l=hl(),H=Ah(),H0=Eh(),z0=Nh(),$0=Oh(),Y0=ll(),V0=qh(),K0=jh(),G0=Mh(),Q0=Lh(),J0=Fh(),X0=Wh(),Z0=Bh(),eS=Hh(),tS=gl(),nS=zh();function Cl(e){if(e!==null)return e}var Sl=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=Sl;var ms=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")})}},Tl=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(Cl)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}},$h=(0,V0.ShowDocumentFeature)((0,H.ProgressFeature)(Tl)),Yh;(function(e){function t(){return new hs}e.create=t})(Yh||(Q.BulkRegistration=Yh={}));var hs=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=at.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=_l.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 ei(void 0,[])}e.create=t})(Vh||(Q.BulkUnregistration=Vh={}));var ei=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=at.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}},ys=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 hs?this.registerMany(t):t instanceof ei?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=at.string(n)?n:n.method,o=_l.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=at.string(t)?t:t.method,i=_l.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 ei(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Rl=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,K0.FileOperationsFeature)((0,z0.WorkspaceFoldersFeature)((0,H0.ConfigurationFeature)(Rl))),bs=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(()=>{})}},vs=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")})}},xs=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,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=xs;var Gh=(0,X0.FoldingRangeFeature)((0,nS.MonikerFeature)((0,eS.DiagnosticFeature)((0,Z0.InlayHintFeature)((0,J0.InlineValueFeature)((0,Q0.TypeHierarchyFeature)((0,G0.LinkedEditingRangeFeature)((0,Y0.SemanticTokensFeature)((0,$0.CallHierarchyFeature)(xs))))))))),Ps=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,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=Ps;var Qh=(0,tS.NotebookSyncFeature)(Ps);function Jh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=ny;function ry(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ry;function iy(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=iy;function rS(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)}}Q.combineFeatures=rS;function iS(e,t,n){let r=n&&n.console?new(n.console(ms)):new ms,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(bs)):new bs,s=n&&n.telemetry?new(n.telemetry(vs)):new vs,a=n&&n.client?new(n.client(ys)):new ys,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,h=n&&n.notebooks?new(n.notebooks(Qh)):new Qh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:at.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let R,I,K,W={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(at.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=at.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(E.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>(K=m,{dispose:()=>{K=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return u},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(E.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(E.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(E.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(E.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(E.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(E.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(E.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(E.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(E.HoverRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(E.CompletionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(E.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(E.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(E.DeclarationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(E.DefinitionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(E.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(E.ImplementationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(E.ReferencesRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(E.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(E.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(E.CodeActionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(E.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(E.CodeLensRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(E.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(E.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(E.RenameRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(E.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(E.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(E.DocumentColorRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(E.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(E.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(E.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(E.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(W);return i.onRequest(E.InitializeRequest.type,m=>{t.initialize(m),at.string(m.trace)&&(o.trace=E.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new E.CancellationTokenSource().token,(0,H.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof E.ResponseError)return w;let Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=at.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None:!at.number(X.textDocumentSync)&&!at.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=at.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ct of v)ct.fillServerCapabilities(X);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{K&&K()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,m=>{o.trace=E.Trace.fromString(m.value)}),W}Q.createConnection=iS});var Dl=S(Ie=>{"use strict";var oS=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)&&oS(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var sS=ll();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return sS.SemanticTokensBuilder}});var aS=_h();ay(xe(),Ie);var cS=dl();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return cS.TextDocuments}});var uS=gl();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return uS.NotebookDocuments}});ay(oy(),Ie);var sy;(function(e){e.all={__brand:"features",languages:aS.InlineCompletionFeature}})(sy||(Ie.ProposedFeatures=sy={}))});var uy=S((Rk,cy)=>{"use strict";cy.exports=xe()});var _s=S(At=>{"use strict";var lS=At&&At.__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=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lS(t,e,n)};Object.defineProperty(At,"__esModule",{value:!0});At.createConnection=void 0;var Cs=Dl();py(uy(),At);py(Dl(),At);var ly=!1,pS={initialize:e=>{},get shutdownReceived(){return ly},set shutdownReceived(e){ly=e},exit:e=>{}};function dS(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Cs.ConnectionStrategy.is(e)||Cs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Cs.createProtocolConnection)(o,s,u,a);return(0,Cs.createConnection)(c,pS,i)}At.createConnection=dS});var on=S((wk,dy)=>{"use strict";dy.exports=_s()});var $l=S((SA,wy)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Dy(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 lT(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 Pr={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=Dy(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=Dy(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?".":Pr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=Pr.resolve(t),n=Pr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(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 lT("/",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,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Pr.posix=Pr;wy.exports=Pr});import{createConfig as kd,loadConfig as Gx,loadIgnoreConfig as Qx,DEFAULT_CONFIG as Jx,IGNORE_FILE as Xx}from"@redocly/openapi-core";var Ql;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function q(P,_){for(var T,O="",M=0,N=-1,$=0,V=0;V<=P.length;++V){if(V<P.length)T=P.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(O.length<2||M!==2||O.charCodeAt(O.length-1)!==46||O.charCodeAt(O.length-2)!==46){if(O.length>2){var Te=O.lastIndexOf("/");if(Te!==O.length-1){Te===-1?(O="",M=0):M=(O=O.slice(0,Te)).length-1-O.lastIndexOf("/"),N=V,$=0;continue}}else if(O.length===2||O.length===1){O="",M=0,N=V,$=0;continue}}_&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+P.slice(N+1,V):O=P.slice(N+1,V),M=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return O}var j={resolve:function(){for(var P,_="",T=!1,O=arguments.length-1;O>=-1&&!T;O--){var M;O>=0?M=arguments[O]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(_=M+"/"+_,T=M.charCodeAt(0)===47)}return _=q(_,!T),T?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(P){if(b(P),P.length===0)return".";var _=P.charCodeAt(0)===47,T=P.charCodeAt(P.length-1)===47;return(P=q(P,!_)).length!==0||_||(P="."),P.length>0&&T&&(P+="/"),_?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,_=0;_<arguments.length;++_){var T=arguments[_];b(T),T.length>0&&(P===void 0?P=T:P+="/"+T)}return P===void 0?".":j.normalize(P)},relative:function(P,_){if(b(P),b(_),P===_||(P=j.resolve(P))===(_=j.resolve(_)))return"";for(var T=1;T<P.length&&P.charCodeAt(T)===47;++T);for(var O=P.length,M=O-T,N=1;N<_.length&&_.charCodeAt(N)===47;++N);for(var $=_.length-N,V=M<$?M:$,Te=-1,te=0;te<=V;++te){if(te===V){if($>V){if(_.charCodeAt(N+te)===47)return _.slice(N+te+1);if(te===0)return _.slice(N+te)}else M>V&&(P.charCodeAt(T+te)===47?Te=te:te===0&&(Te=0));break}var ut=P.charCodeAt(T+te);if(ut!==_.charCodeAt(N+te))break;ut===47&&(Te=te)}var un="";for(te=T+Te+1;te<=O;++te)te!==O&&P.charCodeAt(te)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+_.slice(N+Te):(N+=Te,_.charCodeAt(N)===47&&++N,_.slice(N))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var _=P.charCodeAt(0),T=_===47,O=-1,M=!0,N=P.length-1;N>=1;--N)if((_=P.charCodeAt(N))===47){if(!M){O=N;break}}else M=!1;return O===-1?T?"/":".":T&&O===1?"//":P.slice(0,O)},basename:function(P,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');b(P);var T,O=0,M=-1,N=!0;if(_!==void 0&&_.length>0&&_.length<=P.length){if(_.length===P.length&&_===P)return"";var $=_.length-1,V=-1;for(T=P.length-1;T>=0;--T){var Te=P.charCodeAt(T);if(Te===47){if(!N){O=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===_.charCodeAt($)?--$==-1&&(M=T):($=-1,M=V))}return O===M?M=V:M===-1&&(M=P.length),P.slice(O,M)}for(T=P.length-1;T>=0;--T)if(P.charCodeAt(T)===47){if(!N){O=T+1;break}}else M===-1&&(N=!1,M=T+1);return M===-1?"":P.slice(O,M)},extname:function(P){b(P);for(var _=-1,T=0,O=-1,M=!0,N=0,$=P.length-1;$>=0;--$){var V=P.charCodeAt($);if(V!==47)O===-1&&(M=!1,O=$+1),V===46?_===-1?_=$:N!==1&&(N=1):_!==-1&&(N=-1);else if(!M){T=$+1;break}}return _===-1||O===-1||N===0||N===1&&_===O-1&&_===T+1?"":P.slice(_,O)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(_,T){var O=T.dir||T.root,M=T.base||(T.name||"")+(T.ext||"");return O?O===T.root?O+M:O+"/"+M:M})(0,P)},parse:function(P){b(P);var _={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return _;var T,O=P.charCodeAt(0),M=O===47;M?(_.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,te=P.length-1,ut=0;te>=T;--te)if((O=P.charCodeAt(te))!==47)V===-1&&(Te=!1,V=te+1),O===46?N===-1?N=te:ut!==1&&(ut=1):N!==-1&&(ut=-1);else if(!Te){$=te+1;break}return N===-1||V===-1||ut===0||ut===1&&N===V-1&&N===$+1?V!==-1&&(_.base=_.name=$===0&&M?P.slice(1,V):P.slice($,V)):($===0&&M?(_.name=P.slice(1,N),_.base=P.slice(1,V)):(_.name=P.slice($,N),_.base=P.slice($,V)),_.ext=P.slice(N,V)),$>0?_.dir=P.slice(0,$-1):M&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var q=t[k]={exports:{}};return e[k](q,q.exports,n),q.exports}n.d=(k,b)=>{for(var q in b)n.o(b,q)&&!n.o(k,q)&&Object.defineProperty(k,q,{enumerable:!0,get:b[q]})},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="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,q,j,P,_,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(O,M){return O||M?O:"file"})(b,T),this.authority=q||u,this.path=(function(O,M){switch(O){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=_||u,c(this,T))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:q,authority:j,path:P,query:_,fragment:T}=b;return q===void 0?q=this.scheme:q===null&&(q=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),_===void 0?_=this.query:_===null&&(_=u),T===void 0?T=this.fragment:T===null&&(T=u),q===this.scheme&&j===this.authority&&P===this.path&&_===this.query&&T===this.fragment?this:new R(q,j,P,_,T)}static parse(b,q=!1){let j=h.exec(b);return j?new R(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),q):new R(u,u,u,u,u)}static file(b){let q=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(q=b.substring(2),b=d):(q=b.substring(2,j),b=b.substring(j)||d)}return new R("file",q,b,u,u)}static from(b){let q=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(q,!0),q}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let q=new R(b);return q._formatted=b.external,q._fsPath=b._sep===y?b.fsPath:null,q}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function K(k,b,q){let j,P=-1;for(let _=0;_<k.length;_++){let T=k.charCodeAt(_);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||q&&T===91||q&&T===93||q&&T===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j!==void 0&&(j+=k.charAt(_));else{j===void 0&&(j=k.substr(0,_));let O=I[T];O!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j+=O):P===-1&&(P=_)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function W(k){let b;for(let q=0;q<k.length;q++){let j=k.charCodeAt(q);j===35||j===63?(b===void 0&&(b=k.substr(0,q)),b+=I[j]):b!==void 0&&(b+=k[q])}return b!==void 0?b:k}function m(k,b){let q;return q=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&&(q=q.replace(/\//g,"\\")),q}function g(k,b){let q=b?W:K,j="",{scheme:P,authority:_,path:T,query:O,fragment:M}=k;if(P&&(j+=P,j+=":"),(_||P==="file")&&(j+=d,j+=d),_){let N=_.indexOf("@");if(N!==-1){let $=_.substr(0,N);_=_.substr(N+1),N=$.lastIndexOf(":"),N===-1?j+=q($,!1,!1):(j+=q($.substr(0,N),!1,!1),j+=":",j+=q($.substr(N+1),!1,!0)),j+="@"}_=_.toLowerCase(),N=_.lastIndexOf(":"),N===-1?j+=q(_,!1,!0):(j+=q(_.substr(0,N),!1,!0),j+=_.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)}`)}j+=q(T,!0,!1)}return O&&(j+="?",j+=q(O,!1,!1)),M&&(j+="#",j+=b?M:K(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var ct=n(975);let Ut=ct.posix||ct,cn="/";var Dn;(function(k){k.joinPath=function(b,...q){return b.with({path:Ut.join(b.path,...q)})},k.resolvePath=function(b,...q){let j=b.path,P=!1;j[0]!==cn&&(j=cn+j,P=!0);let _=Ut.resolve(j,...q);return P&&_[0]===cn&&!b.authority&&(_=_.substring(1)),b.with({path:_})},k.dirname=function(b){if(b.path.length===0||b.path===cn)return b;let q=Ut.dirname(b.path);return q.length===1&&q.charCodeAt(0)===46&&(q=""),b.with({path:q})},k.basename=function(b){return Ut.basename(b.path)},k.extname=function(b){return Ut.extname(b.path)}})(Dn||(Dn={})),Ql=r})();var{URI:ht,Utils:re}=Ql;import{isBrowser as lb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as ub}from"@redocly/openapi-core";var Bs={languageId:"yaml",filePattern:/\.ya?ml$/i},Hs={languageId:"json",filePattern:/\.json$/i},Ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Bs,Hs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=re.resolvePath(re.dirname(Ue(t)),ub);return await this._fs.exists(n)?qe(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}},de=new Ws;function zs(e,t){let n=r=>re.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return ht.parse(e)}function Nt(e){return e.startsWith("file://")?e:ht.file(e).toString()}function qe(e){let t=ht.parse(e).fsPath;return lb&&t.startsWith("/")?t.slice(1):t}function Sr(e){let t=["https","http"],{scheme:n}=ht.parse(e);return t.includes(n)}function Tr(e){return re.basename(Ue(e))}async function Jl(e,t="/"){let n=re.resolvePath(Ue(t));for(;e.path!=="/";)try{(await de.fs.stat(re.resolvePath(n,e.path))).isDirectory()||(e=re.dirname(e));break}catch{e=re.dirname(e)}return e}import{BaseResolver as Vx,Source as wd,readFileFromUrl as Kx,isAbsoluteUrl as xa}from"@redocly/openapi-core";var di=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=ep(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=Xl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Xl(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&&Zl(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}},fi;(function(e){function t(i,o,s,a){return new di(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof di)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(pb),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(fi||(fi={}));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 Xl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Zl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Zl(e){return e===13||e===10}function ep(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 pb(e){let t=ep(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ti=Oe(jn(),1),Rd=new Map;function Dd(e,t){return Rd.set(e,t)}function va(e){let t=[];for(let[n,r]of Rd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=de.documents.get(e);if(t)return t;let n=await de.fs.readFile(Ue(e),"utf-8");return fi.create(e,"yaml",1,n)}function Ar(e){return Hs.filePattern.test(e)}function Ri(e){return Bs.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(Ri(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=Ti.safeLoad(i,{filename:e})}if(t?.kind===Ti.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 vt=class extends Vx{resolveExternalRef(t,n){return xa(n)?n:t&&xa(t)?new URL(n,t).href:t?re.resolvePath(re.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(Sr(t)){let{body:i,mimeType:o}=await Kx(t,{...this.config.http,customFetch:fetch});return new wd(t,i,o)}let n=Nt(t),r=xa(t)?qe(t):t;return new wd(r,(await Qe(n)).getText())}};var jt;async function Di(e,t){try{let n=new vt,r=e?await de.findConfig(e):void 0;if(r===void 0){let i=await Qx(r,n);return jt=await kd(Jx,{externalRefResolver:n,ignore:i}),jt}jt=await Gx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),jt=await kd({})}return jt}async function Mn(e){return jt||await Di(e)}async function hn(e){return await Pa(e)?!0:!!jt?.resolvedRefMap&&[...jt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>zs(Tr(Nt(e)),n))}async function Pa(e){let t=await de.findConfig(e);return t?zs(e,t):!1}function Zx(e){return e.endsWith(Xx)}var Ad={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Er={type:"object",properties:Ad,additionalProperties:!1},eP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},xt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},Ad),{like:Er,dislike:Er,satisfied:Er,neutral:Er,dissatisfied:Er}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:eP},additionalProperties:!1}},additionalProperties:!1};var tP={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Nr={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ln={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:xt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Nr,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:tP,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var In={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},nP={type:"object",properties:{name:{type:"string"},items:In,queries:In,mutations:In,subscriptions:In,types:In,directives:In},required:["name"],additionalProperties:!1},rP={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:nP},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},iP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},oP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},sP={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:iP,license:oP},additionalProperties:!1},Fn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},rP.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Nr,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:xt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:sP},additionalProperties:!1};var Ed={type:"object",properties:{downloadUrls:Nr,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:xt,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1};var aP={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},cP={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"]},uP={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"}}},wi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},lP={type:"object",properties:Ni(yn.properties,["light","dark"])},pP={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"}}},dP={type:"object",properties:{error:wi,info:wi,redirect:wi,success:wi}},fP={type:"object",properties:Un(yn.properties,["dark"])},gP={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},mP={type:"object",properties:{accent:yn,border:lP,error:yn,http:pP,primary:yn,responses:dP,secondary:fP,success:yn,text:gP,tonalOffset:{type:"number"},warning:yn}},ki={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},hP={type:"object",properties:{small:ki,medium:ki,large:ki,xlarge:ki}},Pt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},yP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:hP})},Od={type:"object",properties:Ni(Pt.properties,["fontSize","lineHeight"])},bP={type:"object",properties:{medium:Od,small:Od}},vP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:bP})},xP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},PP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},qd={type:"object",properties:{fullWidth:{type:"boolean"}}},CP={type:"object",properties:{buttons:yP,httpBadges:vP,layoutControls:xP,panels:PP,tryItButton:qd,tryItSendButton:qd}},Ei={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},_P={type:"object",properties:{maxWidth:Ei}},SP={type:"object",properties:{maxWidth:Ei,middlePanelMaxWidth:Ei}},TP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:_P,"three-panel":SP}},jd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},RP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:jd,defaultDetailsWidth:{type:"string"},examples:jd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Ld={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},DP={type:"object",properties:Ni(Ld.properties,["textTransform"])},wP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},kP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.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:Ld,level1items:DP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:wP,textColor:{type:"string"},width:{type:"string"}})},Ai={type:"object",properties:Object.assign(Object.assign({},Pt.properties),{color:{type:"string"},transform:{type:"string"}})},AP={type:"object",properties:Object.assign(Object.assign({},Pt.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"}})},EP={type:"object",properties:Un(Pt.properties,["fontSize"])},NP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},OP={type:"object",properties:Object.assign(Object.assign({code:AP,fieldName:Pt},Ni(Pt.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ai,heading2:Ai,heading3:Ai,headings:EP,lineHeight:{type:"string"},links:NP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ai,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},qP={type:"object",properties:Object.assign({color:{type:"string"}},Un(Pt.properties,["fontWeight"]))},jP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:qP}},MP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},LP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Md={type:"object",properties:{custom:{type:"string"}}},IP={type:"object",properties:{DownloadButton:Md,NextSectionButton:Md}},FP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},UP={type:"object",properties:{borderRadius:{type:"string"}}},WP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},BP={type:"object",properties:{breakpoints:Ei,codeBlock:jP,colors:mP,components:CP,layout:TP,logo:MP,fab:LP,overrides:IP,rightPanel:FP,schema:RP,shape:UP,sidebar:kP,spacing:WP,typography:OP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},HP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:aP}},required:["languages"]},Ca={type:"object",properties:{theme:BP,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:HP,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:cP,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:uP,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 Ni(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Un(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Ct={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 zP={rules:Ct,oas2Rules:Ct,oas3_0Rules:Ct,oas3_1Rules:Ct,oas3_2Rules:Ct,async2Rules:Ct,async3Rules:Ct,arazzo1Rules:Ct,overlay1Rules:Ct,openrpc1Rules:Ct};var _t={nodeTypeName:void 0,type:"object",additionalProperties:!0},$P={preprocessors:_t,oas2Preprocessors:_t,oas3_0Preprocessors:_t,oas3_1Preprocessors:_t,oas3_2Preprocessors:_t,async2Preprocessors:_t,async3Preprocessors:_t,arazzo1Preprocessors:_t,overlay1Preprocessors:_t,openrpc1Preprocessors:_t},St={nodeTypeName:void 0,type:"object",additionalProperties:!0};var YP={decorators:St,oas2Decorators:St,oas3_0Decorators:St,oas3_1Decorators:St,oas3_2Decorators:St,async2Decorators:St,async3Decorators:St,arazzo1Decorators:St,overlay1Decorators:St,openrpc1Decorators:St},VP={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"},bn=Object.assign(Object.assign(Object.assign(Object.assign({},zP),YP),$P),{extends:VP});var Oi=e=>e;var Je=Oi({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"});var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Id={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},_a={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Sa={type:"array",items:Object.assign(Object.assign({},_a),{properties:Object.assign(Object.assign({},_a.properties),{items:{type:"array",items:_a}})})},KP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},GP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},QP={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}},JP={type:"object",properties:Object.assign({facets:QP},De.properties),additionalProperties:!1},XP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},qi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},ji={type:"object",properties:Object.assign({items:Sa},De.properties),additionalProperties:!1},Mi={type:"object",additionalProperties:KP},Li={type:"object",properties:Object.assign({items:Sa,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Ii={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},Fi={type:"object",properties:{head:{type:"array",items:Id},body:{type:"array",items:Id}},additionalProperties:!1},Ui={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}},Wi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:GP,filters:JP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:XP}},De.properties),additionalProperties:!1},Bi={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Hi={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},Wn={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},ZP={type:"object",properties:Object.assign(Object.assign({},De.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},zi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},actions:ZP},additionalProperties:!1},$i={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},De.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Yi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},De.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},De.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},De.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Bn=Object.assign(Object.assign({},Ln),{properties:Object.assign(Object.assign({},Ln.properties),Ca.properties)}),tD=Object.assign(Object.assign({},Ln),{properties:Object.assign(Object.assign({},Ln.properties),Ca.properties)}),eC={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},tC={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"]},nC={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},rC={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},iC={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"]},oC={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},sC={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Ta={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"]},aC={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:Ta}},additionalProperties:!1,required:["trackingId"]},Vi={type:"object",properties:{adobe:eC,amplitude:tC,fullstory:nC,heap:rC,rudderstack:iC,segment:oC,gtm:sC,ga:aC}},Ki={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},De.properties),additionalProperties:!1},Gi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Qi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},cC={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},uC={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:cC},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Sa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Hn={type:"object",patternProperties:{".*":uC}},zn={nodeTypeName:Je.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",default:!1},teamMetadataProperty:{nodeTypeName:Je.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:Je.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Je.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:Object.assign({name:{type:"string"},color:{type:"string"}},bn),additionalProperties:!1}},targets:{nodeTypeName:Je.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Je.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Je.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:Je.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var lC={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},pC={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},dC={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Mt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:pC},excludes:{type:"array",items:lC},filters:{type:"array",items:dC},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},fC={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},gC={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:fC},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},mC={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:gC,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},hC={type:"object",additionalProperties:mC},Ji={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:hC,catalogs:{type:"object",properties:{all:Mt,services:Mt,domains:Mt,teams:Mt,users:Mt,apiDescriptions:Mt,dataSchemas:Mt,apiOperations:Mt},additionalProperties:Mt}},additionalProperties:!1};var Fd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Da={type:"string",enum:["and","or"]},Ra={type:"object",properties:{field:{type:"string"},operator:Fd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},yC={type:"object",properties:{operator:Da,conditions:{type:"array",items:Ra}},required:["operator","conditions"],additionalProperties:!1},Ud={type:"array",items:{oneOf:[Ra,{type:"object",properties:{operator:Da,conditions:{type:"array",items:{oneOf:[Ra,yC]}}},required:["operator","conditions"],additionalProperties:!1}]}},Bd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},bC={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:Bd},required:["subject","assertions"],additionalProperties:!1}},vC={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:Bd,where:bC,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},xC={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},vC]}},PC={type:"object",properties:{name:{type:"string"},extends:bn.extends,rules:xC},required:["name"],additionalProperties:!1},Wd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},CC={oneOf:[Wd,{type:"array",items:Wd}]},_C={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ud,{type:"object",properties:{operator:Da,conditions:Ud},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:PC,minItems:1},trigger:CC},required:["name","key","entities","levels"],additionalProperties:!1},Xi={type:"array",items:_C};var tt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:qi,navbar:ji,products:Mi,footer:Li,sidebar:Ii,scripts:Fi,links:Ui,feedback:xt,search:Wi,aiAssistant:Bi,colorMode:Hi,palette:Wn,navigation:zi,codeSnippet:$i,markdown:Yi,openapi:Bn,asyncapi:Ed,graphql:Fn,analytics:Vi,userMenu:Ki,versionPicker:Gi,breadcrumbs:Qi,catalog:Hn,entitiesCatalog:Ji,catalogClassic:Hn,scorecard:zn,scorecardClassic:zn,scorecards:Xi},additionalProperties:!0};var ka="https://redocly.com/sso/teams",$n;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})($n||($n={}));var Yn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Yn||(Yn={}));var wa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(wa||(wa={}));function Zi(e,t,n){return Object.fromEntries(Object.entries(e).map(([r,i])=>{if(!(r===t&&n!=="properties"))return typeof i!="object"||!i?[r,i]:Array.isArray(i)?[r,i.map(o=>typeof o=="object"?Zi(o,t,r):o)]:[r,Zi(i,t,r)]}).filter(Boolean))}var SC={type:"object",additionalProperties:{type:"string"}},TC={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},eo={type:"string",enum:["error","warn","off"]},RC={type:"object",additionalProperties:!1,properties:{schemaCheck:eo,statusCodeCheck:eo,contentTypeCheck:eo,successCriteriaCheck:eo}},DC={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},wC={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},kC={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Hd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[DC,wC]},inputs:SC,servers:TC,severity:RC,slo:kC},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var AC={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},EC={type:"object",properties:{type:{type:"string",const:$n.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:AC,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},NC={type:"object",properties:{type:{type:"string",const:$n.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ka},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},OC={oneOf:[EC,NC],discriminator:{propertyName:"type"}},qC={type:"object",additionalProperties:OC},Vd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Kd={type:"boolean"},Gd={type:"string",pattern:"^https?://.*"},Qd={type:"string",pattern:"^https?://.*"},jC={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1,nodeTypeName:Je.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},MC={type:"object",additionalProperties:jC,default:{},nodeTypeName:Je.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"},LC={type:"string",enum:["info","success","warning","error"],default:"info"},ee={type:"object",additionalProperties:{type:"string"}},IC={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:LC,rbac:ee},required:["content"],additionalProperties:!1},FC={type:"array",items:IC,default:[]},Ea={type:"object",properties:Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:Bn,graphql:Fn,theme:{type:"object",properties:{openapi:Bn,graphql:Fn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},bn),required:["root"]},UC={type:"object",additionalProperties:!0},WC={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},$d={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:zd},default:{llmstxt:zd.default},additionalProperties:!1},BC={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},HC={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},Na={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},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:HC},additionalProperties:ee},zC={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},$C={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},YC={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[zC,$C]}},additionalProperties:!1,required:["type","apiBaseUrl"]},VC={type:"object",properties:{type:{type:"string",const:Yn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},KC={type:"object",properties:{type:{type:"string",const:Yn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Aa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[VC,KC],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},GC=Object.assign(Object.assign({},Aa),{properties:Object.assign(Object.assign({},Aa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),QC={type:"object",oneOf:[Aa,GC,YC],discriminator:{propertyName:"type"}},JC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:QC}}},Yd={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"]},XC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ZC={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},e_={type:"object",properties:{requiresLogin:Kd,logoutReturnUrl:Gd,residency:Qd,sso:Vd,rbac:Na},additionalProperties:!1},Or={type:"object",properties:Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:MC,seo:$d,rbac:Na,apiFunctions:BC,requiresLogin:Kd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:XC}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Ea}},bn),{ssoDirect:qC,sso:Vd,residency:Qd,logoutReturnUrl:Gd,access:e_,developerOnboarding:JC,removeAttribution:{type:"boolean"},i18n:Yd,l10n:Yd,metadata:UC,metadataGlobs:WC,ignore:{type:"array",items:{type:"string"}},theme:tt,reunite:Hd,logo:qi,navbar:ji,products:Mi,footer:Li,sidebar:Ii,scripts:Fi,links:Ui,feedback:xt,search:Wi,aiAssistant:Bi,colorMode:Hi,palette:Wn,navigation:zi,codeSnippet:$i,markdown:Yi,openapi:Bn,graphql:Fn,analytics:Vi,userMenu:Ki,versionPicker:Gi,breadcrumbs:Qi,catalog:Hn,entitiesCatalog:Ji,catalogClassic:Hn,scorecard:zn,scorecardClassic:zn,scorecards:Xi,mcp:ZC,banner:FC}),default:{redirects:{},seo:$d.default},additionalProperties:!0},t_=Object.assign(Object.assign({},Zi(Or,"default")),{additionalProperties:!1}),Oa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:t_}}),default:{},additionalProperties:!1});var qa={type:"object",properties:{logo:tt.properties.logo,navbar:tt.properties.navbar,footer:tt.properties.footer,sidebar:tt.properties.sidebar,search:tt.properties.search,codeSnippet:tt.properties.codeSnippet,breadcrumbs:tt.properties.breadcrumbs,openapi:tt.properties.openapi,feedback:tt.properties.feedback,palette:Wn,mockServer:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ta}}},additionalProperties:!0,default:{}},n_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},qa.properties),{apis:{type:"object",additionalProperties:Ea},theme:qa}),additionalProperties:!1};var ja=["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"],fe=Oi({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"});var r_={type:"object",nodeTypeName:fe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},i_={type:"object",nodeTypeName:fe.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},o_={type:"object",nodeTypeName:fe.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},s_={type:"object",nodeTypeName:fe.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},a_={type:"object",properties:{},nodeTypeName:fe.EntityMetadata,additionalProperties:!0},c_={type:"object",nodeTypeName:fe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},u_={type:"object",nodeTypeName:fe.EntitySlackContact,properties:{channels:{type:"array",items:c_}},required:["channels"],additionalProperties:!1},l_={type:"object",nodeTypeName:fe.EntityContact,properties:{slack:u_},additionalProperties:!1},p_={type:"object",nodeTypeName:fe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",nodeTypeName:fe.EntityRelation,properties:{type:{type:"string",enum:ja},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},$t={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:l_,links:{type:"array",nodeTypeName:fe.EntityLinkList,items:p_},relations:{type:"array",nodeTypeName:fe.EntityRelationList,items:d_},metadata:a_},to={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},$t),{type:{const:"user"},metadata:r_}),required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:fe.UserEntity},{type:"object",nodeTypeName:fe.ApiOperationEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"api-operation"},metadata:o_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.DataSchemaEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"data-schema"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.ApiDescriptionEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"api-description"},metadata:i_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.ServiceEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:fe.DomainEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:fe.TeamEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},no={type:"object",nodeTypeName:fe.Entity,properties:Object.assign({},$t),required:["key","title","type"],additionalProperties:!1};var We=Oe(on(),1);import{getLineColLocation as DS,lintDocument as wS,makeDocumentFromString as Rs,lintConfig as kS,lintEntityFile as AS,detectSpec as ES,createConfigTypes as NS}from"@redocly/openapi-core";var Ss=Oe(jn(),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),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let R=s.get(u.uri)||[];d||(s.set(u.uri,[...R,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...R,{resolve:v,reject:y}])})}return c}function wl(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 kl(e,t){return e?re.dirname(ht.file(e)).toString():t}async function Al(e,t){let n=ht.parse(t);return re.joinPath(n,e).toString()}async function my(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Al(i,n)===t)return r}function hy(e){return typeof e=="string"}function ti(e){return typeof e=="function"}function yy(e){return e?.kind===Ss.Kind.MAP}function El(e){return e?.kind===Ss.Kind.MAPPING}function Nl(e){return e?.kind===Ss.Kind.SEQ}function ni(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as fS,isPlainObject as gS,makeDocumentFromString as mS,getTypes as hS,detectSpec as yS}from"@redocly/openapi-core";var by=new Map,Ts=new Map;function bS(e){return e?Array.from(e).map(([t,n])=>[t,wl(n)]):[]}async function Ol(e,t){let n=await Mn(),r=new vt(n.resolve),i=mS(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await fS({document:i,config:n,externalRefResolver:r,types:hS(yS(i.parsed))}),c=bS(a);a&&(Ts=new Map([...Ts,...a])),by.set(e.uri,{uri:e.uri,name:Tr(e.uri),definition:gS(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function vS(){return Array.from(by).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Tr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ql(e){return Ts.has(e)?Ts.get(e):null}import{createConfig as vy,lintDocument as xS,loadIgnoreConfig as PS,regexFromString as CS}from"@redocly/openapi-core";async function xy(e,t,n,r,i,o){let s=[],a=await PS(r,t),c=typeof i=="string"?await _S(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,h=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...h,...o},y=TS(n.targets,v);y?.rules&&r&&(u=await SS(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let h=u[d.name]??await vy({...d,plugins:c},{configPath:r,ignore:a}),v=await xS({document:e,externalRefResolver:t,config:h});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function _S(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
69
+ `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return nt.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 nt.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=u;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var ae=S(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.ProtocolNotificationType=Ye.ProtocolNotificationType0=Ye.ProtocolRequestType=Ye.ProtocolRequestType0=Ye.RegistrationType=Ye.MessageDirection=void 0;var sr=xn(),Tf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(Tf||(Ye.MessageDirection=Tf={}));var Vu=class{constructor(t){this.method=t}};Ye.RegistrationType=Vu;var Ku=class extends sr.RequestType0{constructor(t){super(t)}};Ye.ProtocolRequestType0=Ku;var Gu=class extends sr.RequestType{constructor(t){super(t,sr.ParameterStructures.byName)}};Ye.ProtocolRequestType=Gu;var Qu=class extends sr.NotificationType0{constructor(t){super(t)}};Ye.ProtocolNotificationType0=Qu;var Ju=class extends sr.NotificationType{constructor(t){super(t,sr.ParameterStructures.byName)}};Ye.ProtocolNotificationType=Ju});var No=S(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.objectLiteral=Pe.typedArray=Pe.stringArray=Pe.array=Pe.func=Pe.error=Pe.number=Pe.string=Pe.boolean=void 0;function U_(e){return e===!0||e===!1}Pe.boolean=U_;function Rf(e){return typeof e=="string"||e instanceof String}Pe.string=Rf;function W_(e){return typeof e=="number"||e instanceof Number}Pe.number=W_;function B_(e){return e instanceof Error}Pe.error=B_;function H_(e){return typeof e=="function"}Pe.func=H_;function Df(e){return Array.isArray(e)}Pe.array=Df;function z_(e){return Df(e)&&e.every(t=>Rf(t))}Pe.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}Pe.typedArray=$_;function Y_(e){return e!==null&&typeof e=="object"}Pe.objectLiteral=Y_});var Af=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.ImplementationRequest=void 0;var wf=ae(),kf;(function(e){e.method="textDocument/implementation",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)})(kf||(Oo.ImplementationRequest=kf={}))});var Of=S(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.TypeDefinitionRequest=void 0;var Ef=ae(),Nf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=Ef.MessageDirection.clientToServer,e.type=new Ef.ProtocolRequestType(e.method)})(Nf||(qo.TypeDefinitionRequest=Nf={}))});var Mf=S(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DidChangeWorkspaceFoldersNotification=ar.WorkspaceFoldersRequest=void 0;var jo=ae(),qf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=jo.MessageDirection.serverToClient,e.type=new jo.ProtocolRequestType0(e.method)})(qf||(ar.WorkspaceFoldersRequest=qf={}));var jf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=jo.MessageDirection.clientToServer,e.type=new jo.ProtocolNotificationType(e.method)})(jf||(ar.DidChangeWorkspaceFoldersNotification=jf={}))});var Ff=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.ConfigurationRequest=void 0;var Lf=ae(),If;(function(e){e.method="workspace/configuration",e.messageDirection=Lf.MessageDirection.serverToClient,e.type=new Lf.ProtocolRequestType(e.method)})(If||(Mo.ConfigurationRequest=If={}))});var Bf=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ColorPresentationRequest=cr.DocumentColorRequest=void 0;var Lo=ae(),Uf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolRequestType(e.method)})(Uf||(cr.DocumentColorRequest=Uf={}));var Wf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Lo.MessageDirection.clientToServer,e.type=new Lo.ProtocolRequestType(e.method)})(Wf||(cr.ColorPresentationRequest=Wf={}))});var $f=S(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.FoldingRangeRefreshRequest=ur.FoldingRangeRequest=void 0;var Io=ae(),Hf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Io.MessageDirection.clientToServer,e.type=new Io.ProtocolRequestType(e.method)})(Hf||(ur.FoldingRangeRequest=Hf={}));var zf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Io.MessageDirection.serverToClient,e.type=new Io.ProtocolRequestType0(e.method)})(zf||(ur.FoldingRangeRefreshRequest=zf={}))});var Kf=S(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeclarationRequest=void 0;var Yf=ae(),Vf;(function(e){e.method="textDocument/declaration",e.messageDirection=Yf.MessageDirection.clientToServer,e.type=new Yf.ProtocolRequestType(e.method)})(Vf||(Fo.DeclarationRequest=Vf={}))});var Jf=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.SelectionRangeRequest=void 0;var Gf=ae(),Qf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Qf||(Uo.SelectionRangeRequest=Qf={}))});var tg=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.WorkDoneProgressCancelNotification=Qt.WorkDoneProgressCreateRequest=Qt.WorkDoneProgress=void 0;var V_=xn(),Wo=ae(),Xf;(function(e){e.type=new V_.ProgressType;function t(n){return n===e.type}e.is=t})(Xf||(Qt.WorkDoneProgress=Xf={}));var Zf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Wo.MessageDirection.serverToClient,e.type=new Wo.ProtocolRequestType(e.method)})(Zf||(Qt.WorkDoneProgressCreateRequest=Zf={}));var eg;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Wo.MessageDirection.clientToServer,e.type=new Wo.ProtocolNotificationType(e.method)})(eg||(Qt.WorkDoneProgressCancelNotification=eg={}))});var og=S(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.CallHierarchyOutgoingCallsRequest=Jt.CallHierarchyIncomingCallsRequest=Jt.CallHierarchyPrepareRequest=void 0;var lr=ae(),ng;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(ng||(Jt.CallHierarchyPrepareRequest=ng={}));var rg;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(rg||(Jt.CallHierarchyIncomingCallsRequest=rg={}));var ig;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=lr.MessageDirection.clientToServer,e.type=new lr.ProtocolRequestType(e.method)})(ig||(Jt.CallHierarchyOutgoingCallsRequest=ig={}))});var pg=S(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SemanticTokensRefreshRequest=Ve.SemanticTokensRangeRequest=Ve.SemanticTokensDeltaRequest=Ve.SemanticTokensRequest=Ve.SemanticTokensRegistrationType=Ve.TokenFormat=void 0;var It=ae(),sg;(function(e){e.Relative="relative"})(sg||(Ve.TokenFormat=sg={}));var Vr;(function(e){e.method="textDocument/semanticTokens",e.type=new It.RegistrationType(e.method)})(Vr||(Ve.SemanticTokensRegistrationType=Vr={}));var ag;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(ag||(Ve.SemanticTokensRequest=ag={}));var cg;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(cg||(Ve.SemanticTokensDeltaRequest=cg={}));var ug;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=It.MessageDirection.clientToServer,e.type=new It.ProtocolRequestType(e.method),e.registrationMethod=Vr.method})(ug||(Ve.SemanticTokensRangeRequest=ug={}));var lg;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=It.MessageDirection.serverToClient,e.type=new It.ProtocolRequestType0(e.method)})(lg||(Ve.SemanticTokensRefreshRequest=lg={}))});var gg=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ShowDocumentRequest=void 0;var dg=ae(),fg;(function(e){e.method="window/showDocument",e.messageDirection=dg.MessageDirection.serverToClient,e.type=new dg.ProtocolRequestType(e.method)})(fg||(Bo.ShowDocumentRequest=fg={}))});var yg=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.LinkedEditingRangeRequest=void 0;var mg=ae(),hg;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=mg.MessageDirection.clientToServer,e.type=new mg.ProtocolRequestType(e.method)})(hg||(Ho.LinkedEditingRangeRequest=hg={}))});var Tg=S(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.WillDeleteFilesRequest=Le.DidDeleteFilesNotification=Le.DidRenameFilesNotification=Le.WillRenameFilesRequest=Le.DidCreateFilesNotification=Le.WillCreateFilesRequest=Le.FileOperationPatternKind=void 0;var rt=ae(),bg;(function(e){e.file="file",e.folder="folder"})(bg||(Le.FileOperationPatternKind=bg={}));var vg;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(vg||(Le.WillCreateFilesRequest=vg={}));var xg;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(xg||(Le.DidCreateFilesNotification=xg={}));var Pg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(Pg||(Le.WillRenameFilesRequest=Pg={}));var Cg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(Cg||(Le.DidRenameFilesNotification=Cg={}));var _g;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolNotificationType(e.method)})(_g||(Le.DidDeleteFilesNotification=_g={}));var Sg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=rt.MessageDirection.clientToServer,e.type=new rt.ProtocolRequestType(e.method)})(Sg||(Le.WillDeleteFilesRequest=Sg={}))});var Ag=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.MonikerRequest=Xt.MonikerKind=Xt.UniquenessLevel=void 0;var Rg=ae(),Dg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(Dg||(Xt.UniquenessLevel=Dg={}));var wg;(function(e){e.$import="import",e.$export="export",e.local="local"})(wg||(Xt.MonikerKind=wg={}));var kg;(function(e){e.method="textDocument/moniker",e.messageDirection=Rg.MessageDirection.clientToServer,e.type=new Rg.ProtocolRequestType(e.method)})(kg||(Xt.MonikerRequest=kg={}))});var qg=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.TypeHierarchySubtypesRequest=Zt.TypeHierarchySupertypesRequest=Zt.TypeHierarchyPrepareRequest=void 0;var pr=ae(),Eg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Eg||(Zt.TypeHierarchyPrepareRequest=Eg={}));var Ng;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Ng||(Zt.TypeHierarchySupertypesRequest=Ng={}));var Og;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=pr.MessageDirection.clientToServer,e.type=new pr.ProtocolRequestType(e.method)})(Og||(Zt.TypeHierarchySubtypesRequest=Og={}))});var Lg=S(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.InlineValueRefreshRequest=dr.InlineValueRequest=void 0;var zo=ae(),jg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=zo.MessageDirection.clientToServer,e.type=new zo.ProtocolRequestType(e.method)})(jg||(dr.InlineValueRequest=jg={}));var Mg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=zo.MessageDirection.serverToClient,e.type=new zo.ProtocolRequestType0(e.method)})(Mg||(dr.InlineValueRefreshRequest=Mg={}))});var Wg=S(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.InlayHintRefreshRequest=en.InlayHintResolveRequest=en.InlayHintRequest=void 0;var fr=ae(),Ig;(function(e){e.method="textDocument/inlayHint",e.messageDirection=fr.MessageDirection.clientToServer,e.type=new fr.ProtocolRequestType(e.method)})(Ig||(en.InlayHintRequest=Ig={}));var Fg;(function(e){e.method="inlayHint/resolve",e.messageDirection=fr.MessageDirection.clientToServer,e.type=new fr.ProtocolRequestType(e.method)})(Fg||(en.InlayHintResolveRequest=Fg={}));var Ug;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=fr.MessageDirection.serverToClient,e.type=new fr.ProtocolRequestType0(e.method)})(Ug||(en.InlayHintRefreshRequest=Ug={}))});var Kg=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.DiagnosticRefreshRequest=it.WorkspaceDiagnosticRequest=it.DocumentDiagnosticRequest=it.DocumentDiagnosticReportKind=it.DiagnosticServerCancellationData=void 0;var Vg=xn(),K_=No(),gr=ae(),Bg;(function(e){function t(n){let r=n;return r&&K_.boolean(r.retriggerRequest)}e.is=t})(Bg||(it.DiagnosticServerCancellationData=Bg={}));var Hg;(function(e){e.Full="full",e.Unchanged="unchanged"})(Hg||(it.DocumentDiagnosticReportKind=Hg={}));var zg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=gr.MessageDirection.clientToServer,e.type=new gr.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})(zg||(it.DocumentDiagnosticRequest=zg={}));var $g;(function(e){e.method="workspace/diagnostic",e.messageDirection=gr.MessageDirection.clientToServer,e.type=new gr.ProtocolRequestType(e.method),e.partialResult=new Vg.ProgressType})($g||(it.WorkspaceDiagnosticRequest=$g={}));var Yg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=gr.MessageDirection.serverToClient,e.type=new gr.ProtocolRequestType0(e.method)})(Yg||(it.DiagnosticRefreshRequest=Yg={}))});var tm=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.DidCloseNotebookDocumentNotification=me.DidSaveNotebookDocumentNotification=me.DidChangeNotebookDocumentNotification=me.NotebookCellArrayChange=me.DidOpenNotebookDocumentNotification=me.NotebookDocumentSyncRegistrationType=me.NotebookDocument=me.NotebookCell=me.ExecutionSummary=me.NotebookCellKind=void 0;var Kr=(Eo(),pi(Ao)),dt=No(),Dt=ae(),Xu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Xu||(me.NotebookCellKind=Xu={}));var Zu;(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 dt.objectLiteral(o)&&Kr.uinteger.is(o.executionOrder)&&(o.success===void 0||dt.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})(Zu||(me.ExecutionSummary=Zu={}));var $o;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return dt.objectLiteral(s)&&Xu.is(s.kind)&&Kr.DocumentUri.is(s.document)&&(s.metadata===void 0||dt.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)&&!Zu.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(dt.objectLiteral(o)&&dt.objectLiteral(s)){let u=Object.keys(o),d=Object.keys(s);if(u.length!==d.length||(u.sort(),d.sort(),!i(u,d)))return!1;for(let h=0;h<u.length;h++){let v=u[h];if(!i(o[v],s[v]))return!1}}return!0}})($o||(me.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 dt.objectLiteral(i)&&dt.string(i.uri)&&Kr.integer.is(i.version)&&dt.typedArray(i.cells,$o.is)}e.is=n})(Gg||(me.NotebookDocument=Gg={}));var mr;(function(e){e.method="notebookDocument/sync",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.RegistrationType(e.method)})(mr||(me.NotebookDocumentSyncRegistrationType=mr={}));var Qg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Qg||(me.DidOpenNotebookDocumentNotification=Qg={}));var Jg;(function(e){function t(r){let i=r;return dt.objectLiteral(i)&&Kr.uinteger.is(i.start)&&Kr.uinteger.is(i.deleteCount)&&(i.cells===void 0||dt.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||(me.NotebookCellArrayChange=Jg={}));var Xg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Xg||(me.DidChangeNotebookDocumentNotification=Xg={}));var Zg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(Zg||(me.DidSaveNotebookDocumentNotification=Zg={}));var em;(function(e){e.method="notebookDocument/didClose",e.messageDirection=Dt.MessageDirection.clientToServer,e.type=new Dt.ProtocolNotificationType(e.method),e.registrationMethod=mr.method})(em||(me.DidCloseNotebookDocumentNotification=em={}))});var im=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineCompletionRequest=void 0;var nm=ae(),rm;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=nm.MessageDirection.clientToServer,e.type=new nm.ProtocolRequestType(e.method)})(rm||(Yo.InlineCompletionRequest=rm={}))});var yh=S(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.WorkspaceSymbolRequest=l.CodeActionResolveRequest=l.CodeActionRequest=l.DocumentSymbolRequest=l.DocumentHighlightRequest=l.ReferencesRequest=l.DefinitionRequest=l.SignatureHelpRequest=l.SignatureHelpTriggerKind=l.HoverRequest=l.CompletionResolveRequest=l.CompletionRequest=l.CompletionTriggerKind=l.PublishDiagnosticsNotification=l.WatchKind=l.RelativePattern=l.FileChangeType=l.DidChangeWatchedFilesNotification=l.WillSaveTextDocumentWaitUntilRequest=l.WillSaveTextDocumentNotification=l.TextDocumentSaveReason=l.DidSaveTextDocumentNotification=l.DidCloseTextDocumentNotification=l.DidChangeTextDocumentNotification=l.TextDocumentContentChangeEvent=l.DidOpenTextDocumentNotification=l.TextDocumentSyncKind=l.TelemetryEventNotification=l.LogMessageNotification=l.ShowMessageRequest=l.ShowMessageNotification=l.MessageType=l.DidChangeConfigurationNotification=l.ExitNotification=l.ShutdownRequest=l.InitializedNotification=l.InitializeErrorCodes=l.InitializeRequest=l.WorkDoneProgressOptions=l.TextDocumentRegistrationOptions=l.StaticRegistrationOptions=l.PositionEncodingKind=l.FailureHandlingKind=l.ResourceOperationKind=l.UnregistrationRequest=l.RegistrationRequest=l.DocumentSelector=l.NotebookCellTextDocumentFilter=l.NotebookDocumentFilter=l.TextDocumentFilter=void 0;l.MonikerRequest=l.MonikerKind=l.UniquenessLevel=l.WillDeleteFilesRequest=l.DidDeleteFilesNotification=l.WillRenameFilesRequest=l.DidRenameFilesNotification=l.WillCreateFilesRequest=l.DidCreateFilesNotification=l.FileOperationPatternKind=l.LinkedEditingRangeRequest=l.ShowDocumentRequest=l.SemanticTokensRegistrationType=l.SemanticTokensRefreshRequest=l.SemanticTokensRangeRequest=l.SemanticTokensDeltaRequest=l.SemanticTokensRequest=l.TokenFormat=l.CallHierarchyPrepareRequest=l.CallHierarchyOutgoingCallsRequest=l.CallHierarchyIncomingCallsRequest=l.WorkDoneProgressCancelNotification=l.WorkDoneProgressCreateRequest=l.WorkDoneProgress=l.SelectionRangeRequest=l.DeclarationRequest=l.FoldingRangeRefreshRequest=l.FoldingRangeRequest=l.ColorPresentationRequest=l.DocumentColorRequest=l.ConfigurationRequest=l.DidChangeWorkspaceFoldersNotification=l.WorkspaceFoldersRequest=l.TypeDefinitionRequest=l.ImplementationRequest=l.ApplyWorkspaceEditRequest=l.ExecuteCommandRequest=l.PrepareRenameRequest=l.RenameRequest=l.PrepareSupportDefaultBehavior=l.DocumentOnTypeFormattingRequest=l.DocumentRangesFormattingRequest=l.DocumentRangeFormattingRequest=l.DocumentFormattingRequest=l.DocumentLinkResolveRequest=l.DocumentLinkRequest=l.CodeLensRefreshRequest=l.CodeLensResolveRequest=l.CodeLensRequest=l.WorkspaceSymbolResolveRequest=void 0;l.InlineCompletionRequest=l.DidCloseNotebookDocumentNotification=l.DidSaveNotebookDocumentNotification=l.DidChangeNotebookDocumentNotification=l.NotebookCellArrayChange=l.DidOpenNotebookDocumentNotification=l.NotebookDocumentSyncRegistrationType=l.NotebookDocument=l.NotebookCell=l.ExecutionSummary=l.NotebookCellKind=l.DiagnosticRefreshRequest=l.WorkspaceDiagnosticRequest=l.DocumentDiagnosticRequest=l.DocumentDiagnosticReportKind=l.DiagnosticServerCancellationData=l.InlayHintRefreshRequest=l.InlayHintResolveRequest=l.InlayHintRequest=l.InlineValueRefreshRequest=l.InlineValueRequest=l.TypeHierarchySupertypesRequest=l.TypeHierarchySubtypesRequest=l.TypeHierarchyPrepareRequest=void 0;var D=ae(),om=(Eo(),pi(Ao)),we=No(),G_=Af();Object.defineProperty(l,"ImplementationRequest",{enumerable:!0,get:function(){return G_.ImplementationRequest}});var Q_=Of();Object.defineProperty(l,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var fh=Mf();Object.defineProperty(l,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fh.WorkspaceFoldersRequest}});Object.defineProperty(l,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fh.DidChangeWorkspaceFoldersNotification}});var J_=Ff();Object.defineProperty(l,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var gh=Bf();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 X_=Kf();Object.defineProperty(l,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=Jf();Object.defineProperty(l,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var il=tg();Object.defineProperty(l,"WorkDoneProgress",{enumerable:!0,get:function(){return il.WorkDoneProgress}});Object.defineProperty(l,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return il.WorkDoneProgressCreateRequest}});Object.defineProperty(l,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return il.WorkDoneProgressCancelNotification}});var ol=og();Object.defineProperty(l,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return ol.CallHierarchyIncomingCallsRequest}});Object.defineProperty(l,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return ol.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(l,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return ol.CallHierarchyPrepareRequest}});var hr=pg();Object.defineProperty(l,"TokenFormat",{enumerable:!0,get:function(){return hr.TokenFormat}});Object.defineProperty(l,"SemanticTokensRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRequest}});Object.defineProperty(l,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return hr.SemanticTokensDeltaRequest}});Object.defineProperty(l,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRangeRequest}});Object.defineProperty(l,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return hr.SemanticTokensRefreshRequest}});Object.defineProperty(l,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return hr.SemanticTokensRegistrationType}});var e0=gg();Object.defineProperty(l,"ShowDocumentRequest",{enumerable:!0,get:function(){return e0.ShowDocumentRequest}});var t0=yg();Object.defineProperty(l,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return t0.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 sl=Ag();Object.defineProperty(l,"UniquenessLevel",{enumerable:!0,get:function(){return sl.UniquenessLevel}});Object.defineProperty(l,"MonikerKind",{enumerable:!0,get:function(){return sl.MonikerKind}});Object.defineProperty(l,"MonikerRequest",{enumerable:!0,get:function(){return sl.MonikerRequest}});var al=qg();Object.defineProperty(l,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return al.TypeHierarchyPrepareRequest}});Object.defineProperty(l,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return al.TypeHierarchySubtypesRequest}});Object.defineProperty(l,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return al.TypeHierarchySupertypesRequest}});var hh=Lg();Object.defineProperty(l,"InlineValueRequest",{enumerable:!0,get:function(){return hh.InlineValueRequest}});Object.defineProperty(l,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return hh.InlineValueRefreshRequest}});var cl=Wg();Object.defineProperty(l,"InlayHintRequest",{enumerable:!0,get:function(){return cl.InlayHintRequest}});Object.defineProperty(l,"InlayHintResolveRequest",{enumerable:!0,get:function(){return cl.InlayHintResolveRequest}});Object.defineProperty(l,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return cl.InlayHintRefreshRequest}});var Gr=Kg();Object.defineProperty(l,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Gr.DiagnosticServerCancellationData}});Object.defineProperty(l,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Gr.DocumentDiagnosticReportKind}});Object.defineProperty(l,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Gr.DocumentDiagnosticRequest}});Object.defineProperty(l,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Gr.WorkspaceDiagnosticRequest}});Object.defineProperty(l,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Gr.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 n0=im();Object.defineProperty(l,"InlineCompletionRequest",{enumerable:!0,get:function(){return n0.InlineCompletionRequest}});var el;(function(e){function t(n){let r=n;return we.string(r)||we.string(r.language)||we.string(r.scheme)||we.string(r.pattern)}e.is=t})(el||(l.TextDocumentFilter=el={}));var tl;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebookType)||we.string(r.scheme)||we.string(r.pattern))}e.is=t})(tl||(l.NotebookDocumentFilter=tl={}));var nl;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||tl.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(nl||(l.NotebookCellTextDocumentFilter=nl={}));var rl;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!el.is(r)&&!nl.is(r))return!1;return!0}e.is=t})(rl||(l.DocumentSelector=rl={}));var sm;(function(e){e.method="client/registerCapability",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(sm||(l.RegistrationRequest=sm={}));var am;(function(e){e.method="client/unregisterCapability",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.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&&we.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||rl.is(r.documentSelector))}e.is=t})(dm||(l.TextDocumentRegistrationOptions=dm={}));var fm;(function(e){function t(r){let i=r;return we.objectLiteral(i)&&(i.workDoneProgress===void 0||we.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&we.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(fm||(l.WorkDoneProgressOptions=fm={}));var gm;(function(e){e.method="initialize",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(hm||(l.InitializedNotification=hm={}));var ym;(function(e){e.method="shutdown",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType0(e.method)})(ym||(l.ShutdownRequest=ym={}));var bm;(function(e){e.method="exit",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType0(e.method)})(bm||(l.ExitNotification=bm={}));var vm;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(vm||(l.DidChangeConfigurationNotification=vm={}));var xm;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(xm||(l.MessageType=xm={}));var Pm;(function(e){e.method="window/showMessage",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Pm||(l.ShowMessageNotification=Pm={}));var Cm;(function(e){e.method="window/showMessageRequest",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType(e.method)})(Cm||(l.ShowMessageRequest=Cm={}));var _m;(function(e){e.method="window/logMessage",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(_m||(l.LogMessageNotification=_m={}));var Sm;(function(e){e.method="telemetry/event",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolNotificationType(e.method)})(Sm||(l.TelemetryEventNotification=Sm={}));var Tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(Tm||(l.TextDocumentSyncKind=Tm={}));var Rm;(function(e){e.method="textDocument/didOpen",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Rm||(l.DidOpenTextDocumentNotification=Rm={}));var Dm;(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})(Dm||(l.TextDocumentContentChangeEvent=Dm={}));var wm;(function(e){e.method="textDocument/didChange",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(wm||(l.DidChangeTextDocumentNotification=wm={}));var km;(function(e){e.method="textDocument/didClose",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(km||(l.DidCloseTextDocumentNotification=km={}));var Am;(function(e){e.method="textDocument/didSave",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(Nm||(l.WillSaveTextDocumentNotification=Nm={}));var Om;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Om||(l.WillSaveTextDocumentWaitUntilRequest=Om={}));var qm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolNotificationType(e.method)})(qm||(l.DidChangeWatchedFilesNotification=qm={}));var jm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(jm||(l.FileChangeType=jm={}));var Mm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(om.URI.is(r.baseUri)||om.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(Mm||(l.RelativePattern=Mm={}));var Lm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Lm||(l.WatchKind=Lm={}));var Im;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Um||(l.CompletionRequest=Um={}));var Wm;(function(e){e.method="completionItem/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Wm||(l.CompletionResolveRequest=Wm={}));var Bm;(function(e){e.method="textDocument/hover",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Bm||(l.HoverRequest=Bm={}));var Hm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(Hm||(l.SignatureHelpTriggerKind=Hm={}));var zm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(zm||(l.SignatureHelpRequest=zm={}));var $m;(function(e){e.method="textDocument/definition",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})($m||(l.DefinitionRequest=$m={}));var Ym;(function(e){e.method="textDocument/references",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Ym||(l.ReferencesRequest=Ym={}));var Vm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Vm||(l.DocumentHighlightRequest=Vm={}));var Km;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Km||(l.DocumentSymbolRequest=Km={}));var Gm;(function(e){e.method="textDocument/codeAction",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Gm||(l.CodeActionRequest=Gm={}));var Qm;(function(e){e.method="codeAction/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Qm||(l.CodeActionResolveRequest=Qm={}));var Jm;(function(e){e.method="workspace/symbol",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Jm||(l.WorkspaceSymbolRequest=Jm={}));var Xm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Xm||(l.WorkspaceSymbolResolveRequest=Xm={}));var Zm;(function(e){e.method="textDocument/codeLens",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(Zm||(l.CodeLensRequest=Zm={}));var eh;(function(e){e.method="codeLens/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(eh||(l.CodeLensResolveRequest=eh={}));var th;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType0(e.method)})(th||(l.CodeLensRefreshRequest=th={}));var nh;(function(e){e.method="textDocument/documentLink",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(nh||(l.DocumentLinkRequest=nh={}));var rh;(function(e){e.method="documentLink/resolve",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(rh||(l.DocumentLinkResolveRequest=rh={}));var ih;(function(e){e.method="textDocument/formatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ih||(l.DocumentFormattingRequest=ih={}));var oh;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(oh||(l.DocumentRangeFormattingRequest=oh={}));var sh;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(sh||(l.DocumentRangesFormattingRequest=sh={}));var ah;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.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=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(uh||(l.RenameRequest=uh={}));var lh;(function(e){e.method="textDocument/prepareRename",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(lh||(l.PrepareRenameRequest=lh={}));var ph;(function(e){e.method="workspace/executeCommand",e.messageDirection=D.MessageDirection.clientToServer,e.type=new D.ProtocolRequestType(e.method)})(ph||(l.ExecuteCommandRequest=ph={}));var dh;(function(e){e.method="workspace/applyEdit",e.messageDirection=D.MessageDirection.serverToClient,e.type=new D.ProtocolRequestType("workspace/applyEdit")})(dh||(l.ApplyWorkspaceEditRequest=dh={}))});var vh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.createProtocolConnection=void 0;var bh=xn();function r0(e,t,n,r){return bh.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,bh.createMessageConnection)(e,t,n,r)}Vo.createProtocolConnection=r0});var Ph=S(Ke=>{"use strict";var i0=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]})),Ko=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&i0(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.LSPErrorCodes=Ke.createProtocolConnection=void 0;Ko(xn(),Ke);Ko((Eo(),pi(Ao)),Ke);Ko(ae(),Ke);Ko(yh(),Ke);var o0=vh();Object.defineProperty(Ke,"createProtocolConnection",{enumerable:!0,get:function(){return o0.createProtocolConnection}});var xh;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(xh||(Ke.LSPErrorCodes=xh={}))});var xe=S(kt=>{"use strict";var s0=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]})),Ch=kt&&kt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&s0(t,e,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.createProtocolConnection=void 0;var a0=zc();Ch(zc(),kt);Ch(Ph(),kt);function c0(e,t,n,r){return(0,a0.createMessageConnection)(e,t,n,r)}kt.createProtocolConnection=c0});var ll=S(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.SemanticTokensBuilder=tn.SemanticTokensDiff=tn.SemanticTokensFeature=void 0;var Go=xe(),u0=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Go.SemanticTokensRefreshRequest.type),on:t=>{let n=Go.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=Go.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=Go.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};tn.SemanticTokensFeature=u0;var Qo=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}]:[]}};tn.SemanticTokensDiff=Qo;var ul=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 Qo(this._prevData,this._data).computeDiff()}:this.build()}};tn.SemanticTokensBuilder=ul});var _h=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.InlineCompletionFeature=void 0;var l0=xe(),p0=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(l0.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Jo.InlineCompletionFeature=p0});var dl=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TextDocuments=void 0;var Sn=xe(),pl=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Sn.Emitter,this._onDidOpen=new Sn.Emitter,this._onDidClose=new Sn.Emitter,this._onDidSave=new Sn.Emitter,this._onWillSave=new Sn.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=Sn.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}))})),Sn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Xo.TextDocuments=pl});var gl=S(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.NotebookDocuments=yr.NotebookSyncFeature=void 0;var ot=xe(),Sh=dl(),d0=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(ot.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(ot.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(ot.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(ot.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};yr.NotebookSyncFeature=d0;var Zo=class e{onDidOpenTextDocument(t){return this.openHandler=t,ot.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,ot.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,ot.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}};Zo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var fl=class{constructor(t){t instanceof Sh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new Sh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new ot.Emitter,this._onDidChange=new ot.Emitter,this._onDidSave=new ot.Emitter,this._onDidClose=new ot.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 Zo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let u=[],d=[],h=[],v=[];if(c.cells!==void 0){let W=c.cells;if(W.structure!==void 0){let m=W.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),W.structure.didOpen!==void 0)for(let g of W.structure.didOpen)n.openTextDocument({textDocument:g}),u.push(g.uri);if(W.structure.didClose)for(let g of W.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(W.data!==void 0){let m=new Map(W.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let Y=o.cells.splice(g,1,w);if(h.push({old:Y[0],new:w}),m.delete(w.document),m.size===0)break}}}if(W.textContent!==void 0)for(let m of W.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let W of u)R.push(this.getNotebookCell(W));let I=[];for(let W of d)I.push(this.getNotebookCell(W));let K=[];for(let W of v)K.push(this.getNotebookCell(W));(R.length>0||I.length>0||h.length>0||K.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:K}}),(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)}})),ot.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};yr.NotebookDocuments=fl});var ml=S(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.thenable=Ce.typedArray=Ce.stringArray=Ce.array=Ce.func=Ce.error=Ce.number=Ce.string=Ce.boolean=void 0;function f0(e){return e===!0||e===!1}Ce.boolean=f0;function Th(e){return typeof e=="string"||e instanceof String}Ce.string=Th;function g0(e){return typeof e=="number"||e instanceof Number}Ce.number=g0;function m0(e){return e instanceof Error}Ce.error=m0;function Rh(e){return typeof e=="function"}Ce.func=Rh;function Dh(e){return Array.isArray(e)}Ce.array=Dh;function h0(e){return Dh(e)&&e.every(t=>Th(t))}Ce.stringArray=h0;function y0(e,t){return Array.isArray(e)&&e.every(t)}Ce.typedArray=y0;function b0(e){return e&&Rh(e.then)}Ce.thenable=b0});var hl=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.generateUuid=st.parse=st.isUUID=st.v4=st.empty=void 0;var Qr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Jr=class e extends Qr{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(""))}};Jr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Jr._timeHighBits=["8","9","a","b"];st.empty=new Qr("00000000-0000-0000-0000-000000000000");function wh(){return new Jr}st.v4=wh;var v0=/^[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 v0.test(e)}st.isUUID=kh;function x0(e){if(!kh(e))throw new Error("invalid uuid");return new Qr(e)}st.parse=x0;function P0(){return wh().asHex()}st.generateUuid=P0});var Ah=S(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.attachPartialResult=rn.ProgressFeature=rn.attachWorkDone=void 0;var nn=xe(),C0=hl(),Tn=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(nn.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(nn.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(nn.WorkDoneProgress.type,this._token,{kind:"end"})}};Tn.Instances=new Map;var es=class extends Tn{constructor(t,n){super(t,n),this._source=new nn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Xr=class{constructor(){}begin(){}report(){}done(){}},ts=class extends Xr{constructor(){super(),this._source=new nn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function _0(e,t){if(t===void 0||t.workDoneToken===void 0)return new Xr;let n=t.workDoneToken;return delete t.workDoneToken,new Tn(e,n)}rn.attachWorkDone=_0;var S0=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(nn.WorkDoneProgressCancelNotification.type,n=>{let r=Tn.Instances.get(n.token);(r instanceof es||r instanceof ts)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Xr:new Tn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,C0.generateUuid)();return this.connection.sendRequest(nn.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new es(this.connection,t))}else return Promise.resolve(new ts)}};rn.ProgressFeature=S0;var yl;(function(e){e.type=new nn.ProgressType})(yl||(yl={}));var bl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(yl.type,this._token,t)}};function T0(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new bl(e,n)}rn.attachPartialResult=T0});var Eh=S(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ConfigurationFeature=void 0;var R0=xe(),D0=ml(),w0=e=>class extends e{getConfiguration(t){return t?D0.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(R0.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};ns.ConfigurationFeature=w0});var Nh=S(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.WorkspaceFoldersFeature=void 0;var rs=xe(),k0=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new rs.Emitter,this.connection.onNotification(rs.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(rs.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(rs.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};is.WorkspaceFoldersFeature=k0});var Oh=S(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.CallHierarchyFeature=void 0;var vl=xe(),A0=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(vl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=vl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=vl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};os.CallHierarchyFeature=A0});var qh=S(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ShowDocumentFeature=void 0;var E0=xe(),N0=e=>class extends e{showDocument(t){return this.connection.sendRequest(E0.ShowDocumentRequest.type,t)}};ss.ShowDocumentFeature=N0});var jh=S(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.FileOperationsFeature=void 0;var br=xe(),O0=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(br.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(br.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(br.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(br.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(br.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(br.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};as.FileOperationsFeature=O0});var Mh=S(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.LinkedEditingRangeFeature=void 0;var q0=xe(),j0=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(q0.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};cs.LinkedEditingRangeFeature=j0});var Lh=S(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TypeHierarchyFeature=void 0;var xl=xe(),M0=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(xl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=xl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=xl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};us.TypeHierarchyFeature=M0});var Fh=S(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.InlineValueFeature=void 0;var Ih=xe(),L0=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)))}}};ls.InlineValueFeature=L0});var Wh=S(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.FoldingRangeFeature=void 0;var Uh=xe(),I0=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)))}}}};ps.FoldingRangeFeature=I0});var Bh=S(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.InlayHintFeature=void 0;var Pl=xe(),F0=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Pl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(Pl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(Pl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};ds.InlayHintFeature=F0});var Hh=S(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.DiagnosticFeature=void 0;var Zr=xe(),U0=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)))}}};fs.DiagnosticFeature=U0});var zh=S(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.MonikerFeature=void 0;var W0=xe(),B0=e=>class extends e{get moniker(){return{on:t=>{let n=W0.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};gs.MonikerFeature=B0});var oy=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var E=xe(),at=ml(),_l=hl(),H=Ah(),H0=Eh(),z0=Nh(),$0=Oh(),Y0=ll(),V0=qh(),K0=jh(),G0=Mh(),Q0=Lh(),J0=Fh(),X0=Wh(),Z0=Bh(),eS=Hh(),tS=gl(),nS=zh();function Cl(e){if(e!==null)return e}var Sl=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=Sl;var ms=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")})}},Tl=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(Cl)}showWarningMessage(t,...n){let r={type:E.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}showInformationMessage(t,...n){let r={type:E.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(E.ShowMessageRequest.type,r).then(Cl)}},$h=(0,V0.ShowDocumentFeature)((0,H.ProgressFeature)(Tl)),Yh;(function(e){function t(){return new hs}e.create=t})(Yh||(Q.BulkRegistration=Yh={}));var hs=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=at.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=_l.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 ei(void 0,[])}e.create=t})(Vh||(Q.BulkUnregistration=Vh={}));var ei=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=at.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}},ys=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 hs?this.registerMany(t):t instanceof ei?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=at.string(n)?n:n.method,o=_l.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=at.string(t)?t:t.method,i=_l.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 ei(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Rl=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,K0.FileOperationsFeature)((0,z0.WorkspaceFoldersFeature)((0,H0.ConfigurationFeature)(Rl))),bs=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(()=>{})}},vs=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")})}},xs=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,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=xs;var Gh=(0,X0.FoldingRangeFeature)((0,nS.MonikerFeature)((0,eS.DiagnosticFeature)((0,Z0.InlayHintFeature)((0,J0.InlineValueFeature)((0,Q0.TypeHierarchyFeature)((0,G0.LinkedEditingRangeFeature)((0,Y0.SemanticTokensFeature)((0,$0.CallHierarchyFeature)(xs))))))))),Ps=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,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=Ps;var Qh=(0,tS.NotebookSyncFeature)(Ps);function Jh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Jh;function Xh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Xh;function Zh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=Zh;function ey(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=ey;function ty(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=ty;function ny(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=ny;function ry(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=ry;function iy(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=iy;function rS(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)}}Q.combineFeatures=rS;function iS(e,t,n){let r=n&&n.console?new(n.console(ms)):new ms,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(bs)):new bs,s=n&&n.telemetry?new(n.telemetry(vs)):new vs,a=n&&n.client?new(n.client(ys)):new ys,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,h=n&&n.notebooks?new(n.notebooks(Qh)):new Qh,v=[r,o,s,a,c,u,d,h];function y(m){return m instanceof Promise?m:at.thenable(m)?new Promise((g,w)=>{m.then(Y=>g(Y),Y=>w(Y))}):Promise.resolve(m)}let R,I,K,W={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(at.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=at.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(E.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>(K=m,{dispose:()=>{K=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return u},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(E.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(E.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(E.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(E.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(E.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(E.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(E.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(E.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(E.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(E.HoverRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(E.CompletionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(E.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(E.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(E.DeclarationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(E.DefinitionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(E.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(E.ImplementationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(E.ReferencesRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(E.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(E.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(E.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(E.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(E.CodeActionRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(E.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(E.CodeLensRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(E.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(E.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(E.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(E.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(E.RenameRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(E.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(E.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(E.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(E.DocumentColorRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(E.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(E.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(E.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),(0,H.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(E.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,H.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(W);return i.onRequest(E.InitializeRequest.type,m=>{t.initialize(m),at.string(m.trace)&&(o.trace=E.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new E.CancellationTokenSource().token,(0,H.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof E.ResponseError)return w;let Y=w;Y||(Y={capabilities:{}});let X=Y.capabilities;X||(X={},Y.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=at.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None:!at.number(X.textDocumentSync)&&!at.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=at.number(W.__textDocumentSync)?W.__textDocumentSync:E.TextDocumentSyncKind.None);for(let ct of v)ct.fillServerCapabilities(X);return Y})}else{let g={capabilities:{textDocumentSync:E.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(E.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new E.CancellationTokenSource().token)}),i.onNotification(E.ExitNotification.type,()=>{try{K&&K()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(E.SetTraceNotification.type,m=>{o.trace=E.Trace.fromString(m.value)}),W}Q.createConnection=iS});var Dl=S(Ie=>{"use strict";var oS=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)&&oS(t,e,n)};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ProposedFeatures=Ie.NotebookDocuments=Ie.TextDocuments=Ie.SemanticTokensBuilder=void 0;var sS=ll();Object.defineProperty(Ie,"SemanticTokensBuilder",{enumerable:!0,get:function(){return sS.SemanticTokensBuilder}});var aS=_h();ay(xe(),Ie);var cS=dl();Object.defineProperty(Ie,"TextDocuments",{enumerable:!0,get:function(){return cS.TextDocuments}});var uS=gl();Object.defineProperty(Ie,"NotebookDocuments",{enumerable:!0,get:function(){return uS.NotebookDocuments}});ay(oy(),Ie);var sy;(function(e){e.all={__brand:"features",languages:aS.InlineCompletionFeature}})(sy||(Ie.ProposedFeatures=sy={}))});var uy=S((Rk,cy)=>{"use strict";cy.exports=xe()});var _s=S(At=>{"use strict";var lS=At&&At.__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=At&&At.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lS(t,e,n)};Object.defineProperty(At,"__esModule",{value:!0});At.createConnection=void 0;var Cs=Dl();py(uy(),At);py(Dl(),At);var ly=!1,pS={initialize:e=>{},get shutdownReceived(){return ly},set shutdownReceived(e){ly=e},exit:e=>{}};function dS(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Cs.ConnectionStrategy.is(e)||Cs.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=u=>(0,Cs.createProtocolConnection)(o,s,u,a);return(0,Cs.createConnection)(c,pS,i)}At.createConnection=dS});var on=S((wk,dy)=>{"use strict";dy.exports=_s()});var $l=S((SA,wy)=>{"use strict";function Et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Dy(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 lT(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 Pr={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=Dy(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=Dy(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?".":Pr.normalize(t)},relative:function(t,n){if(Et(t),Et(n),t===n||(t=Pr.resolve(t),n=Pr.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,u=o<c?o:c,d=-1,h=0;h<=u;++h){if(h===u){if(c>u){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>u&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(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 lT("/",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,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!u){a=d+1;break}continue}c===-1&&(u=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Pr.posix=Pr;wy.exports=Pr});import{createConfig as kd,loadConfig as Gx,loadIgnoreConfig as Qx,DEFAULT_CONFIG as Jx,IGNORE_FILE as Xx}from"@redocly/openapi-core";var Ql;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function q(P,_){for(var T,O="",M=0,N=-1,$=0,V=0;V<=P.length;++V){if(V<P.length)T=P.charCodeAt(V);else{if(T===47)break;T=47}if(T===47){if(!(N===V-1||$===1))if(N!==V-1&&$===2){if(O.length<2||M!==2||O.charCodeAt(O.length-1)!==46||O.charCodeAt(O.length-2)!==46){if(O.length>2){var Te=O.lastIndexOf("/");if(Te!==O.length-1){Te===-1?(O="",M=0):M=(O=O.slice(0,Te)).length-1-O.lastIndexOf("/"),N=V,$=0;continue}}else if(O.length===2||O.length===1){O="",M=0,N=V,$=0;continue}}_&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+P.slice(N+1,V):O=P.slice(N+1,V),M=V-N-1;N=V,$=0}else T===46&&$!==-1?++$:$=-1}return O}var j={resolve:function(){for(var P,_="",T=!1,O=arguments.length-1;O>=-1&&!T;O--){var M;O>=0?M=arguments[O]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(_=M+"/"+_,T=M.charCodeAt(0)===47)}return _=q(_,!T),T?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(P){if(b(P),P.length===0)return".";var _=P.charCodeAt(0)===47,T=P.charCodeAt(P.length-1)===47;return(P=q(P,!_)).length!==0||_||(P="."),P.length>0&&T&&(P+="/"),_?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,_=0;_<arguments.length;++_){var T=arguments[_];b(T),T.length>0&&(P===void 0?P=T:P+="/"+T)}return P===void 0?".":j.normalize(P)},relative:function(P,_){if(b(P),b(_),P===_||(P=j.resolve(P))===(_=j.resolve(_)))return"";for(var T=1;T<P.length&&P.charCodeAt(T)===47;++T);for(var O=P.length,M=O-T,N=1;N<_.length&&_.charCodeAt(N)===47;++N);for(var $=_.length-N,V=M<$?M:$,Te=-1,te=0;te<=V;++te){if(te===V){if($>V){if(_.charCodeAt(N+te)===47)return _.slice(N+te+1);if(te===0)return _.slice(N+te)}else M>V&&(P.charCodeAt(T+te)===47?Te=te:te===0&&(Te=0));break}var ut=P.charCodeAt(T+te);if(ut!==_.charCodeAt(N+te))break;ut===47&&(Te=te)}var un="";for(te=T+Te+1;te<=O;++te)te!==O&&P.charCodeAt(te)!==47||(un.length===0?un+="..":un+="/..");return un.length>0?un+_.slice(N+Te):(N+=Te,_.charCodeAt(N)===47&&++N,_.slice(N))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var _=P.charCodeAt(0),T=_===47,O=-1,M=!0,N=P.length-1;N>=1;--N)if((_=P.charCodeAt(N))===47){if(!M){O=N;break}}else M=!1;return O===-1?T?"/":".":T&&O===1?"//":P.slice(0,O)},basename:function(P,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');b(P);var T,O=0,M=-1,N=!0;if(_!==void 0&&_.length>0&&_.length<=P.length){if(_.length===P.length&&_===P)return"";var $=_.length-1,V=-1;for(T=P.length-1;T>=0;--T){var Te=P.charCodeAt(T);if(Te===47){if(!N){O=T+1;break}}else V===-1&&(N=!1,V=T+1),$>=0&&(Te===_.charCodeAt($)?--$==-1&&(M=T):($=-1,M=V))}return O===M?M=V:M===-1&&(M=P.length),P.slice(O,M)}for(T=P.length-1;T>=0;--T)if(P.charCodeAt(T)===47){if(!N){O=T+1;break}}else M===-1&&(N=!1,M=T+1);return M===-1?"":P.slice(O,M)},extname:function(P){b(P);for(var _=-1,T=0,O=-1,M=!0,N=0,$=P.length-1;$>=0;--$){var V=P.charCodeAt($);if(V!==47)O===-1&&(M=!1,O=$+1),V===46?_===-1?_=$:N!==1&&(N=1):_!==-1&&(N=-1);else if(!M){T=$+1;break}}return _===-1||O===-1||N===0||N===1&&_===O-1&&_===T+1?"":P.slice(_,O)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(_,T){var O=T.dir||T.root,M=T.base||(T.name||"")+(T.ext||"");return O?O===T.root?O+M:O+"/"+M:M})(0,P)},parse:function(P){b(P);var _={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return _;var T,O=P.charCodeAt(0),M=O===47;M?(_.root="/",T=1):T=0;for(var N=-1,$=0,V=-1,Te=!0,te=P.length-1,ut=0;te>=T;--te)if((O=P.charCodeAt(te))!==47)V===-1&&(Te=!1,V=te+1),O===46?N===-1?N=te:ut!==1&&(ut=1):N!==-1&&(ut=-1);else if(!Te){$=te+1;break}return N===-1||V===-1||ut===0||ut===1&&N===V-1&&N===$+1?V!==-1&&(_.base=_.name=$===0&&M?P.slice(1,V):P.slice($,V)):($===0&&M?(_.name=P.slice(1,N),_.base=P.slice(1,V)):(_.name=P.slice($,N),_.base=P.slice($,V)),_.ext=P.slice(N,V)),$>0?_.dir=P.slice(0,$-1):M&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var q=t[k]={exports:{}};return e[k](q,q.exports,n),q.exports}n.d=(k,b)=>{for(var q in b)n.o(b,q)&&!n.o(k,q)&&Object.defineProperty(k,q,{enumerable:!0,get:b[q]})},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="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,q,j,P,_,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(O,M){return O||M?O:"file"})(b,T),this.authority=q||u,this.path=(function(O,M){switch(O){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||u),this.query=P||u,this.fragment=_||u,c(this,T))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:q,authority:j,path:P,query:_,fragment:T}=b;return q===void 0?q=this.scheme:q===null&&(q=u),j===void 0?j=this.authority:j===null&&(j=u),P===void 0?P=this.path:P===null&&(P=u),_===void 0?_=this.query:_===null&&(_=u),T===void 0?T=this.fragment:T===null&&(T=u),q===this.scheme&&j===this.authority&&P===this.path&&_===this.query&&T===this.fragment?this:new R(q,j,P,_,T)}static parse(b,q=!1){let j=h.exec(b);return j?new R(j[2]||u,X(j[4]||u),X(j[5]||u),X(j[7]||u),X(j[9]||u),q):new R(u,u,u,u,u)}static file(b){let q=u;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(q=b.substring(2),b=d):(q=b.substring(2,j),b=b.substring(j)||d)}return new R("file",q,b,u,u)}static from(b){let q=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(q,!0),q}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let q=new R(b);return q._formatted=b.external,q._fsPath=b._sep===y?b.fsPath:null,q}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function K(k,b,q){let j,P=-1;for(let _=0;_<k.length;_++){let T=k.charCodeAt(_);if(T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===45||T===46||T===95||T===126||b&&T===47||q&&T===91||q&&T===93||q&&T===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j!==void 0&&(j+=k.charAt(_));else{j===void 0&&(j=k.substr(0,_));let O=I[T];O!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,_)),P=-1),j+=O):P===-1&&(P=_)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function W(k){let b;for(let q=0;q<k.length;q++){let j=k.charCodeAt(q);j===35||j===63?(b===void 0&&(b=k.substr(0,q)),b+=I[j]):b!==void 0&&(b+=k[q])}return b!==void 0?b:k}function m(k,b){let q;return q=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&&(q=q.replace(/\//g,"\\")),q}function g(k,b){let q=b?W:K,j="",{scheme:P,authority:_,path:T,query:O,fragment:M}=k;if(P&&(j+=P,j+=":"),(_||P==="file")&&(j+=d,j+=d),_){let N=_.indexOf("@");if(N!==-1){let $=_.substr(0,N);_=_.substr(N+1),N=$.lastIndexOf(":"),N===-1?j+=q($,!1,!1):(j+=q($.substr(0,N),!1,!1),j+=":",j+=q($.substr(N+1),!1,!0)),j+="@"}_=_.toLowerCase(),N=_.lastIndexOf(":"),N===-1?j+=q(_,!1,!0):(j+=q(_.substr(0,N),!1,!0),j+=_.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)}`)}j+=q(T,!0,!1)}return O&&(j+="?",j+=q(O,!1,!1)),M&&(j+="#",j+=b?M:K(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(Y)?k.replace(Y,(b=>w(b))):k}var ct=n(975);let Ut=ct.posix||ct,cn="/";var Dn;(function(k){k.joinPath=function(b,...q){return b.with({path:Ut.join(b.path,...q)})},k.resolvePath=function(b,...q){let j=b.path,P=!1;j[0]!==cn&&(j=cn+j,P=!0);let _=Ut.resolve(j,...q);return P&&_[0]===cn&&!b.authority&&(_=_.substring(1)),b.with({path:_})},k.dirname=function(b){if(b.path.length===0||b.path===cn)return b;let q=Ut.dirname(b.path);return q.length===1&&q.charCodeAt(0)===46&&(q=""),b.with({path:q})},k.basename=function(b){return Ut.basename(b.path)},k.extname=function(b){return Ut.extname(b.path)}})(Dn||(Dn={})),Ql=r})();var{URI:ht,Utils:re}=Ql;import{isBrowser as lb}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as ub}from"@redocly/openapi-core";var Bs={languageId:"yaml",filePattern:/\.ya?ml$/i},Hs={languageId:"json",filePattern:/\.json$/i},Ws=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Bs,Hs];this.registerConfigFinder(async t=>{if(this._fs)try{let n=re.resolvePath(re.dirname(Ue(t)),ub);return await this._fs.exists(n)?qe(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}},de=new Ws;function zs(e,t){let n=r=>re.resolvePath(Ue(Nt(r))).toString();return n(e)===n(t)}function Ue(e){return ht.parse(e)}function Nt(e){return e.startsWith("file://")?e:ht.file(e).toString()}function qe(e){let t=ht.parse(e).fsPath;return lb&&t.startsWith("/")?t.slice(1):t}function Sr(e){let t=["https","http"],{scheme:n}=ht.parse(e);return t.includes(n)}function Tr(e){return re.basename(Ue(e))}async function Jl(e,t="/"){let n=re.resolvePath(Ue(t));for(;e.path!=="/";)try{(await de.fs.stat(re.resolvePath(n,e.path))).isDirectory()||(e=re.dirname(e));break}catch{e=re.dirname(e)}return e}import{BaseResolver as Vx,Source as wd,readFileFromUrl as Kx,isAbsoluteUrl as xa}from"@redocly/openapi-core";var di=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=ep(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=Xl(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)u[v+a+1]=d[v];else d.length<1e4?u.splice(a+1,c-a,...d):this._lineOffsets=u=u.slice(0,a+1).concat(d,u.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=u.length;v<y;v++)u[v]=u[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Xl(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&&Zl(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}},fi;(function(e){function t(i,o,s,a){return new di(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof di)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(pb),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,u=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&u.push(s.substring(c,h)),d.newText.length&&u.push(d.newText),c=i.offsetAt(d.range.end)}return u.push(s.substr(c)),u.join("")}e.applyEdits=r})(fi||(fi={}));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 Xl(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Zl(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Zl(e){return e===13||e===10}function ep(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 pb(e){let t=ep(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Ti=Oe(jn(),1),Rd=new Map;function Dd(e,t){return Rd.set(e,t)}function va(e){let t=[];for(let[n,r]of Rd.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=de.documents.get(e);if(t)return t;let n=await de.fs.readFile(Ue(e),"utf-8");return fi.create(e,"yaml",1,n)}function Ar(e){return Hs.filePattern.test(e)}function Ri(e){return Bs.filePattern.test(e)}function mn({uri:e,ast:t,textDocument:n}){if(!(Ri(e)&&/entit(y|ies)\.ya?ml$/i.test(e)))return!1;if(n){let i=n.getText();t=Ti.safeLoad(i,{filename:e})}if(t?.kind===Ti.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 vt=class extends Vx{resolveExternalRef(t,n){return xa(n)?n:t&&xa(t)?new URL(n,t).href:t?re.resolvePath(re.dirname(Ue(Nt(t))),n).toString():n}async loadExternalRef(t){if(Sr(t)){let{body:i,mimeType:o}=await Kx(t,{...this.config.http,customFetch:fetch});return new wd(t,i,o)}let n=Nt(t),r=xa(t)?qe(t):t;return new wd(r,(await Qe(n)).getText())}};var jt;async function Di(e,t){try{let n=new vt,r=e?await de.findConfig(e):void 0;if(r===void 0){let i=await Qx(r,n);return jt=await kd(Jx,{externalRefResolver:n,ignore:i}),jt}jt=await Gx({configPath:r,externalRefResolver:n})}catch(n){t?.createEventHandleLoadConfigError?.(n?.message),jt=await kd({})}return jt}async function Mn(e){return jt||await Di(e)}async function hn(e){return await Pa(e)?!0:!!jt?.resolvedRefMap&&[...jt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>zs(Tr(Nt(e)),n))}async function Pa(e){let t=await de.findConfig(e);return t?zs(e,t):!1}function Zx(e){return e.endsWith(Xx)}var Ad={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Er={type:"object",properties:Ad,additionalProperties:!1},eP={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},xt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},Ad),{like:Er,dislike:Er,satisfied:Er,neutral:Er,dissatisfied:Er}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:eP},additionalProperties:!1}},additionalProperties:!1};var tP={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Nr={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ln={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:xt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Nr,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:tP,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var In={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},nP={type:"object",properties:{name:{type:"string"},items:In,queries:In,mutations:In,subscriptions:In,types:In,directives:In},required:["name"],additionalProperties:!1},rP={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:nP},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},iP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},oP={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},sP={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:iP,license:oP},additionalProperties:!1},Fn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},rP.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Nr,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:xt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:sP},additionalProperties:!1};var Ed={type:"object",properties:{downloadUrls:Nr,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:xt,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1};var aP={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},cP={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"]},uP={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"}}},wi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},lP={type:"object",properties:Ni(yn.properties,["light","dark"])},pP={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"}}},dP={type:"object",properties:{error:wi,info:wi,redirect:wi,success:wi}},fP={type:"object",properties:Un(yn.properties,["dark"])},gP={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},mP={type:"object",properties:{accent:yn,border:lP,error:yn,http:pP,primary:yn,responses:dP,secondary:fP,success:yn,text:gP,tonalOffset:{type:"number"},warning:yn}},ki={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},hP={type:"object",properties:{small:ki,medium:ki,large:ki,xlarge:ki}},Pt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},yP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:hP})},Od={type:"object",properties:Ni(Pt.properties,["fontSize","lineHeight"])},bP={type:"object",properties:{medium:Od,small:Od}},vP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:bP})},xP={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},PP={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},qd={type:"object",properties:{fullWidth:{type:"boolean"}}},CP={type:"object",properties:{buttons:yP,httpBadges:vP,layoutControls:xP,panels:PP,tryItButton:qd,tryItSendButton:qd}},Ei={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},_P={type:"object",properties:{maxWidth:Ei}},SP={type:"object",properties:{maxWidth:Ei,middlePanelMaxWidth:Ei}},TP={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:_P,"three-panel":SP}},jd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},RP={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:jd,defaultDetailsWidth:{type:"string"},examples:jd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Ld={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},DP={type:"object",properties:Ni(Ld.properties,["textTransform"])},wP={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},kP={type:"object",properties:Object.assign(Object.assign({},Un(Pt.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:Ld,level1items:DP,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:wP,textColor:{type:"string"},width:{type:"string"}})},Ai={type:"object",properties:Object.assign(Object.assign({},Pt.properties),{color:{type:"string"},transform:{type:"string"}})},AP={type:"object",properties:Object.assign(Object.assign({},Pt.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"}})},EP={type:"object",properties:Un(Pt.properties,["fontSize"])},NP={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},OP={type:"object",properties:Object.assign(Object.assign({code:AP,fieldName:Pt},Ni(Pt.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Ai,heading2:Ai,heading3:Ai,headings:EP,lineHeight:{type:"string"},links:NP,optimizeSpeed:{type:"boolean"},rightPanelHeading:Ai,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},qP={type:"object",properties:Object.assign({color:{type:"string"}},Un(Pt.properties,["fontWeight"]))},jP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:qP}},MP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},LP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Md={type:"object",properties:{custom:{type:"string"}}},IP={type:"object",properties:{DownloadButton:Md,NextSectionButton:Md}},FP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},UP={type:"object",properties:{borderRadius:{type:"string"}}},WP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},BP={type:"object",properties:{breakpoints:Ei,codeBlock:jP,colors:mP,components:CP,layout:TP,logo:MP,fab:LP,overrides:IP,rightPanel:FP,schema:RP,shape:UP,sidebar:kP,spacing:WP,typography:OP,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},HP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:aP}},required:["languages"]},Ca={type:"object",properties:{theme:BP,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:HP,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:cP,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:uP,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 Ni(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function Un(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Ct={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 zP={rules:Ct,oas2Rules:Ct,oas3_0Rules:Ct,oas3_1Rules:Ct,oas3_2Rules:Ct,async2Rules:Ct,async3Rules:Ct,arazzo1Rules:Ct,overlay1Rules:Ct,openrpc1Rules:Ct};var _t={nodeTypeName:void 0,type:"object",additionalProperties:!0},$P={preprocessors:_t,oas2Preprocessors:_t,oas3_0Preprocessors:_t,oas3_1Preprocessors:_t,oas3_2Preprocessors:_t,async2Preprocessors:_t,async3Preprocessors:_t,arazzo1Preprocessors:_t,overlay1Preprocessors:_t,openrpc1Preprocessors:_t},St={nodeTypeName:void 0,type:"object",additionalProperties:!0};var YP={decorators:St,oas2Decorators:St,oas3_0Decorators:St,oas3_1Decorators:St,oas3_2Decorators:St,async2Decorators:St,async3Decorators:St,arazzo1Decorators:St,overlay1Decorators:St,openrpc1Decorators:St},VP={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"},bn=Object.assign(Object.assign(Object.assign(Object.assign({},zP),YP),$P),{extends:VP});var Oi=e=>e;var Je=Oi({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"});var De={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Id={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},_a={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Sa={type:"array",items:Object.assign(Object.assign({},_a),{properties:Object.assign(Object.assign({},_a.properties),{items:{type:"array",items:_a}})})},KP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},GP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},QP={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}},JP={type:"object",properties:Object.assign({facets:QP},De.properties),additionalProperties:!1},XP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},qi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},ji={type:"object",properties:Object.assign({items:Sa},De.properties),additionalProperties:!1},Mi={type:"object",additionalProperties:KP},Li={type:"object",properties:Object.assign({items:Sa,copyrightText:{type:"string"},logo:De},De.properties),additionalProperties:!1},Ii={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},De.properties),additionalProperties:!1},Fi={type:"object",properties:{head:{type:"array",items:Id},body:{type:"array",items:Id}},additionalProperties:!1},Ui={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}},Wi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:GP,filters:JP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:XP}},De.properties),additionalProperties:!1},Bi={type:"object",properties:{hide:{type:"boolean"},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean",default:!1},inputType:{type:"string",enum:["button","icon"],default:"button"},inputIcon:{type:"string",enum:["chat","sparkles","redocly"],default:"sparkles"}},additionalProperties:!1}},additionalProperties:!1},Hi={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},De.properties),additionalProperties:!1},Wn={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},ZP={type:"object",properties:Object.assign(Object.assign({},De.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]},default:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}),additionalProperties:!1},zi={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},De.properties),additionalProperties:!1,default:{}},actions:ZP},additionalProperties:!1},$i={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},De.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},De.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Yi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},De.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},De.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},De.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},Bn=Object.assign(Object.assign({},Ln),{properties:Object.assign(Object.assign({},Ln.properties),Ca.properties)}),tD=Object.assign(Object.assign({},Ln),{properties:Object.assign(Object.assign({},Ln.properties),Ca.properties)}),eC={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},tC={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"]},nC={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},rC={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},iC={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"]},oC={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},sC={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Ta={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"]},aC={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:Ta}},additionalProperties:!1,required:["trackingId"]},Vi={type:"object",properties:{adobe:eC,amplitude:tC,fullstory:nC,heap:rC,rudderstack:iC,segment:oC,gtm:sC,ga:aC}},Ki={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},De.properties),additionalProperties:!1},Gi={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Qi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},cC={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},uC={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:cC},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Sa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Hn={type:"object",patternProperties:{".*":uC}},zn={nodeTypeName:Je.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",default:!1},teamMetadataProperty:{nodeTypeName:Je.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:Je.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Je.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:Object.assign({name:{type:"string"},color:{type:"string"}},bn),additionalProperties:!1}},targets:{nodeTypeName:Je.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Je.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Je.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:Je.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var lC={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},pC={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},dC={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Mt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:pC},excludes:{type:"array",items:lC},filters:{type:"array",items:dC},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},fC={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},gC={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:fC},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},mC={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:gC,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},hC={type:"object",additionalProperties:mC},Ji={type:"object",properties:{show:{type:"boolean",default:!1},entityTypes:hC,catalogs:{type:"object",properties:{all:Mt,services:Mt,domains:Mt,teams:Mt,users:Mt,apiDescriptions:Mt,dataSchemas:Mt,apiOperations:Mt},additionalProperties:Mt}},additionalProperties:!1};var Fd={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Da={type:"string",enum:["and","or"]},Ra={type:"object",properties:{field:{type:"string"},operator:Fd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fd,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},yC={type:"object",properties:{operator:Da,conditions:{type:"array",items:Ra}},required:["operator","conditions"],additionalProperties:!1},Ud={type:"array",items:{oneOf:[Ra,{type:"object",properties:{operator:Da,conditions:{type:"array",items:{oneOf:[Ra,yC]}}},required:["operator","conditions"],additionalProperties:!1}]}},Bd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{}},additionalProperties:!1},bC={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:Bd},required:["subject","assertions"],additionalProperties:!1}},vC={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:Bd,where:bC,weight:{type:"number",default:1}},required:["subject","assertions"],additionalProperties:!1},xC={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number",default:1}},additionalProperties:!0},vC]}},PC={type:"object",properties:{name:{type:"string"},extends:bn.extends,rules:xC},required:["name"],additionalProperties:!1},Wd={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},CC={oneOf:[Wd,{type:"array",items:Wd}]},_C={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ud,{type:"object",properties:{operator:Da,conditions:Ud},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:PC,minItems:1},trigger:CC},required:["name","key","entities","levels"],additionalProperties:!1},Xi={type:"array",items:_C};var tt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:qi,navbar:ji,products:Mi,footer:Li,sidebar:Ii,scripts:Fi,links:Ui,feedback:xt,search:Wi,aiAssistant:Bi,colorMode:Hi,palette:Wn,navigation:zi,codeSnippet:$i,markdown:Yi,openapi:Bn,asyncapi:Ed,graphql:Fn,analytics:Vi,userMenu:Ki,versionPicker:Gi,breadcrumbs:Qi,catalog:Hn,entitiesCatalog:Ji,catalogClassic:Hn,scorecard:zn,scorecardClassic:zn,scorecards:Xi},additionalProperties:!0};var ka="https://redocly.com/sso/teams",$n;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})($n||($n={}));var Yn;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(Yn||(Yn={}));var wa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(wa||(wa={}));function Zi(e,t,n){return Object.fromEntries(Object.entries(e).map(([r,i])=>{if(!(r===t&&n!=="properties"))return typeof i!="object"||!i?[r,i]:Array.isArray(i)?[r,i.map(o=>typeof o=="object"?Zi(o,t,r):o)]:[r,Zi(i,t,r)]}).filter(Boolean))}var SC={type:"object",additionalProperties:{type:"string"}},TC={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},eo={type:"string",enum:["error","warn","off"]},RC={type:"object",additionalProperties:!1,properties:{schemaCheck:eo,statusCodeCheck:eo,contentTypeCheck:eo,successCriteriaCheck:eo}},DC={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},wC={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},kC={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Hd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[DC,wC]},inputs:SC,servers:TC,severity:RC,slo:kC},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var AC={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},EC={type:"object",properties:{type:{type:"string",const:$n.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:AC,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},NC={type:"object",properties:{type:{type:"string",const:$n.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ka},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},OC={oneOf:[EC,NC],discriminator:{propertyName:"type"}},qC={type:"object",additionalProperties:OC},Vd={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},Kd={type:"boolean"},Gd={type:"string",pattern:"^https?://.*"},Qd={type:"string",pattern:"^https?://.*"},jC={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1,nodeTypeName:Je.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},MC={type:"object",additionalProperties:jC,default:{},nodeTypeName:Je.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"},LC={type:"string",enum:["info","success","warning","error"],default:"info"},ee={type:"object",additionalProperties:{type:"string"}},IC={type:"object",properties:{content:{type:"string"},dismissible:{type:"boolean",default:!1},target:{type:"string"},color:LC,rbac:ee},required:["content"],additionalProperties:!1},FC={type:"array",items:IC,default:[]},Ea={type:"object",properties:Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:ee,openapi:Bn,graphql:Fn,theme:{type:"object",properties:{openapi:Bn,graphql:Fn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},bn),required:["root"]},UC={type:"object",additionalProperties:!0},WC={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},$d={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:zd},default:{llmstxt:zd.default},additionalProperties:!1},BC={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},HC={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},Na={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},additionalProperties:!1},content:{type:"object",properties:{"**":ee},additionalProperties:ee},entitiesCatalog:HC},additionalProperties:ee},zC={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},$C={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},YC={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[zC,$C]}},additionalProperties:!1,required:["type","apiBaseUrl"]},VC={type:"object",properties:{type:{type:"string",const:Yn.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},KC={type:"object",properties:{type:{type:"string",const:Yn.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Aa={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[VC,KC],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},GC=Object.assign(Object.assign({},Aa),{properties:Object.assign(Object.assign({},Aa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),QC={type:"object",oneOf:[Aa,GC,YC],discriminator:{propertyName:"type"}},JC={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:QC}}},Yd={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"]},XC={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ZC={type:"object",properties:{hide:{type:"boolean",default:!1},docs:{type:"object",properties:{hide:{type:"boolean",default:!1},name:{type:"string",default:"Docs MCP server"},ignore:{type:"array",items:{type:"string"},default:[]}},additionalProperties:!1}},additionalProperties:!1,default:{hide:!1,docs:{hide:!1,name:"MCP server",ignore:[]}}},e_={type:"object",properties:{requiresLogin:Kd,logoutReturnUrl:Gd,residency:Qd,sso:Vd,rbac:Na},additionalProperties:!1},Or={type:"object",properties:Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:MC,seo:$d,rbac:Na,apiFunctions:BC,requiresLogin:Kd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:XC}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Ea}},bn),{ssoDirect:qC,sso:Vd,residency:Qd,logoutReturnUrl:Gd,access:e_,developerOnboarding:JC,removeAttribution:{type:"boolean"},i18n:Yd,l10n:Yd,metadata:UC,metadataGlobs:WC,ignore:{type:"array",items:{type:"string"}},theme:tt,reunite:Hd,logo:qi,navbar:ji,products:Mi,footer:Li,sidebar:Ii,scripts:Fi,links:Ui,feedback:xt,search:Wi,aiAssistant:Bi,colorMode:Hi,palette:Wn,navigation:zi,codeSnippet:$i,markdown:Yi,openapi:Bn,graphql:Fn,analytics:Vi,userMenu:Ki,versionPicker:Gi,breadcrumbs:Qi,catalog:Hn,entitiesCatalog:Ji,catalogClassic:Hn,scorecard:zn,scorecardClassic:zn,scorecards:Xi,mcp:ZC,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:FC}),default:{redirects:{},seo:$d.default},additionalProperties:!0},t_=Object.assign(Object.assign({},Zi(Or,"default")),{additionalProperties:!1}),Oa=Object.assign(Object.assign({$id:"root-redocly-config"},Or),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},Or.properties),{env:{type:"object",additionalProperties:t_}}),default:{},additionalProperties:!1});var qa={type:"object",properties:{logo:tt.properties.logo,navbar:tt.properties.navbar,footer:tt.properties.footer,sidebar:tt.properties.sidebar,search:tt.properties.search,codeSnippet:tt.properties.codeSnippet,breadcrumbs:tt.properties.breadcrumbs,openapi:tt.properties.openapi,feedback:tt.properties.feedback,palette:Wn,mockServer:Or.properties.mockServer,analytics:{type:"object",properties:{ga:Ta}}},additionalProperties:!0,default:{}},n_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},qa.properties),{apis:{type:"object",additionalProperties:Ea},theme:qa}),additionalProperties:!1};var ja=["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"],fe=Oi({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"});var r_={type:"object",nodeTypeName:fe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},i_={type:"object",nodeTypeName:fe.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},o_={type:"object",nodeTypeName:fe.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},s_={type:"object",nodeTypeName:fe.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},a_={type:"object",properties:{},nodeTypeName:fe.EntityMetadata,additionalProperties:!0},c_={type:"object",nodeTypeName:fe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},u_={type:"object",nodeTypeName:fe.EntitySlackContact,properties:{channels:{type:"array",items:c_}},required:["channels"],additionalProperties:!1},l_={type:"object",nodeTypeName:fe.EntityContact,properties:{slack:u_},additionalProperties:!1},p_={type:"object",nodeTypeName:fe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",nodeTypeName:fe.EntityRelation,properties:{type:{type:"string",enum:ja},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},$t={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:l_,links:{type:"array",nodeTypeName:fe.EntityLinkList,items:p_},relations:{type:"array",nodeTypeName:fe.EntityRelationList,items:d_},metadata:a_},to={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},$t),{type:{const:"user"},metadata:r_}),required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:fe.UserEntity},{type:"object",nodeTypeName:fe.ApiOperationEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"api-operation"},metadata:o_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.DataSchemaEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"data-schema"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.ApiDescriptionEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"api-description"},metadata:i_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:fe.ServiceEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"service"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:fe.DomainEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"domain"}}),required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:fe.TeamEntity,properties:Object.assign(Object.assign({},$t),{type:{const:"team"}}),required:["key","title","type"],additionalProperties:!1}]},no={type:"object",nodeTypeName:fe.Entity,properties:Object.assign({},$t),required:["key","title","type"],additionalProperties:!1};var We=Oe(on(),1);import{getLineColLocation as DS,lintDocument as wS,makeDocumentFromString as Rs,lintConfig as kS,lintEntityFile as AS,detectSpec as ES,createConfigTypes as NS}from"@redocly/openapi-core";var Ss=Oe(jn(),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),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(u.uri,setTimeout(()=>a(u),t-h));else if(r.delete(u.uri),i.delete(u.uri),!n){let v=s.get(u.uri),y=e(o.get(u.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(u.uri)}}catch(v){let y=s.get(u.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(u.uri)}}function c(u){let d=r.get(u.uri),h=n&&!d;return i.set(u.uri,Date.now()),o.set(u.uri,u),new Promise((v,y)=>{let R=s.get(u.uri)||[];d||(s.set(u.uri,[...R,{resolve:v,reject:y}]),r.set(u.uri,setTimeout(()=>a(u),t))),h?v(e(o.get(u.uri))):s.set(u.uri,[...R,{resolve:v,reject:y}])})}return c}function wl(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 kl(e,t){return e?re.dirname(ht.file(e)).toString():t}async function Al(e,t){let n=ht.parse(t);return re.joinPath(n,e).toString()}async function my(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Al(i,n)===t)return r}function hy(e){return typeof e=="string"}function ti(e){return typeof e=="function"}function yy(e){return e?.kind===Ss.Kind.MAP}function El(e){return e?.kind===Ss.Kind.MAPPING}function Nl(e){return e?.kind===Ss.Kind.SEQ}function ni(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}import{bundleDocument as fS,isPlainObject as gS,makeDocumentFromString as mS,getTypes as hS,detectSpec as yS}from"@redocly/openapi-core";var by=new Map,Ts=new Map;function bS(e){return e?Array.from(e).map(([t,n])=>[t,wl(n)]):[]}async function Ol(e,t){let n=await Mn(),r=new vt(n.resolve),i=mS(e.getText(),e.uri),{bundle:o,rootType:s,refTypes:a}=await fS({document:i,config:n,externalRefResolver:r,types:hS(yS(i.parsed))}),c=bS(a);a&&(Ts=new Map([...Ts,...a])),by.set(e.uri,{uri:e.uri,name:Tr(e.uri),definition:gS(o.parsed)?o.parsed:{},rootType:s,refTypes:c,errors:t})}function vS(){return Array.from(by).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:Tr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ql(e){return Ts.has(e)?Ts.get(e):null}import{createConfig as vy,lintDocument as xS,loadIgnoreConfig as PS,regexFromString as CS}from"@redocly/openapi-core";async function xy(e,t,n,r,i,o){let s=[],a=await PS(r,t),c=typeof i=="string"?await _S(i):i,u={};if(n.targets?.length){let d=e.parsed?.info,h=d?.["x-metadata"]||{},v={title:d?.title,version:d?.version,...h,...o},y=TS(n.targets,v);y?.rules&&r&&(u=await SS(e.source.absoluteRef,y.rules,n.levels,c,r,a))}for(let d of n?.levels||[]){let h=u[d.name]??await vy({...d,plugins:c},{configPath:r,ignore:a}),v=await xS({document:e,externalRefResolver:t,config:h});s.push(...v.filter(({ignored:y})=>!y).map(y=>({...y,scorecardLevel:d.name})))}return s}async function _S(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
70
70
  Plugins code preview:`,e.substring(0,500)+"..."),[]}}async function SS(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 TS(e,t){if(e){for(let n of e)if(Object.entries(n.where?.metadata||{}).every(([i,o])=>RS(i,o,t)))return n}}function RS(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 CS(t).test(n[e])}catch(r){return console.error(`Invalid regex in scorecard target: ${t}`,r),!1}}return n[e]===t}var OS=800,Ml=fy(LS,OS);async function qS(e){let t=e.map(({documentPath:o})=>Ue(o).toString()),n=await Mn(),r=await de.getRootWorkspaceFolderURI(),i=kl(n.configPath,r);for(let{root:o}of Object.values(n.resolvedConfig.apis??{})){let s=await Al(o,i);if(t.includes(s))return s}return t[0]}function jS(e){try{return ES(e),!0}catch{return!1}}async function MS(e){try{let t=Rs(e.getText(),e.uri),n=new vt,r=await AS({document:t,entitySchema:to,entityDefaultSchema:no,externalRefResolver:n}),i=[{uri:e.uri,diagnostics:[]}];return jl(r,i),i}catch{return[{uri:e.uri,diagnostics:[]}]}}async function LS(e){let t=e.uri,n=await Mn();if(await hn(qe(t)))try{let r=await Pa(qe(t))?Rs(e.getText(),t):Rs(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new vt,o=await kS({config:{document:r},externalRefResolver:i,externalConfigTypes:NS(Oa,n)}),s=[{uri:e.uri,diagnostics:[]}];return jl(o,s),s}catch{return[{uri:e.uri,diagnostics:[]}]}else{if(mn({uri:qe(t),textDocument:e}))return await MS(e);{let r=va(t),i=await qS(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=Rs(e.getText(),qe(t))}catch{return[{uri:e.uri,diagnostics:[]}]}if(!jS(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new vt(n.resolve),c=await de.getRootWorkspaceFolderURI(),u=kl(n.configPath,c),d=await my(n.resolvedConfig.apis??{},e.uri,u),h=Date.now(),v=[],y=[];try{y=(await wS({document:o,config:n.forAlias(d),externalRefResolver:a})).filter(({ignored:w})=>!w);let W=de.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecardClassic||n.resolvedConfig.scorecard,m=d?n.resolvedConfig.apis?.[d]?.metadata:void 0,g=W&&de.scorecardStatus==="enabled"?await xy(o,a,W,n.configPath,de.remoteScorecardAndPlugins?.plugins,m):[];v=[...y,...g]}catch(W){v.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${W.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let R=WS(y);Ol(e,R);let I=Date.now()-h;s=[...new Set([e.uri,...[...a.getFiles()].map(W=>Ue(W).toString())])].map(W=>({uri:W,diagnostics:[]})),Dd(t,{dependencyPaths:a.getFiles(),durationMS:I}),jl(v,s)}catch(a){IS(e.uri,a,s)}return s}}}function ri(){return de.documents.all().map(Ml)}function IS(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);Py(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Py(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 FS(e){return e.suggest.length===0?"":e.suggest.length===1?`
71
71
  Did you mean: ${e.suggest[0]} ?`:`
72
72
  Did you mean:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-language-server",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Redocly OpenAPI language server",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "vscode-languageserver": "^9.0.1",
25
25
  "vscode-languageserver-textdocument": "^1.0.12",
26
26
  "vscode-uri": "^3.1.0",
27
- "@redocly/config": "0.46.1"
27
+ "@redocly/config": "0.47.0"
28
28
  },
29
29
  "overrides": {
30
30
  "@redocly/config": "workspace:*"