@redocly/openapi-language-server 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/lib/index.d.ts +0 -658
package/lib/index.js
CHANGED
|
@@ -66,7 +66,7 @@ ${JSON.stringify(d,null,4)}`);let _=d;if(ue.string(_.id)||ue.number(_.id)){let A
|
|
|
66
66
|
`,`\r
|
|
67
67
|
`,"\r"];(function(e){function t(o,s,a,c){return new Tu(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,(p,h)=>{let v=p.range.start.line-h.range.start.line;return v===0?p.range.start.character-h.range.start.character:v}),l=a.length;for(let p=c.length-1;p>=0;p--){let h=c[p],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=l)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");l=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);let p=0,h=0,v=0;for(;p<c.length&&h<l.length;)s(c[p],l[h])<=0?o[v++]=c[p++]:o[v++]=l[h++];for(;p<c.length;)o[v++]=c[p++];for(;h<l.length;)o[v++]=l[h++];return o}})(wu||(wu={}));Tu=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
|
|
68
68
|
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
69
|
-
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function p(y){return t.call(y)==="[object Function]"}e.func=p;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=D(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Gn=un(),ef;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(ef||(He.MessageDirection=ef={}));var ku=class{constructor(t){this.method=t}};He.RegistrationType=ku;var Au=class extends Gn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Au;var Ou=class extends Gn.RequestType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolRequestType=Ou;var Nu=class extends Gn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Nu;var qu=class extends Gn.NotificationType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolNotificationType=qu});var mo=D(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function w_(e){return e===!0||e===!1}ve.boolean=w_;function tf(e){return typeof e=="string"||e instanceof String}ve.string=tf;function T_(e){return typeof e=="number"||e instanceof Number}ve.number=T_;function k_(e){return e instanceof Error}ve.error=k_;function A_(e){return typeof e=="function"}ve.func=A_;function nf(e){return Array.isArray(e)}ve.array=nf;function O_(e){return nf(e)&&e.every(t=>tf(t))}ve.stringArray=O_;function N_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=N_;function q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=q_});var sf=D(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.ImplementationRequest=void 0;var rf=se(),of;(function(e){e.method="textDocument/implementation",e.messageDirection=rf.MessageDirection.clientToServer,e.type=new rf.ProtocolRequestType(e.method)})(of||(ho.ImplementationRequest=of={}))});var uf=D(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.TypeDefinitionRequest=void 0;var af=se(),cf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=af.MessageDirection.clientToServer,e.type=new af.ProtocolRequestType(e.method)})(cf||(yo.TypeDefinitionRequest=cf={}))});var pf=D(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var bo=se(),lf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType0(e.method)})(lf||(Kn.WorkspaceFoldersRequest=lf={}));var df;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(df||(Kn.DidChangeWorkspaceFoldersNotification=df={}))});var mf=D(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ConfigurationRequest=void 0;var ff=se(),gf;(function(e){e.method="workspace/configuration",e.messageDirection=ff.MessageDirection.serverToClient,e.type=new ff.ProtocolRequestType(e.method)})(gf||(vo.ConfigurationRequest=gf={}))});var bf=D(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var xo=se(),hf;(function(e){e.method="textDocument/documentColor",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(hf||(Qn.DocumentColorRequest=hf={}));var yf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(yf||(Qn.ColorPresentationRequest=yf={}))});var Pf=D(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var Po=se(),vf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(vf||(Jn.FoldingRangeRequest=vf={}));var xf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(xf||(Jn.FoldingRangeRefreshRequest=xf={}))});var Df=D(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DeclarationRequest=void 0;var _f=se(),Cf;(function(e){e.method="textDocument/declaration",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(_o.DeclarationRequest=Cf={}))});var wf=D(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.SelectionRangeRequest=void 0;var Sf=se(),Rf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Sf.MessageDirection.clientToServer,e.type=new Sf.ProtocolRequestType(e.method)})(Rf||(Co.SelectionRangeRequest=Rf={}))});var Of=D(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.WorkDoneProgressCancelNotification=Ut.WorkDoneProgressCreateRequest=Ut.WorkDoneProgress=void 0;var E_=un(),Do=se(),Tf;(function(e){e.type=new E_.ProgressType;function t(n){return n===e.type}e.is=t})(Tf||(Ut.WorkDoneProgress=Tf={}));var kf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Do.MessageDirection.serverToClient,e.type=new Do.ProtocolRequestType(e.method)})(kf||(Ut.WorkDoneProgressCreateRequest=kf={}));var Af;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Do.MessageDirection.clientToServer,e.type=new Do.ProtocolNotificationType(e.method)})(Af||(Ut.WorkDoneProgressCancelNotification=Af={}))});var jf=D(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.CallHierarchyOutgoingCallsRequest=Wt.CallHierarchyIncomingCallsRequest=Wt.CallHierarchyPrepareRequest=void 0;var Xn=se(),Nf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Nf||(Wt.CallHierarchyPrepareRequest=Nf={}));var qf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(qf||(Wt.CallHierarchyIncomingCallsRequest=qf={}));var Ef;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Ef||(Wt.CallHierarchyOutgoingCallsRequest=Ef={}))});var Wf=D(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var St=se(),Mf;(function(e){e.Relative="relative"})(Mf||(ze.TokenFormat=Mf={}));var Lr;(function(e){e.method="textDocument/semanticTokens",e.type=new St.RegistrationType(e.method)})(Lr||(ze.SemanticTokensRegistrationType=Lr={}));var Lf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=St.MessageDirection.clientToServer,e.type=new St.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Lf||(ze.SemanticTokensRequest=Lf={}));var If;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=St.MessageDirection.clientToServer,e.type=new St.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(If||(ze.SemanticTokensDeltaRequest=If={}));var Ff;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=St.MessageDirection.clientToServer,e.type=new St.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Ff||(ze.SemanticTokensRangeRequest=Ff={}));var Uf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=St.MessageDirection.serverToClient,e.type=new St.ProtocolRequestType0(e.method)})(Uf||(ze.SemanticTokensRefreshRequest=Uf={}))});var zf=D(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.ShowDocumentRequest=void 0;var Bf=se(),Hf;(function(e){e.method="window/showDocument",e.messageDirection=Bf.MessageDirection.serverToClient,e.type=new Bf.ProtocolRequestType(e.method)})(Hf||(So.ShowDocumentRequest=Hf={}))});var Yf=D(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.LinkedEditingRangeRequest=void 0;var $f=se(),Vf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=$f.MessageDirection.clientToServer,e.type=new $f.ProtocolRequestType(e.method)})(Vf||(Ro.LinkedEditingRangeRequest=Vf={}))});var tg=D(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Gf;(function(e){e.file="file",e.folder="folder"})(Gf||(Ee.FileOperationPatternKind=Gf={}));var Kf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Kf||(Ee.WillCreateFilesRequest=Kf={}));var Qf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Qf||(Ee.DidCreateFilesNotification=Qf={}));var Jf;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Jf||(Ee.WillRenameFilesRequest=Jf={}));var Xf;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Xf||(Ee.DidRenameFilesNotification=Xf={}));var Zf;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidDeleteFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(eg||(Ee.WillDeleteFilesRequest=eg={}))});var sg=D(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.MonikerRequest=Bt.MonikerKind=Bt.UniquenessLevel=void 0;var ng=se(),rg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(rg||(Bt.UniquenessLevel=rg={}));var ig;(function(e){e.$import="import",e.$export="export",e.local="local"})(ig||(Bt.MonikerKind=ig={}));var og;(function(e){e.method="textDocument/moniker",e.messageDirection=ng.MessageDirection.clientToServer,e.type=new ng.ProtocolRequestType(e.method)})(og||(Bt.MonikerRequest=og={}))});var lg=D(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.TypeHierarchySubtypesRequest=Ht.TypeHierarchySupertypesRequest=Ht.TypeHierarchyPrepareRequest=void 0;var Zn=se(),ag;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ag||(Ht.TypeHierarchyPrepareRequest=ag={}));var cg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(cg||(Ht.TypeHierarchySupertypesRequest=cg={}));var ug;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ug||(Ht.TypeHierarchySubtypesRequest=ug={}))});var fg=D(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var wo=se(),dg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=wo.MessageDirection.clientToServer,e.type=new wo.ProtocolRequestType(e.method)})(dg||(er.InlineValueRequest=dg={}));var pg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=wo.MessageDirection.serverToClient,e.type=new wo.ProtocolRequestType0(e.method)})(pg||(er.InlineValueRefreshRequest=pg={}))});var yg=D(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.InlayHintRefreshRequest=zt.InlayHintResolveRequest=zt.InlayHintRequest=void 0;var tr=se(),gg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(gg||(zt.InlayHintRequest=gg={}));var mg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(mg||(zt.InlayHintResolveRequest=mg={}));var hg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(hg||(zt.InlayHintRefreshRequest=hg={}))});var Dg=D(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Cg=un(),j_=mo(),nr=se(),bg;(function(e){function t(n){let r=n;return r&&j_.boolean(r.retriggerRequest)}e.is=t})(bg||(et.DiagnosticServerCancellationData=bg={}));var vg;(function(e){e.Full="full",e.Unchanged="unchanged"})(vg||(et.DocumentDiagnosticReportKind=vg={}));var xg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Cg.ProgressType})(xg||(et.DocumentDiagnosticRequest=xg={}));var Pg;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Cg.ProgressType})(Pg||(et.WorkspaceDiagnosticRequest=Pg={}));var _g;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(_g||(et.DiagnosticRefreshRequest=_g={}))});var Og=D(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.DidCloseNotebookDocumentNotification=pe.DidSaveNotebookDocumentNotification=pe.DidChangeNotebookDocumentNotification=pe.NotebookCellArrayChange=pe.DidOpenNotebookDocumentNotification=pe.NotebookDocumentSyncRegistrationType=pe.NotebookDocument=pe.NotebookCell=pe.ExecutionSummary=pe.NotebookCellKind=void 0;var Ir=(go(),Xr(fo)),ct=mo(),ht=se(),Eu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Eu||(pe.NotebookCellKind=Eu={}));var ju;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Ir.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(ju||(pe.ExecutionSummary=ju={}));var To;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Eu.is(s.kind)&&Ir.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!ju.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),p=Object.keys(s);if(l.length!==p.length||(l.sort(),p.sort(),!i(l,p)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(To||(pe.NotebookCell=To={}));var Sg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Ir.integer.is(i.version)&&ct.typedArray(i.cells,To.is)}e.is=n})(Sg||(pe.NotebookDocument=Sg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(pe.NotebookDocumentSyncRegistrationType=rr={}));var Rg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Rg||(pe.DidOpenNotebookDocumentNotification=Rg={}));var wg;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Ir.uinteger.is(i.start)&&Ir.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,To.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})(wg||(pe.NotebookCellArrayChange=wg={}));var Tg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Tg||(pe.DidChangeNotebookDocumentNotification=Tg={}));var kg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(pe.DidSaveNotebookDocumentNotification=kg={}));var Ag;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ag||(pe.DidCloseNotebookDocumentNotification=Ag={}))});var Eg=D(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InlineCompletionRequest=void 0;var Ng=se(),qg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method)})(qg||(ko.InlineCompletionRequest=qg={}))});var Ym=D(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var w=se(),jg=(go(),Xr(fo)),we=mo(),M_=sf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return M_.ImplementationRequest}});var L_=uf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return L_.TypeDefinitionRequest}});var Hm=pf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Hm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Hm.DidChangeWorkspaceFoldersNotification}});var I_=mf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return I_.ConfigurationRequest}});var zm=bf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return zm.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return zm.ColorPresentationRequest}});var $m=Pf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return $m.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return $m.FoldingRangeRefreshRequest}});var F_=Df();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return F_.DeclarationRequest}});var U_=wf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return U_.SelectionRangeRequest}});var Uu=Of();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Uu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Uu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Uu.WorkDoneProgressCancelNotification}});var Wu=jf();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Wu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Wu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Wu.CallHierarchyPrepareRequest}});var ir=Wf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var W_=zf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return W_.ShowDocumentRequest}});var B_=Yf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return B_.LinkedEditingRangeRequest}});var pn=tg();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return pn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return pn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return pn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return pn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return pn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return pn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return pn.WillDeleteFilesRequest}});var Bu=sg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Bu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Bu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Bu.MonikerRequest}});var Hu=lg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Hu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Hu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Hu.TypeHierarchySupertypesRequest}});var Vm=fg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Vm.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Vm.InlineValueRefreshRequest}});var zu=yg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return zu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return zu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return zu.InlayHintRefreshRequest}});var Fr=Dg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Fr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Fr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Fr.DiagnosticRefreshRequest}});var yt=Og();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var H_=Eg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return H_.InlineCompletionRequest}});var Mu;(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})(Mu||(u.TextDocumentFilter=Mu={}));var Lu;(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})(Lu||(u.NotebookDocumentFilter=Lu={}));var Iu;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||Lu.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(Iu||(u.NotebookCellTextDocumentFilter=Iu={}));var Fu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!Mu.is(r)&&!Iu.is(r))return!1;return!0}e.is=t})(Fu||(u.DocumentSelector=Fu={}));var Mg;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Mg||(u.RegistrationRequest=Mg={}));var Lg;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Lg||(u.UnregistrationRequest=Lg={}));var Ig;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Ig||(u.ResourceOperationKind=Ig={}));var Fg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Fg||(u.FailureHandlingKind=Fg={}));var Ug;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Ug||(u.PositionEncodingKind=Ug={}));var Wg;(function(e){function t(n){let r=n;return r&&we.string(r.id)&&r.id.length>0}e.hasId=t})(Wg||(u.StaticRegistrationOptions=Wg={}));var Bg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Fu.is(r.documentSelector))}e.is=t})(Bg||(u.TextDocumentRegistrationOptions=Bg={}));var Hg;(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})(Hg||(u.WorkDoneProgressOptions=Hg={}));var zg;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zg||(u.InitializeRequest=zg={}));var $g;(function(e){e.unknownProtocolVersion=1})($g||(u.InitializeErrorCodes=$g={}));var Vg;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Vg||(u.InitializedNotification=Vg={}));var Yg;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(Yg||(u.ShutdownRequest=Yg={}));var Gg;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(Gg||(u.ExitNotification=Gg={}));var Kg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Kg||(u.DidChangeConfigurationNotification=Kg={}));var Qg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Qg||(u.MessageType=Qg={}));var Jg;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Jg||(u.ShowMessageNotification=Jg={}));var Xg;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Xg||(u.ShowMessageRequest=Xg={}));var Zg;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Zg||(u.LogMessageNotification=Zg={}));var em;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(em||(u.TelemetryEventNotification=em={}));var tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(tm||(u.TextDocumentSyncKind=tm={}));var nm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(nm||(u.DidOpenTextDocumentNotification=nm={}));var rm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(rm||(u.TextDocumentContentChangeEvent=rm={}));var im;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(im||(u.DidChangeTextDocumentNotification=im={}));var om;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(om||(u.DidCloseTextDocumentNotification=om={}));var sm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(sm||(u.DidSaveTextDocumentNotification=sm={}));var am;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(am||(u.TextDocumentSaveReason=am={}));var cm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(cm||(u.WillSaveTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(um||(u.WillSaveTextDocumentWaitUntilRequest=um={}));var lm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(lm||(u.DidChangeWatchedFilesNotification=lm={}));var dm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(dm||(u.FileChangeType=dm={}));var pm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(jg.URI.is(r.baseUri)||jg.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(pm||(u.RelativePattern=pm={}));var fm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(fm||(u.WatchKind=fm={}));var gm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(gm||(u.PublishDiagnosticsNotification=gm={}));var mm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(mm||(u.CompletionTriggerKind=mm={}));var hm;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(hm||(u.CompletionRequest=hm={}));var ym;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ym||(u.CompletionResolveRequest=ym={}));var bm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(bm||(u.HoverRequest=bm={}));var vm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(vm||(u.SignatureHelpTriggerKind=vm={}));var xm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(xm||(u.SignatureHelpRequest=xm={}));var Pm;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Pm||(u.DefinitionRequest=Pm={}));var _m;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(_m||(u.ReferencesRequest=_m={}));var Cm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Cm||(u.DocumentHighlightRequest=Cm={}));var Dm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Dm||(u.DocumentSymbolRequest=Dm={}));var Sm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Sm||(u.CodeActionRequest=Sm={}));var Rm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Rm||(u.CodeActionResolveRequest=Rm={}));var wm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wm||(u.WorkspaceSymbolRequest=wm={}));var Tm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Tm||(u.WorkspaceSymbolResolveRequest=Tm={}));var km;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(km||(u.CodeLensRequest=km={}));var Am;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Am||(u.CodeLensResolveRequest=Am={}));var Om;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(Om||(u.CodeLensRefreshRequest=Om={}));var Nm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Nm||(u.DocumentLinkRequest=Nm={}));var qm;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qm||(u.DocumentLinkResolveRequest=qm={}));var Em;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Em||(u.DocumentFormattingRequest=Em={}));var jm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jm||(u.DocumentRangeFormattingRequest=jm={}));var Mm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(u.DocumentRangesFormattingRequest=Mm={}));var Lm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lm||(u.DocumentOnTypeFormattingRequest=Lm={}));var Im;(function(e){e.Identifier=1})(Im||(u.PrepareSupportDefaultBehavior=Im={}));var Fm;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(u.RenameRequest=Fm={}));var Um;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(u.PrepareRenameRequest=Um={}));var Wm;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(u.ExecuteCommandRequest=Wm={}));var Bm;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(Bm||(u.ApplyWorkspaceEditRequest=Bm={}))});var Km=D(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.createProtocolConnection=void 0;var Gm=un();function z_(e,t,n,r){return Gm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gm.createMessageConnection)(e,t,n,r)}Ao.createProtocolConnection=z_});var Jm=D($e=>{"use strict";var $_=$e&&$e.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Oo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$_(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Oo(un(),$e);Oo((go(),Xr(fo)),$e);Oo(se(),$e);Oo(Ym(),$e);var V_=Km();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return V_.createProtocolConnection}});var Qm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Qm||($e.LSPErrorCodes=Qm={}))});var ye=D(bt=>{"use strict";var Y_=bt&&bt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Xm=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Y_(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var G_=Rc();Xm(Rc(),bt);Xm(Jm(),bt);function K_(e,t,n,r){return(0,G_.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=K_});var Vu=D($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.SemanticTokensBuilder=$t.SemanticTokensDiff=$t.SemanticTokensFeature=void 0;var No=ye(),Q_=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(No.SemanticTokensRefreshRequest.type),on:t=>{let n=No.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=No.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=No.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};$t.SemanticTokensFeature=Q_;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}]:[]}};$t.SemanticTokensDiff=qo;var $u=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()}};$t.SemanticTokensBuilder=$u});var Zm=D(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.InlineCompletionFeature=void 0;var J_=ye(),X_=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(J_.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Eo.InlineCompletionFeature=X_});var Gu=D(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.TextDocuments=void 0;var fn=ye(),Yu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new fn.Emitter,this._onDidOpen=new fn.Emitter,this._onDidClose=new fn.Emitter,this._onDidSave=new fn.Emitter,this._onWillSave=new fn.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=fn.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}))})),fn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};jo.TextDocuments=Yu});var Qu=D(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),eh=Gu(),Z_=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=Z_;var Mo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Mo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Ku=class{constructor(t){t instanceof eh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new eh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Mo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],p=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),p.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let T=m.get(o.cells[g].document);if(T!==void 0){let V=o.cells.splice(g,1,T);if(h.push({old:V[0],new:T}),m.delete(T.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of p)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Ku});var Ju=D(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function eC(e){return e===!0||e===!1}xe.boolean=eC;function th(e){return typeof e=="string"||e instanceof String}xe.string=th;function tC(e){return typeof e=="number"||e instanceof Number}xe.number=tC;function nC(e){return e instanceof Error}xe.error=nC;function nh(e){return typeof e=="function"}xe.func=nh;function rh(e){return Array.isArray(e)}xe.array=rh;function rC(e){return rh(e)&&e.every(t=>th(t))}xe.stringArray=rC;function iC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=iC;function oC(e){return e&&nh(e.then)}xe.thenable=oC});var Xu=D(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Ur=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Wr=class e extends Ur{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(""))}};Wr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Wr._timeHighBits=["8","9","a","b"];nt.empty=new Ur("00000000-0000-0000-0000-000000000000");function ih(){return new Wr}nt.v4=ih;var sC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function oh(e){return sC.test(e)}nt.isUUID=oh;function aC(e){if(!oh(e))throw new Error("invalid uuid");return new Ur(e)}nt.parse=aC;function cC(){return ih().asHex()}nt.generateUuid=cC});var sh=D(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.attachPartialResult=Yt.ProgressFeature=Yt.attachWorkDone=void 0;var Vt=ye(),uC=Xu(),gn=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(Vt.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(Vt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Vt.WorkDoneProgress.type,this._token,{kind:"end"})}};gn.Instances=new Map;var Lo=class extends gn{constructor(t,n){super(t,n),this._source=new Vt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Br=class{constructor(){}begin(){}report(){}done(){}},Io=class extends Br{constructor(){super(),this._source=new Vt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function lC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Br;let n=t.workDoneToken;return delete t.workDoneToken,new gn(e,n)}Yt.attachWorkDone=lC;var dC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Vt.WorkDoneProgressCancelNotification.type,n=>{let r=gn.Instances.get(n.token);(r instanceof Lo||r instanceof Io)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Br:new gn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,uC.generateUuid)();return this.connection.sendRequest(Vt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Lo(this.connection,t))}else return Promise.resolve(new Io)}};Yt.ProgressFeature=dC;var Zu;(function(e){e.type=new Vt.ProgressType})(Zu||(Zu={}));var el=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Zu.type,this._token,t)}};function pC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new el(e,n)}Yt.attachPartialResult=pC});var ah=D(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ConfigurationFeature=void 0;var fC=ye(),gC=Ju(),mC=e=>class extends e{getConfiguration(t){return t?gC.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(fC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Fo.ConfigurationFeature=mC});var ch=D(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.WorkspaceFoldersFeature=void 0;var Uo=ye(),hC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Uo.Emitter,this.connection.onNotification(Uo.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(Uo.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(Uo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Wo.WorkspaceFoldersFeature=hC});var uh=D(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CallHierarchyFeature=void 0;var tl=ye(),yC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(tl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=tl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=tl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.CallHierarchyFeature=yC});var lh=D(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.ShowDocumentFeature=void 0;var bC=ye(),vC=e=>class extends e{showDocument(t){return this.connection.sendRequest(bC.ShowDocumentRequest.type,t)}};Ho.ShowDocumentFeature=vC});var dh=D(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.FileOperationsFeature=void 0;var sr=ye(),xC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};zo.FileOperationsFeature=xC});var ph=D($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.LinkedEditingRangeFeature=void 0;var PC=ye(),_C=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(PC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};$o.LinkedEditingRangeFeature=_C});var fh=D(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.TypeHierarchyFeature=void 0;var nl=ye(),CC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(nl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=nl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=nl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vo.TypeHierarchyFeature=CC});var mh=D(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineValueFeature=void 0;var gh=ye(),DC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(gh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(gh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Yo.InlineValueFeature=DC});var yh=D(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.FoldingRangeFeature=void 0;var hh=ye(),SC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(hh.FoldingRangeRefreshRequest.type),on:t=>{let n=hh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.FoldingRangeFeature=SC});var bh=D(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.InlayHintFeature=void 0;var rl=ye(),RC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(rl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(rl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(rl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Ko.InlayHintFeature=RC});var vh=D(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiagnosticFeature=void 0;var Hr=ye(),wC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Hr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Hr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Hr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Qo.DiagnosticFeature=wC});var xh=D(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MonikerFeature=void 0;var TC=ye(),kC=e=>class extends e{get moniker(){return{on:t=>{let n=TC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jo.MonikerFeature=kC});var jh=D(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=Ju(),ol=Xu(),B=sh(),AC=ah(),OC=ch(),NC=uh(),qC=Vu(),EC=lh(),jC=dh(),MC=ph(),LC=fh(),IC=mh(),FC=yh(),UC=bh(),WC=vh(),BC=Qu(),HC=xh();function il(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 Xo=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},al=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(il)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(il)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(il)}},Ph=(0,EC.ShowDocumentFeature)((0,B.ProgressFeature)(al)),_h;(function(e){function t(){return new Zo}e.create=t})(_h||(Q.BulkRegistration=_h={}));var Zo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=ol.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Ch;(function(e){function t(){return new zr(void 0,[])}e.create=t})(Ch||(Q.BulkUnregistration=Ch={}));var zr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},es=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 Zo?this.registerMany(t):t instanceof zr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=ol.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=ol.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},cl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Dh=(0,jC.FileOperationsFeature)((0,OC.WorkspaceFoldersFeature)((0,AC.ConfigurationFeature)(cl))),ts=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},ns=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},rs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=rs;var Sh=(0,FC.FoldingRangeFeature)((0,HC.MonikerFeature)((0,WC.DiagnosticFeature)((0,UC.InlayHintFeature)((0,IC.InlineValueFeature)((0,LC.TypeHierarchyFeature)((0,MC.LinkedEditingRangeFeature)((0,qC.SemanticTokensFeature)((0,NC.CallHierarchyFeature)(rs))))))))),is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=is;var Rh=(0,BC.NotebookSyncFeature)(is);function wh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=wh;function Th(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Th;function kh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=kh;function Ah(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Oh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Nh;function qh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=qh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Eh;function zC(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,wh),tracer:n(e.tracer,t.tracer,kh),telemetry:n(e.telemetry,t.telemetry,Th),client:n(e.client,t.client,Ah),window:n(e.window,t.window,Oh),workspace:n(e.workspace,t.workspace,Nh),languages:n(e.languages,t.languages,qh),notebooks:n(e.notebooks,t.notebooks,Eh)}}Q.combineFeatures=zC;function $C(e,t,n){let r=n&&n.console?new(n.console(Xo)):new Xo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ts)):new ts,s=n&&n.telemetry?new(n.telemetry(ns)):new ns,a=n&&n.client?new(n.client(es)):new es,c=n&&n.window?new(n.window(Ph)):new Ph,l=n&&n.workspace?new(n.workspace(Dh)):new Dh,p=n&&n.languages?new(n.languages(Sh)):new Sh,h=n&&n.notebooks?new(n.notebooks(Rh)):new Rh,v=[r,o,s,a,c,l,p,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,T)=>{m.then(V=>g(V),V=>T(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let T=rt.string(m)?m:m.method;return i.sendNotification(T,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return p},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,T)=>m(g,T)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,T)=>m(g,T)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,T)=>m(g,T)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,T)=>m(g,T)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,T)=>m(g,T)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(T=>{if(T instanceof O.ResponseError)return T;let V=T;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let T of v)T.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=$C});var ul=D(je=>{"use strict";var VC=je&&je.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Lh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&VC(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var YC=Vu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return YC.SemanticTokensBuilder}});var GC=Zm();Lh(ye(),je);var KC=Gu();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return KC.TextDocuments}});var QC=Qu();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return QC.NotebookDocuments}});Lh(jh(),je);var Mh;(function(e){e.all={__brand:"features",languages:GC.InlineCompletionFeature}})(Mh||(je.ProposedFeatures=Mh={}))});var Fh=D((Uw,Ih)=>{"use strict";Ih.exports=ye()});var ll=D(vt=>{"use strict";var JC=vt&&vt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Wh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&JC(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var os=ul();Wh(Fh(),vt);Wh(ul(),vt);var Uh=!1,XC={initialize:e=>{},get shutdownReceived(){return Uh},set shutdownReceived(e){Uh=e},exit:e=>{}};function ZC(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),os.ConnectionStrategy.is(e)||os.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,os.createProtocolConnection)(o,s,l,a);return(0,os.createConnection)(c,XC,i)}vt.createConnection=ZC});var Gt=D((Bw,Bh)=>{"use strict";Bh.exports=ll()});var xl=D((OT,ty)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ey(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 U0(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 ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ey(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ey(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,p=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?p=h:h===0&&(p=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(p=h)}var R="";for(h=r+p+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+p):(s+=p,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return U0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,p=t.length-1,h=0;p>=o;--p){if(r=t.charCodeAt(p),r===47){if(!l){a=p+1;break}continue}c===-1&&(l=!1,c=p+1),r===46?s===-1?s=p: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};ur.posix=ur;ty.exports=ur});import{CONFIG_FILE_NAME as lD}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as vx,loadConfig as xx}from"@redocly/openapi-core";var Sl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var S,q="",M=0,N=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)S=P.charCodeAt(G);else{if(S===47)break;S=47}if(S===47){if(!(N===G-1||z===1))if(N!==G-1&&z===2){if(q.length<2||M!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Ce=q.lastIndexOf("/");if(Ce!==q.length-1){Ce===-1?(q="",M=0):M=(q=q.slice(0,Ce)).length-1-q.lastIndexOf("/"),N=G,z=0;continue}}else if(q.length===2||q.length===1){q="",M=0,N=G,z=0;continue}}C&&(q.length>0?q+="/..":q="..",M=2)}else q.length>0?q+="/"+P.slice(N+1,G):q=P.slice(N+1,G),M=G-N-1;N=G,z=0}else S===46&&z!==-1?++z:z=-1}return q}var j={resolve:function(){for(var P,C="",S=!1,q=arguments.length-1;q>=-1&&!S;q--){var M;q>=0?M=arguments[q]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,S=M.charCodeAt(0)===47)}return C=E(C,!S),S?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,S=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&S&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var S=arguments[C];b(S),S.length>0&&(P===void 0?P=S:P+="/"+S)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var S=1;S<P.length&&P.charCodeAt(S)===47;++S);for(var q=P.length,M=q-S,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var z=C.length-N,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(N+ee)===47)return C.slice(N+ee+1);if(ee===0)return C.slice(N+ee)}else M>G&&(P.charCodeAt(S+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(S+ee);if(ot!==C.charCodeAt(N+ee))break;ot===47&&(Ce=ee)}var Zt="";for(ee=S+Ce+1;ee<=q;++ee)ee!==q&&P.charCodeAt(ee)!==47||(Zt.length===0?Zt+="..":Zt+="/..");return Zt.length>0?Zt+C.slice(N+Ce):(N+=Ce,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),S=C===47,q=-1,M=!0,N=P.length-1;N>=1;--N)if((C=P.charCodeAt(N))===47){if(!M){q=N;break}}else M=!1;return q===-1?S?"/":".":S&&q===1?"//":P.slice(0,q)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var S,q=0,M=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(S=P.length-1;S>=0;--S){var Ce=P.charCodeAt(S);if(Ce===47){if(!N){q=S+1;break}}else G===-1&&(N=!1,G=S+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=S):(z=-1,M=G))}return q===M?M=G:M===-1&&(M=P.length),P.slice(q,M)}for(S=P.length-1;S>=0;--S)if(P.charCodeAt(S)===47){if(!N){q=S+1;break}}else M===-1&&(N=!1,M=S+1);return M===-1?"":P.slice(q,M)},extname:function(P){b(P);for(var C=-1,S=0,q=-1,M=!0,N=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)q===-1&&(M=!1,q=z+1),G===46?C===-1?C=z:N!==1&&(N=1):C!==-1&&(N=-1);else if(!M){S=z+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===S+1?"":P.slice(C,q)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return function(C,S){var q=S.dir||S.root,M=S.base||(S.name||"")+(S.ext||"");return q?q===S.root?q+M:q+"/"+M:M}(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var S,q=P.charCodeAt(0),M=q===47;M?(C.root="/",S=1):S=0;for(var N=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=S;--ee)if((q=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),q===46?N===-1?N=ee:ot!==1&&(ot=1):N!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return N===-1||G===-1||ot===0||ot===1&&N===G-1&&N===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,N),C.base=P.slice(1,G)):(C.name=P.slice(z,N),C.base=P.slice(z,G)),C.ext=P.slice(N,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>hn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",p="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,S=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=function(q,M){return q||M?q:"file"}(b,S),this.authority=E||l,this.path=function(q,M){switch(q){case"https":case"http":case"file":M?M[0]!==p&&(M=p+M):M=p}return M}(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,S))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:S}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),S===void 0?S=this.fragment:S===null&&(S=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&S===this.fragment?this:new R(E,j,P,C,S)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,p)),b[0]===p&&b[1]===p){let j=b.indexOf(p,2);j===-1?(E=b.substring(2),b=p):(E=b.substring(2,j),b=b.substring(j)||p)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let S=k.charCodeAt(C);if(S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===45||S===46||S===95||S===126||b&&S===47||E&&S===91||E&&S===93||E&&S===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let q=I[S];q!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=q):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:S,query:q,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=p,j+=p),C){let N=C.indexOf("@");if(N!==-1){let z=C.substr(0,N);C=C.substr(N+1),N=z.lastIndexOf(":"),N===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,N),!1,!1),j+=":",j+=E(z.substr(N+1),!1,!0)),j+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,N),!1,!0),j+=C.substr(N))}if(S){if(S.length>=3&&S.charCodeAt(0)===47&&S.charCodeAt(2)===58){let N=S.charCodeAt(1);N>=65&&N<=90&&(S=`/${String.fromCharCode(N+32)}:${S.substr(3)}`)}else if(S.length>=2&&S.charCodeAt(1)===58){let N=S.charCodeAt(0);N>=65&&N<=90&&(S=`${String.fromCharCode(N+32)}:${S.substr(2)}`)}j+=E(S,!0,!1)}return q&&(j+="?",j+=E(q,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function T(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+T(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,b=>T(b)):k}var it=n(975);let wt=it.posix||it,Xt="/";var hn;(function(k){k.joinPath=function(b,...E){return b.with({path:wt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==Xt&&(j=Xt+j,P=!0);let C=wt.resolve(j,...E);return P&&C[0]===Xt&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===Xt)return b;let E=wt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return wt.basename(b.path)},k.extname=function(b){return wt.extname(b.path)}})(hn||(hn={})),Sl=r})();var{URI:kt,Utils:ne}=Sl;import{CONFIG_FILE_NAME as Ny}from"@redocly/openapi-core";var Cs={languageId:"yaml",filePattern:/\.ya?ml$/i},Ds={languageId:"json",filePattern:/\.json$/i},_s=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Cs,Ds];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(De(t)),Ny);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new _s;function Rl(e,t){return ne.resolvePath(De(e)).toString()===ne.resolvePath(De(t)).toString()}function De(e){return kt.parse(e)}function vn(e){return kt.parse(e).fsPath}function pr(e){let t=["https","http"],{scheme:n}=kt.parse(e);return t.includes(n)}function xn(e){return ne.basename(De(e))}async function wl(e,t="/"){let n=ne.resolvePath(De(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as yx,Source as dp,readFileFromUrl as bx}from"@redocly/openapi-core";var li=Ie(yr(),1);import{isAbsoluteUrl as gx}from"@redocly/openapi-core";function Zd(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let p=i.get(l.uri),h=p?Date.now()-p:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let p=r.get(l.uri),h=n&&!p;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];p||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function Xs(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 ep(e){return e==="$ref"}async function Zs(e,t){let n=kt.parse(t);return ne.joinPath(n,e).toString()}async function tp(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zs(i,n)===t)return r}function np(e){return typeof e=="string"}function di(e){return typeof e=="function"}function rp(e){return e?.kind===li.Kind.MAP}function ea(e){return e?.kind===li.Kind.MAPPING}function ta(e){return e?.kind===li.Kind.SEQ}function br(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function na(e){return gx(e)||e.startsWith("file://")}async function ip(e,t={}){let{maxRetries:n=3,retryDelay:r=1e3,retryDelayMultiplier:i=1.5,maxRetryDelay:o=1e4}=t;for(let s=1;s<=n;s++)try{return await e()}catch(a){if(s===n)throw a;let c=Math.min(r*Math.pow(i,s-1),o);await new Promise(l=>setTimeout(l,c))}throw new Error("Operation failed after maximum retries")}var pi=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=ap(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,p=op(r.text,!1,o);if(c-a===p.length)for(let v=0,y=p.length;v<y;v++)l[v+a+1]=p[v];else p.length<1e4?l.splice(a+1,c-a,...p):this._lineOffsets=l=l.slice(0,a+1).concat(p,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+p.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=op(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&&sp(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 pi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof pi)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=ra(o.map(mx),(p,h)=>{let v=p.range.start.line-h.range.start.line;return v===0?p.range.start.character-h.range.start.character:v}),c=0,l=[];for(let p of a){let h=i.offsetAt(p.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),p.newText.length&&l.push(p.newText),c=i.offsetAt(p.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(fi||(fi={}));function ra(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ra(r,t),ra(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 op(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);sp(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function sp(e){return e===13||e===10}function ap(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 mx(e){let t=ap(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var cp=new Map;function up(e,t){return cp.set(e,t)}function lp(e){let t=[];for(let[n,r]of cp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(De(e),"utf-8");return fi.create(e,"yaml",1,n)}function ia(e){return Ds.filePattern.test(e)}function hx(e){return Cs.filePattern.test(e)}var Ct=class extends yx{resolveExternalRef(t,n){return na(n)?n:t&&na(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(De(t)),n).toString():n}async loadExternalRef(t){if(pr(t)){let{body:n,mimeType:r}=await bx(t,{...this.config.http,customFetch:fetch});return new dp(t,n,r)}return new dp(t,(await Qe(t)).getText())}};var Rn;async function oa(e){let t=new Ct,n=e?await be.findConfig(e):void 0;return Rn=await xx({configPath:n,externalRefResolver:t}),Rn}async function wn(){return ip(async()=>(Rn||await oa(),Rn))}async function pp(e,t){try{let n=e?await be.findConfig(e):void 0;return await oa(n)}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),oa()}}function vr(e){return sa(e)?!0:!!Rn?.resolvedRefMap&&[...Rn.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Rl(xn(e),n))}function sa(e){return xn(e)===vx}var fp={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:fp,additionalProperties:!1},Px={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},qt={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({},fp),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),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:Px},additionalProperties:!1}},additionalProperties:!1};var _x={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},aa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},gi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:qt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:aa,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:_x,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1};var Tn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Cx={type:"object",properties:{name:{type:"string"},items:Tn,queries:Tn,mutations:Tn,subscriptions:Tn,types:Tn,directives:Tn},required:["name"],additionalProperties:!1},Dx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Cx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Dx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:aa,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:qt},additionalProperties:!1};var Sx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Rx={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"}}},gp={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wx={type:"object",properties:{beforeInfo:{type:"array",items:gp},end:{type:"array",items:gp}}},sn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},mi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Tx={type:"object",properties:vi(sn.properties,["light","dark"])},kx={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"}}},Ax={type:"object",properties:{error:mi,info:mi,redirect:mi,success:mi}},Ox={type:"object",properties:An(sn.properties,["dark"])},Nx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},qx={type:"object",properties:{accent:sn,border:Tx,error:sn,http:kx,primary:sn,responses:Ax,secondary:Ox,success:sn,text:Nx,tonalOffset:{type:"number"},warning:sn}},hi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ex={type:"object",properties:{small:hi,medium:hi,large:hi,xlarge:hi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},jx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ex})},mp={type:"object",properties:vi(ft.properties,["fontSize","lineHeight"])},Mx={type:"object",properties:{medium:mp,small:mp}},Lx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Mx})},Ix={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Fx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},hp={type:"object",properties:{fullWidth:{type:"boolean"}}},Ux={type:"object",properties:{buttons:jx,httpBadges:Lx,layoutControls:Ix,panels:Fx,tryItButton:hp,tryItSendButton:hp}},bi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Wx={type:"object",properties:{maxWidth:bi}},Bx={type:"object",properties:{maxWidth:bi,middlePanelMaxWidth:bi}},Hx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Wx,"three-panel":Bx}},yp={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},zx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:yp,defaultDetailsWidth:{type:"string"},examples:yp,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},vp={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},$x={type:"object",properties:vi(vp.properties,["textTransform"])},Vx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Yx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:vp,level1items:$x,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Vx,textColor:{type:"string"},width:{type:"string"}})},yi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Gx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Kx={type:"object",properties:An(ft.properties,["fontSize"])},Qx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({code:Gx,fieldName:ft},vi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:yi,heading2:yi,heading3:yi,headings:Kx,lineHeight:{type:"string"},links:Qx,optimizeSpeed:{type:"boolean"},rightPanelHeading:yi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Xx={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},Zx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Xx}},eP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},tP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},bp={type:"object",properties:{custom:{type:"string"}}},nP={type:"object",properties:{DownloadButton:bp,NextSectionButton:bp}},rP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},iP={type:"object",properties:{borderRadius:{type:"string"}}},oP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},sP={type:"object",properties:{breakpoints:bi,codeBlock:Zx,colors:qx,components:Ux,layout:Hx,logo:eP,fab:tP,overrides:nP,rightPanel:rP,schema:zx,shape:iP,sidebar:Yx,spacing:oP,typography:Jx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},aP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Sx}},required:["languages"]},xp={type:"object",properties:{theme:sP,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:aP,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:Rx,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:wx,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 vi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Et={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Et,oas2Rules:Et,oas3_0Rules:Et,oas3_1Rules:Et,async2Rules:Et,async3Rules:Et,arazzo1Rules:Et,overlay1Rules:Et},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Pp={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},ca={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"}}}},ua={type:"array",items:Object.assign(Object.assign({},ca),{properties:Object.assign(Object.assign({},ca.properties),{items:{type:"array",items:ca}})})},cP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},uP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},lP={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}},dP={type:"object",properties:Object.assign({facets:lP},Re.properties),additionalProperties:!1},pP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pi={type:"object",properties:Object.assign({items:ua},Re.properties),additionalProperties:!1},_i={type:"object",additionalProperties:cP},Ci={type:"object",properties:Object.assign({items:ua,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Di={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Si={type:"object",properties:{head:{type:"array",items:Pp},body:{type:"array",items:Pp}},additionalProperties:!1},Ri={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:uP,filters:dP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:pP}},Re.properties),additionalProperties:!1},Ti={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},fP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},ki={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:fP},additionalProperties:!1},Ai={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Oi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},gi),{properties:Object.assign(Object.assign({},gi.properties),xp.properties)}),gP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},mP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},hP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},bP={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"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},xP={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"]},la={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"]},PP={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:la}},additionalProperties:!1,required:["trackingId"]},Ni={type:"object",properties:{adobe:gP,amplitude:mP,fullstory:hP,heap:yP,rudderstack:bP,segment:vP,gtm:xP,ga:PP}},qi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Ei={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ji={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},_P={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"}}}},CP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:_P},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ua,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Nn={type:"object",patternProperties:{".*":CP}},Mi={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}};var DP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},SP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},RP={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},jt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:SP},excludes:{type:"array",items:DP},filters:{type:"array",items:RP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Li={type:"object",properties:{catalogs:{type:"object",properties:{all:jt,services:jt,domains:jt,teams:jt,users:jt,apiDescriptions:jt,dataSchemas:jt,apiOperations:jt},additionalProperties:!1}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Di,scripts:Si,links:Ri,feedback:qt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:Ni,userMenu:qi,versionPicker:Ei,breadcrumbs:ji,catalog:Nn,entitiesCatalog:Li,catalogClassic:Nn,scorecard:Mi},additionalProperties:!0};var pa="https://redocly.com/sso/teams",qn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(qn||(qn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var da;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(da||(da={}));function Ii(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Ii(i,t):i)]:[n,Ii(r,t)]}).filter(Boolean))}var wP={type:"object",additionalProperties:{type:"string"}},TP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Fi={type:"string",enum:["error","warn","off"]},kP={type:"object",additionalProperties:!1,properties:{schemaCheck:Fi,statusCodeCheck:Fi,contentTypeCheck:Fi,successCriteriaCheck:Fi}},AP={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},OP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_p={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},projectUrl:{type:"string",format:"uri"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[AP,OP]},inputs:wP,servers:TP,severity:kP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var NP={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},qP={type:"object",properties:{type:{type:"string",const:qn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:NP,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},EP={type:"object",properties:{type:{type:"string",const:qn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:pa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},jP={oneOf:[qP,EP],discriminator:{propertyName:"type"}},MP={type:"object",additionalProperties:jP},LP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},IP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},FP={type:"object",additionalProperties:IP,default:{}},ma={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},UP={type:"object",additionalProperties:!0},WP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Cp={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},Dp={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Cp},default:{llmstxt:Cp.default},additionalProperties:!1},BP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},an={type:"object",additionalProperties:{type:"string"}},Rp={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:an,cms:an,reunite:an,features:{type:"object",properties:{aiSearch:an},additionalProperties:!1},content:{type:"object",properties:{"**":an},additionalProperties:an}},additionalProperties:an},HP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},zP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},$P={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:[HP,zP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},VP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},YP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},fa={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:[VP,YP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},GP=Object.assign(Object.assign({},fa),{properties:Object.assign(Object.assign({},fa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),KP={type:"object",oneOf:[fa,GP,$P],discriminator:{propertyName:"type"}},QP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:KP}}},Sp={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"]},JP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ga={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:FP,seo:Dp,rbac:Rp,apiFunctions:BP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:JP}},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:ma},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:MP,sso:LP,residency:{type:"string"},developerOnboarding:QP,removeAttribution:{type:"boolean"},i18n:Sp,l10n:Sp,metadata:UP,metadataGlobs:WP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:_p,logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Di,scripts:Si,links:Ri,feedback:qt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:Ni,userMenu:qi,versionPicker:Ei,breadcrumbs:ji,catalog:Nn,entitiesCatalog:Li,catalogClassic:Nn,scorecard:Mi}),default:{redirects:{},seo:Dp.default},additionalProperties:!0},XP=Object.assign(Object.assign({},Ii(ga,"default")),{additionalProperties:!1}),ha=Object.assign(Object.assign({$id:"root-redocly-config"},ga),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ga.properties),{env:{type:"object",additionalProperties:XP}}),default:{},additionalProperties:!1});var ya={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:la}}},additionalProperties:!0,default:{}},ZP={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},ya.properties),{apis:{type:"object",additionalProperties:ma},theme:ya}),additionalProperties:!1};var Le=Ie(Gt(),1);import{getLineColLocation as c0,lintDocument as u0,makeDocumentFromString as fl,lintConfig as l0,detectSpec as d0,createConfigTypes as p0}from"@redocly/openapi-core";import{bundleDocument as e0,makeDocumentFromString as t0,isPlainObject as n0}from"@redocly/openapi-core";var Hh=new Map,ss=new Map;function r0(e){return e?Array.from(e).map(([t,n])=>[t,Xs(n)]):[]}async function dl(e,t){let n=await wn(),r=new Ct(n.resolve),i=t0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await e0({document:i,config:n,externalRefResolver:r}),p=r0(l);l&&(ss=new Map([...ss,...l])),Hh.set(e.uri,{uri:e.uri,name:xn(e.uri),definition:n0(o.parsed)?o.parsed:{},rootType:c,refTypes:p,errors:t})}function i0(){return Array.from(Hh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:xn(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function pl(e){return ss.has(e)?ss.get(e):null}import{createConfig as o0,lintDocument as s0}from"@redocly/openapi-core";async function zh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await a0(i):i,c=await o0({...s,plugins:a},{configPath:r}),l=await s0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:p})=>!p).map(p=>({...p,scorecardLevel:s.name})))}return o}async function a0(e){if(!e)return[];try{let t=e.replaceAll("__redocly_dirname",`"${typeof __dirname<"u"?__dirname:""}"`);return(await import(`data:text/javascript;base64,${btoa(t)}`)).default.map(s=>s())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
69
|
+
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function p(y){return t.call(y)==="[object Function]"}e.func=p;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=D(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Gn=un(),ef;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(ef||(He.MessageDirection=ef={}));var ku=class{constructor(t){this.method=t}};He.RegistrationType=ku;var Au=class extends Gn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Au;var Ou=class extends Gn.RequestType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolRequestType=Ou;var Nu=class extends Gn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=Nu;var qu=class extends Gn.NotificationType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolNotificationType=qu});var mo=D(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.objectLiteral=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function w_(e){return e===!0||e===!1}ve.boolean=w_;function tf(e){return typeof e=="string"||e instanceof String}ve.string=tf;function T_(e){return typeof e=="number"||e instanceof Number}ve.number=T_;function k_(e){return e instanceof Error}ve.error=k_;function A_(e){return typeof e=="function"}ve.func=A_;function nf(e){return Array.isArray(e)}ve.array=nf;function O_(e){return nf(e)&&e.every(t=>tf(t))}ve.stringArray=O_;function N_(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=N_;function q_(e){return e!==null&&typeof e=="object"}ve.objectLiteral=q_});var sf=D(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.ImplementationRequest=void 0;var rf=se(),of;(function(e){e.method="textDocument/implementation",e.messageDirection=rf.MessageDirection.clientToServer,e.type=new rf.ProtocolRequestType(e.method)})(of||(ho.ImplementationRequest=of={}))});var uf=D(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.TypeDefinitionRequest=void 0;var af=se(),cf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=af.MessageDirection.clientToServer,e.type=new af.ProtocolRequestType(e.method)})(cf||(yo.TypeDefinitionRequest=cf={}))});var pf=D(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var bo=se(),lf;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=bo.MessageDirection.serverToClient,e.type=new bo.ProtocolRequestType0(e.method)})(lf||(Kn.WorkspaceFoldersRequest=lf={}));var df;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=bo.MessageDirection.clientToServer,e.type=new bo.ProtocolNotificationType(e.method)})(df||(Kn.DidChangeWorkspaceFoldersNotification=df={}))});var mf=D(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.ConfigurationRequest=void 0;var ff=se(),gf;(function(e){e.method="workspace/configuration",e.messageDirection=ff.MessageDirection.serverToClient,e.type=new ff.ProtocolRequestType(e.method)})(gf||(vo.ConfigurationRequest=gf={}))});var bf=D(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var xo=se(),hf;(function(e){e.method="textDocument/documentColor",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(hf||(Qn.DocumentColorRequest=hf={}));var yf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=xo.MessageDirection.clientToServer,e.type=new xo.ProtocolRequestType(e.method)})(yf||(Qn.ColorPresentationRequest=yf={}))});var Pf=D(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var Po=se(),vf;(function(e){e.method="textDocument/foldingRange",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(vf||(Jn.FoldingRangeRequest=vf={}));var xf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Po.MessageDirection.serverToClient,e.type=new Po.ProtocolRequestType0(e.method)})(xf||(Jn.FoldingRangeRefreshRequest=xf={}))});var Df=D(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DeclarationRequest=void 0;var _f=se(),Cf;(function(e){e.method="textDocument/declaration",e.messageDirection=_f.MessageDirection.clientToServer,e.type=new _f.ProtocolRequestType(e.method)})(Cf||(_o.DeclarationRequest=Cf={}))});var wf=D(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.SelectionRangeRequest=void 0;var Sf=se(),Rf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=Sf.MessageDirection.clientToServer,e.type=new Sf.ProtocolRequestType(e.method)})(Rf||(Co.SelectionRangeRequest=Rf={}))});var Of=D(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.WorkDoneProgressCancelNotification=Ut.WorkDoneProgressCreateRequest=Ut.WorkDoneProgress=void 0;var E_=un(),Do=se(),Tf;(function(e){e.type=new E_.ProgressType;function t(n){return n===e.type}e.is=t})(Tf||(Ut.WorkDoneProgress=Tf={}));var kf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Do.MessageDirection.serverToClient,e.type=new Do.ProtocolRequestType(e.method)})(kf||(Ut.WorkDoneProgressCreateRequest=kf={}));var Af;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Do.MessageDirection.clientToServer,e.type=new Do.ProtocolNotificationType(e.method)})(Af||(Ut.WorkDoneProgressCancelNotification=Af={}))});var jf=D(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.CallHierarchyOutgoingCallsRequest=Wt.CallHierarchyIncomingCallsRequest=Wt.CallHierarchyPrepareRequest=void 0;var Xn=se(),Nf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Nf||(Wt.CallHierarchyPrepareRequest=Nf={}));var qf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(qf||(Wt.CallHierarchyIncomingCallsRequest=qf={}));var Ef;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Ef||(Wt.CallHierarchyOutgoingCallsRequest=Ef={}))});var Wf=D(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var St=se(),Mf;(function(e){e.Relative="relative"})(Mf||(ze.TokenFormat=Mf={}));var Lr;(function(e){e.method="textDocument/semanticTokens",e.type=new St.RegistrationType(e.method)})(Lr||(ze.SemanticTokensRegistrationType=Lr={}));var Lf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=St.MessageDirection.clientToServer,e.type=new St.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Lf||(ze.SemanticTokensRequest=Lf={}));var If;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=St.MessageDirection.clientToServer,e.type=new St.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(If||(ze.SemanticTokensDeltaRequest=If={}));var Ff;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=St.MessageDirection.clientToServer,e.type=new St.ProtocolRequestType(e.method),e.registrationMethod=Lr.method})(Ff||(ze.SemanticTokensRangeRequest=Ff={}));var Uf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=St.MessageDirection.serverToClient,e.type=new St.ProtocolRequestType0(e.method)})(Uf||(ze.SemanticTokensRefreshRequest=Uf={}))});var zf=D(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.ShowDocumentRequest=void 0;var Bf=se(),Hf;(function(e){e.method="window/showDocument",e.messageDirection=Bf.MessageDirection.serverToClient,e.type=new Bf.ProtocolRequestType(e.method)})(Hf||(So.ShowDocumentRequest=Hf={}))});var Yf=D(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.LinkedEditingRangeRequest=void 0;var $f=se(),Vf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=$f.MessageDirection.clientToServer,e.type=new $f.ProtocolRequestType(e.method)})(Vf||(Ro.LinkedEditingRangeRequest=Vf={}))});var tg=D(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Gf;(function(e){e.file="file",e.folder="folder"})(Gf||(Ee.FileOperationPatternKind=Gf={}));var Kf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Kf||(Ee.WillCreateFilesRequest=Kf={}));var Qf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Qf||(Ee.DidCreateFilesNotification=Qf={}));var Jf;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Jf||(Ee.WillRenameFilesRequest=Jf={}));var Xf;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Xf||(Ee.DidRenameFilesNotification=Xf={}));var Zf;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidDeleteFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(eg||(Ee.WillDeleteFilesRequest=eg={}))});var sg=D(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.MonikerRequest=Bt.MonikerKind=Bt.UniquenessLevel=void 0;var ng=se(),rg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(rg||(Bt.UniquenessLevel=rg={}));var ig;(function(e){e.$import="import",e.$export="export",e.local="local"})(ig||(Bt.MonikerKind=ig={}));var og;(function(e){e.method="textDocument/moniker",e.messageDirection=ng.MessageDirection.clientToServer,e.type=new ng.ProtocolRequestType(e.method)})(og||(Bt.MonikerRequest=og={}))});var lg=D(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.TypeHierarchySubtypesRequest=Ht.TypeHierarchySupertypesRequest=Ht.TypeHierarchyPrepareRequest=void 0;var Zn=se(),ag;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ag||(Ht.TypeHierarchyPrepareRequest=ag={}));var cg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(cg||(Ht.TypeHierarchySupertypesRequest=cg={}));var ug;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(ug||(Ht.TypeHierarchySubtypesRequest=ug={}))});var fg=D(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var wo=se(),dg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=wo.MessageDirection.clientToServer,e.type=new wo.ProtocolRequestType(e.method)})(dg||(er.InlineValueRequest=dg={}));var pg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=wo.MessageDirection.serverToClient,e.type=new wo.ProtocolRequestType0(e.method)})(pg||(er.InlineValueRefreshRequest=pg={}))});var yg=D(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.InlayHintRefreshRequest=zt.InlayHintResolveRequest=zt.InlayHintRequest=void 0;var tr=se(),gg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(gg||(zt.InlayHintRequest=gg={}));var mg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(mg||(zt.InlayHintResolveRequest=mg={}));var hg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(hg||(zt.InlayHintRefreshRequest=hg={}))});var Dg=D(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Cg=un(),j_=mo(),nr=se(),bg;(function(e){function t(n){let r=n;return r&&j_.boolean(r.retriggerRequest)}e.is=t})(bg||(et.DiagnosticServerCancellationData=bg={}));var vg;(function(e){e.Full="full",e.Unchanged="unchanged"})(vg||(et.DocumentDiagnosticReportKind=vg={}));var xg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Cg.ProgressType})(xg||(et.DocumentDiagnosticRequest=xg={}));var Pg;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Cg.ProgressType})(Pg||(et.WorkspaceDiagnosticRequest=Pg={}));var _g;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(_g||(et.DiagnosticRefreshRequest=_g={}))});var Og=D(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.DidCloseNotebookDocumentNotification=pe.DidSaveNotebookDocumentNotification=pe.DidChangeNotebookDocumentNotification=pe.NotebookCellArrayChange=pe.DidOpenNotebookDocumentNotification=pe.NotebookDocumentSyncRegistrationType=pe.NotebookDocument=pe.NotebookCell=pe.ExecutionSummary=pe.NotebookCellKind=void 0;var Ir=(go(),Xr(fo)),ct=mo(),ht=se(),Eu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Eu||(pe.NotebookCellKind=Eu={}));var ju;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Ir.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(ju||(pe.ExecutionSummary=ju={}));var To;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Eu.is(s.kind)&&Ir.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!ju.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),p=Object.keys(s);if(l.length!==p.length||(l.sort(),p.sort(),!i(l,p)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(To||(pe.NotebookCell=To={}));var Sg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Ir.integer.is(i.version)&&ct.typedArray(i.cells,To.is)}e.is=n})(Sg||(pe.NotebookDocument=Sg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(pe.NotebookDocumentSyncRegistrationType=rr={}));var Rg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Rg||(pe.DidOpenNotebookDocumentNotification=Rg={}));var wg;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Ir.uinteger.is(i.start)&&Ir.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,To.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})(wg||(pe.NotebookCellArrayChange=wg={}));var Tg;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Tg||(pe.DidChangeNotebookDocumentNotification=Tg={}));var kg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(pe.DidSaveNotebookDocumentNotification=kg={}));var Ag;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ag||(pe.DidCloseNotebookDocumentNotification=Ag={}))});var Eg=D(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.InlineCompletionRequest=void 0;var Ng=se(),qg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method)})(qg||(ko.InlineCompletionRequest=qg={}))});var Ym=D(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var w=se(),jg=(go(),Xr(fo)),we=mo(),M_=sf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return M_.ImplementationRequest}});var L_=uf();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return L_.TypeDefinitionRequest}});var Hm=pf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Hm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Hm.DidChangeWorkspaceFoldersNotification}});var I_=mf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return I_.ConfigurationRequest}});var zm=bf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return zm.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return zm.ColorPresentationRequest}});var $m=Pf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return $m.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return $m.FoldingRangeRefreshRequest}});var F_=Df();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return F_.DeclarationRequest}});var U_=wf();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return U_.SelectionRangeRequest}});var Uu=Of();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Uu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Uu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Uu.WorkDoneProgressCancelNotification}});var Wu=jf();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Wu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Wu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Wu.CallHierarchyPrepareRequest}});var ir=Wf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var W_=zf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return W_.ShowDocumentRequest}});var B_=Yf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return B_.LinkedEditingRangeRequest}});var pn=tg();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return pn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return pn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return pn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return pn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return pn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return pn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return pn.WillDeleteFilesRequest}});var Bu=sg();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return Bu.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return Bu.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return Bu.MonikerRequest}});var Hu=lg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Hu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Hu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Hu.TypeHierarchySupertypesRequest}});var Vm=fg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Vm.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Vm.InlineValueRefreshRequest}});var zu=yg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return zu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return zu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return zu.InlayHintRefreshRequest}});var Fr=Dg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Fr.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Fr.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Fr.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Fr.DiagnosticRefreshRequest}});var yt=Og();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var H_=Eg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return H_.InlineCompletionRequest}});var Mu;(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})(Mu||(u.TextDocumentFilter=Mu={}));var Lu;(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})(Lu||(u.NotebookDocumentFilter=Lu={}));var Iu;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(we.string(r.notebook)||Lu.is(r.notebook))&&(r.language===void 0||we.string(r.language))}e.is=t})(Iu||(u.NotebookCellTextDocumentFilter=Iu={}));var Fu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!we.string(r)&&!Mu.is(r)&&!Iu.is(r))return!1;return!0}e.is=t})(Fu||(u.DocumentSelector=Fu={}));var Mg;(function(e){e.method="client/registerCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Mg||(u.RegistrationRequest=Mg={}));var Lg;(function(e){e.method="client/unregisterCapability",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Lg||(u.UnregistrationRequest=Lg={}));var Ig;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Ig||(u.ResourceOperationKind=Ig={}));var Fg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Fg||(u.FailureHandlingKind=Fg={}));var Ug;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Ug||(u.PositionEncodingKind=Ug={}));var Wg;(function(e){function t(n){let r=n;return r&&we.string(r.id)&&r.id.length>0}e.hasId=t})(Wg||(u.StaticRegistrationOptions=Wg={}));var Bg;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Fu.is(r.documentSelector))}e.is=t})(Bg||(u.TextDocumentRegistrationOptions=Bg={}));var Hg;(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})(Hg||(u.WorkDoneProgressOptions=Hg={}));var zg;(function(e){e.method="initialize",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(zg||(u.InitializeRequest=zg={}));var $g;(function(e){e.unknownProtocolVersion=1})($g||(u.InitializeErrorCodes=$g={}));var Vg;(function(e){e.method="initialized",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Vg||(u.InitializedNotification=Vg={}));var Yg;(function(e){e.method="shutdown",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType0(e.method)})(Yg||(u.ShutdownRequest=Yg={}));var Gg;(function(e){e.method="exit",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType0(e.method)})(Gg||(u.ExitNotification=Gg={}));var Kg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(Kg||(u.DidChangeConfigurationNotification=Kg={}));var Qg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Qg||(u.MessageType=Qg={}));var Jg;(function(e){e.method="window/showMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Jg||(u.ShowMessageNotification=Jg={}));var Xg;(function(e){e.method="window/showMessageRequest",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType(e.method)})(Xg||(u.ShowMessageRequest=Xg={}));var Zg;(function(e){e.method="window/logMessage",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(Zg||(u.LogMessageNotification=Zg={}));var em;(function(e){e.method="telemetry/event",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(em||(u.TelemetryEventNotification=em={}));var tm;(function(e){e.None=0,e.Full=1,e.Incremental=2})(tm||(u.TextDocumentSyncKind=tm={}));var nm;(function(e){e.method="textDocument/didOpen",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(nm||(u.DidOpenTextDocumentNotification=nm={}));var rm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(rm||(u.TextDocumentContentChangeEvent=rm={}));var im;(function(e){e.method="textDocument/didChange",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(im||(u.DidChangeTextDocumentNotification=im={}));var om;(function(e){e.method="textDocument/didClose",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(om||(u.DidCloseTextDocumentNotification=om={}));var sm;(function(e){e.method="textDocument/didSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(sm||(u.DidSaveTextDocumentNotification=sm={}));var am;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(am||(u.TextDocumentSaveReason=am={}));var cm;(function(e){e.method="textDocument/willSave",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(cm||(u.WillSaveTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(um||(u.WillSaveTextDocumentWaitUntilRequest=um={}));var lm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolNotificationType(e.method)})(lm||(u.DidChangeWatchedFilesNotification=lm={}));var dm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(dm||(u.FileChangeType=dm={}));var pm;(function(e){function t(n){let r=n;return we.objectLiteral(r)&&(jg.URI.is(r.baseUri)||jg.WorkspaceFolder.is(r.baseUri))&&we.string(r.pattern)}e.is=t})(pm||(u.RelativePattern=pm={}));var fm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(fm||(u.WatchKind=fm={}));var gm;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolNotificationType(e.method)})(gm||(u.PublishDiagnosticsNotification=gm={}));var mm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(mm||(u.CompletionTriggerKind=mm={}));var hm;(function(e){e.method="textDocument/completion",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(hm||(u.CompletionRequest=hm={}));var ym;(function(e){e.method="completionItem/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(ym||(u.CompletionResolveRequest=ym={}));var bm;(function(e){e.method="textDocument/hover",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(bm||(u.HoverRequest=bm={}));var vm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(vm||(u.SignatureHelpTriggerKind=vm={}));var xm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(xm||(u.SignatureHelpRequest=xm={}));var Pm;(function(e){e.method="textDocument/definition",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Pm||(u.DefinitionRequest=Pm={}));var _m;(function(e){e.method="textDocument/references",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(_m||(u.ReferencesRequest=_m={}));var Cm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Cm||(u.DocumentHighlightRequest=Cm={}));var Dm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Dm||(u.DocumentSymbolRequest=Dm={}));var Sm;(function(e){e.method="textDocument/codeAction",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Sm||(u.CodeActionRequest=Sm={}));var Rm;(function(e){e.method="codeAction/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Rm||(u.CodeActionResolveRequest=Rm={}));var wm;(function(e){e.method="workspace/symbol",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(wm||(u.WorkspaceSymbolRequest=wm={}));var Tm;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Tm||(u.WorkspaceSymbolResolveRequest=Tm={}));var km;(function(e){e.method="textDocument/codeLens",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(km||(u.CodeLensRequest=km={}));var Am;(function(e){e.method="codeLens/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Am||(u.CodeLensResolveRequest=Am={}));var Om;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType0(e.method)})(Om||(u.CodeLensRefreshRequest=Om={}));var Nm;(function(e){e.method="textDocument/documentLink",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Nm||(u.DocumentLinkRequest=Nm={}));var qm;(function(e){e.method="documentLink/resolve",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(qm||(u.DocumentLinkResolveRequest=qm={}));var Em;(function(e){e.method="textDocument/formatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Em||(u.DocumentFormattingRequest=Em={}));var jm;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(jm||(u.DocumentRangeFormattingRequest=jm={}));var Mm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Mm||(u.DocumentRangesFormattingRequest=Mm={}));var Lm;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Lm||(u.DocumentOnTypeFormattingRequest=Lm={}));var Im;(function(e){e.Identifier=1})(Im||(u.PrepareSupportDefaultBehavior=Im={}));var Fm;(function(e){e.method="textDocument/rename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Fm||(u.RenameRequest=Fm={}));var Um;(function(e){e.method="textDocument/prepareRename",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Um||(u.PrepareRenameRequest=Um={}));var Wm;(function(e){e.method="workspace/executeCommand",e.messageDirection=w.MessageDirection.clientToServer,e.type=new w.ProtocolRequestType(e.method)})(Wm||(u.ExecuteCommandRequest=Wm={}));var Bm;(function(e){e.method="workspace/applyEdit",e.messageDirection=w.MessageDirection.serverToClient,e.type=new w.ProtocolRequestType("workspace/applyEdit")})(Bm||(u.ApplyWorkspaceEditRequest=Bm={}))});var Km=D(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.createProtocolConnection=void 0;var Gm=un();function z_(e,t,n,r){return Gm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Gm.createMessageConnection)(e,t,n,r)}Ao.createProtocolConnection=z_});var Jm=D($e=>{"use strict";var $_=$e&&$e.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Oo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$_(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;Oo(un(),$e);Oo((go(),Xr(fo)),$e);Oo(se(),$e);Oo(Ym(),$e);var V_=Km();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return V_.createProtocolConnection}});var Qm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Qm||($e.LSPErrorCodes=Qm={}))});var ye=D(bt=>{"use strict";var Y_=bt&&bt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Xm=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Y_(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var G_=Rc();Xm(Rc(),bt);Xm(Jm(),bt);function K_(e,t,n,r){return(0,G_.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=K_});var Vu=D($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.SemanticTokensBuilder=$t.SemanticTokensDiff=$t.SemanticTokensFeature=void 0;var No=ye(),Q_=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(No.SemanticTokensRefreshRequest.type),on:t=>{let n=No.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=No.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=No.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};$t.SemanticTokensFeature=Q_;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}]:[]}};$t.SemanticTokensDiff=qo;var $u=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()}};$t.SemanticTokensBuilder=$u});var Zm=D(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.InlineCompletionFeature=void 0;var J_=ye(),X_=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(J_.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Eo.InlineCompletionFeature=X_});var Gu=D(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.TextDocuments=void 0;var fn=ye(),Yu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new fn.Emitter,this._onDidOpen=new fn.Emitter,this._onDidClose=new fn.Emitter,this._onDidSave=new fn.Emitter,this._onWillSave=new fn.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=fn.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}))})),fn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};jo.TextDocuments=Yu});var Qu=D(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),eh=Gu(),Z_=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=Z_;var Mo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Mo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Ku=class{constructor(t){t instanceof eh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new eh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Mo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],p=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),p.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let T=m.get(o.cells[g].document);if(T!==void 0){let V=o.cells.splice(g,1,T);if(h.push({old:V[0],new:T}),m.delete(T.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of p)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Ku});var Ju=D(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.thenable=xe.typedArray=xe.stringArray=xe.array=xe.func=xe.error=xe.number=xe.string=xe.boolean=void 0;function eC(e){return e===!0||e===!1}xe.boolean=eC;function th(e){return typeof e=="string"||e instanceof String}xe.string=th;function tC(e){return typeof e=="number"||e instanceof Number}xe.number=tC;function nC(e){return e instanceof Error}xe.error=nC;function nh(e){return typeof e=="function"}xe.func=nh;function rh(e){return Array.isArray(e)}xe.array=rh;function rC(e){return rh(e)&&e.every(t=>th(t))}xe.stringArray=rC;function iC(e,t){return Array.isArray(e)&&e.every(t)}xe.typedArray=iC;function oC(e){return e&&nh(e.then)}xe.thenable=oC});var Xu=D(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Ur=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Wr=class e extends Ur{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(""))}};Wr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Wr._timeHighBits=["8","9","a","b"];nt.empty=new Ur("00000000-0000-0000-0000-000000000000");function ih(){return new Wr}nt.v4=ih;var sC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function oh(e){return sC.test(e)}nt.isUUID=oh;function aC(e){if(!oh(e))throw new Error("invalid uuid");return new Ur(e)}nt.parse=aC;function cC(){return ih().asHex()}nt.generateUuid=cC});var sh=D(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.attachPartialResult=Yt.ProgressFeature=Yt.attachWorkDone=void 0;var Vt=ye(),uC=Xu(),gn=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(Vt.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(Vt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Vt.WorkDoneProgress.type,this._token,{kind:"end"})}};gn.Instances=new Map;var Lo=class extends gn{constructor(t,n){super(t,n),this._source=new Vt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Br=class{constructor(){}begin(){}report(){}done(){}},Io=class extends Br{constructor(){super(),this._source=new Vt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function lC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Br;let n=t.workDoneToken;return delete t.workDoneToken,new gn(e,n)}Yt.attachWorkDone=lC;var dC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Vt.WorkDoneProgressCancelNotification.type,n=>{let r=gn.Instances.get(n.token);(r instanceof Lo||r instanceof Io)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Br:new gn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,uC.generateUuid)();return this.connection.sendRequest(Vt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Lo(this.connection,t))}else return Promise.resolve(new Io)}};Yt.ProgressFeature=dC;var Zu;(function(e){e.type=new Vt.ProgressType})(Zu||(Zu={}));var el=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Zu.type,this._token,t)}};function pC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new el(e,n)}Yt.attachPartialResult=pC});var ah=D(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ConfigurationFeature=void 0;var fC=ye(),gC=Ju(),mC=e=>class extends e{getConfiguration(t){return t?gC.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(fC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Fo.ConfigurationFeature=mC});var ch=D(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.WorkspaceFoldersFeature=void 0;var Uo=ye(),hC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Uo.Emitter,this.connection.onNotification(Uo.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(Uo.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(Uo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Wo.WorkspaceFoldersFeature=hC});var uh=D(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.CallHierarchyFeature=void 0;var tl=ye(),yC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(tl.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=tl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=tl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Bo.CallHierarchyFeature=yC});var lh=D(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.ShowDocumentFeature=void 0;var bC=ye(),vC=e=>class extends e{showDocument(t){return this.connection.sendRequest(bC.ShowDocumentRequest.type,t)}};Ho.ShowDocumentFeature=vC});var dh=D(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.FileOperationsFeature=void 0;var sr=ye(),xC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};zo.FileOperationsFeature=xC});var ph=D($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.LinkedEditingRangeFeature=void 0;var PC=ye(),_C=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(PC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};$o.LinkedEditingRangeFeature=_C});var fh=D(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.TypeHierarchyFeature=void 0;var nl=ye(),CC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(nl.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=nl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=nl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Vo.TypeHierarchyFeature=CC});var mh=D(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.InlineValueFeature=void 0;var gh=ye(),DC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(gh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(gh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Yo.InlineValueFeature=DC});var yh=D(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.FoldingRangeFeature=void 0;var hh=ye(),SC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(hh.FoldingRangeRefreshRequest.type),on:t=>{let n=hh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Go.FoldingRangeFeature=SC});var bh=D(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.InlayHintFeature=void 0;var rl=ye(),RC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(rl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(rl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(rl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Ko.InlayHintFeature=RC});var vh=D(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DiagnosticFeature=void 0;var Hr=ye(),wC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Hr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Hr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Hr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Hr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Qo.DiagnosticFeature=wC});var xh=D(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.MonikerFeature=void 0;var TC=ye(),kC=e=>class extends e{get moniker(){return{on:t=>{let n=TC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Jo.MonikerFeature=kC});var jh=D(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=Ju(),ol=Xu(),B=sh(),AC=ah(),OC=ch(),NC=uh(),qC=Vu(),EC=lh(),jC=dh(),MC=ph(),LC=fh(),IC=mh(),FC=yh(),UC=bh(),WC=vh(),BC=Qu(),HC=xh();function il(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 Xo=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},al=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(il)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(il)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(il)}},Ph=(0,EC.ShowDocumentFeature)((0,B.ProgressFeature)(al)),_h;(function(e){function t(){return new Zo}e.create=t})(_h||(Q.BulkRegistration=_h={}));var Zo=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=ol.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Ch;(function(e){function t(){return new zr(void 0,[])}e.create=t})(Ch||(Q.BulkUnregistration=Ch={}));var zr=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},es=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 Zo?this.registerMany(t):t instanceof zr?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=ol.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=ol.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new zr(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},cl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Dh=(0,jC.FileOperationsFeature)((0,OC.WorkspaceFoldersFeature)((0,AC.ConfigurationFeature)(cl))),ts=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},ns=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},rs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=rs;var Sh=(0,FC.FoldingRangeFeature)((0,HC.MonikerFeature)((0,WC.DiagnosticFeature)((0,UC.InlayHintFeature)((0,IC.InlineValueFeature)((0,LC.TypeHierarchyFeature)((0,MC.LinkedEditingRangeFeature)((0,qC.SemanticTokensFeature)((0,NC.CallHierarchyFeature)(rs))))))))),is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=is;var Rh=(0,BC.NotebookSyncFeature)(is);function wh(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=wh;function Th(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Th;function kh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=kh;function Ah(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Oh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=Nh;function qh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=qh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Eh;function zC(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,wh),tracer:n(e.tracer,t.tracer,kh),telemetry:n(e.telemetry,t.telemetry,Th),client:n(e.client,t.client,Ah),window:n(e.window,t.window,Oh),workspace:n(e.workspace,t.workspace,Nh),languages:n(e.languages,t.languages,qh),notebooks:n(e.notebooks,t.notebooks,Eh)}}Q.combineFeatures=zC;function $C(e,t,n){let r=n&&n.console?new(n.console(Xo)):new Xo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ts)):new ts,s=n&&n.telemetry?new(n.telemetry(ns)):new ns,a=n&&n.client?new(n.client(es)):new es,c=n&&n.window?new(n.window(Ph)):new Ph,l=n&&n.workspace?new(n.workspace(Dh)):new Dh,p=n&&n.languages?new(n.languages(Sh)):new Sh,h=n&&n.notebooks?new(n.notebooks(Rh)):new Rh,v=[r,o,s,a,c,l,p,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,T)=>{m.then(V=>g(V),V=>T(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let T=rt.string(m)?m:m.method;return i.sendNotification(T,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return p},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,T)=>m(g,T)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,T)=>m(g,T)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,T)=>m(g,T)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,T)=>m(g,T)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,T)=>m(g,T)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,T)=>m(g,T,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(T=>{if(T instanceof O.ResponseError)return T;let V=T;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let T of v)T.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=$C});var ul=D(je=>{"use strict";var VC=je&&je.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Lh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&VC(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var YC=Vu();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return YC.SemanticTokensBuilder}});var GC=Zm();Lh(ye(),je);var KC=Gu();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return KC.TextDocuments}});var QC=Qu();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return QC.NotebookDocuments}});Lh(jh(),je);var Mh;(function(e){e.all={__brand:"features",languages:GC.InlineCompletionFeature}})(Mh||(je.ProposedFeatures=Mh={}))});var Fh=D((Uw,Ih)=>{"use strict";Ih.exports=ye()});var ll=D(vt=>{"use strict";var JC=vt&&vt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Wh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&JC(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var os=ul();Wh(Fh(),vt);Wh(ul(),vt);var Uh=!1,XC={initialize:e=>{},get shutdownReceived(){return Uh},set shutdownReceived(e){Uh=e},exit:e=>{}};function ZC(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),os.ConnectionStrategy.is(e)||os.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,os.createProtocolConnection)(o,s,l,a);return(0,os.createConnection)(c,XC,i)}vt.createConnection=ZC});var Gt=D((Bw,Bh)=>{"use strict";Bh.exports=ll()});var xl=D((OT,ty)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ey(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 U0(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 ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ey(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ey(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,p=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?p=h:h===0&&(p=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(p=h)}var R="";for(h=r+p+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+p):(s+=p,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return U0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,p=t.length-1,h=0;p>=o;--p){if(r=t.charCodeAt(p),r===47){if(!l){a=p+1;break}continue}c===-1&&(l=!1,c=p+1),r===46?s===-1?s=p: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};ur.posix=ur;ty.exports=ur});import{CONFIG_FILE_NAME as lD}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as vx,loadConfig as xx}from"@redocly/openapi-core";var Sl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var S,q="",M=0,N=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)S=P.charCodeAt(G);else{if(S===47)break;S=47}if(S===47){if(!(N===G-1||z===1))if(N!==G-1&&z===2){if(q.length<2||M!==2||q.charCodeAt(q.length-1)!==46||q.charCodeAt(q.length-2)!==46){if(q.length>2){var Ce=q.lastIndexOf("/");if(Ce!==q.length-1){Ce===-1?(q="",M=0):M=(q=q.slice(0,Ce)).length-1-q.lastIndexOf("/"),N=G,z=0;continue}}else if(q.length===2||q.length===1){q="",M=0,N=G,z=0;continue}}C&&(q.length>0?q+="/..":q="..",M=2)}else q.length>0?q+="/"+P.slice(N+1,G):q=P.slice(N+1,G),M=G-N-1;N=G,z=0}else S===46&&z!==-1?++z:z=-1}return q}var j={resolve:function(){for(var P,C="",S=!1,q=arguments.length-1;q>=-1&&!S;q--){var M;q>=0?M=arguments[q]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,S=M.charCodeAt(0)===47)}return C=E(C,!S),S?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,S=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&S&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var S=arguments[C];b(S),S.length>0&&(P===void 0?P=S:P+="/"+S)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var S=1;S<P.length&&P.charCodeAt(S)===47;++S);for(var q=P.length,M=q-S,N=1;N<C.length&&C.charCodeAt(N)===47;++N);for(var z=C.length-N,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(N+ee)===47)return C.slice(N+ee+1);if(ee===0)return C.slice(N+ee)}else M>G&&(P.charCodeAt(S+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(S+ee);if(ot!==C.charCodeAt(N+ee))break;ot===47&&(Ce=ee)}var Zt="";for(ee=S+Ce+1;ee<=q;++ee)ee!==q&&P.charCodeAt(ee)!==47||(Zt.length===0?Zt+="..":Zt+="/..");return Zt.length>0?Zt+C.slice(N+Ce):(N+=Ce,C.charCodeAt(N)===47&&++N,C.slice(N))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),S=C===47,q=-1,M=!0,N=P.length-1;N>=1;--N)if((C=P.charCodeAt(N))===47){if(!M){q=N;break}}else M=!1;return q===-1?S?"/":".":S&&q===1?"//":P.slice(0,q)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var S,q=0,M=-1,N=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(S=P.length-1;S>=0;--S){var Ce=P.charCodeAt(S);if(Ce===47){if(!N){q=S+1;break}}else G===-1&&(N=!1,G=S+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=S):(z=-1,M=G))}return q===M?M=G:M===-1&&(M=P.length),P.slice(q,M)}for(S=P.length-1;S>=0;--S)if(P.charCodeAt(S)===47){if(!N){q=S+1;break}}else M===-1&&(N=!1,M=S+1);return M===-1?"":P.slice(q,M)},extname:function(P){b(P);for(var C=-1,S=0,q=-1,M=!0,N=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)q===-1&&(M=!1,q=z+1),G===46?C===-1?C=z:N!==1&&(N=1):C!==-1&&(N=-1);else if(!M){S=z+1;break}}return C===-1||q===-1||N===0||N===1&&C===q-1&&C===S+1?"":P.slice(C,q)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return function(C,S){var q=S.dir||S.root,M=S.base||(S.name||"")+(S.ext||"");return q?q===S.root?q+M:q+"/"+M:M}(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var S,q=P.charCodeAt(0),M=q===47;M?(C.root="/",S=1):S=0;for(var N=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=S;--ee)if((q=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),q===46?N===-1?N=ee:ot!==1&&(ot=1):N!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return N===-1||G===-1||ot===0||ot===1&&N===G-1&&N===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,N),C.base=P.slice(1,G)):(C.name=P.slice(z,N),C.base=P.slice(z,G)),C.ext=P.slice(N,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>hn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",p="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,S=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=function(q,M){return q||M?q:"file"}(b,S),this.authority=E||l,this.path=function(q,M){switch(q){case"https":case"http":case"file":M?M[0]!==p&&(M=p+M):M=p}return M}(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,S))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:S}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),S===void 0?S=this.fragment:S===null&&(S=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&S===this.fragment?this:new R(E,j,P,C,S)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,p)),b[0]===p&&b[1]===p){let j=b.indexOf(p,2);j===-1?(E=b.substring(2),b=p):(E=b.substring(2,j),b=b.substring(j)||p)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let S=k.charCodeAt(C);if(S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===45||S===46||S===95||S===126||b&&S===47||E&&S===91||E&&S===93||E&&S===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let q=I[S];q!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=q):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:S,query:q,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=p,j+=p),C){let N=C.indexOf("@");if(N!==-1){let z=C.substr(0,N);C=C.substr(N+1),N=z.lastIndexOf(":"),N===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,N),!1,!1),j+=":",j+=E(z.substr(N+1),!1,!0)),j+="@"}C=C.toLowerCase(),N=C.lastIndexOf(":"),N===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,N),!1,!0),j+=C.substr(N))}if(S){if(S.length>=3&&S.charCodeAt(0)===47&&S.charCodeAt(2)===58){let N=S.charCodeAt(1);N>=65&&N<=90&&(S=`/${String.fromCharCode(N+32)}:${S.substr(3)}`)}else if(S.length>=2&&S.charCodeAt(1)===58){let N=S.charCodeAt(0);N>=65&&N<=90&&(S=`${String.fromCharCode(N+32)}:${S.substr(2)}`)}j+=E(S,!0,!1)}return q&&(j+="?",j+=E(q,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function T(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+T(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,b=>T(b)):k}var it=n(975);let wt=it.posix||it,Xt="/";var hn;(function(k){k.joinPath=function(b,...E){return b.with({path:wt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==Xt&&(j=Xt+j,P=!0);let C=wt.resolve(j,...E);return P&&C[0]===Xt&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===Xt)return b;let E=wt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return wt.basename(b.path)},k.extname=function(b){return wt.extname(b.path)}})(hn||(hn={})),Sl=r})();var{URI:kt,Utils:ne}=Sl;import{CONFIG_FILE_NAME as Ny}from"@redocly/openapi-core";var Cs={languageId:"yaml",filePattern:/\.ya?ml$/i},Ds={languageId:"json",filePattern:/\.json$/i},_s=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Cs,Ds];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(De(t)),Ny);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},be=new _s;function Rl(e,t){return ne.resolvePath(De(e)).toString()===ne.resolvePath(De(t)).toString()}function De(e){return kt.parse(e)}function vn(e){return kt.parse(e).fsPath}function pr(e){let t=["https","http"],{scheme:n}=kt.parse(e);return t.includes(n)}function xn(e){return ne.basename(De(e))}async function wl(e,t="/"){let n=ne.resolvePath(De(t));for(;e.path!=="/";)try{(await be.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as yx,Source as dp,readFileFromUrl as bx}from"@redocly/openapi-core";var li=Ie(yr(),1);import{isAbsoluteUrl as gx}from"@redocly/openapi-core";function Zd(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let p=i.get(l.uri),h=p?Date.now()-p:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let p=r.get(l.uri),h=n&&!p;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];p||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function Xs(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 ep(e){return e==="$ref"}async function Zs(e,t){let n=kt.parse(t);return ne.joinPath(n,e).toString()}async function tp(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await Zs(i,n)===t)return r}function np(e){return typeof e=="string"}function di(e){return typeof e=="function"}function rp(e){return e?.kind===li.Kind.MAP}function ea(e){return e?.kind===li.Kind.MAPPING}function ta(e){return e?.kind===li.Kind.SEQ}function br(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function na(e){return gx(e)||e.startsWith("file://")}async function ip(e,t={}){let{maxRetries:n=3,retryDelay:r=1e3,retryDelayMultiplier:i=1.5,maxRetryDelay:o=1e4}=t;for(let s=1;s<=n;s++)try{return await e()}catch(a){if(s===n)throw a;let c=Math.min(r*Math.pow(i,s-1),o);await new Promise(l=>setTimeout(l,c))}throw new Error("Operation failed after maximum retries")}var pi=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=ap(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,p=op(r.text,!1,o);if(c-a===p.length)for(let v=0,y=p.length;v<y;v++)l[v+a+1]=p[v];else p.length<1e4?l.splice(a+1,c-a,...p):this._lineOffsets=l=l.slice(0,a+1).concat(p,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+p.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=op(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&&sp(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 pi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof pi)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=ra(o.map(mx),(p,h)=>{let v=p.range.start.line-h.range.start.line;return v===0?p.range.start.character-h.range.start.character:v}),c=0,l=[];for(let p of a){let h=i.offsetAt(p.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),p.newText.length&&l.push(p.newText),c=i.offsetAt(p.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(fi||(fi={}));function ra(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ra(r,t),ra(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 op(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);sp(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function sp(e){return e===13||e===10}function ap(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 mx(e){let t=ap(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var cp=new Map;function up(e,t){return cp.set(e,t)}function lp(e){let t=[];for(let[n,r]of cp.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=be.documents.get(e);if(t)return t;let n=await be.fs.readFile(De(e),"utf-8");return fi.create(e,"yaml",1,n)}function ia(e){return Ds.filePattern.test(e)}function hx(e){return Cs.filePattern.test(e)}var Ct=class extends yx{resolveExternalRef(t,n){return na(n)?n:t&&na(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(De(t)),n).toString():n}async loadExternalRef(t){if(pr(t)){let{body:n,mimeType:r}=await bx(t,{...this.config.http,customFetch:fetch});return new dp(t,n,r)}return new dp(t,(await Qe(t)).getText())}};var Rn;async function oa(e){let t=new Ct,n=e?await be.findConfig(e):void 0;return Rn=await xx({configPath:n,externalRefResolver:t}),Rn}async function wn(){return ip(async()=>(Rn||await oa(),Rn))}async function pp(e,t){try{let n=e?await be.findConfig(e):void 0;return await oa(n)}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),oa()}}function vr(e){return sa(e)?!0:!!Rn?.resolvedRefMap&&[...Rn.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Rl(xn(e),n))}function sa(e){return xn(e)===vx}var fp={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:fp,additionalProperties:!1},Px={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},qt={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({},fp),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),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:Px},additionalProperties:!1}},additionalProperties:!1};var _x={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},aa={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},gi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:qt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:aa,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:_x,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1};var Tn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Cx={type:"object",properties:{name:{type:"string"},items:Tn,queries:Tn,mutations:Tn,subscriptions:Tn,types:Tn,directives:Tn},required:["name"],additionalProperties:!1},Dx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Cx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Dx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:aa,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:qt},additionalProperties:!1};var Sx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Rx={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"}}},gp={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},wx={type:"object",properties:{beforeInfo:{type:"array",items:gp},end:{type:"array",items:gp}}},sn={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},mi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Tx={type:"object",properties:vi(sn.properties,["light","dark"])},kx={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"}}},Ax={type:"object",properties:{error:mi,info:mi,redirect:mi,success:mi}},Ox={type:"object",properties:An(sn.properties,["dark"])},Nx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},qx={type:"object",properties:{accent:sn,border:Tx,error:sn,http:kx,primary:sn,responses:Ax,secondary:Ox,success:sn,text:Nx,tonalOffset:{type:"number"},warning:sn}},hi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Ex={type:"object",properties:{small:hi,medium:hi,large:hi,xlarge:hi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},jx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Ex})},mp={type:"object",properties:vi(ft.properties,["fontSize","lineHeight"])},Mx={type:"object",properties:{medium:mp,small:mp}},Lx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Mx})},Ix={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Fx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},hp={type:"object",properties:{fullWidth:{type:"boolean"}}},Ux={type:"object",properties:{buttons:jx,httpBadges:Lx,layoutControls:Ix,panels:Fx,tryItButton:hp,tryItSendButton:hp}},bi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Wx={type:"object",properties:{maxWidth:bi}},Bx={type:"object",properties:{maxWidth:bi,middlePanelMaxWidth:bi}},Hx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Wx,"three-panel":Bx}},yp={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},zx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:yp,defaultDetailsWidth:{type:"string"},examples:yp,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},vp={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},$x={type:"object",properties:vi(vp.properties,["textTransform"])},Vx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Yx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:vp,level1items:$x,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Vx,textColor:{type:"string"},width:{type:"string"}})},yi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Gx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Kx={type:"object",properties:An(ft.properties,["fontSize"])},Qx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Jx={type:"object",properties:Object.assign(Object.assign({code:Gx,fieldName:ft},vi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:yi,heading2:yi,heading3:yi,headings:Kx,lineHeight:{type:"string"},links:Qx,optimizeSpeed:{type:"boolean"},rightPanelHeading:yi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},Xx={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},Zx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Xx}},eP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},tP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},bp={type:"object",properties:{custom:{type:"string"}}},nP={type:"object",properties:{DownloadButton:bp,NextSectionButton:bp}},rP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},iP={type:"object",properties:{borderRadius:{type:"string"}}},oP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},sP={type:"object",properties:{breakpoints:bi,codeBlock:Zx,colors:qx,components:Ux,layout:Hx,logo:eP,fab:tP,overrides:nP,rightPanel:rP,schema:zx,shape:iP,sidebar:Yx,spacing:oP,typography:Jx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},aP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Sx}},required:["languages"]},xp={type:"object",properties:{theme:sP,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:aP,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:Rx,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:wx,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 vi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Et={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Et,oas2Rules:Et,oas3_0Rules:Et,oas3_1Rules:Et,async2Rules:Et,async3Rules:Et,arazzo1Rules:Et,overlay1Rules:Et},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Pp={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},ca={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"}}}},ua={type:"array",items:Object.assign(Object.assign({},ca),{properties:Object.assign(Object.assign({},ca.properties),{items:{type:"array",items:ca}})})},cP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},uP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},lP={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}},dP={type:"object",properties:Object.assign({facets:lP},Re.properties),additionalProperties:!1},pP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pi={type:"object",properties:Object.assign({items:ua},Re.properties),additionalProperties:!1},_i={type:"object",additionalProperties:cP},Ci={type:"object",properties:Object.assign({items:ua,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Di={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Si={type:"object",properties:{head:{type:"array",items:Pp},body:{type:"array",items:Pp}},additionalProperties:!1},Ri={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:uP,filters:dP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:pP}},Re.properties),additionalProperties:!1},Ti={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},fP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},ki={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:fP},additionalProperties:!1},Ai={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},Oi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},gi),{properties:Object.assign(Object.assign({},gi.properties),xp.properties)}),gP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},mP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},hP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},bP={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"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},xP={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"]},la={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"]},PP={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:la}},additionalProperties:!1,required:["trackingId"]},Ni={type:"object",properties:{adobe:gP,amplitude:mP,fullstory:hP,heap:yP,rudderstack:bP,segment:vP,gtm:xP,ga:PP}},qi={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},Ei={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ji={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},_P={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"}}}},CP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:_P},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ua,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Nn={type:"object",patternProperties:{".*":CP}},Mi={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var DP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},SP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},RP={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},jt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:SP},excludes:{type:"array",items:DP},filters:{type:"array",items:RP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},Li={type:"object",properties:{catalogs:{type:"object",properties:{all:jt,services:jt,domains:jt,teams:jt,users:jt,apiDescriptions:jt,dataSchemas:jt,apiOperations:jt},additionalProperties:!1}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Di,scripts:Si,links:Ri,feedback:qt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:Ni,userMenu:qi,versionPicker:Ei,breadcrumbs:ji,catalog:Nn,entitiesCatalog:Li,catalogClassic:Nn,scorecard:Mi},additionalProperties:!0};var pa="https://redocly.com/sso/teams",qn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(qn||(qn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var da;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(da||(da={}));function Ii(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Ii(i,t):i)]:[n,Ii(r,t)]}).filter(Boolean))}var wP={type:"object",additionalProperties:{type:"string"}},TP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Fi={type:"string",enum:["error","warn","off"]},kP={type:"object",additionalProperties:!1,properties:{schemaCheck:Fi,statusCodeCheck:Fi,contentTypeCheck:Fi,successCriteriaCheck:Fi}},AP={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},OP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_p={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:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[AP,OP]},inputs:wP,servers:TP,severity:kP},required:["path","trigger","agent"],additionalProperties:!1}},projectUrl:{type:"string",format:"uri"}},additionalProperties:!1};var NP={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},qP={type:"object",properties:{type:{type:"string",const:qn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:NP,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},EP={type:"object",properties:{type:{type:"string",const:qn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:pa},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},jP={oneOf:[qP,EP],discriminator:{propertyName:"type"}},MP={type:"object",additionalProperties:jP},LP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},IP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},FP={type:"object",additionalProperties:IP,default:{}},ma={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},UP={type:"object",additionalProperties:!0},WP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Cp={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},Dp={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Cp},default:{llmstxt:Cp.default},additionalProperties:!1},BP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},an={type:"object",additionalProperties:{type:"string"}},Rp={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:an,cms:an,reunite:an,features:{type:"object",properties:{aiSearch:an},additionalProperties:!1},content:{type:"object",properties:{"**":an},additionalProperties:an}},additionalProperties:an},HP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},zP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},$P={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:[HP,zP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},VP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},YP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},fa={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:[VP,YP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},GP=Object.assign(Object.assign({},fa),{properties:Object.assign(Object.assign({},fa.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),KP={type:"object",oneOf:[fa,GP,$P],discriminator:{propertyName:"type"}},QP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:KP}}},Sp={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"]},JP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ga={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:FP,seo:Dp,rbac:Rp,apiFunctions:BP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:JP}},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:ma},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:MP,sso:LP,residency:{type:"string"},developerOnboarding:QP,removeAttribution:{type:"boolean"},i18n:Sp,l10n:Sp,metadata:UP,metadataGlobs:WP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:_p,logo:xi,navbar:Pi,products:_i,footer:Ci,sidebar:Di,scripts:Si,links:Ri,feedback:qt,search:wi,colorMode:Ti,navigation:ki,codeSnippet:Ai,markdown:Oi,openapi:On,graphql:kn,analytics:Ni,userMenu:qi,versionPicker:Ei,breadcrumbs:ji,catalog:Nn,entitiesCatalog:Li,catalogClassic:Nn,scorecard:Mi}),default:{redirects:{},seo:Dp.default},additionalProperties:!0},XP=Object.assign(Object.assign({},Ii(ga,"default")),{additionalProperties:!1}),ha=Object.assign(Object.assign({$id:"root-redocly-config"},ga),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ga.properties),{env:{type:"object",additionalProperties:XP}}),default:{},additionalProperties:!1});var ya={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:la}}},additionalProperties:!0,default:{}},ZP={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},ya.properties),{apis:{type:"object",additionalProperties:ma},theme:ya}),additionalProperties:!1};var Le=Ie(Gt(),1);import{getLineColLocation as c0,lintDocument as u0,makeDocumentFromString as fl,lintConfig as l0,detectSpec as d0,createConfigTypes as p0}from"@redocly/openapi-core";import{bundleDocument as e0,makeDocumentFromString as t0,isPlainObject as n0}from"@redocly/openapi-core";var Hh=new Map,ss=new Map;function r0(e){return e?Array.from(e).map(([t,n])=>[t,Xs(n)]):[]}async function dl(e,t){let n=await wn(),r=new Ct(n.resolve),i=t0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await e0({document:i,config:n,externalRefResolver:r}),p=r0(l);l&&(ss=new Map([...ss,...l])),Hh.set(e.uri,{uri:e.uri,name:xn(e.uri),definition:n0(o.parsed)?o.parsed:{},rootType:c,refTypes:p,errors:t})}function i0(){return Array.from(Hh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:xn(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function pl(e){return ss.has(e)?ss.get(e):null}import{createConfig as o0,lintDocument as s0}from"@redocly/openapi-core";async function zh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await a0(i):i,c=await o0({...s,plugins:a},{configPath:r}),l=await s0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:p})=>!p).map(p=>({...p,scorecardLevel:s.name})))}return o}async function a0(e){if(!e)return[];try{let t=e.replaceAll("__redocly_dirname",`"${typeof __dirname<"u"?__dirname:""}"`);return(await import(`data:text/javascript;base64,${btoa(t)}`)).default.map(s=>s())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
70
70
|
Plugins code preview:`,e.substring(0,500)+"..."),[]}}var f0=800,g0=5,gl=Zd(y0,f0);async function m0(e){let t=e.map(({documentPath:i})=>De(i).toString()),n=await wn(),r=await be.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await Zs(i,r);if(t.includes(o))return o}return t[0]}function h0(e){try{return d0(e),!0}catch{return!1}}async function y0(e){let t=e.uri,n=await wn();if(vr(vn(t))){let r=sa(t)?fl(e.getText(),t):fl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new Ct,o=await l0({config:{document:r},externalRefResolver:i,externalConfigTypes:p0(ha,n)}),s=[{uri:e.uri,diagnostics:[]}];return $h(o,s),s}else{let r=lp(t),i=await m0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=fl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!h0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new Ct(n.resolve),c=await be.getRootWorkspaceFolderURI(),l=await tp(n.resolvedConfig.apis??{},e.uri,c),p=Date.now(),h=[],v=[];try{v=(await u0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=be.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&be.scorecardStatus==="enabled"?await zh(o,a,$,n.configPath,be.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=P0(v);dl(e,y);let R=Date.now()-p;s=[...new Set([e.uri,...[...a.getFiles()].map($=>De($).toString())])].map($=>({uri:$,diagnostics:[]})),up(t,{dependencyPaths:a.getFiles(),durationMS:R}),$h(h,s)}catch(a){b0(e.uri,a,s)}return s}}function as(){return be.documents.all().map(gl)}function b0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?De(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Vh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Vh(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 v0(e){return e.suggest.length===0?"":e.suggest.length===1?`
|
|
71
71
|
Did you mean: ${e.suggest[0]} ?`:`
|
|
72
72
|
Did you mean:
|