@nowline/embed 0.4.0 → 0.4.1

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.
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.4.0 sha=86c53d1 built=2026-05-27T13:21:30.695Z env=prod */
1
+ /*! @nowline/embed 0.4.1 sha=b28a065 built=2026-05-27T23:49:38.587Z env=prod */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -6373,8 +6373,8 @@ var init_node_read_file = __esm({
6373
6373
  });
6374
6374
 
6375
6375
  // src/auth/env.ts
6376
- var EMBED_VERSION = true ? "0.4.0" : "0.0.0";
6377
- var EMBED_SHA = true ? "86c53d1" : "unknown";
6376
+ var EMBED_VERSION = true ? "0.4.1" : "0.0.0";
6377
+ var EMBED_SHA = true ? "b28a065" : "unknown";
6378
6378
 
6379
6379
  // ../browser/dist/diagnostic-row.js
6380
6380
  var DID_YOU_MEAN_RE = /did you mean ['"]?([^'"?]+)['"]?\??/i;
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.4.0 sha=86c53d1 built=2026-05-27T13:21:30.695Z env=prod */
1
+ /*! @nowline/embed 0.4.1 sha=b28a065 built=2026-05-27T23:49:38.587Z env=prod */
2
2
  "use strict";var nowline=(()=>{var UP=Object.create;var hc=Object.defineProperty;var BP=Object.getOwnPropertyDescriptor;var XP=Object.getOwnPropertyNames;var GP=Object.getPrototypeOf,HP=Object.prototype.hasOwnProperty;var jP=(t,e,r)=>e in t?hc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var bE=(t,e)=>()=>(t&&(e=t(t=0)),e);var ce=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tn=(t,e)=>{for(var r in e)hc(t,r,{get:e[r],enumerable:!0})},Wu=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of XP(e))!HP.call(t,i)&&i!==r&&hc(t,i,{get:()=>e[i],enumerable:!(n=BP(e,i))||n.enumerable});return t},Ie=(t,e,r)=>(Wu(t,e,"default"),r&&Wu(r,e,"default")),rm=(t,e,r)=>(r=t!=null?UP(GP(t)):{},Wu(e||!t||!t.__esModule?hc(r,"default",{value:t,enumerable:!0}):r,t)),qu=t=>Wu(hc({},"__esModule",{value:!0}),t);var le=(t,e,r)=>jP(t,typeof e!="symbol"?e+"":e,r);var Dd={};tn(Dd,{AnnotatedTextEdit:()=>Xn,ChangeAnnotation:()=>bo,ChangeAnnotationIdentifier:()=>Lt,CodeAction:()=>hy,CodeActionContext:()=>py,CodeActionKind:()=>dy,CodeActionTriggerKind:()=>ul,CodeDescription:()=>Hg,CodeLens:()=>my,Color:()=>vd,ColorInformation:()=>Mg,ColorPresentation:()=>Fg,Command:()=>wo,CompletionItem:()=>ey,CompletionItemKind:()=>Vg,CompletionItemLabelDetails:()=>Qg,CompletionItemTag:()=>Kg,CompletionList:()=>ty,CreateFile:()=>zs,DeleteFile:()=>Ys,Diagnostic:()=>sl,DiagnosticRelatedInformation:()=>kd,DiagnosticSeverity:()=>Xg,DiagnosticTag:()=>Gg,DocumentHighlight:()=>sy,DocumentHighlightKind:()=>oy,DocumentLink:()=>yy,DocumentSymbol:()=>fy,DocumentUri:()=>Lg,EOL:()=>iF,FoldingRange:()=>Bg,FoldingRangeKind:()=>Ug,FormattingOptions:()=>gy,Hover:()=>ry,InlayHint:()=>Iy,InlayHintKind:()=>Od,InlayHintLabelPart:()=>Ld,InlineCompletionContext:()=>Cy,InlineCompletionItem:()=>vy,InlineCompletionList:()=>ky,InlineCompletionTriggerKind:()=>Ny,InlineValueContext:()=>Ay,InlineValueEvaluatableExpression:()=>wy,InlineValueText:()=>Ry,InlineValueVariableLookup:()=>by,InsertReplaceEdit:()=>Zg,InsertTextFormat:()=>Yg,InsertTextMode:()=>Jg,Location:()=>ol,LocationLink:()=>$g,MarkedString:()=>ll,MarkupContent:()=>Ks,MarkupKind:()=>Cd,OptionalVersionedTextDocumentIdentifier:()=>cl,ParameterInformation:()=>ny,Position:()=>ke,Range:()=>_e,RenameFile:()=>Vs,SelectedCompletionInfo:()=>Py,SelectionRange:()=>xy,SemanticTokenModifiers:()=>_y,SemanticTokenTypes:()=>Ty,SemanticTokens:()=>Ey,SignatureInformation:()=>iy,StringValue:()=>Sy,SymbolInformation:()=>ly,SymbolKind:()=>ay,SymbolTag:()=>cy,TextDocument:()=>Ly,TextDocumentEdit:()=>al,TextDocumentIdentifier:()=>Wg,TextDocumentItem:()=>zg,TextEdit:()=>un,URI:()=>Sd,VersionedTextDocumentIdentifier:()=>qg,WorkspaceChange:()=>jg,WorkspaceEdit:()=>Nd,WorkspaceFolder:()=>Oy,WorkspaceSymbol:()=>uy,integer:()=>Dg,uinteger:()=>il});var Lg,Sd,Dg,il,ke,_e,ol,$g,vd,Mg,Fg,Ug,Bg,kd,Xg,Gg,Hg,sl,wo,un,bo,Lt,Xn,al,zs,Vs,Ys,Nd,qs,Pd,jg,Wg,qg,cl,zg,Cd,Ks,Vg,Yg,Kg,Zg,Jg,Qg,ey,ty,ll,ry,ny,iy,oy,sy,ay,cy,ly,uy,fy,dy,ul,py,hy,my,gy,yy,xy,Ty,_y,Ey,Ry,by,wy,Ay,Od,Ld,Iy,Sy,vy,ky,Ny,Py,Cy,Oy,iF,Ly,Dy,b,Zs=bE(()=>{"use strict";(function(t){function e(r){return typeof r=="string"}t.is=e})(Lg||(Lg={}));(function(t){function e(r){return typeof r=="string"}t.is=e})(Sd||(Sd={}));(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=e})(Dg||(Dg={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=e})(il||(il={}));(function(t){function e(n,i){return n===Number.MAX_VALUE&&(n=il.MAX_VALUE),i===Number.MAX_VALUE&&(i=il.MAX_VALUE),{line:n,character:i}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&b.uinteger(i.line)&&b.uinteger(i.character)}t.is=r})(ke||(ke={}));(function(t){function e(n,i,o,s){if(b.uinteger(n)&&b.uinteger(i)&&b.uinteger(o)&&b.uinteger(s))return{start:ke.create(n,i),end:ke.create(o,s)};if(ke.is(n)&&ke.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${o}, ${s}]`)}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&ke.is(i.start)&&ke.is(i.end)}t.is=r})(_e||(_e={}));(function(t){function e(n,i){return{uri:n,range:i}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&_e.is(i.range)&&(b.string(i.uri)||b.undefined(i.uri))}t.is=r})(ol||(ol={}));(function(t){function e(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&_e.is(i.targetRange)&&b.string(i.targetUri)&&_e.is(i.targetSelectionRange)&&(_e.is(i.originSelectionRange)||b.undefined(i.originSelectionRange))}t.is=r})($g||($g={}));(function(t){function e(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&b.numberRange(i.red,0,1)&&b.numberRange(i.green,0,1)&&b.numberRange(i.blue,0,1)&&b.numberRange(i.alpha,0,1)}t.is=r})(vd||(vd={}));(function(t){function e(n,i){return{range:n,color:i}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&_e.is(i.range)&&vd.is(i.color)}t.is=r})(Mg||(Mg={}));(function(t){function e(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&b.string(i.label)&&(b.undefined(i.textEdit)||un.is(i))&&(b.undefined(i.additionalTextEdits)||b.typedArray(i.additionalTextEdits,un.is))}t.is=r})(Fg||(Fg={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Ug||(Ug={}));(function(t){function e(n,i,o,s,a,c){let l={startLine:n,endLine:i};return b.defined(o)&&(l.startCharacter=o),b.defined(s)&&(l.endCharacter=s),b.defined(a)&&(l.kind=a),b.defined(c)&&(l.collapsedText=c),l}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&b.uinteger(i.startLine)&&b.uinteger(i.startLine)&&(b.undefined(i.startCharacter)||b.uinteger(i.startCharacter))&&(b.undefined(i.endCharacter)||b.uinteger(i.endCharacter))&&(b.undefined(i.kind)||b.string(i.kind))}t.is=r})(Bg||(Bg={}));(function(t){function e(n,i){return{location:n,message:i}}t.create=e;function r(n){let i=n;return b.defined(i)&&ol.is(i.location)&&b.string(i.message)}t.is=r})(kd||(kd={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Xg||(Xg={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(Gg||(Gg={}));(function(t){function e(r){let n=r;return b.objectLiteral(n)&&b.string(n.href)}t.is=e})(Hg||(Hg={}));(function(t){function e(n,i,o,s,a,c){let l={range:n,message:i};return b.defined(o)&&(l.severity=o),b.defined(s)&&(l.code=s),b.defined(a)&&(l.source=a),b.defined(c)&&(l.relatedInformation=c),l}t.create=e;function r(n){var i;let o=n;return b.defined(o)&&_e.is(o.range)&&b.string(o.message)&&(b.number(o.severity)||b.undefined(o.severity))&&(b.integer(o.code)||b.string(o.code)||b.undefined(o.code))&&(b.undefined(o.codeDescription)||b.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(b.string(o.source)||b.undefined(o.source))&&(b.undefined(o.relatedInformation)||b.typedArray(o.relatedInformation,kd.is))}t.is=r})(sl||(sl={}));(function(t){function e(n,i,...o){let s={title:n,command:i};return b.defined(o)&&o.length>0&&(s.arguments=o),s}t.create=e;function r(n){let i=n;return b.defined(i)&&b.string(i.title)&&b.string(i.command)}t.is=r})(wo||(wo={}));(function(t){function e(o,s){return{range:o,newText:s}}t.replace=e;function r(o,s){return{range:{start:o,end:o},newText:s}}t.insert=r;function n(o){return{range:o,newText:""}}t.del=n;function i(o){let s=o;return b.objectLiteral(s)&&b.string(s.newText)&&_e.is(s.range)}t.is=i})(un||(un={}));(function(t){function e(n,i,o){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&b.string(i.label)&&(b.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(b.string(i.description)||i.description===void 0)}t.is=r})(bo||(bo={}));(function(t){function e(r){let n=r;return b.string(n)}t.is=e})(Lt||(Lt={}));(function(t){function e(o,s,a){return{range:o,newText:s,annotationId:a}}t.replace=e;function r(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}t.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}t.del=n;function i(o){let s=o;return un.is(s)&&(bo.is(s.annotationId)||Lt.is(s.annotationId))}t.is=i})(Xn||(Xn={}));(function(t){function e(n,i){return{textDocument:n,edits:i}}t.create=e;function r(n){let i=n;return b.defined(i)&&cl.is(i.textDocument)&&Array.isArray(i.edits)}t.is=r})(al||(al={}));(function(t){function e(n,i,o){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}t.create=e;function r(n){let i=n;return i&&i.kind==="create"&&b.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||b.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||b.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Lt.is(i.annotationId))}t.is=r})(zs||(zs={}));(function(t){function e(n,i,o,s){let a={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}t.create=e;function r(n){let i=n;return i&&i.kind==="rename"&&b.string(i.oldUri)&&b.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||b.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||b.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Lt.is(i.annotationId))}t.is=r})(Vs||(Vs={}));(function(t){function e(n,i,o){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}t.create=e;function r(n){let i=n;return i&&i.kind==="delete"&&b.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||b.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||b.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Lt.is(i.annotationId))}t.is=r})(Ys||(Ys={}));(function(t){function e(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>b.string(i.kind)?zs.is(i)||Vs.is(i)||Ys.is(i):al.is(i)))}t.is=e})(Nd||(Nd={}));qs=class{constructor(e,r){this.edits=e,this.changeAnnotations=r}insert(e,r,n){let i,o;if(n===void 0?i=un.insert(e,r):Lt.is(n)?(o=n,i=Xn.insert(e,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=Xn.insert(e,r,o)),this.edits.push(i),o!==void 0)return o}replace(e,r,n){let i,o;if(n===void 0?i=un.replace(e,r):Lt.is(n)?(o=n,i=Xn.replace(e,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=Xn.replace(e,r,o)),this.edits.push(i),o!==void 0)return o}delete(e,r){let n,i;if(r===void 0?n=un.del(e):Lt.is(r)?(i=r,n=Xn.del(e,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=Xn.del(e,i)),this.edits.push(n),i!==void 0)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Pd=class{constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,r){let n;if(Lt.is(e)?n=e:(n=this.nextId(),r=e),this._annotations[n]!==void 0)throw new Error(`Id ${n} is already in use.`);if(r===void 0)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=r,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},jg=class{constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Pd(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(r=>{if(al.is(r)){let n=new qs(r.edits,this._changeAnnotations);this._textEditChanges[r.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach(r=>{let n=new qs(e.changes[r]);this._textEditChanges[r]=n})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(cl.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let r={uri:e.uri,version:e.version},n=this._textEditChanges[r.uri];if(!n){let i=[],o={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(o),n=new qs(i,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let r=this._textEditChanges[e];if(!r){let n=[];this._workspaceEdit.changes[e]=n,r=new qs(n),this._textEditChanges[e]=r}return r}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Pd,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;bo.is(r)||Lt.is(r)?i=r:n=r;let o,s;if(i===void 0?o=zs.create(e,n):(s=Lt.is(i)?i:this._changeAnnotations.manage(i),o=zs.create(e,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}renameFile(e,r,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let o;bo.is(n)||Lt.is(n)?o=n:i=n;let s,a;if(o===void 0?s=Vs.create(e,r,i):(a=Lt.is(o)?o:this._changeAnnotations.manage(o),s=Vs.create(e,r,i,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a}deleteFile(e,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let i;bo.is(r)||Lt.is(r)?i=r:n=r;let o,s;if(i===void 0?o=Ys.create(e,n):(s=Lt.is(i)?i:this._changeAnnotations.manage(i),o=Ys.create(e,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s}};(function(t){function e(n){return{uri:n}}t.create=e;function r(n){let i=n;return b.defined(i)&&b.string(i.uri)}t.is=r})(Wg||(Wg={}));(function(t){function e(n,i){return{uri:n,version:i}}t.create=e;function r(n){let i=n;return b.defined(i)&&b.string(i.uri)&&b.integer(i.version)}t.is=r})(qg||(qg={}));(function(t){function e(n,i){return{uri:n,version:i}}t.create=e;function r(n){let i=n;return b.defined(i)&&b.string(i.uri)&&(i.version===null||b.integer(i.version))}t.is=r})(cl||(cl={}));(function(t){function e(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}t.create=e;function r(n){let i=n;return b.defined(i)&&b.string(i.uri)&&b.string(i.languageId)&&b.integer(i.version)&&b.string(i.text)}t.is=r})(zg||(zg={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(r){let n=r;return n===t.PlainText||n===t.Markdown}t.is=e})(Cd||(Cd={}));(function(t){function e(r){let n=r;return b.objectLiteral(r)&&Cd.is(n.kind)&&b.string(n.value)}t.is=e})(Ks||(Ks={}));(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Vg||(Vg={}));(function(t){t.PlainText=1,t.Snippet=2})(Yg||(Yg={}));(function(t){t.Deprecated=1})(Kg||(Kg={}));(function(t){function e(n,i,o){return{newText:n,insert:i,replace:o}}t.create=e;function r(n){let i=n;return i&&b.string(i.newText)&&_e.is(i.insert)&&_e.is(i.replace)}t.is=r})(Zg||(Zg={}));(function(t){t.asIs=1,t.adjustIndentation=2})(Jg||(Jg={}));(function(t){function e(r){let n=r;return n&&(b.string(n.detail)||n.detail===void 0)&&(b.string(n.description)||n.description===void 0)}t.is=e})(Qg||(Qg={}));(function(t){function e(r){return{label:r}}t.create=e})(ey||(ey={}));(function(t){function e(r,n){return{items:r||[],isIncomplete:!!n}}t.create=e})(ty||(ty={}));(function(t){function e(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function r(n){let i=n;return b.string(i)||b.objectLiteral(i)&&b.string(i.language)&&b.string(i.value)}t.is=r})(ll||(ll={}));(function(t){function e(r){let n=r;return!!n&&b.objectLiteral(n)&&(Ks.is(n.contents)||ll.is(n.contents)||b.typedArray(n.contents,ll.is))&&(r.range===void 0||_e.is(r.range))}t.is=e})(ry||(ry={}));(function(t){function e(r,n){return n?{label:r,documentation:n}:{label:r}}t.create=e})(ny||(ny={}));(function(t){function e(r,n,...i){let o={label:r};return b.defined(n)&&(o.documentation=n),b.defined(i)?o.parameters=i:o.parameters=[],o}t.create=e})(iy||(iy={}));(function(t){t.Text=1,t.Read=2,t.Write=3})(oy||(oy={}));(function(t){function e(r,n){let i={range:r};return b.number(n)&&(i.kind=n),i}t.create=e})(sy||(sy={}));(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(ay||(ay={}));(function(t){t.Deprecated=1})(cy||(cy={}));(function(t){function e(r,n,i,o,s){let a={name:r,kind:n,location:{uri:o,range:i}};return s&&(a.containerName=s),a}t.create=e})(ly||(ly={}));(function(t){function e(r,n,i,o){return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}}t.create=e})(uy||(uy={}));(function(t){function e(n,i,o,s,a,c){let l={name:n,detail:i,kind:o,range:s,selectionRange:a};return c!==void 0&&(l.children=c),l}t.create=e;function r(n){let i=n;return i&&b.string(i.name)&&b.number(i.kind)&&_e.is(i.range)&&_e.is(i.selectionRange)&&(i.detail===void 0||b.string(i.detail))&&(i.deprecated===void 0||b.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=r})(fy||(fy={}));(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(dy||(dy={}));(function(t){t.Invoked=1,t.Automatic=2})(ul||(ul={}));(function(t){function e(n,i,o){let s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}t.create=e;function r(n){let i=n;return b.defined(i)&&b.typedArray(i.diagnostics,sl.is)&&(i.only===void 0||b.typedArray(i.only,b.string))&&(i.triggerKind===void 0||i.triggerKind===ul.Invoked||i.triggerKind===ul.Automatic)}t.is=r})(py||(py={}));(function(t){function e(n,i,o){let s={title:n},a=!0;return typeof i=="string"?(a=!1,s.kind=i):wo.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}t.create=e;function r(n){let i=n;return i&&b.string(i.title)&&(i.diagnostics===void 0||b.typedArray(i.diagnostics,sl.is))&&(i.kind===void 0||b.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||wo.is(i.command))&&(i.isPreferred===void 0||b.boolean(i.isPreferred))&&(i.edit===void 0||Nd.is(i.edit))}t.is=r})(hy||(hy={}));(function(t){function e(n,i){let o={range:n};return b.defined(i)&&(o.data=i),o}t.create=e;function r(n){let i=n;return b.defined(i)&&_e.is(i.range)&&(b.undefined(i.command)||wo.is(i.command))}t.is=r})(my||(my={}));(function(t){function e(n,i){return{tabSize:n,insertSpaces:i}}t.create=e;function r(n){let i=n;return b.defined(i)&&b.uinteger(i.tabSize)&&b.boolean(i.insertSpaces)}t.is=r})(gy||(gy={}));(function(t){function e(n,i,o){return{range:n,target:i,data:o}}t.create=e;function r(n){let i=n;return b.defined(i)&&_e.is(i.range)&&(b.undefined(i.target)||b.string(i.target))}t.is=r})(yy||(yy={}));(function(t){function e(n,i){return{range:n,parent:i}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&_e.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=r})(xy||(xy={}));(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Ty||(Ty={}));(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(_y||(_y={}));(function(t){function e(r){let n=r;return b.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=e})(Ey||(Ey={}));(function(t){function e(n,i){return{range:n,text:i}}t.create=e;function r(n){let i=n;return i!=null&&_e.is(i.range)&&b.string(i.text)}t.is=r})(Ry||(Ry={}));(function(t){function e(n,i,o){return{range:n,variableName:i,caseSensitiveLookup:o}}t.create=e;function r(n){let i=n;return i!=null&&_e.is(i.range)&&b.boolean(i.caseSensitiveLookup)&&(b.string(i.variableName)||i.variableName===void 0)}t.is=r})(by||(by={}));(function(t){function e(n,i){return{range:n,expression:i}}t.create=e;function r(n){let i=n;return i!=null&&_e.is(i.range)&&(b.string(i.expression)||i.expression===void 0)}t.is=r})(wy||(wy={}));(function(t){function e(n,i){return{frameId:n,stoppedLocation:i}}t.create=e;function r(n){let i=n;return b.defined(i)&&_e.is(n.stoppedLocation)}t.is=r})(Ay||(Ay={}));(function(t){t.Type=1,t.Parameter=2;function e(r){return r===1||r===2}t.is=e})(Od||(Od={}));(function(t){function e(n){return{value:n}}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&(i.tooltip===void 0||b.string(i.tooltip)||Ks.is(i.tooltip))&&(i.location===void 0||ol.is(i.location))&&(i.command===void 0||wo.is(i.command))}t.is=r})(Ld||(Ld={}));(function(t){function e(n,i,o){let s={position:n,label:i};return o!==void 0&&(s.kind=o),s}t.create=e;function r(n){let i=n;return b.objectLiteral(i)&&ke.is(i.position)&&(b.string(i.label)||b.typedArray(i.label,Ld.is))&&(i.kind===void 0||Od.is(i.kind))&&i.textEdits===void 0||b.typedArray(i.textEdits,un.is)&&(i.tooltip===void 0||b.string(i.tooltip)||Ks.is(i.tooltip))&&(i.paddingLeft===void 0||b.boolean(i.paddingLeft))&&(i.paddingRight===void 0||b.boolean(i.paddingRight))}t.is=r})(Iy||(Iy={}));(function(t){function e(r){return{kind:"snippet",value:r}}t.createSnippet=e})(Sy||(Sy={}));(function(t){function e(r,n,i,o){return{insertText:r,filterText:n,range:i,command:o}}t.create=e})(vy||(vy={}));(function(t){function e(r){return{items:r}}t.create=e})(ky||(ky={}));(function(t){t.Invoked=0,t.Automatic=1})(Ny||(Ny={}));(function(t){function e(r,n){return{range:r,text:n}}t.create=e})(Py||(Py={}));(function(t){function e(r,n){return{triggerKind:r,selectedCompletionInfo:n}}t.create=e})(Cy||(Cy={}));(function(t){function e(r){let n=r;return b.objectLiteral(n)&&Sd.is(n.uri)&&b.string(n.name)}t.is=e})(Oy||(Oy={}));iF=[`
3
3
  `,`\r
4
4
  `,"\r"];(function(t){function e(o,s,a,c){return new Dy(o,s,a,c)}t.create=e;function r(o){let s=o;return!!(b.defined(s)&&b.string(s.uri)&&(b.undefined(s.languageId)||b.string(s.languageId))&&b.uinteger(s.lineCount)&&b.func(s.getText)&&b.func(s.positionAt)&&b.func(s.offsetAt))}t.is=r;function n(o,s){let a=o.getText(),c=i(s,(u,f)=>{let d=u.range.start.line-f.range.start.line;return d===0?u.range.start.character-f.range.start.character:d}),l=a.length;for(let u=c.length-1;u>=0;u--){let f=c[u],d=o.offsetAt(f.range.start),p=o.offsetAt(f.range.end);if(p<=l)a=a.substring(0,d)+f.newText+a.substring(p,a.length);else throw new Error("Overlapping edit");l=d}return a}t.applyEdits=n;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 u=0,f=0,d=0;for(;u<c.length&&f<l.length;)s(c[u],l[f])<=0?o[d++]=c[u++]:o[d++]=l[f++];for(;u<c.length;)o[d++]=c[u++];for(;f<l.length;)o[d++]=l[f++];return o}})(Ly||(Ly={}));Dy=class{constructor(e,r,n,i){this._uri=e,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let r=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(r,n)}return this._content}update(e,r){this._content=e.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],r=this._content,n=!0;for(let i=0;i<r.length;i++){n&&(e.push(i),n=!1);let o=r.charAt(i);n=o==="\r"||o===`
@@ -33,7 +33,7 @@ ${JSON.stringify(x,null,4)}`);let N=x;if(gt.string(N.id)||gt.number(N.id)){let X
33
33
 
34
34
  `:x.error===void 0&&(X=`No result returned.
35
35
 
36
- `)),N){let z=x.error?` Request failed: ${x.error.message} (${x.error.code}).`:"";D.log(`Received response '${N.method} - (${x.id})' in ${Date.now()-N.timerStart}ms.${z}`,X)}else D.log(`Received response ${x.id} without active response promise.`,X)}else Pr("receive-response",x)}function Pr(x,N){if(!D||_===De.Off)return;let X={isLSPMessage:!0,type:x,message:N,timestamp:Date.now()};D.log(X)}function de(){if(H())throw new ha(Fl.Closed,"Connection is closed.");if($())throw new ha(Fl.Disposed,"Connection is disposed.")}function Wi(){if(B())throw new ha(Fl.AlreadyListening,"Connection is already listening")}function qi(){if(!B())throw new Error("Call listen() first.")}function Cr(x){return x===void 0?null:x}function es(x){if(x!==null)return x}function xr(x){return x!=null&&!Array.isArray(x)&&typeof x=="object"}function Ot(x,N){switch(x){case ae.ParameterStructures.auto:return xr(N)?es(N):[Cr(N)];case ae.ParameterStructures.byName:if(!xr(N))throw new Error("Received parameters by name but param is not an object literal.");return es(N);case ae.ParameterStructures.byPosition:return[Cr(N)];default:throw new Error(`Unknown parameter structure ${x.toString()}`)}}function en(x,N){let X,z=x.numberOfParams;switch(z){case 0:X=void 0;break;case 1:X=Ot(x.parameterStructures,N[0]);break;default:X=[];for(let Be=0;Be<N.length&&Be<z;Be++)X.push(Cr(N[Be]));if(N.length<z)for(let Be=N.length;Be<z;Be++)X.push(null);break}return X}let jt={sendNotification:(x,...N)=>{de();let X,z;if(gt.string(x)){X=x;let Se=N[0],Le=0,je=ae.ParameterStructures.auto;ae.ParameterStructures.is(Se)&&(Le=1,je=Se);let ye=N.length,$e=ye-Le;switch($e){case 0:z=void 0;break;case 1:z=Ot(je,N[Le]);break;default:if(je===ae.ParameterStructures.byName)throw new Error(`Received ${$e} parameters for 'by Name' notification parameter structure.`);z=N.slice(Le,ye).map(ve=>Cr(ve));break}}else{let Se=N;X=x.method,z=en(x,Se)}let Be={jsonrpc:c,method:X,params:z};return Ee(Be),e.write(Be).catch(Se=>{throw i.error("Sending notification failed."),Se})},onNotification:(x,N)=>{de();let X;return gt.func(x)?f=x:N&&(gt.string(x)?(X=x,d.set(x,{type:void 0,handler:N})):(X=x.method,d.set(x.method,{type:x,handler:N}))),{dispose:()=>{X!==void 0?d.delete(X):f=void 0}}},onProgress:(x,N,X)=>{if(p.has(N))throw new Error(`Progress handler for token ${N} already registered`);return p.set(N,X),{dispose:()=>{p.delete(N)}}},sendProgress:(x,N,X)=>jt.sendNotification(Ml.type,{token:N,value:X}),onUnhandledProgress:Ae.event,sendRequest:(x,...N)=>{de(),qi();let X,z,Be;if(gt.string(x)){X=x;let ye=N[0],$e=N[N.length-1],ve=0,dt=ae.ParameterStructures.auto;ae.ParameterStructures.is(ye)&&(ve=1,dt=ye);let et=N.length;zx.CancellationToken.is($e)&&(et=et-1,Be=$e);let cr=et-ve;switch(cr){case 0:z=void 0;break;case 1:z=Ot(dt,N[ve]);break;default:if(dt===ae.ParameterStructures.byName)throw new Error(`Received ${cr} parameters for 'by Name' request parameter structure.`);z=N.slice(ve,et).map($t=>Cr($t));break}}else{let ye=N;X=x.method,z=en(x,ye);let $e=x.numberOfParams;Be=zx.CancellationToken.is(ye[$e])?ye[$e]:void 0}let Se=o++,Le;Be&&(Le=Be.onCancellationRequested(()=>{let ye=w.sender.sendCancellation(jt,Se);return ye===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${Se}`),Promise.resolve()):ye.catch(()=>{i.log(`Sending cancellation messages for id ${Se} failed`)})}));let je={jsonrpc:c,id:Se,method:X,params:z};return Te(je),typeof w.sender.enableCancellation=="function"&&w.sender.enableCancellation(je),new Promise(async(ye,$e)=>{let ve=cr=>{ye(cr),w.sender.cleanup(Se),Le?.dispose()},dt=cr=>{$e(cr),w.sender.cleanup(Se),Le?.dispose()},et={method:X,timerStart:Date.now(),resolve:ve,reject:dt};try{await e.write(je),R.set(Se,et)}catch(cr){throw i.error("Sending request failed."),et.reject(new ae.ResponseError(ae.ErrorCodes.MessageWriteError,cr.message?cr.message:"Unknown reason")),cr}})},onRequest:(x,N)=>{de();let X=null;return Kx.is(x)?(X=void 0,l=x):gt.string(x)?(X=null,N!==void 0&&(X=x,u.set(x,{handler:N,type:void 0}))):N!==void 0&&(X=x.method,u.set(x.method,{type:x,handler:N})),{dispose:()=>{X!==null&&(X!==void 0?u.delete(X):l=void 0)}}},hasPendingResponse:()=>R.size>0,trace:async(x,N,X)=>{let z=!1,Be=hr.Text;X!==void 0&&(gt.boolean(X)?z=X:(z=X.sendNotification||!1,Be=X.traceFormat||hr.Text)),_=x,k=Be,_===De.Off?D=void 0:D=N,z&&!H()&&!$()&&await jt.sendNotification(Zx.type,{value:De.toString(x)})},onError:j.event,onClose:V.event,onUnhandledNotification:ie.event,onDispose:O.event,end:()=>{e.end()},dispose:()=>{if($())return;C=Gr.Disposed,O.fire(void 0);let x=new ae.ResponseError(ae.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let N of R.values())N.reject(x);R=new Map,E=new Map,T=new Set,y=new a0.LinkedMap,gt.func(e.dispose)&&e.dispose(),gt.func(t.dispose)&&t.dispose()},listen:()=>{de(),Wi(),C=Gr.Listening,t.listen(We)},inspect:()=>{(0,s0.default)().console.log("inspect")}};return jt.onNotification(op.type,x=>{if(_===De.Off||!D)return;let N=_===De.Verbose||_===De.Compact;D.log(x.message,N?x.verbose:void 0)}),jt.onNotification(Ml.type,x=>{let N=p.get(x.token);N?N(x.value):Ae.fire(x)}),jt}fe.createMessageConnection=jF});var fp=ce(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.ProgressType=v.ProgressToken=v.createMessageConnection=v.NullLogger=v.ConnectionOptions=v.ConnectionStrategy=v.AbstractMessageBuffer=v.WriteableStreamMessageWriter=v.AbstractMessageWriter=v.MessageWriter=v.ReadableStreamMessageReader=v.AbstractMessageReader=v.MessageReader=v.SharedArrayReceiverStrategy=v.SharedArraySenderStrategy=v.CancellationToken=v.CancellationTokenSource=v.Emitter=v.Event=v.Disposable=v.LRUCache=v.Touch=v.LinkedMap=v.ParameterStructures=v.NotificationType9=v.NotificationType8=v.NotificationType7=v.NotificationType6=v.NotificationType5=v.NotificationType4=v.NotificationType3=v.NotificationType2=v.NotificationType1=v.NotificationType0=v.NotificationType=v.ErrorCodes=v.ResponseError=v.RequestType9=v.RequestType8=v.RequestType7=v.RequestType6=v.RequestType5=v.RequestType4=v.RequestType3=v.RequestType2=v.RequestType1=v.RequestType0=v.RequestType=v.Message=v.RAL=void 0;v.MessageStrategy=v.CancellationStrategy=v.CancellationSenderStrategy=v.CancellationReceiverStrategy=v.ConnectionError=v.ConnectionErrors=v.LogTraceNotification=v.SetTraceNotification=v.TraceFormat=v.TraceValues=v.Trace=void 0;var Qe=Ax();Object.defineProperty(v,"Message",{enumerable:!0,get:function(){return Qe.Message}});Object.defineProperty(v,"RequestType",{enumerable:!0,get:function(){return Qe.RequestType}});Object.defineProperty(v,"RequestType0",{enumerable:!0,get:function(){return Qe.RequestType0}});Object.defineProperty(v,"RequestType1",{enumerable:!0,get:function(){return Qe.RequestType1}});Object.defineProperty(v,"RequestType2",{enumerable:!0,get:function(){return Qe.RequestType2}});Object.defineProperty(v,"RequestType3",{enumerable:!0,get:function(){return Qe.RequestType3}});Object.defineProperty(v,"RequestType4",{enumerable:!0,get:function(){return Qe.RequestType4}});Object.defineProperty(v,"RequestType5",{enumerable:!0,get:function(){return Qe.RequestType5}});Object.defineProperty(v,"RequestType6",{enumerable:!0,get:function(){return Qe.RequestType6}});Object.defineProperty(v,"RequestType7",{enumerable:!0,get:function(){return Qe.RequestType7}});Object.defineProperty(v,"RequestType8",{enumerable:!0,get:function(){return Qe.RequestType8}});Object.defineProperty(v,"RequestType9",{enumerable:!0,get:function(){return Qe.RequestType9}});Object.defineProperty(v,"ResponseError",{enumerable:!0,get:function(){return Qe.ResponseError}});Object.defineProperty(v,"ErrorCodes",{enumerable:!0,get:function(){return Qe.ErrorCodes}});Object.defineProperty(v,"NotificationType",{enumerable:!0,get:function(){return Qe.NotificationType}});Object.defineProperty(v,"NotificationType0",{enumerable:!0,get:function(){return Qe.NotificationType0}});Object.defineProperty(v,"NotificationType1",{enumerable:!0,get:function(){return Qe.NotificationType1}});Object.defineProperty(v,"NotificationType2",{enumerable:!0,get:function(){return Qe.NotificationType2}});Object.defineProperty(v,"NotificationType3",{enumerable:!0,get:function(){return Qe.NotificationType3}});Object.defineProperty(v,"NotificationType4",{enumerable:!0,get:function(){return Qe.NotificationType4}});Object.defineProperty(v,"NotificationType5",{enumerable:!0,get:function(){return Qe.NotificationType5}});Object.defineProperty(v,"NotificationType6",{enumerable:!0,get:function(){return Qe.NotificationType6}});Object.defineProperty(v,"NotificationType7",{enumerable:!0,get:function(){return Qe.NotificationType7}});Object.defineProperty(v,"NotificationType8",{enumerable:!0,get:function(){return Qe.NotificationType8}});Object.defineProperty(v,"NotificationType9",{enumerable:!0,get:function(){return Qe.NotificationType9}});Object.defineProperty(v,"ParameterStructures",{enumerable:!0,get:function(){return Qe.ParameterStructures}});var eT=Sx();Object.defineProperty(v,"LinkedMap",{enumerable:!0,get:function(){return eT.LinkedMap}});Object.defineProperty(v,"LRUCache",{enumerable:!0,get:function(){return eT.LRUCache}});Object.defineProperty(v,"Touch",{enumerable:!0,get:function(){return eT.Touch}});var WF=YA();Object.defineProperty(v,"Disposable",{enumerable:!0,get:function(){return WF.Disposable}});var f0=ua();Object.defineProperty(v,"Event",{enumerable:!0,get:function(){return f0.Event}});Object.defineProperty(v,"Emitter",{enumerable:!0,get:function(){return f0.Emitter}});var d0=ep();Object.defineProperty(v,"CancellationTokenSource",{enumerable:!0,get:function(){return d0.CancellationTokenSource}});Object.defineProperty(v,"CancellationToken",{enumerable:!0,get:function(){return d0.CancellationToken}});var p0=ZA();Object.defineProperty(v,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return p0.SharedArraySenderStrategy}});Object.defineProperty(v,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return p0.SharedArrayReceiverStrategy}});var tT=QA();Object.defineProperty(v,"MessageReader",{enumerable:!0,get:function(){return tT.MessageReader}});Object.defineProperty(v,"AbstractMessageReader",{enumerable:!0,get:function(){return tT.AbstractMessageReader}});Object.defineProperty(v,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return tT.ReadableStreamMessageReader}});var rT=i0();Object.defineProperty(v,"MessageWriter",{enumerable:!0,get:function(){return rT.MessageWriter}});Object.defineProperty(v,"AbstractMessageWriter",{enumerable:!0,get:function(){return rT.AbstractMessageWriter}});Object.defineProperty(v,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return rT.WriteableStreamMessageWriter}});var qF=o0();Object.defineProperty(v,"AbstractMessageBuffer",{enumerable:!0,get:function(){return qF.AbstractMessageBuffer}});var Dt=u0();Object.defineProperty(v,"ConnectionStrategy",{enumerable:!0,get:function(){return Dt.ConnectionStrategy}});Object.defineProperty(v,"ConnectionOptions",{enumerable:!0,get:function(){return Dt.ConnectionOptions}});Object.defineProperty(v,"NullLogger",{enumerable:!0,get:function(){return Dt.NullLogger}});Object.defineProperty(v,"createMessageConnection",{enumerable:!0,get:function(){return Dt.createMessageConnection}});Object.defineProperty(v,"ProgressToken",{enumerable:!0,get:function(){return Dt.ProgressToken}});Object.defineProperty(v,"ProgressType",{enumerable:!0,get:function(){return Dt.ProgressType}});Object.defineProperty(v,"Trace",{enumerable:!0,get:function(){return Dt.Trace}});Object.defineProperty(v,"TraceValues",{enumerable:!0,get:function(){return Dt.TraceValues}});Object.defineProperty(v,"TraceFormat",{enumerable:!0,get:function(){return Dt.TraceFormat}});Object.defineProperty(v,"SetTraceNotification",{enumerable:!0,get:function(){return Dt.SetTraceNotification}});Object.defineProperty(v,"LogTraceNotification",{enumerable:!0,get:function(){return Dt.LogTraceNotification}});Object.defineProperty(v,"ConnectionErrors",{enumerable:!0,get:function(){return Dt.ConnectionErrors}});Object.defineProperty(v,"ConnectionError",{enumerable:!0,get:function(){return Dt.ConnectionError}});Object.defineProperty(v,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Dt.CancellationReceiverStrategy}});Object.defineProperty(v,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Dt.CancellationSenderStrategy}});Object.defineProperty(v,"CancellationStrategy",{enumerable:!0,get:function(){return Dt.CancellationStrategy}});Object.defineProperty(v,"MessageStrategy",{enumerable:!0,get:function(){return Dt.MessageStrategy}});var zF=wi();v.RAL=zF.default});var m0=ce(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});var hn=fp(),dp=class t extends hn.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return t.emptyBuffer}fromString(e,r){return new TextEncoder().encode(e)}toString(e,r){return r==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(r).decode(e)}asNative(e,r){return r===void 0?e:e.slice(0,r)}allocNative(e){return new Uint8Array(e)}};dp.emptyBuffer=new Uint8Array(0);var nT=class{constructor(e){this.socket=e,this._onData=new hn.Emitter,this._messageListener=r=>{r.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,hn.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),hn.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),hn.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),hn.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},iT=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),hn.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),hn.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),hn.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,r){if(typeof e=="string"){if(r!==void 0&&r!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${r}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},VF=new TextEncoder,h0=Object.freeze({messageBuffer:Object.freeze({create:t=>new dp(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(VF.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new nT(t),asWritableStream:t=>new iT(t)}),console,timer:Object.freeze({setTimeout(t,e,...r){let n=setTimeout(t,e,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(t,...e){let r=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(r)}},setInterval(t,e,...r){let n=setInterval(t,e,...r);return{dispose:()=>clearInterval(n)}}})});function oT(){return h0}(function(t){function e(){hn.RAL.install(h0)}t.install=e})(oT||(oT={}));sT.default=oT});var Do=ce(mr=>{"use strict";var YF=mr&&mr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),KF=mr&&mr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YF(e,t,r)};Object.defineProperty(mr,"__esModule",{value:!0});mr.createMessageConnection=mr.BrowserMessageWriter=mr.BrowserMessageReader=void 0;var ZF=m0();ZF.default.install();var ma=fp();KF(fp(),mr);var aT=class extends ma.AbstractMessageReader{constructor(e){super(),this._onData=new ma.Emitter,this._messageListener=r=>{this._onData.fire(r.data)},e.addEventListener("error",r=>this.fireError(r)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}};mr.BrowserMessageReader=aT;var cT=class extends ma.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",r=>this.fireError(r))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){}};mr.BrowserMessageWriter=cT;function JF(t,e,r,n){return r===void 0&&(r=ma.NullLogger),ma.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,ma.createMessageConnection)(t,e,r,n)}mr.createMessageConnection=JF});var lT=ce((J9,g0)=>{"use strict";g0.exports=Do()});var ut=ce(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ProtocolNotificationType=nr.ProtocolNotificationType0=nr.ProtocolRequestType=nr.ProtocolRequestType0=nr.RegistrationType=nr.MessageDirection=void 0;var ga=Do(),y0;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(y0||(nr.MessageDirection=y0={}));var uT=class{constructor(e){this.method=e}};nr.RegistrationType=uT;var fT=class extends ga.RequestType0{constructor(e){super(e)}};nr.ProtocolRequestType0=fT;var dT=class extends ga.RequestType{constructor(e){super(e,ga.ParameterStructures.byName)}};nr.ProtocolRequestType=dT;var pT=class extends ga.NotificationType0{constructor(e){super(e)}};nr.ProtocolNotificationType0=pT;var hT=class extends ga.NotificationType{constructor(e){super(e,ga.ParameterStructures.byName)}};nr.ProtocolNotificationType=hT});var pp=ce(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.objectLiteral=bt.typedArray=bt.stringArray=bt.array=bt.func=bt.error=bt.number=bt.string=bt.boolean=void 0;function QF(t){return t===!0||t===!1}bt.boolean=QF;function x0(t){return typeof t=="string"||t instanceof String}bt.string=x0;function eU(t){return typeof t=="number"||t instanceof Number}bt.number=eU;function tU(t){return t instanceof Error}bt.error=tU;function rU(t){return typeof t=="function"}bt.func=rU;function T0(t){return Array.isArray(t)}bt.array=T0;function nU(t){return T0(t)&&t.every(e=>x0(e))}bt.stringArray=nU;function iU(t,e){return Array.isArray(t)&&t.every(e)}bt.typedArray=iU;function oU(t){return t!==null&&typeof t=="object"}bt.objectLiteral=oU});var R0=ce(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.ImplementationRequest=void 0;var _0=ut(),E0;(function(t){t.method="textDocument/implementation",t.messageDirection=_0.MessageDirection.clientToServer,t.type=new _0.ProtocolRequestType(t.method)})(E0||(hp.ImplementationRequest=E0={}))});var A0=ce(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.TypeDefinitionRequest=void 0;var b0=ut(),w0;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=b0.MessageDirection.clientToServer,t.type=new b0.ProtocolRequestType(t.method)})(w0||(mp.TypeDefinitionRequest=w0={}))});var v0=ce(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.DidChangeWorkspaceFoldersNotification=ya.WorkspaceFoldersRequest=void 0;var gp=ut(),I0;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=gp.MessageDirection.serverToClient,t.type=new gp.ProtocolRequestType0(t.method)})(I0||(ya.WorkspaceFoldersRequest=I0={}));var S0;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolNotificationType(t.method)})(S0||(ya.DidChangeWorkspaceFoldersNotification=S0={}))});var P0=ce(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.ConfigurationRequest=void 0;var k0=ut(),N0;(function(t){t.method="workspace/configuration",t.messageDirection=k0.MessageDirection.serverToClient,t.type=new k0.ProtocolRequestType(t.method)})(N0||(yp.ConfigurationRequest=N0={}))});var L0=ce(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.ColorPresentationRequest=xa.DocumentColorRequest=void 0;var xp=ut(),C0;(function(t){t.method="textDocument/documentColor",t.messageDirection=xp.MessageDirection.clientToServer,t.type=new xp.ProtocolRequestType(t.method)})(C0||(xa.DocumentColorRequest=C0={}));var O0;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=xp.MessageDirection.clientToServer,t.type=new xp.ProtocolRequestType(t.method)})(O0||(xa.ColorPresentationRequest=O0={}))});var M0=ce(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.FoldingRangeRefreshRequest=Ta.FoldingRangeRequest=void 0;var Tp=ut(),D0;(function(t){t.method="textDocument/foldingRange",t.messageDirection=Tp.MessageDirection.clientToServer,t.type=new Tp.ProtocolRequestType(t.method)})(D0||(Ta.FoldingRangeRequest=D0={}));var $0;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=Tp.MessageDirection.serverToClient,t.type=new Tp.ProtocolRequestType0(t.method)})($0||(Ta.FoldingRangeRefreshRequest=$0={}))});var B0=ce(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.DeclarationRequest=void 0;var F0=ut(),U0;(function(t){t.method="textDocument/declaration",t.messageDirection=F0.MessageDirection.clientToServer,t.type=new F0.ProtocolRequestType(t.method)})(U0||(_p.DeclarationRequest=U0={}))});var H0=ce(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.SelectionRangeRequest=void 0;var X0=ut(),G0;(function(t){t.method="textDocument/selectionRange",t.messageDirection=X0.MessageDirection.clientToServer,t.type=new X0.ProtocolRequestType(t.method)})(G0||(Ep.SelectionRangeRequest=G0={}))});var z0=ce(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.WorkDoneProgressCancelNotification=Si.WorkDoneProgressCreateRequest=Si.WorkDoneProgress=void 0;var sU=Do(),Rp=ut(),j0;(function(t){t.type=new sU.ProgressType;function e(r){return r===t.type}t.is=e})(j0||(Si.WorkDoneProgress=j0={}));var W0;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Rp.MessageDirection.serverToClient,t.type=new Rp.ProtocolRequestType(t.method)})(W0||(Si.WorkDoneProgressCreateRequest=W0={}));var q0;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Rp.MessageDirection.clientToServer,t.type=new Rp.ProtocolNotificationType(t.method)})(q0||(Si.WorkDoneProgressCancelNotification=q0={}))});var Z0=ce(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.CallHierarchyOutgoingCallsRequest=vi.CallHierarchyIncomingCallsRequest=vi.CallHierarchyPrepareRequest=void 0;var _a=ut(),V0;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=_a.MessageDirection.clientToServer,t.type=new _a.ProtocolRequestType(t.method)})(V0||(vi.CallHierarchyPrepareRequest=V0={}));var Y0;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=_a.MessageDirection.clientToServer,t.type=new _a.ProtocolRequestType(t.method)})(Y0||(vi.CallHierarchyIncomingCallsRequest=Y0={}));var K0;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=_a.MessageDirection.clientToServer,t.type=new _a.ProtocolRequestType(t.method)})(K0||(vi.CallHierarchyOutgoingCallsRequest=K0={}))});var nI=ce(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.SemanticTokensRefreshRequest=ir.SemanticTokensRangeRequest=ir.SemanticTokensDeltaRequest=ir.SemanticTokensRequest=ir.SemanticTokensRegistrationType=ir.TokenFormat=void 0;var Gn=ut(),J0;(function(t){t.Relative="relative"})(J0||(ir.TokenFormat=J0={}));var Bl;(function(t){t.method="textDocument/semanticTokens",t.type=new Gn.RegistrationType(t.method)})(Bl||(ir.SemanticTokensRegistrationType=Bl={}));var Q0;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Gn.MessageDirection.clientToServer,t.type=new Gn.ProtocolRequestType(t.method),t.registrationMethod=Bl.method})(Q0||(ir.SemanticTokensRequest=Q0={}));var eI;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Gn.MessageDirection.clientToServer,t.type=new Gn.ProtocolRequestType(t.method),t.registrationMethod=Bl.method})(eI||(ir.SemanticTokensDeltaRequest=eI={}));var tI;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Gn.MessageDirection.clientToServer,t.type=new Gn.ProtocolRequestType(t.method),t.registrationMethod=Bl.method})(tI||(ir.SemanticTokensRangeRequest=tI={}));var rI;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Gn.MessageDirection.serverToClient,t.type=new Gn.ProtocolRequestType0(t.method)})(rI||(ir.SemanticTokensRefreshRequest=rI={}))});var sI=ce(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.ShowDocumentRequest=void 0;var iI=ut(),oI;(function(t){t.method="window/showDocument",t.messageDirection=iI.MessageDirection.serverToClient,t.type=new iI.ProtocolRequestType(t.method)})(oI||(bp.ShowDocumentRequest=oI={}))});var lI=ce(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.LinkedEditingRangeRequest=void 0;var aI=ut(),cI;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=aI.MessageDirection.clientToServer,t.type=new aI.ProtocolRequestType(t.method)})(cI||(wp.LinkedEditingRangeRequest=cI={}))});var yI=ce(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.WillDeleteFilesRequest=Ht.DidDeleteFilesNotification=Ht.DidRenameFilesNotification=Ht.WillRenameFilesRequest=Ht.DidCreateFilesNotification=Ht.WillCreateFilesRequest=Ht.FileOperationPatternKind=void 0;var Ar=ut(),uI;(function(t){t.file="file",t.folder="folder"})(uI||(Ht.FileOperationPatternKind=uI={}));var fI;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolRequestType(t.method)})(fI||(Ht.WillCreateFilesRequest=fI={}));var dI;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolNotificationType(t.method)})(dI||(Ht.DidCreateFilesNotification=dI={}));var pI;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolRequestType(t.method)})(pI||(Ht.WillRenameFilesRequest=pI={}));var hI;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolNotificationType(t.method)})(hI||(Ht.DidRenameFilesNotification=hI={}));var mI;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolNotificationType(t.method)})(mI||(Ht.DidDeleteFilesNotification=mI={}));var gI;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolRequestType(t.method)})(gI||(Ht.WillDeleteFilesRequest=gI={}))});var RI=ce(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.MonikerRequest=ki.MonikerKind=ki.UniquenessLevel=void 0;var xI=ut(),TI;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(TI||(ki.UniquenessLevel=TI={}));var _I;(function(t){t.$import="import",t.$export="export",t.local="local"})(_I||(ki.MonikerKind=_I={}));var EI;(function(t){t.method="textDocument/moniker",t.messageDirection=xI.MessageDirection.clientToServer,t.type=new xI.ProtocolRequestType(t.method)})(EI||(ki.MonikerRequest=EI={}))});var II=ce(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TypeHierarchySubtypesRequest=Ni.TypeHierarchySupertypesRequest=Ni.TypeHierarchyPrepareRequest=void 0;var Ea=ut(),bI;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Ea.MessageDirection.clientToServer,t.type=new Ea.ProtocolRequestType(t.method)})(bI||(Ni.TypeHierarchyPrepareRequest=bI={}));var wI;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Ea.MessageDirection.clientToServer,t.type=new Ea.ProtocolRequestType(t.method)})(wI||(Ni.TypeHierarchySupertypesRequest=wI={}));var AI;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Ea.MessageDirection.clientToServer,t.type=new Ea.ProtocolRequestType(t.method)})(AI||(Ni.TypeHierarchySubtypesRequest=AI={}))});var kI=ce(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.InlineValueRefreshRequest=Ra.InlineValueRequest=void 0;var Ap=ut(),SI;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Ap.MessageDirection.clientToServer,t.type=new Ap.ProtocolRequestType(t.method)})(SI||(Ra.InlineValueRequest=SI={}));var vI;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Ap.MessageDirection.serverToClient,t.type=new Ap.ProtocolRequestType0(t.method)})(vI||(Ra.InlineValueRefreshRequest=vI={}))});var OI=ce(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.InlayHintRefreshRequest=Pi.InlayHintResolveRequest=Pi.InlayHintRequest=void 0;var ba=ut(),NI;(function(t){t.method="textDocument/inlayHint",t.messageDirection=ba.MessageDirection.clientToServer,t.type=new ba.ProtocolRequestType(t.method)})(NI||(Pi.InlayHintRequest=NI={}));var PI;(function(t){t.method="inlayHint/resolve",t.messageDirection=ba.MessageDirection.clientToServer,t.type=new ba.ProtocolRequestType(t.method)})(PI||(Pi.InlayHintResolveRequest=PI={}));var CI;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=ba.MessageDirection.serverToClient,t.type=new ba.ProtocolRequestType0(t.method)})(CI||(Pi.InlayHintRefreshRequest=CI={}))});var BI=ce(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.DiagnosticRefreshRequest=Ir.WorkspaceDiagnosticRequest=Ir.DocumentDiagnosticRequest=Ir.DocumentDiagnosticReportKind=Ir.DiagnosticServerCancellationData=void 0;var UI=Do(),aU=pp(),wa=ut(),LI;(function(t){function e(r){let n=r;return n&&aU.boolean(n.retriggerRequest)}t.is=e})(LI||(Ir.DiagnosticServerCancellationData=LI={}));var DI;(function(t){t.Full="full",t.Unchanged="unchanged"})(DI||(Ir.DocumentDiagnosticReportKind=DI={}));var $I;(function(t){t.method="textDocument/diagnostic",t.messageDirection=wa.MessageDirection.clientToServer,t.type=new wa.ProtocolRequestType(t.method),t.partialResult=new UI.ProgressType})($I||(Ir.DocumentDiagnosticRequest=$I={}));var MI;(function(t){t.method="workspace/diagnostic",t.messageDirection=wa.MessageDirection.clientToServer,t.type=new wa.ProtocolRequestType(t.method),t.partialResult=new UI.ProgressType})(MI||(Ir.WorkspaceDiagnosticRequest=MI={}));var FI;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=wa.MessageDirection.serverToClient,t.type=new wa.ProtocolRequestType0(t.method)})(FI||(Ir.DiagnosticRefreshRequest=FI={}))});var zI=ce(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.DidCloseNotebookDocumentNotification=Tt.DidSaveNotebookDocumentNotification=Tt.DidChangeNotebookDocumentNotification=Tt.NotebookCellArrayChange=Tt.DidOpenNotebookDocumentNotification=Tt.NotebookDocumentSyncRegistrationType=Tt.NotebookDocument=Tt.NotebookCell=Tt.ExecutionSummary=Tt.NotebookCellKind=void 0;var Xl=(Zs(),qu(Dd)),Hr=pp(),mn=ut(),mT;(function(t){t.Markup=1,t.Code=2;function e(r){return r===1||r===2}t.is=e})(mT||(Tt.NotebookCellKind=mT={}));var gT;(function(t){function e(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}t.create=e;function r(i){let o=i;return Hr.objectLiteral(o)&&Xl.uinteger.is(o.executionOrder)&&(o.success===void 0||Hr.boolean(o.success))}t.is=r;function n(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}t.equals=n})(gT||(Tt.ExecutionSummary=gT={}));var Ip;(function(t){function e(o,s){return{kind:o,document:s}}t.create=e;function r(o){let s=o;return Hr.objectLiteral(s)&&mT.is(s.kind)&&Xl.DocumentUri.is(s.document)&&(s.metadata===void 0||Hr.objectLiteral(s.metadata))}t.is=r;function n(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)&&!gT.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}t.diff=n;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(Hr.objectLiteral(o)&&Hr.objectLiteral(s)){let l=Object.keys(o),u=Object.keys(s);if(l.length!==u.length||(l.sort(),u.sort(),!i(l,u)))return!1;for(let f=0;f<l.length;f++){let d=l[f];if(!i(o[d],s[d]))return!1}}return!0}})(Ip||(Tt.NotebookCell=Ip={}));var XI;(function(t){function e(n,i,o,s){return{uri:n,notebookType:i,version:o,cells:s}}t.create=e;function r(n){let i=n;return Hr.objectLiteral(i)&&Hr.string(i.uri)&&Xl.integer.is(i.version)&&Hr.typedArray(i.cells,Ip.is)}t.is=r})(XI||(Tt.NotebookDocument=XI={}));var Aa;(function(t){t.method="notebookDocument/sync",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.RegistrationType(t.method)})(Aa||(Tt.NotebookDocumentSyncRegistrationType=Aa={}));var GI;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(GI||(Tt.DidOpenNotebookDocumentNotification=GI={}));var HI;(function(t){function e(n){let i=n;return Hr.objectLiteral(i)&&Xl.uinteger.is(i.start)&&Xl.uinteger.is(i.deleteCount)&&(i.cells===void 0||Hr.typedArray(i.cells,Ip.is))}t.is=e;function r(n,i,o){let s={start:n,deleteCount:i};return o!==void 0&&(s.cells=o),s}t.create=r})(HI||(Tt.NotebookCellArrayChange=HI={}));var jI;(function(t){t.method="notebookDocument/didChange",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(jI||(Tt.DidChangeNotebookDocumentNotification=jI={}));var WI;(function(t){t.method="notebookDocument/didSave",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(WI||(Tt.DidSaveNotebookDocumentNotification=WI={}));var qI;(function(t){t.method="notebookDocument/didClose",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(qI||(Tt.DidCloseNotebookDocumentNotification=qI={}))});var KI=ce(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.InlineCompletionRequest=void 0;var VI=ut(),YI;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=VI.MessageDirection.clientToServer,t.type=new VI.ProtocolRequestType(t.method)})(YI||(Sp.InlineCompletionRequest=YI={}))});var lv=ce(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.WorkspaceSymbolRequest=g.CodeActionResolveRequest=g.CodeActionRequest=g.DocumentSymbolRequest=g.DocumentHighlightRequest=g.ReferencesRequest=g.DefinitionRequest=g.SignatureHelpRequest=g.SignatureHelpTriggerKind=g.HoverRequest=g.CompletionResolveRequest=g.CompletionRequest=g.CompletionTriggerKind=g.PublishDiagnosticsNotification=g.WatchKind=g.RelativePattern=g.FileChangeType=g.DidChangeWatchedFilesNotification=g.WillSaveTextDocumentWaitUntilRequest=g.WillSaveTextDocumentNotification=g.TextDocumentSaveReason=g.DidSaveTextDocumentNotification=g.DidCloseTextDocumentNotification=g.DidChangeTextDocumentNotification=g.TextDocumentContentChangeEvent=g.DidOpenTextDocumentNotification=g.TextDocumentSyncKind=g.TelemetryEventNotification=g.LogMessageNotification=g.ShowMessageRequest=g.ShowMessageNotification=g.MessageType=g.DidChangeConfigurationNotification=g.ExitNotification=g.ShutdownRequest=g.InitializedNotification=g.InitializeErrorCodes=g.InitializeRequest=g.WorkDoneProgressOptions=g.TextDocumentRegistrationOptions=g.StaticRegistrationOptions=g.PositionEncodingKind=g.FailureHandlingKind=g.ResourceOperationKind=g.UnregistrationRequest=g.RegistrationRequest=g.DocumentSelector=g.NotebookCellTextDocumentFilter=g.NotebookDocumentFilter=g.TextDocumentFilter=void 0;g.MonikerRequest=g.MonikerKind=g.UniquenessLevel=g.WillDeleteFilesRequest=g.DidDeleteFilesNotification=g.WillRenameFilesRequest=g.DidRenameFilesNotification=g.WillCreateFilesRequest=g.DidCreateFilesNotification=g.FileOperationPatternKind=g.LinkedEditingRangeRequest=g.ShowDocumentRequest=g.SemanticTokensRegistrationType=g.SemanticTokensRefreshRequest=g.SemanticTokensRangeRequest=g.SemanticTokensDeltaRequest=g.SemanticTokensRequest=g.TokenFormat=g.CallHierarchyPrepareRequest=g.CallHierarchyOutgoingCallsRequest=g.CallHierarchyIncomingCallsRequest=g.WorkDoneProgressCancelNotification=g.WorkDoneProgressCreateRequest=g.WorkDoneProgress=g.SelectionRangeRequest=g.DeclarationRequest=g.FoldingRangeRefreshRequest=g.FoldingRangeRequest=g.ColorPresentationRequest=g.DocumentColorRequest=g.ConfigurationRequest=g.DidChangeWorkspaceFoldersNotification=g.WorkspaceFoldersRequest=g.TypeDefinitionRequest=g.ImplementationRequest=g.ApplyWorkspaceEditRequest=g.ExecuteCommandRequest=g.PrepareRenameRequest=g.RenameRequest=g.PrepareSupportDefaultBehavior=g.DocumentOnTypeFormattingRequest=g.DocumentRangesFormattingRequest=g.DocumentRangeFormattingRequest=g.DocumentFormattingRequest=g.DocumentLinkResolveRequest=g.DocumentLinkRequest=g.CodeLensRefreshRequest=g.CodeLensResolveRequest=g.CodeLensRequest=g.WorkspaceSymbolResolveRequest=void 0;g.InlineCompletionRequest=g.DidCloseNotebookDocumentNotification=g.DidSaveNotebookDocumentNotification=g.DidChangeNotebookDocumentNotification=g.NotebookCellArrayChange=g.DidOpenNotebookDocumentNotification=g.NotebookDocumentSyncRegistrationType=g.NotebookDocument=g.NotebookCell=g.ExecutionSummary=g.NotebookCellKind=g.DiagnosticRefreshRequest=g.WorkspaceDiagnosticRequest=g.DocumentDiagnosticRequest=g.DocumentDiagnosticReportKind=g.DiagnosticServerCancellationData=g.InlayHintRefreshRequest=g.InlayHintResolveRequest=g.InlayHintRequest=g.InlineValueRefreshRequest=g.InlineValueRequest=g.TypeHierarchySupertypesRequest=g.TypeHierarchySubtypesRequest=g.TypeHierarchyPrepareRequest=void 0;var F=ut(),ZI=(Zs(),qu(Dd)),Nt=pp(),cU=R0();Object.defineProperty(g,"ImplementationRequest",{enumerable:!0,get:function(){return cU.ImplementationRequest}});var lU=A0();Object.defineProperty(g,"TypeDefinitionRequest",{enumerable:!0,get:function(){return lU.TypeDefinitionRequest}});var ov=v0();Object.defineProperty(g,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ov.WorkspaceFoldersRequest}});Object.defineProperty(g,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ov.DidChangeWorkspaceFoldersNotification}});var uU=P0();Object.defineProperty(g,"ConfigurationRequest",{enumerable:!0,get:function(){return uU.ConfigurationRequest}});var sv=L0();Object.defineProperty(g,"DocumentColorRequest",{enumerable:!0,get:function(){return sv.DocumentColorRequest}});Object.defineProperty(g,"ColorPresentationRequest",{enumerable:!0,get:function(){return sv.ColorPresentationRequest}});var av=M0();Object.defineProperty(g,"FoldingRangeRequest",{enumerable:!0,get:function(){return av.FoldingRangeRequest}});Object.defineProperty(g,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return av.FoldingRangeRefreshRequest}});var fU=B0();Object.defineProperty(g,"DeclarationRequest",{enumerable:!0,get:function(){return fU.DeclarationRequest}});var dU=H0();Object.defineProperty(g,"SelectionRangeRequest",{enumerable:!0,get:function(){return dU.SelectionRangeRequest}});var ET=z0();Object.defineProperty(g,"WorkDoneProgress",{enumerable:!0,get:function(){return ET.WorkDoneProgress}});Object.defineProperty(g,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return ET.WorkDoneProgressCreateRequest}});Object.defineProperty(g,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return ET.WorkDoneProgressCancelNotification}});var RT=Z0();Object.defineProperty(g,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return RT.CallHierarchyIncomingCallsRequest}});Object.defineProperty(g,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return RT.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(g,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return RT.CallHierarchyPrepareRequest}});var Ia=nI();Object.defineProperty(g,"TokenFormat",{enumerable:!0,get:function(){return Ia.TokenFormat}});Object.defineProperty(g,"SemanticTokensRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensRequest}});Object.defineProperty(g,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensDeltaRequest}});Object.defineProperty(g,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensRangeRequest}});Object.defineProperty(g,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensRefreshRequest}});Object.defineProperty(g,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Ia.SemanticTokensRegistrationType}});var pU=sI();Object.defineProperty(g,"ShowDocumentRequest",{enumerable:!0,get:function(){return pU.ShowDocumentRequest}});var hU=lI();Object.defineProperty(g,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return hU.LinkedEditingRangeRequest}});var $o=yI();Object.defineProperty(g,"FileOperationPatternKind",{enumerable:!0,get:function(){return $o.FileOperationPatternKind}});Object.defineProperty(g,"DidCreateFilesNotification",{enumerable:!0,get:function(){return $o.DidCreateFilesNotification}});Object.defineProperty(g,"WillCreateFilesRequest",{enumerable:!0,get:function(){return $o.WillCreateFilesRequest}});Object.defineProperty(g,"DidRenameFilesNotification",{enumerable:!0,get:function(){return $o.DidRenameFilesNotification}});Object.defineProperty(g,"WillRenameFilesRequest",{enumerable:!0,get:function(){return $o.WillRenameFilesRequest}});Object.defineProperty(g,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return $o.DidDeleteFilesNotification}});Object.defineProperty(g,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return $o.WillDeleteFilesRequest}});var bT=RI();Object.defineProperty(g,"UniquenessLevel",{enumerable:!0,get:function(){return bT.UniquenessLevel}});Object.defineProperty(g,"MonikerKind",{enumerable:!0,get:function(){return bT.MonikerKind}});Object.defineProperty(g,"MonikerRequest",{enumerable:!0,get:function(){return bT.MonikerRequest}});var wT=II();Object.defineProperty(g,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return wT.TypeHierarchyPrepareRequest}});Object.defineProperty(g,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return wT.TypeHierarchySubtypesRequest}});Object.defineProperty(g,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return wT.TypeHierarchySupertypesRequest}});var cv=kI();Object.defineProperty(g,"InlineValueRequest",{enumerable:!0,get:function(){return cv.InlineValueRequest}});Object.defineProperty(g,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return cv.InlineValueRefreshRequest}});var AT=OI();Object.defineProperty(g,"InlayHintRequest",{enumerable:!0,get:function(){return AT.InlayHintRequest}});Object.defineProperty(g,"InlayHintResolveRequest",{enumerable:!0,get:function(){return AT.InlayHintResolveRequest}});Object.defineProperty(g,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return AT.InlayHintRefreshRequest}});var Gl=BI();Object.defineProperty(g,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Gl.DiagnosticServerCancellationData}});Object.defineProperty(g,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Gl.DocumentDiagnosticReportKind}});Object.defineProperty(g,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Gl.DocumentDiagnosticRequest}});Object.defineProperty(g,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Gl.WorkspaceDiagnosticRequest}});Object.defineProperty(g,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Gl.DiagnosticRefreshRequest}});var gn=zI();Object.defineProperty(g,"NotebookCellKind",{enumerable:!0,get:function(){return gn.NotebookCellKind}});Object.defineProperty(g,"ExecutionSummary",{enumerable:!0,get:function(){return gn.ExecutionSummary}});Object.defineProperty(g,"NotebookCell",{enumerable:!0,get:function(){return gn.NotebookCell}});Object.defineProperty(g,"NotebookDocument",{enumerable:!0,get:function(){return gn.NotebookDocument}});Object.defineProperty(g,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return gn.NotebookDocumentSyncRegistrationType}});Object.defineProperty(g,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidOpenNotebookDocumentNotification}});Object.defineProperty(g,"NotebookCellArrayChange",{enumerable:!0,get:function(){return gn.NotebookCellArrayChange}});Object.defineProperty(g,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidChangeNotebookDocumentNotification}});Object.defineProperty(g,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidSaveNotebookDocumentNotification}});Object.defineProperty(g,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidCloseNotebookDocumentNotification}});var mU=KI();Object.defineProperty(g,"InlineCompletionRequest",{enumerable:!0,get:function(){return mU.InlineCompletionRequest}});var yT;(function(t){function e(r){let n=r;return Nt.string(n)||Nt.string(n.language)||Nt.string(n.scheme)||Nt.string(n.pattern)}t.is=e})(yT||(g.TextDocumentFilter=yT={}));var xT;(function(t){function e(r){let n=r;return Nt.objectLiteral(n)&&(Nt.string(n.notebookType)||Nt.string(n.scheme)||Nt.string(n.pattern))}t.is=e})(xT||(g.NotebookDocumentFilter=xT={}));var TT;(function(t){function e(r){let n=r;return Nt.objectLiteral(n)&&(Nt.string(n.notebook)||xT.is(n.notebook))&&(n.language===void 0||Nt.string(n.language))}t.is=e})(TT||(g.NotebookCellTextDocumentFilter=TT={}));var _T;(function(t){function e(r){if(!Array.isArray(r))return!1;for(let n of r)if(!Nt.string(n)&&!yT.is(n)&&!TT.is(n))return!1;return!0}t.is=e})(_T||(g.DocumentSelector=_T={}));var JI;(function(t){t.method="client/registerCapability",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType(t.method)})(JI||(g.RegistrationRequest=JI={}));var QI;(function(t){t.method="client/unregisterCapability",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType(t.method)})(QI||(g.UnregistrationRequest=QI={}));var eS;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(eS||(g.ResourceOperationKind=eS={}));var tS;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(tS||(g.FailureHandlingKind=tS={}));var rS;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(rS||(g.PositionEncodingKind=rS={}));var nS;(function(t){function e(r){let n=r;return n&&Nt.string(n.id)&&n.id.length>0}t.hasId=e})(nS||(g.StaticRegistrationOptions=nS={}));var iS;(function(t){function e(r){let n=r;return n&&(n.documentSelector===null||_T.is(n.documentSelector))}t.is=e})(iS||(g.TextDocumentRegistrationOptions=iS={}));var oS;(function(t){function e(n){let i=n;return Nt.objectLiteral(i)&&(i.workDoneProgress===void 0||Nt.boolean(i.workDoneProgress))}t.is=e;function r(n){let i=n;return i&&Nt.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=r})(oS||(g.WorkDoneProgressOptions=oS={}));var sS;(function(t){t.method="initialize",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(sS||(g.InitializeRequest=sS={}));var aS;(function(t){t.unknownProtocolVersion=1})(aS||(g.InitializeErrorCodes=aS={}));var cS;(function(t){t.method="initialized",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(cS||(g.InitializedNotification=cS={}));var lS;(function(t){t.method="shutdown",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType0(t.method)})(lS||(g.ShutdownRequest=lS={}));var uS;(function(t){t.method="exit",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType0(t.method)})(uS||(g.ExitNotification=uS={}));var fS;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(fS||(g.DidChangeConfigurationNotification=fS={}));var dS;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4,t.Debug=5})(dS||(g.MessageType=dS={}));var pS;(function(t){t.method="window/showMessage",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(pS||(g.ShowMessageNotification=pS={}));var hS;(function(t){t.method="window/showMessageRequest",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType(t.method)})(hS||(g.ShowMessageRequest=hS={}));var mS;(function(t){t.method="window/logMessage",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(mS||(g.LogMessageNotification=mS={}));var gS;(function(t){t.method="telemetry/event",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(gS||(g.TelemetryEventNotification=gS={}));var yS;(function(t){t.None=0,t.Full=1,t.Incremental=2})(yS||(g.TextDocumentSyncKind=yS={}));var xS;(function(t){t.method="textDocument/didOpen",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(xS||(g.DidOpenTextDocumentNotification=xS={}));var TS;(function(t){function e(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function r(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=r})(TS||(g.TextDocumentContentChangeEvent=TS={}));var _S;(function(t){t.method="textDocument/didChange",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(_S||(g.DidChangeTextDocumentNotification=_S={}));var ES;(function(t){t.method="textDocument/didClose",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(ES||(g.DidCloseTextDocumentNotification=ES={}));var RS;(function(t){t.method="textDocument/didSave",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(RS||(g.DidSaveTextDocumentNotification=RS={}));var bS;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(bS||(g.TextDocumentSaveReason=bS={}));var wS;(function(t){t.method="textDocument/willSave",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(wS||(g.WillSaveTextDocumentNotification=wS={}));var AS;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(AS||(g.WillSaveTextDocumentWaitUntilRequest=AS={}));var IS;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(IS||(g.DidChangeWatchedFilesNotification=IS={}));var SS;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(SS||(g.FileChangeType=SS={}));var vS;(function(t){function e(r){let n=r;return Nt.objectLiteral(n)&&(ZI.URI.is(n.baseUri)||ZI.WorkspaceFolder.is(n.baseUri))&&Nt.string(n.pattern)}t.is=e})(vS||(g.RelativePattern=vS={}));var kS;(function(t){t.Create=1,t.Change=2,t.Delete=4})(kS||(g.WatchKind=kS={}));var NS;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(NS||(g.PublishDiagnosticsNotification=NS={}));var PS;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(PS||(g.CompletionTriggerKind=PS={}));var CS;(function(t){t.method="textDocument/completion",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(CS||(g.CompletionRequest=CS={}));var OS;(function(t){t.method="completionItem/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(OS||(g.CompletionResolveRequest=OS={}));var LS;(function(t){t.method="textDocument/hover",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(LS||(g.HoverRequest=LS={}));var DS;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(DS||(g.SignatureHelpTriggerKind=DS={}));var $S;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})($S||(g.SignatureHelpRequest=$S={}));var MS;(function(t){t.method="textDocument/definition",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(MS||(g.DefinitionRequest=MS={}));var FS;(function(t){t.method="textDocument/references",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(FS||(g.ReferencesRequest=FS={}));var US;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(US||(g.DocumentHighlightRequest=US={}));var BS;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(BS||(g.DocumentSymbolRequest=BS={}));var XS;(function(t){t.method="textDocument/codeAction",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(XS||(g.CodeActionRequest=XS={}));var GS;(function(t){t.method="codeAction/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(GS||(g.CodeActionResolveRequest=GS={}));var HS;(function(t){t.method="workspace/symbol",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(HS||(g.WorkspaceSymbolRequest=HS={}));var jS;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(jS||(g.WorkspaceSymbolResolveRequest=jS={}));var WS;(function(t){t.method="textDocument/codeLens",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(WS||(g.CodeLensRequest=WS={}));var qS;(function(t){t.method="codeLens/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(qS||(g.CodeLensResolveRequest=qS={}));var zS;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType0(t.method)})(zS||(g.CodeLensRefreshRequest=zS={}));var VS;(function(t){t.method="textDocument/documentLink",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(VS||(g.DocumentLinkRequest=VS={}));var YS;(function(t){t.method="documentLink/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(YS||(g.DocumentLinkResolveRequest=YS={}));var KS;(function(t){t.method="textDocument/formatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(KS||(g.DocumentFormattingRequest=KS={}));var ZS;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(ZS||(g.DocumentRangeFormattingRequest=ZS={}));var JS;(function(t){t.method="textDocument/rangesFormatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(JS||(g.DocumentRangesFormattingRequest=JS={}));var QS;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(QS||(g.DocumentOnTypeFormattingRequest=QS={}));var ev;(function(t){t.Identifier=1})(ev||(g.PrepareSupportDefaultBehavior=ev={}));var tv;(function(t){t.method="textDocument/rename",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(tv||(g.RenameRequest=tv={}));var rv;(function(t){t.method="textDocument/prepareRename",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(rv||(g.PrepareRenameRequest=rv={}));var nv;(function(t){t.method="workspace/executeCommand",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(nv||(g.ExecuteCommandRequest=nv={}));var iv;(function(t){t.method="workspace/applyEdit",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType("workspace/applyEdit")})(iv||(g.ApplyWorkspaceEditRequest=iv={}))});var fv=ce(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.createProtocolConnection=void 0;var uv=Do();function gU(t,e,r,n){return uv.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,uv.createMessageConnection)(t,e,r,n)}vp.createProtocolConnection=gU});var pv=ce(or=>{"use strict";var yU=or&&or.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kp=or&&or.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yU(e,t,r)};Object.defineProperty(or,"__esModule",{value:!0});or.LSPErrorCodes=or.createProtocolConnection=void 0;kp(Do(),or);kp((Zs(),qu(Dd)),or);kp(ut(),or);kp(lv(),or);var xU=fv();Object.defineProperty(or,"createProtocolConnection",{enumerable:!0,get:function(){return xU.createProtocolConnection}});var dv;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(dv||(or.LSPErrorCodes=dv={}))});var mv=ce(yn=>{"use strict";var TU=yn&&yn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hv=yn&&yn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TU(e,t,r)};Object.defineProperty(yn,"__esModule",{value:!0});yn.createProtocolConnection=void 0;var _U=lT();hv(lT(),yn);hv(pv(),yn);function EU(t,e,r,n){return(0,_U.createMessageConnection)(t,e,r,n)}yn.createProtocolConnection=EU});var Hv={};tn(Hv,{nodeReadFile:()=>HU});async function HU(){throw new Error("nowline: filesystem readers are unavailable in the browser embed")}var jv=bE(()=>{});var VH={};tn(VH,{EmbedRenderError:()=>Hu,__resetForTests:()=>zH,init:()=>_E,initialize:()=>HH,parse:()=>WH,render:()=>jH,run:()=>qH,sha:()=>XH,version:()=>BH});var wE="0.4.0",AE="86c53d1";var WP=/did you mean ['"]?([^'"?]+)['"]?\??/i;function IE(t,e){return{severity:t.severity===2?"warning":"error",code:qP(t),message:t.message,suggestion:VP(t.message),file:e,line:(t.range?.start.line??0)+1,column:(t.range?.start.character??0)+1}}function SE(t,e){return{severity:"error",code:"parse-error",message:t.message,file:e,line:t.token?.startLine??1,column:t.token?.startColumn??1}}function vE(t,e){return{severity:"error",code:"lex-error",message:t.message,file:e,line:t.line??1,column:t.column??1}}function kE(t){return{severity:t.severity,code:"include",message:t.message,file:t.sourcePath,line:t.line!==void 0?t.line+1:1,column:1}}function NE(t,e,r="warning"){return{severity:r,code:"render.warning",message:t,file:e,line:1,column:1}}function qP(t){return typeof t.code=="string"&&t.code!==""?t.code:typeof t.code=="number"?String(t.code):zP(t.message)}function zP(t){let e=t.toLowerCase();return e.includes("duplicate identifier")?"duplicate-identifier":e.includes("unknown reference")||e.includes("did you mean")?"unknown-reference":e.includes("circular")?"circular-dependency":e.includes("requires")&&e.includes("date:")?"missing-date":e.includes("duration")?"duration":e.includes("include")?"include":e.includes("indent")?"indentation":"validation"}function VP(t){let e=t.match(WP);return e?e[1].trim():void 0}var PE="__nowline_browser_noop_include__";async function CE(t){throw new Error(`${PE}: include "${t}" was skipped \u2014 running in single-file mode.`)}function OE(t){return t.includes(PE)}var lt={};tn(lt,{AbstractAstReflection:()=>zi,AbstractCstNode:()=>dl,AbstractLangiumParser:()=>pl,AbstractParserErrorMessageProvider:()=>Md,AbstractThreadedAsyncParser:()=>OT,AstUtils:()=>Yu,BiMap:()=>Po,Cancellation:()=>ne,CompositeCstNodeImpl:()=>Io,ContextCache:()=>Co,CstNodeBuilder:()=>fl,CstUtils:()=>gf,DEFAULT_TOKENIZE_OPTIONS:()=>Np,DONE_RESULT:()=>Mt,DatatypeSymbol:()=>$d,DefaultAstNodeDescriptionProvider:()=>Nl,DefaultAstNodeLocator:()=>Cl,DefaultAsyncParser:()=>Zl,DefaultCommentProvider:()=>Kl,DefaultConfigurationProvider:()=>Ol,DefaultDocumentBuilder:()=>Hl,DefaultDocumentValidator:()=>kl,DefaultHydrator:()=>Ql,DefaultIndexManager:()=>jl,DefaultJsonSerializer:()=>Il,DefaultLangiumDocumentFactory:()=>yl,DefaultLangiumDocuments:()=>xl,DefaultLangiumProfiler:()=>MT,DefaultLexer:()=>Mo,DefaultLexerErrorMessageProvider:()=>ql,DefaultLinker:()=>Tl,DefaultNameProvider:()=>_l,DefaultReferenceDescriptionProvider:()=>Pl,DefaultReferences:()=>El,DefaultScopeComputation:()=>Rl,DefaultScopeProvider:()=>Al,DefaultServiceRegistry:()=>Sl,DefaultTokenBuilder:()=>vo,DefaultValueConverter:()=>ko,DefaultWorkspaceLock:()=>Jl,DefaultWorkspaceManager:()=>Wl,Deferred:()=>Jt,Disposable:()=>Ci,DisposableCache:()=>sa,DocumentCache:()=>qd,DocumentState:()=>he,DocumentValidator:()=>wr,EMPTY_SCOPE:()=>IF,EMPTY_STREAM:()=>Zn,EmptyFileSystem:()=>iu,EmptyFileSystemProvider:()=>Lp,ErrorWithLocation:()=>co,GrammarAST:()=>Sc,GrammarUtils:()=>gs,IndentationAwareLexer:()=>nu,IndentationAwareTokenBuilder:()=>va,JSDocDocumentationProvider:()=>Yl,LangiumCompletionParser:()=>ml,LangiumParser:()=>hl,LangiumParserErrorMessageProvider:()=>Qs,LeafCstNodeImpl:()=>Ao,LexingMode:()=>Uo,MapScope:()=>Qy,Module:()=>DT,MultiMap:()=>Bt,MultiMapScope:()=>bl,OperationCancelled:()=>br,ParserWorker:()=>LT,ProfilingTask:()=>$p,Reduction:()=>ts,RefResolving:()=>No,RegExpUtils:()=>Tf,RootCstNodeImpl:()=>Js,SimpleCache:()=>wl,StreamImpl:()=>ur,StreamScope:()=>oa,TextDocument:()=>ra,TreeStreamImpl:()=>rn,URI:()=>mt,UriTrie:()=>ia,UriUtils:()=>_t,VALIDATE_EACH_NODE:()=>XA,ValidationCategory:()=>zd,ValidationRegistry:()=>vl,ValueConverter:()=>dn,WorkspaceCache:()=>aa,assertCondition:()=>BE,assertUnreachable:()=>sn,createCompletionParser:()=>Xy,createDefaultCoreModule:()=>eu,createDefaultSharedCoreModule:()=>tu,createGrammarConfig:()=>zm,createLangiumParser:()=>Gy,createParser:()=>gl,delayNextTick:()=>Zy,diagnosticData:()=>Oo,eagerLoad:()=>Av,getDiagnosticRange:()=>GA,indentationBuilderDefaultOptions:()=>$T,inject:()=>Fo,interruptAndCheck:()=>ht,isAstNode:()=>pt,isAstNodeDescription:()=>nm,isAstNodeWithComment:()=>ex,isCompositeCstNode:()=>Or,isIMultiModeLexerDefinition:()=>ST,isJSDoc:()=>PT,isLeafCstNode:()=>Kn,isLinkingError:()=>Vi,isMultiReference:()=>lr,isNamed:()=>UA,isOperationCancelled:()=>pn,isReference:()=>wt,isRootCstNode:()=>mc,isTokenTypeArray:()=>Pp,isTokenTypeDictionary:()=>IT,loadGrammarFromJson:()=>Dp,parseJSDoc:()=>NT,prepareLangiumParser:()=>SA,setInterruptionPeriod:()=>LA,startCancelableOperation:()=>jd,stream:()=>me,toDiagnosticData:()=>HA,toDiagnosticSeverity:()=>Vd});var gf={};tn(gf,{DefaultNameRegexp:()=>mf,RangeComparison:()=>on,compareRange:()=>$E,findCommentNode:()=>vm,findDeclarationNodeAtOffset:()=>yC,findLeafNodeAtOffset:()=>km,findLeafNodeBeforeOffset:()=>ME,flattenCst:()=>gC,getDatatypeNode:()=>mC,getInteriorNodes:()=>_C,getNextNode:()=>xC,getPreviousNode:()=>UE,getStartlineNode:()=>TC,inRange:()=>am,isChildNode:()=>Sm,isCommentNode:()=>Im,streamCst:()=>so,toDocumentSegment:()=>ao,tokenToRange:()=>ds});function pt(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function wt(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}function lr(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}function nm(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function Vi(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}var zi=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let r=this.types[e.container.$type];if(!r)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);let n=r.properties[e.property]?.referenceType;if(!n)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){let r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return pt(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});let i=n[r];if(i!==void 0)return i;{let o=this.types[e],s=o?o.superTypes.some(a=>this.isSubtype(a,r)):!1;return n[r]=s,s}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;{let n=this.getAllTypes(),i=[];for(let o of n)this.isSubtype(o,e)&&i.push(o);return this.allSubtypes[e]=i,i}}};function Or(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Kn(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function mc(t){return Or(t)&&typeof t.fullText=="string"}var ur=class t{constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){let e=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){let n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){return new t(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Mt})}join(e=","){let r=this.iterator(),n="",i,o=!1;do i=r.next(),i.done||(o&&(n+=e),n+=KP(i.value)),o=!0;while(!i.done);return n}indexOf(e,r=0){let n=this.iterator(),i=0,o=n.next();for(;!o.done;){if(i>=r&&o.value===e)return i;o=n.next(),i++}return-1}every(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new t(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?Mt:{done:!1,value:e(i)}})}filter(e){return new t(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Mt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){let n=this.iterator(),i=r,o=n.next();for(;!o.done;)i===void 0?i=o.value:i=e(i,o.value),o=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){let i=e.next();if(i.done)return n;let o=this.recursiveReduce(e,r,n);return o===void 0?i.value:r(o,i.value)}find(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new t(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let o=r.iterator.next();if(o.done)r.iterator=void 0;else return o}let{done:n,value:i}=this.nextFn(r.this);if(!n){let o=e(i);if(zu(o))r.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}}while(r.iterator);return Mt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;let r=e>1?this.flat(e-1):this;return new t(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}let{done:i,value:o}=r.nextFn(n.this);if(!i)if(zu(o))n.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}while(n.iterator);return Mt})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new t(()=>{let r=this.startFn();for(let n=0;n<e;n++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(e){return new t(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Mt:this.nextFn(r.state)))}distinct(e){return new t(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){let i=e?e(n.value):n.value;if(!r.set.has(i))return r.set.add(i),n}while(!n.done);return Mt})}exclude(e,r){let n=new Set;for(let i of e){let o=r?r(i):i;n.add(o)}return this.filter(i=>{let o=r?r(i):i;return!n.has(o)})}};function KP(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function zu(t){return!!t&&typeof t[Symbol.iterator]=="function"}var Zn=new ur(()=>{},()=>Mt),Mt=Object.freeze({done:!0,value:void 0});function me(...t){if(t.length===1){let e=t[0];if(e instanceof ur)return e;if(zu(e))return new ur(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new ur(()=>({index:0}),r=>r.index<e.length?{done:!1,value:e[r.index++]}:Mt)}return t.length>1?new ur(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){let r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){let r=t[e.collIndex++];zu(r)?e.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(e.array=r)}}while(e.iterator||e.array||e.collIndex<t.length);return Mt}):Zn}var rn=class extends ur{constructor(e,r,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){let s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return Mt})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},ts;(function(t){function e(o){return o.reduce((s,a)=>s+a,0)}t.sum=e;function r(o){return o.reduce((s,a)=>s*a,0)}t.product=r;function n(o){return o.reduce((s,a)=>Math.min(s,a))}t.min=n;function i(o){return o.reduce((s,a)=>Math.max(s,a))}t.max=i})(ts||(ts={}));var Yu={};tn(Yu,{assignMandatoryProperties:()=>sm,copyAstNode:()=>om,findRootNode:()=>ns,getContainerOfType:()=>An,getDocument:()=>Ft,getReferenceNodes:()=>Vu,hasContainerOfType:()=>ZP,linkContentToContainer:()=>rs,streamAllContents:()=>Lr,streamAst:()=>Wt,streamContents:()=>gc,streamReferences:()=>Jn});function rs(t,e={}){for(let[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((i,o)=>{pt(i)&&(i.$container=t,i.$containerProperty=r,i.$containerIndex=o,e.deep&&rs(i,e))}):pt(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&rs(n,e)))}function An(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}function ZP(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}function Ft(t){let r=ns(t).$document;if(!r)throw new Error("AST node has no document.");return r}function ns(t){for(;t.$container;)t=t.$container;return t}function Vu(t){return wt(t)?t.ref?[t.ref]:[]:lr(t)?t.items.map(e=>e.ref):[]}function gc(t,e){if(!t)throw new Error("Node must be an AstNode.");let r=e?.range;return new ur(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndex<n.keys.length;){let i=n.keys[n.keyIndex];if(!i.startsWith("$")){let o=t[i];if(pt(o)){if(n.keyIndex++,im(o,r))return{done:!1,value:o}}else if(Array.isArray(o)){for(;n.arrayIndex<o.length;){let s=n.arrayIndex++,a=o[s];if(pt(a)&&im(a,r))return{done:!1,value:a}}n.arrayIndex=0}}n.keyIndex++}return Mt})}function Lr(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new rn(t,r=>gc(r,e))}function Wt(t,e){if(t){if(e?.range&&!im(t,e.range))return new rn(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new rn(t,r=>gc(r,e),{includeRoot:!0})}function im(t,e){if(!e)return!0;let r=t.$cstNode?.range;return r?am(r,e):!1}function Jn(t){return new ur(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){let r=e.keys[e.keyIndex];if(!r.startsWith("$")){let n=t[r];if(wt(n)||lr(n))return e.keyIndex++,{done:!1,value:{reference:n,container:t,property:r}};if(Array.isArray(n)){for(;e.arrayIndex<n.length;){let i=e.arrayIndex++,o=n[i];if(wt(o)||lr(n))return{done:!1,value:{reference:o,container:t,property:r,index:i}}}e.arrayIndex=0}}e.keyIndex++}return Mt})}function sm(t,e){let r=t.getTypeMetaData(e.$type),n=e;for(let i of Object.values(r.properties))i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=LE(i.defaultValue))}function LE(t){return Array.isArray(t)?[...t.map(LE)]:t}function om(t,e,r){let n={$type:t.$type};r&&(r.set(t,n),r.set(n,t));for(let[i,o]of Object.entries(t))if(!i.startsWith("$"))if(pt(o))n[i]=om(o,e,r);else if(wt(o))n[i]=e(n,i,o.$refNode,o.$refText,o);else if(Array.isArray(o)){let s=[];for(let a of o)pt(a)?s.push(om(a,e,r)):wt(a)?s.push(e(n,i,a.$refNode,a.$refText,a)):s.push(a);n[i]=s}else n[i]=o;return rs(n,{deep:!0}),n}var Sc={};tn(Sc,{AbstractElement:()=>Qt,AbstractParserRule:()=>yc,AbstractRule:()=>is,AbstractType:()=>fr,Action:()=>Qn,Alternatives:()=>xc,ArrayLiteral:()=>Ku,ArrayType:()=>Zu,Assignment:()=>ei,BooleanLiteral:()=>Ju,CharacterRange:()=>ti,Condition:()=>ri,Conjunction:()=>Tc,CrossReference:()=>ni,Disjunction:()=>_c,EndOfFile:()=>Qu,Grammar:()=>In,GrammarImport:()=>ef,Group:()=>Yi,InferredType:()=>tf,InfixRule:()=>nn,InfixRuleOperatorList:()=>Ec,InfixRuleOperators:()=>rf,Interface:()=>os,Keyword:()=>ss,LangiumGrammarAstReflection:()=>fs,LangiumGrammarTerminals:()=>JP,NamedArgument:()=>as,NegatedToken:()=>Ki,Negation:()=>nf,NumberLiteral:()=>of,Parameter:()=>cs,ParameterReference:()=>sf,ParserRule:()=>Dr,ReferenceType:()=>Rc,RegexToken:()=>Zi,ReturnType:()=>af,RuleCall:()=>Ji,SimpleType:()=>ls,StringLiteral:()=>cf,TerminalAlternatives:()=>Qi,TerminalElement:()=>er,TerminalGroup:()=>eo,TerminalRule:()=>Sn,TerminalRuleCall:()=>to,Type:()=>bc,TypeAttribute:()=>ro,TypeDefinition:()=>no,UnionType:()=>lf,UnorderedGroup:()=>wc,UntilToken:()=>io,ValueLiteral:()=>oo,Wildcard:()=>us,isAbstractElement:()=>Ac,isAbstractParserRule:()=>vn,isAbstractRule:()=>QP,isAbstractType:()=>eC,isAction:()=>kn,isAlternatives:()=>uf,isArrayLiteral:()=>tC,isArrayType:()=>cm,isAssignment:()=>$r,isBooleanLiteral:()=>lm,isCharacterRange:()=>um,isCondition:()=>rC,isConjunction:()=>fm,isCrossReference:()=>Mr,isDisjunction:()=>dm,isEndOfFile:()=>pm,isGrammar:()=>nC,isGrammarImport:()=>iC,isGroup:()=>ii,isInferredType:()=>Ic,isInfixRule:()=>oi,isInfixRuleOperatorList:()=>oC,isInfixRuleOperators:()=>sC,isInterface:()=>hm,isKeyword:()=>Er,isNamedArgument:()=>aC,isNegatedToken:()=>mm,isNegation:()=>gm,isNumberLiteral:()=>cC,isParameter:()=>lC,isParameterReference:()=>ym,isParserRule:()=>St,isReferenceType:()=>xm,isRegexToken:()=>Tm,isReturnType:()=>_m,isRuleCall:()=>Fr,isSimpleType:()=>ff,isStringLiteral:()=>uC,isTerminalAlternatives:()=>Em,isTerminalElement:()=>fC,isTerminalGroup:()=>Rm,isTerminalRule:()=>qt,isTerminalRuleCall:()=>df,isType:()=>pf,isTypeAttribute:()=>dC,isTypeDefinition:()=>pC,isUnionType:()=>bm,isUnorderedGroup:()=>hf,isUntilToken:()=>wm,isValueLiteral:()=>hC,isWildcard:()=>Am,reflection:()=>re});var JP={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},Qt={$type:"AbstractElement",cardinality:"cardinality"};function Ac(t){return re.isInstance(t,Qt.$type)}var yc={$type:"AbstractParserRule"};function vn(t){return re.isInstance(t,yc.$type)}var is={$type:"AbstractRule"};function QP(t){return re.isInstance(t,is.$type)}var fr={$type:"AbstractType"};function eC(t){return re.isInstance(t,fr.$type)}var Qn={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function kn(t){return re.isInstance(t,Qn.$type)}var xc={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function uf(t){return re.isInstance(t,xc.$type)}var Ku={$type:"ArrayLiteral",elements:"elements"};function tC(t){return re.isInstance(t,Ku.$type)}var Zu={$type:"ArrayType",elementType:"elementType"};function cm(t){return re.isInstance(t,Zu.$type)}var ei={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function $r(t){return re.isInstance(t,ei.$type)}var Ju={$type:"BooleanLiteral",true:"true"};function lm(t){return re.isInstance(t,Ju.$type)}var ti={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function um(t){return re.isInstance(t,ti.$type)}var ri={$type:"Condition"};function rC(t){return re.isInstance(t,ri.$type)}var Tc={$type:"Conjunction",left:"left",right:"right"};function fm(t){return re.isInstance(t,Tc.$type)}var ni={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Mr(t){return re.isInstance(t,ni.$type)}var _c={$type:"Disjunction",left:"left",right:"right"};function dm(t){return re.isInstance(t,_c.$type)}var Qu={$type:"EndOfFile",cardinality:"cardinality"};function pm(t){return re.isInstance(t,Qu.$type)}var In={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function nC(t){return re.isInstance(t,In.$type)}var ef={$type:"GrammarImport",path:"path"};function iC(t){return re.isInstance(t,ef.$type)}var Yi={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function ii(t){return re.isInstance(t,Yi.$type)}var tf={$type:"InferredType",name:"name"};function Ic(t){return re.isInstance(t,tf.$type)}var nn={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function oi(t){return re.isInstance(t,nn.$type)}var Ec={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function oC(t){return re.isInstance(t,Ec.$type)}var rf={$type:"InfixRuleOperators",precedences:"precedences"};function sC(t){return re.isInstance(t,rf.$type)}var os={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function hm(t){return re.isInstance(t,os.$type)}var ss={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Er(t){return re.isInstance(t,ss.$type)}var as={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function aC(t){return re.isInstance(t,as.$type)}var Ki={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function mm(t){return re.isInstance(t,Ki.$type)}var nf={$type:"Negation",value:"value"};function gm(t){return re.isInstance(t,nf.$type)}var of={$type:"NumberLiteral",value:"value"};function cC(t){return re.isInstance(t,of.$type)}var cs={$type:"Parameter",name:"name"};function lC(t){return re.isInstance(t,cs.$type)}var sf={$type:"ParameterReference",parameter:"parameter"};function ym(t){return re.isInstance(t,sf.$type)}var Dr={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function St(t){return re.isInstance(t,Dr.$type)}var Rc={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function xm(t){return re.isInstance(t,Rc.$type)}var Zi={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Tm(t){return re.isInstance(t,Zi.$type)}var af={$type:"ReturnType",name:"name"};function _m(t){return re.isInstance(t,af.$type)}var Ji={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Fr(t){return re.isInstance(t,Ji.$type)}var ls={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function ff(t){return re.isInstance(t,ls.$type)}var cf={$type:"StringLiteral",value:"value"};function uC(t){return re.isInstance(t,cf.$type)}var Qi={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Em(t){return re.isInstance(t,Qi.$type)}var er={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function fC(t){return re.isInstance(t,er.$type)}var eo={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Rm(t){return re.isInstance(t,eo.$type)}var Sn={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function qt(t){return re.isInstance(t,Sn.$type)}var to={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function df(t){return re.isInstance(t,to.$type)}var bc={$type:"Type",name:"name",type:"type"};function pf(t){return re.isInstance(t,bc.$type)}var ro={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function dC(t){return re.isInstance(t,ro.$type)}var no={$type:"TypeDefinition"};function pC(t){return re.isInstance(t,no.$type)}var lf={$type:"UnionType",types:"types"};function bm(t){return re.isInstance(t,lf.$type)}var wc={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function hf(t){return re.isInstance(t,wc.$type)}var io={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function wm(t){return re.isInstance(t,io.$type)}var oo={$type:"ValueLiteral"};function hC(t){return re.isInstance(t,oo.$type)}var us={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Am(t){return re.isInstance(t,us.$type)}var fs=class extends zi{constructor(){super(...arguments),this.types={AbstractElement:{name:Qt.$type,properties:{cardinality:{name:Qt.cardinality}},superTypes:[]},AbstractParserRule:{name:yc.$type,properties:{},superTypes:[is.$type,fr.$type]},AbstractRule:{name:is.$type,properties:{},superTypes:[]},AbstractType:{name:fr.$type,properties:{},superTypes:[]},Action:{name:Qn.$type,properties:{cardinality:{name:Qn.cardinality},feature:{name:Qn.feature},inferredType:{name:Qn.inferredType},operator:{name:Qn.operator},type:{name:Qn.type,referenceType:fr.$type}},superTypes:[Qt.$type]},Alternatives:{name:xc.$type,properties:{cardinality:{name:xc.cardinality},elements:{name:xc.elements,defaultValue:[]}},superTypes:[Qt.$type]},ArrayLiteral:{name:Ku.$type,properties:{elements:{name:Ku.elements,defaultValue:[]}},superTypes:[oo.$type]},ArrayType:{name:Zu.$type,properties:{elementType:{name:Zu.elementType}},superTypes:[no.$type]},Assignment:{name:ei.$type,properties:{cardinality:{name:ei.cardinality},feature:{name:ei.feature},operator:{name:ei.operator},predicate:{name:ei.predicate},terminal:{name:ei.terminal}},superTypes:[Qt.$type]},BooleanLiteral:{name:Ju.$type,properties:{true:{name:Ju.true,defaultValue:!1}},superTypes:[ri.$type,oo.$type]},CharacterRange:{name:ti.$type,properties:{cardinality:{name:ti.cardinality},left:{name:ti.left},lookahead:{name:ti.lookahead},parenthesized:{name:ti.parenthesized,defaultValue:!1},right:{name:ti.right}},superTypes:[er.$type]},Condition:{name:ri.$type,properties:{},superTypes:[]},Conjunction:{name:Tc.$type,properties:{left:{name:Tc.left},right:{name:Tc.right}},superTypes:[ri.$type]},CrossReference:{name:ni.$type,properties:{cardinality:{name:ni.cardinality},deprecatedSyntax:{name:ni.deprecatedSyntax,defaultValue:!1},isMulti:{name:ni.isMulti,defaultValue:!1},terminal:{name:ni.terminal},type:{name:ni.type,referenceType:fr.$type}},superTypes:[Qt.$type]},Disjunction:{name:_c.$type,properties:{left:{name:_c.left},right:{name:_c.right}},superTypes:[ri.$type]},EndOfFile:{name:Qu.$type,properties:{cardinality:{name:Qu.cardinality}},superTypes:[Qt.$type]},Grammar:{name:In.$type,properties:{imports:{name:In.imports,defaultValue:[]},interfaces:{name:In.interfaces,defaultValue:[]},isDeclared:{name:In.isDeclared,defaultValue:!1},name:{name:In.name},rules:{name:In.rules,defaultValue:[]},types:{name:In.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:ef.$type,properties:{path:{name:ef.path}},superTypes:[]},Group:{name:Yi.$type,properties:{cardinality:{name:Yi.cardinality},elements:{name:Yi.elements,defaultValue:[]},guardCondition:{name:Yi.guardCondition},predicate:{name:Yi.predicate}},superTypes:[Qt.$type]},InferredType:{name:tf.$type,properties:{name:{name:tf.name}},superTypes:[fr.$type]},InfixRule:{name:nn.$type,properties:{call:{name:nn.call},dataType:{name:nn.dataType},inferredType:{name:nn.inferredType},name:{name:nn.name},operators:{name:nn.operators},parameters:{name:nn.parameters,defaultValue:[]},returnType:{name:nn.returnType,referenceType:fr.$type}},superTypes:[yc.$type]},InfixRuleOperatorList:{name:Ec.$type,properties:{associativity:{name:Ec.associativity},operators:{name:Ec.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:rf.$type,properties:{precedences:{name:rf.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:os.$type,properties:{attributes:{name:os.attributes,defaultValue:[]},name:{name:os.name},superTypes:{name:os.superTypes,defaultValue:[],referenceType:fr.$type}},superTypes:[fr.$type]},Keyword:{name:ss.$type,properties:{cardinality:{name:ss.cardinality},predicate:{name:ss.predicate},value:{name:ss.value}},superTypes:[Qt.$type]},NamedArgument:{name:as.$type,properties:{calledByName:{name:as.calledByName,defaultValue:!1},parameter:{name:as.parameter,referenceType:cs.$type},value:{name:as.value}},superTypes:[]},NegatedToken:{name:Ki.$type,properties:{cardinality:{name:Ki.cardinality},lookahead:{name:Ki.lookahead},parenthesized:{name:Ki.parenthesized,defaultValue:!1},terminal:{name:Ki.terminal}},superTypes:[er.$type]},Negation:{name:nf.$type,properties:{value:{name:nf.value}},superTypes:[ri.$type]},NumberLiteral:{name:of.$type,properties:{value:{name:of.value}},superTypes:[oo.$type]},Parameter:{name:cs.$type,properties:{name:{name:cs.name}},superTypes:[]},ParameterReference:{name:sf.$type,properties:{parameter:{name:sf.parameter,referenceType:cs.$type}},superTypes:[ri.$type]},ParserRule:{name:Dr.$type,properties:{dataType:{name:Dr.dataType},definition:{name:Dr.definition},entry:{name:Dr.entry,defaultValue:!1},fragment:{name:Dr.fragment,defaultValue:!1},inferredType:{name:Dr.inferredType},name:{name:Dr.name},parameters:{name:Dr.parameters,defaultValue:[]},returnType:{name:Dr.returnType,referenceType:fr.$type}},superTypes:[yc.$type]},ReferenceType:{name:Rc.$type,properties:{isMulti:{name:Rc.isMulti,defaultValue:!1},referenceType:{name:Rc.referenceType}},superTypes:[no.$type]},RegexToken:{name:Zi.$type,properties:{cardinality:{name:Zi.cardinality},lookahead:{name:Zi.lookahead},parenthesized:{name:Zi.parenthesized,defaultValue:!1},regex:{name:Zi.regex}},superTypes:[er.$type]},ReturnType:{name:af.$type,properties:{name:{name:af.name}},superTypes:[]},RuleCall:{name:Ji.$type,properties:{arguments:{name:Ji.arguments,defaultValue:[]},cardinality:{name:Ji.cardinality},predicate:{name:Ji.predicate},rule:{name:Ji.rule,referenceType:is.$type}},superTypes:[Qt.$type]},SimpleType:{name:ls.$type,properties:{primitiveType:{name:ls.primitiveType},stringType:{name:ls.stringType},typeRef:{name:ls.typeRef,referenceType:fr.$type}},superTypes:[no.$type]},StringLiteral:{name:cf.$type,properties:{value:{name:cf.value}},superTypes:[oo.$type]},TerminalAlternatives:{name:Qi.$type,properties:{cardinality:{name:Qi.cardinality},elements:{name:Qi.elements,defaultValue:[]},lookahead:{name:Qi.lookahead},parenthesized:{name:Qi.parenthesized,defaultValue:!1}},superTypes:[er.$type]},TerminalElement:{name:er.$type,properties:{cardinality:{name:er.cardinality},lookahead:{name:er.lookahead},parenthesized:{name:er.parenthesized,defaultValue:!1}},superTypes:[Qt.$type]},TerminalGroup:{name:eo.$type,properties:{cardinality:{name:eo.cardinality},elements:{name:eo.elements,defaultValue:[]},lookahead:{name:eo.lookahead},parenthesized:{name:eo.parenthesized,defaultValue:!1}},superTypes:[er.$type]},TerminalRule:{name:Sn.$type,properties:{definition:{name:Sn.definition},fragment:{name:Sn.fragment,defaultValue:!1},hidden:{name:Sn.hidden,defaultValue:!1},name:{name:Sn.name},type:{name:Sn.type}},superTypes:[is.$type]},TerminalRuleCall:{name:to.$type,properties:{cardinality:{name:to.cardinality},lookahead:{name:to.lookahead},parenthesized:{name:to.parenthesized,defaultValue:!1},rule:{name:to.rule,referenceType:Sn.$type}},superTypes:[er.$type]},Type:{name:bc.$type,properties:{name:{name:bc.name},type:{name:bc.type}},superTypes:[fr.$type]},TypeAttribute:{name:ro.$type,properties:{defaultValue:{name:ro.defaultValue},isOptional:{name:ro.isOptional,defaultValue:!1},name:{name:ro.name},type:{name:ro.type}},superTypes:[]},TypeDefinition:{name:no.$type,properties:{},superTypes:[]},UnionType:{name:lf.$type,properties:{types:{name:lf.types,defaultValue:[]}},superTypes:[no.$type]},UnorderedGroup:{name:wc.$type,properties:{cardinality:{name:wc.cardinality},elements:{name:wc.elements,defaultValue:[]}},superTypes:[Qt.$type]},UntilToken:{name:io.$type,properties:{cardinality:{name:io.cardinality},lookahead:{name:io.lookahead},parenthesized:{name:io.parenthesized,defaultValue:!1},terminal:{name:io.terminal}},superTypes:[er.$type]},ValueLiteral:{name:oo.$type,properties:{},superTypes:[]},Wildcard:{name:us.$type,properties:{cardinality:{name:us.cardinality},lookahead:{name:us.lookahead},parenthesized:{name:us.parenthesized,defaultValue:!1}},superTypes:[er.$type]}}}},re=new fs;function mC(t){let e=t,r=!1;for(;e;){let n=An(e.grammarSource,St);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}function so(t){return new rn(t,e=>Or(e)?e.content:[],{includeRoot:!0})}function gC(t){return so(t).filter(Kn)}function Sm(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function ds(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function ao(t){if(!t)return;let{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}var on;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(on||(on={}));function $E(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return on.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return on.After;let r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return r&&n?on.Inside:r?on.OverlapBack:n?on.OverlapFront:on.Outside}function am(t,e){return $E(t,e)>on.After}var mf=/^[\w\p{L}]$/u;function yC(t,e,r=mf){if(t){if(e>0){let n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return km(t,e)}}function vm(t,e){if(t){let r=UE(t,!0);if(r&&Im(r,e))return r;if(mc(t)){let n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){let o=t.content[i];if(Im(o,e))return o}}}}function Im(t,e){return Kn(t)&&e.includes(t.tokenType.name)}function km(t,e){if(Kn(t))return t;if(Or(t)){let r=FE(t,e,!1);if(r)return km(r,e)}}function ME(t,e){if(Kn(t))return t;if(Or(t)){let r=FE(t,e,!0);if(r)return ME(r,e)}}function FE(t,e,r){let n=0,i=t.content.length-1,o;for(;n<=i;){let s=Math.floor((n+i)/2),a=t.content[s];if(a.offset<=e&&a.end>e)return a;a.end<=e?(o=r?a:void 0,n=s+1):i=s-1}return o}function UE(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t);for(;n>0;){n--;let i=r.content[n];if(e||!i.hidden)return i}t=r}}function xC(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t),i=r.content.length-1;for(;n<i;){n++;let o=r.content[n];if(e||!o.hidden)return o}t=r}}function TC(t){if(t.range.start.character===0)return t;let e=t.range.start.line,r=t,n;for(;t.container;){let i=t.container,o=n??i.content.indexOf(t);if(o===0?(t=i,n=void 0):(n=o-1,t=i.content[n]),t.range.start.line!==e)break;r=t}return r}function _C(t,e){let r=EC(t,e);return r?r.parent.content.slice(r.a+1,r.b):[]}function EC(t,e){let r=DE(t),n=DE(e),i;for(let o=0;o<r.length&&o<n.length;o++){let s=r[o],a=n[o];if(s.parent===a.parent)i={parent:s.parent,a:s.index,b:a.index};else break}return i}function DE(t){let e=[];for(;t.container;){let r=t.container,n=r.content.indexOf(t);e.push({parent:r,index:n}),t=r}return e.reverse()}var gs={};tn(gs,{findAssignment:()=>jm,findNameAssignment:()=>_f,findNodeForKeyword:()=>Gm,findNodeForProperty:()=>Oc,findNodesForKeyword:()=>IC,findNodesForKeywordInternal:()=>Hm,findNodesForProperty:()=>Bm,getActionAtElement:()=>VE,getActionType:()=>KE,getAllReachableRules:()=>Cc,getAllRulesUsedForCrossReferences:()=>AC,getCrossReferenceTerminal:()=>Fm,getEntryRule:()=>jE,getExplicitRuleType:()=>Ef,getHiddenRules:()=>WE,getRuleType:()=>Wm,getRuleTypeName:()=>PC,getTypeName:()=>ai,isArrayCardinality:()=>vC,isArrayOperator:()=>kC,isCommentTerminal:()=>Um,isDataType:()=>NC,isDataTypeRule:()=>Lc,isOptionalCardinality:()=>SC,terminalRegex:()=>hs});var co=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}};function sn(t,e="Error: Got unexpected value."){throw new Error(e)}function BE(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}var Tf={};tn(Tf,{NEWLINE_REGEXP:()=>Om,escapeRegExp:()=>si,getTerminalParts:()=>wC,isMultilineComment:()=>Lm,isWhitespace:()=>Pc,partialMatches:()=>Dm,partialRegExp:()=>HE,whitespaceCharacters:()=>GE});function oe(t){return t.charCodeAt(0)}function yf(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}function ps(t,e){if(t[e]===!0)throw"duplicate flag "+e;let r=t[e];t[e]=!0}function lo(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function vc(){throw Error("Internal Error - Should never get here!")}function Nm(t){return t.type==="Character"}var kc=[];for(let t=oe("0");t<=oe("9");t++)kc.push(t);var Nc=[oe("_")].concat(kc);for(let t=oe("a");t<=oe("z");t++)Nc.push(t);for(let t=oe("A");t<=oe("Z");t++)Nc.push(t);var Pm=[oe(" "),oe("\f"),oe(`
36
+ `)),N){let z=x.error?` Request failed: ${x.error.message} (${x.error.code}).`:"";D.log(`Received response '${N.method} - (${x.id})' in ${Date.now()-N.timerStart}ms.${z}`,X)}else D.log(`Received response ${x.id} without active response promise.`,X)}else Pr("receive-response",x)}function Pr(x,N){if(!D||_===De.Off)return;let X={isLSPMessage:!0,type:x,message:N,timestamp:Date.now()};D.log(X)}function de(){if(H())throw new ha(Fl.Closed,"Connection is closed.");if($())throw new ha(Fl.Disposed,"Connection is disposed.")}function Wi(){if(B())throw new ha(Fl.AlreadyListening,"Connection is already listening")}function qi(){if(!B())throw new Error("Call listen() first.")}function Cr(x){return x===void 0?null:x}function es(x){if(x!==null)return x}function xr(x){return x!=null&&!Array.isArray(x)&&typeof x=="object"}function Ot(x,N){switch(x){case ae.ParameterStructures.auto:return xr(N)?es(N):[Cr(N)];case ae.ParameterStructures.byName:if(!xr(N))throw new Error("Received parameters by name but param is not an object literal.");return es(N);case ae.ParameterStructures.byPosition:return[Cr(N)];default:throw new Error(`Unknown parameter structure ${x.toString()}`)}}function en(x,N){let X,z=x.numberOfParams;switch(z){case 0:X=void 0;break;case 1:X=Ot(x.parameterStructures,N[0]);break;default:X=[];for(let Be=0;Be<N.length&&Be<z;Be++)X.push(Cr(N[Be]));if(N.length<z)for(let Be=N.length;Be<z;Be++)X.push(null);break}return X}let jt={sendNotification:(x,...N)=>{de();let X,z;if(gt.string(x)){X=x;let Se=N[0],Le=0,je=ae.ParameterStructures.auto;ae.ParameterStructures.is(Se)&&(Le=1,je=Se);let ye=N.length,$e=ye-Le;switch($e){case 0:z=void 0;break;case 1:z=Ot(je,N[Le]);break;default:if(je===ae.ParameterStructures.byName)throw new Error(`Received ${$e} parameters for 'by Name' notification parameter structure.`);z=N.slice(Le,ye).map(ve=>Cr(ve));break}}else{let Se=N;X=x.method,z=en(x,Se)}let Be={jsonrpc:c,method:X,params:z};return Ee(Be),e.write(Be).catch(Se=>{throw i.error("Sending notification failed."),Se})},onNotification:(x,N)=>{de();let X;return gt.func(x)?f=x:N&&(gt.string(x)?(X=x,d.set(x,{type:void 0,handler:N})):(X=x.method,d.set(x.method,{type:x,handler:N}))),{dispose:()=>{X!==void 0?d.delete(X):f=void 0}}},onProgress:(x,N,X)=>{if(p.has(N))throw new Error(`Progress handler for token ${N} already registered`);return p.set(N,X),{dispose:()=>{p.delete(N)}}},sendProgress:(x,N,X)=>jt.sendNotification(Ml.type,{token:N,value:X}),onUnhandledProgress:Ae.event,sendRequest:(x,...N)=>{de(),qi();let X,z,Be;if(gt.string(x)){X=x;let ye=N[0],$e=N[N.length-1],ve=0,dt=ae.ParameterStructures.auto;ae.ParameterStructures.is(ye)&&(ve=1,dt=ye);let et=N.length;zx.CancellationToken.is($e)&&(et=et-1,Be=$e);let cr=et-ve;switch(cr){case 0:z=void 0;break;case 1:z=Ot(dt,N[ve]);break;default:if(dt===ae.ParameterStructures.byName)throw new Error(`Received ${cr} parameters for 'by Name' request parameter structure.`);z=N.slice(ve,et).map($t=>Cr($t));break}}else{let ye=N;X=x.method,z=en(x,ye);let $e=x.numberOfParams;Be=zx.CancellationToken.is(ye[$e])?ye[$e]:void 0}let Se=o++,Le;Be&&(Le=Be.onCancellationRequested(()=>{let ye=w.sender.sendCancellation(jt,Se);return ye===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${Se}`),Promise.resolve()):ye.catch(()=>{i.log(`Sending cancellation messages for id ${Se} failed`)})}));let je={jsonrpc:c,id:Se,method:X,params:z};return Te(je),typeof w.sender.enableCancellation=="function"&&w.sender.enableCancellation(je),new Promise(async(ye,$e)=>{let ve=cr=>{ye(cr),w.sender.cleanup(Se),Le?.dispose()},dt=cr=>{$e(cr),w.sender.cleanup(Se),Le?.dispose()},et={method:X,timerStart:Date.now(),resolve:ve,reject:dt};try{await e.write(je),R.set(Se,et)}catch(cr){throw i.error("Sending request failed."),et.reject(new ae.ResponseError(ae.ErrorCodes.MessageWriteError,cr.message?cr.message:"Unknown reason")),cr}})},onRequest:(x,N)=>{de();let X=null;return Kx.is(x)?(X=void 0,l=x):gt.string(x)?(X=null,N!==void 0&&(X=x,u.set(x,{handler:N,type:void 0}))):N!==void 0&&(X=x.method,u.set(x.method,{type:x,handler:N})),{dispose:()=>{X!==null&&(X!==void 0?u.delete(X):l=void 0)}}},hasPendingResponse:()=>R.size>0,trace:async(x,N,X)=>{let z=!1,Be=hr.Text;X!==void 0&&(gt.boolean(X)?z=X:(z=X.sendNotification||!1,Be=X.traceFormat||hr.Text)),_=x,k=Be,_===De.Off?D=void 0:D=N,z&&!H()&&!$()&&await jt.sendNotification(Zx.type,{value:De.toString(x)})},onError:j.event,onClose:V.event,onUnhandledNotification:ie.event,onDispose:O.event,end:()=>{e.end()},dispose:()=>{if($())return;C=Gr.Disposed,O.fire(void 0);let x=new ae.ResponseError(ae.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let N of R.values())N.reject(x);R=new Map,E=new Map,T=new Set,y=new a0.LinkedMap,gt.func(e.dispose)&&e.dispose(),gt.func(t.dispose)&&t.dispose()},listen:()=>{de(),Wi(),C=Gr.Listening,t.listen(We)},inspect:()=>{(0,s0.default)().console.log("inspect")}};return jt.onNotification(op.type,x=>{if(_===De.Off||!D)return;let N=_===De.Verbose||_===De.Compact;D.log(x.message,N?x.verbose:void 0)}),jt.onNotification(Ml.type,x=>{let N=p.get(x.token);N?N(x.value):Ae.fire(x)}),jt}fe.createMessageConnection=jF});var fp=ce(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.ProgressType=v.ProgressToken=v.createMessageConnection=v.NullLogger=v.ConnectionOptions=v.ConnectionStrategy=v.AbstractMessageBuffer=v.WriteableStreamMessageWriter=v.AbstractMessageWriter=v.MessageWriter=v.ReadableStreamMessageReader=v.AbstractMessageReader=v.MessageReader=v.SharedArrayReceiverStrategy=v.SharedArraySenderStrategy=v.CancellationToken=v.CancellationTokenSource=v.Emitter=v.Event=v.Disposable=v.LRUCache=v.Touch=v.LinkedMap=v.ParameterStructures=v.NotificationType9=v.NotificationType8=v.NotificationType7=v.NotificationType6=v.NotificationType5=v.NotificationType4=v.NotificationType3=v.NotificationType2=v.NotificationType1=v.NotificationType0=v.NotificationType=v.ErrorCodes=v.ResponseError=v.RequestType9=v.RequestType8=v.RequestType7=v.RequestType6=v.RequestType5=v.RequestType4=v.RequestType3=v.RequestType2=v.RequestType1=v.RequestType0=v.RequestType=v.Message=v.RAL=void 0;v.MessageStrategy=v.CancellationStrategy=v.CancellationSenderStrategy=v.CancellationReceiverStrategy=v.ConnectionError=v.ConnectionErrors=v.LogTraceNotification=v.SetTraceNotification=v.TraceFormat=v.TraceValues=v.Trace=void 0;var Qe=Ax();Object.defineProperty(v,"Message",{enumerable:!0,get:function(){return Qe.Message}});Object.defineProperty(v,"RequestType",{enumerable:!0,get:function(){return Qe.RequestType}});Object.defineProperty(v,"RequestType0",{enumerable:!0,get:function(){return Qe.RequestType0}});Object.defineProperty(v,"RequestType1",{enumerable:!0,get:function(){return Qe.RequestType1}});Object.defineProperty(v,"RequestType2",{enumerable:!0,get:function(){return Qe.RequestType2}});Object.defineProperty(v,"RequestType3",{enumerable:!0,get:function(){return Qe.RequestType3}});Object.defineProperty(v,"RequestType4",{enumerable:!0,get:function(){return Qe.RequestType4}});Object.defineProperty(v,"RequestType5",{enumerable:!0,get:function(){return Qe.RequestType5}});Object.defineProperty(v,"RequestType6",{enumerable:!0,get:function(){return Qe.RequestType6}});Object.defineProperty(v,"RequestType7",{enumerable:!0,get:function(){return Qe.RequestType7}});Object.defineProperty(v,"RequestType8",{enumerable:!0,get:function(){return Qe.RequestType8}});Object.defineProperty(v,"RequestType9",{enumerable:!0,get:function(){return Qe.RequestType9}});Object.defineProperty(v,"ResponseError",{enumerable:!0,get:function(){return Qe.ResponseError}});Object.defineProperty(v,"ErrorCodes",{enumerable:!0,get:function(){return Qe.ErrorCodes}});Object.defineProperty(v,"NotificationType",{enumerable:!0,get:function(){return Qe.NotificationType}});Object.defineProperty(v,"NotificationType0",{enumerable:!0,get:function(){return Qe.NotificationType0}});Object.defineProperty(v,"NotificationType1",{enumerable:!0,get:function(){return Qe.NotificationType1}});Object.defineProperty(v,"NotificationType2",{enumerable:!0,get:function(){return Qe.NotificationType2}});Object.defineProperty(v,"NotificationType3",{enumerable:!0,get:function(){return Qe.NotificationType3}});Object.defineProperty(v,"NotificationType4",{enumerable:!0,get:function(){return Qe.NotificationType4}});Object.defineProperty(v,"NotificationType5",{enumerable:!0,get:function(){return Qe.NotificationType5}});Object.defineProperty(v,"NotificationType6",{enumerable:!0,get:function(){return Qe.NotificationType6}});Object.defineProperty(v,"NotificationType7",{enumerable:!0,get:function(){return Qe.NotificationType7}});Object.defineProperty(v,"NotificationType8",{enumerable:!0,get:function(){return Qe.NotificationType8}});Object.defineProperty(v,"NotificationType9",{enumerable:!0,get:function(){return Qe.NotificationType9}});Object.defineProperty(v,"ParameterStructures",{enumerable:!0,get:function(){return Qe.ParameterStructures}});var eT=Sx();Object.defineProperty(v,"LinkedMap",{enumerable:!0,get:function(){return eT.LinkedMap}});Object.defineProperty(v,"LRUCache",{enumerable:!0,get:function(){return eT.LRUCache}});Object.defineProperty(v,"Touch",{enumerable:!0,get:function(){return eT.Touch}});var WF=YA();Object.defineProperty(v,"Disposable",{enumerable:!0,get:function(){return WF.Disposable}});var f0=ua();Object.defineProperty(v,"Event",{enumerable:!0,get:function(){return f0.Event}});Object.defineProperty(v,"Emitter",{enumerable:!0,get:function(){return f0.Emitter}});var d0=ep();Object.defineProperty(v,"CancellationTokenSource",{enumerable:!0,get:function(){return d0.CancellationTokenSource}});Object.defineProperty(v,"CancellationToken",{enumerable:!0,get:function(){return d0.CancellationToken}});var p0=ZA();Object.defineProperty(v,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return p0.SharedArraySenderStrategy}});Object.defineProperty(v,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return p0.SharedArrayReceiverStrategy}});var tT=QA();Object.defineProperty(v,"MessageReader",{enumerable:!0,get:function(){return tT.MessageReader}});Object.defineProperty(v,"AbstractMessageReader",{enumerable:!0,get:function(){return tT.AbstractMessageReader}});Object.defineProperty(v,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return tT.ReadableStreamMessageReader}});var rT=i0();Object.defineProperty(v,"MessageWriter",{enumerable:!0,get:function(){return rT.MessageWriter}});Object.defineProperty(v,"AbstractMessageWriter",{enumerable:!0,get:function(){return rT.AbstractMessageWriter}});Object.defineProperty(v,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return rT.WriteableStreamMessageWriter}});var qF=o0();Object.defineProperty(v,"AbstractMessageBuffer",{enumerable:!0,get:function(){return qF.AbstractMessageBuffer}});var Dt=u0();Object.defineProperty(v,"ConnectionStrategy",{enumerable:!0,get:function(){return Dt.ConnectionStrategy}});Object.defineProperty(v,"ConnectionOptions",{enumerable:!0,get:function(){return Dt.ConnectionOptions}});Object.defineProperty(v,"NullLogger",{enumerable:!0,get:function(){return Dt.NullLogger}});Object.defineProperty(v,"createMessageConnection",{enumerable:!0,get:function(){return Dt.createMessageConnection}});Object.defineProperty(v,"ProgressToken",{enumerable:!0,get:function(){return Dt.ProgressToken}});Object.defineProperty(v,"ProgressType",{enumerable:!0,get:function(){return Dt.ProgressType}});Object.defineProperty(v,"Trace",{enumerable:!0,get:function(){return Dt.Trace}});Object.defineProperty(v,"TraceValues",{enumerable:!0,get:function(){return Dt.TraceValues}});Object.defineProperty(v,"TraceFormat",{enumerable:!0,get:function(){return Dt.TraceFormat}});Object.defineProperty(v,"SetTraceNotification",{enumerable:!0,get:function(){return Dt.SetTraceNotification}});Object.defineProperty(v,"LogTraceNotification",{enumerable:!0,get:function(){return Dt.LogTraceNotification}});Object.defineProperty(v,"ConnectionErrors",{enumerable:!0,get:function(){return Dt.ConnectionErrors}});Object.defineProperty(v,"ConnectionError",{enumerable:!0,get:function(){return Dt.ConnectionError}});Object.defineProperty(v,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Dt.CancellationReceiverStrategy}});Object.defineProperty(v,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Dt.CancellationSenderStrategy}});Object.defineProperty(v,"CancellationStrategy",{enumerable:!0,get:function(){return Dt.CancellationStrategy}});Object.defineProperty(v,"MessageStrategy",{enumerable:!0,get:function(){return Dt.MessageStrategy}});var zF=wi();v.RAL=zF.default});var m0=ce(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});var hn=fp(),dp=class t extends hn.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return t.emptyBuffer}fromString(e,r){return new TextEncoder().encode(e)}toString(e,r){return r==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(r).decode(e)}asNative(e,r){return r===void 0?e:e.slice(0,r)}allocNative(e){return new Uint8Array(e)}};dp.emptyBuffer=new Uint8Array(0);var nT=class{constructor(e){this.socket=e,this._onData=new hn.Emitter,this._messageListener=r=>{r.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,hn.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),hn.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),hn.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),hn.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},iT=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),hn.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),hn.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),hn.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,r){if(typeof e=="string"){if(r!==void 0&&r!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${r}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},VF=new TextEncoder,h0=Object.freeze({messageBuffer:Object.freeze({create:t=>new dp(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(VF.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new nT(t),asWritableStream:t=>new iT(t)}),console,timer:Object.freeze({setTimeout(t,e,...r){let n=setTimeout(t,e,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(t,...e){let r=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(r)}},setInterval(t,e,...r){let n=setInterval(t,e,...r);return{dispose:()=>clearInterval(n)}}})});function oT(){return h0}(function(t){function e(){hn.RAL.install(h0)}t.install=e})(oT||(oT={}));sT.default=oT});var Do=ce(mr=>{"use strict";var YF=mr&&mr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),KF=mr&&mr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YF(e,t,r)};Object.defineProperty(mr,"__esModule",{value:!0});mr.createMessageConnection=mr.BrowserMessageWriter=mr.BrowserMessageReader=void 0;var ZF=m0();ZF.default.install();var ma=fp();KF(fp(),mr);var aT=class extends ma.AbstractMessageReader{constructor(e){super(),this._onData=new ma.Emitter,this._messageListener=r=>{this._onData.fire(r.data)},e.addEventListener("error",r=>this.fireError(r)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}};mr.BrowserMessageReader=aT;var cT=class extends ma.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",r=>this.fireError(r))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){}};mr.BrowserMessageWriter=cT;function JF(t,e,r,n){return r===void 0&&(r=ma.NullLogger),ma.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,ma.createMessageConnection)(t,e,r,n)}mr.createMessageConnection=JF});var lT=ce((J9,g0)=>{"use strict";g0.exports=Do()});var ut=ce(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ProtocolNotificationType=nr.ProtocolNotificationType0=nr.ProtocolRequestType=nr.ProtocolRequestType0=nr.RegistrationType=nr.MessageDirection=void 0;var ga=Do(),y0;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(y0||(nr.MessageDirection=y0={}));var uT=class{constructor(e){this.method=e}};nr.RegistrationType=uT;var fT=class extends ga.RequestType0{constructor(e){super(e)}};nr.ProtocolRequestType0=fT;var dT=class extends ga.RequestType{constructor(e){super(e,ga.ParameterStructures.byName)}};nr.ProtocolRequestType=dT;var pT=class extends ga.NotificationType0{constructor(e){super(e)}};nr.ProtocolNotificationType0=pT;var hT=class extends ga.NotificationType{constructor(e){super(e,ga.ParameterStructures.byName)}};nr.ProtocolNotificationType=hT});var pp=ce(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.objectLiteral=bt.typedArray=bt.stringArray=bt.array=bt.func=bt.error=bt.number=bt.string=bt.boolean=void 0;function QF(t){return t===!0||t===!1}bt.boolean=QF;function x0(t){return typeof t=="string"||t instanceof String}bt.string=x0;function eU(t){return typeof t=="number"||t instanceof Number}bt.number=eU;function tU(t){return t instanceof Error}bt.error=tU;function rU(t){return typeof t=="function"}bt.func=rU;function T0(t){return Array.isArray(t)}bt.array=T0;function nU(t){return T0(t)&&t.every(e=>x0(e))}bt.stringArray=nU;function iU(t,e){return Array.isArray(t)&&t.every(e)}bt.typedArray=iU;function oU(t){return t!==null&&typeof t=="object"}bt.objectLiteral=oU});var R0=ce(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.ImplementationRequest=void 0;var _0=ut(),E0;(function(t){t.method="textDocument/implementation",t.messageDirection=_0.MessageDirection.clientToServer,t.type=new _0.ProtocolRequestType(t.method)})(E0||(hp.ImplementationRequest=E0={}))});var A0=ce(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.TypeDefinitionRequest=void 0;var b0=ut(),w0;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=b0.MessageDirection.clientToServer,t.type=new b0.ProtocolRequestType(t.method)})(w0||(mp.TypeDefinitionRequest=w0={}))});var v0=ce(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.DidChangeWorkspaceFoldersNotification=ya.WorkspaceFoldersRequest=void 0;var gp=ut(),I0;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=gp.MessageDirection.serverToClient,t.type=new gp.ProtocolRequestType0(t.method)})(I0||(ya.WorkspaceFoldersRequest=I0={}));var S0;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=gp.MessageDirection.clientToServer,t.type=new gp.ProtocolNotificationType(t.method)})(S0||(ya.DidChangeWorkspaceFoldersNotification=S0={}))});var P0=ce(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.ConfigurationRequest=void 0;var k0=ut(),N0;(function(t){t.method="workspace/configuration",t.messageDirection=k0.MessageDirection.serverToClient,t.type=new k0.ProtocolRequestType(t.method)})(N0||(yp.ConfigurationRequest=N0={}))});var L0=ce(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.ColorPresentationRequest=xa.DocumentColorRequest=void 0;var xp=ut(),C0;(function(t){t.method="textDocument/documentColor",t.messageDirection=xp.MessageDirection.clientToServer,t.type=new xp.ProtocolRequestType(t.method)})(C0||(xa.DocumentColorRequest=C0={}));var O0;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=xp.MessageDirection.clientToServer,t.type=new xp.ProtocolRequestType(t.method)})(O0||(xa.ColorPresentationRequest=O0={}))});var M0=ce(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.FoldingRangeRefreshRequest=Ta.FoldingRangeRequest=void 0;var Tp=ut(),D0;(function(t){t.method="textDocument/foldingRange",t.messageDirection=Tp.MessageDirection.clientToServer,t.type=new Tp.ProtocolRequestType(t.method)})(D0||(Ta.FoldingRangeRequest=D0={}));var $0;(function(t){t.method="workspace/foldingRange/refresh",t.messageDirection=Tp.MessageDirection.serverToClient,t.type=new Tp.ProtocolRequestType0(t.method)})($0||(Ta.FoldingRangeRefreshRequest=$0={}))});var B0=ce(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.DeclarationRequest=void 0;var F0=ut(),U0;(function(t){t.method="textDocument/declaration",t.messageDirection=F0.MessageDirection.clientToServer,t.type=new F0.ProtocolRequestType(t.method)})(U0||(_p.DeclarationRequest=U0={}))});var H0=ce(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.SelectionRangeRequest=void 0;var X0=ut(),G0;(function(t){t.method="textDocument/selectionRange",t.messageDirection=X0.MessageDirection.clientToServer,t.type=new X0.ProtocolRequestType(t.method)})(G0||(Ep.SelectionRangeRequest=G0={}))});var z0=ce(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.WorkDoneProgressCancelNotification=Si.WorkDoneProgressCreateRequest=Si.WorkDoneProgress=void 0;var sU=Do(),Rp=ut(),j0;(function(t){t.type=new sU.ProgressType;function e(r){return r===t.type}t.is=e})(j0||(Si.WorkDoneProgress=j0={}));var W0;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Rp.MessageDirection.serverToClient,t.type=new Rp.ProtocolRequestType(t.method)})(W0||(Si.WorkDoneProgressCreateRequest=W0={}));var q0;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Rp.MessageDirection.clientToServer,t.type=new Rp.ProtocolNotificationType(t.method)})(q0||(Si.WorkDoneProgressCancelNotification=q0={}))});var Z0=ce(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.CallHierarchyOutgoingCallsRequest=vi.CallHierarchyIncomingCallsRequest=vi.CallHierarchyPrepareRequest=void 0;var _a=ut(),V0;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=_a.MessageDirection.clientToServer,t.type=new _a.ProtocolRequestType(t.method)})(V0||(vi.CallHierarchyPrepareRequest=V0={}));var Y0;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=_a.MessageDirection.clientToServer,t.type=new _a.ProtocolRequestType(t.method)})(Y0||(vi.CallHierarchyIncomingCallsRequest=Y0={}));var K0;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=_a.MessageDirection.clientToServer,t.type=new _a.ProtocolRequestType(t.method)})(K0||(vi.CallHierarchyOutgoingCallsRequest=K0={}))});var nI=ce(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.SemanticTokensRefreshRequest=ir.SemanticTokensRangeRequest=ir.SemanticTokensDeltaRequest=ir.SemanticTokensRequest=ir.SemanticTokensRegistrationType=ir.TokenFormat=void 0;var Gn=ut(),J0;(function(t){t.Relative="relative"})(J0||(ir.TokenFormat=J0={}));var Bl;(function(t){t.method="textDocument/semanticTokens",t.type=new Gn.RegistrationType(t.method)})(Bl||(ir.SemanticTokensRegistrationType=Bl={}));var Q0;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Gn.MessageDirection.clientToServer,t.type=new Gn.ProtocolRequestType(t.method),t.registrationMethod=Bl.method})(Q0||(ir.SemanticTokensRequest=Q0={}));var eI;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Gn.MessageDirection.clientToServer,t.type=new Gn.ProtocolRequestType(t.method),t.registrationMethod=Bl.method})(eI||(ir.SemanticTokensDeltaRequest=eI={}));var tI;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Gn.MessageDirection.clientToServer,t.type=new Gn.ProtocolRequestType(t.method),t.registrationMethod=Bl.method})(tI||(ir.SemanticTokensRangeRequest=tI={}));var rI;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Gn.MessageDirection.serverToClient,t.type=new Gn.ProtocolRequestType0(t.method)})(rI||(ir.SemanticTokensRefreshRequest=rI={}))});var sI=ce(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.ShowDocumentRequest=void 0;var iI=ut(),oI;(function(t){t.method="window/showDocument",t.messageDirection=iI.MessageDirection.serverToClient,t.type=new iI.ProtocolRequestType(t.method)})(oI||(bp.ShowDocumentRequest=oI={}))});var lI=ce(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.LinkedEditingRangeRequest=void 0;var aI=ut(),cI;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=aI.MessageDirection.clientToServer,t.type=new aI.ProtocolRequestType(t.method)})(cI||(wp.LinkedEditingRangeRequest=cI={}))});var yI=ce(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.WillDeleteFilesRequest=Ht.DidDeleteFilesNotification=Ht.DidRenameFilesNotification=Ht.WillRenameFilesRequest=Ht.DidCreateFilesNotification=Ht.WillCreateFilesRequest=Ht.FileOperationPatternKind=void 0;var Ar=ut(),uI;(function(t){t.file="file",t.folder="folder"})(uI||(Ht.FileOperationPatternKind=uI={}));var fI;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolRequestType(t.method)})(fI||(Ht.WillCreateFilesRequest=fI={}));var dI;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolNotificationType(t.method)})(dI||(Ht.DidCreateFilesNotification=dI={}));var pI;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolRequestType(t.method)})(pI||(Ht.WillRenameFilesRequest=pI={}));var hI;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolNotificationType(t.method)})(hI||(Ht.DidRenameFilesNotification=hI={}));var mI;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolNotificationType(t.method)})(mI||(Ht.DidDeleteFilesNotification=mI={}));var gI;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=Ar.MessageDirection.clientToServer,t.type=new Ar.ProtocolRequestType(t.method)})(gI||(Ht.WillDeleteFilesRequest=gI={}))});var RI=ce(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.MonikerRequest=ki.MonikerKind=ki.UniquenessLevel=void 0;var xI=ut(),TI;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(TI||(ki.UniquenessLevel=TI={}));var _I;(function(t){t.$import="import",t.$export="export",t.local="local"})(_I||(ki.MonikerKind=_I={}));var EI;(function(t){t.method="textDocument/moniker",t.messageDirection=xI.MessageDirection.clientToServer,t.type=new xI.ProtocolRequestType(t.method)})(EI||(ki.MonikerRequest=EI={}))});var II=ce(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.TypeHierarchySubtypesRequest=Ni.TypeHierarchySupertypesRequest=Ni.TypeHierarchyPrepareRequest=void 0;var Ea=ut(),bI;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=Ea.MessageDirection.clientToServer,t.type=new Ea.ProtocolRequestType(t.method)})(bI||(Ni.TypeHierarchyPrepareRequest=bI={}));var wI;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=Ea.MessageDirection.clientToServer,t.type=new Ea.ProtocolRequestType(t.method)})(wI||(Ni.TypeHierarchySupertypesRequest=wI={}));var AI;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=Ea.MessageDirection.clientToServer,t.type=new Ea.ProtocolRequestType(t.method)})(AI||(Ni.TypeHierarchySubtypesRequest=AI={}))});var kI=ce(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.InlineValueRefreshRequest=Ra.InlineValueRequest=void 0;var Ap=ut(),SI;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Ap.MessageDirection.clientToServer,t.type=new Ap.ProtocolRequestType(t.method)})(SI||(Ra.InlineValueRequest=SI={}));var vI;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Ap.MessageDirection.serverToClient,t.type=new Ap.ProtocolRequestType0(t.method)})(vI||(Ra.InlineValueRefreshRequest=vI={}))});var OI=ce(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.InlayHintRefreshRequest=Pi.InlayHintResolveRequest=Pi.InlayHintRequest=void 0;var ba=ut(),NI;(function(t){t.method="textDocument/inlayHint",t.messageDirection=ba.MessageDirection.clientToServer,t.type=new ba.ProtocolRequestType(t.method)})(NI||(Pi.InlayHintRequest=NI={}));var PI;(function(t){t.method="inlayHint/resolve",t.messageDirection=ba.MessageDirection.clientToServer,t.type=new ba.ProtocolRequestType(t.method)})(PI||(Pi.InlayHintResolveRequest=PI={}));var CI;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=ba.MessageDirection.serverToClient,t.type=new ba.ProtocolRequestType0(t.method)})(CI||(Pi.InlayHintRefreshRequest=CI={}))});var BI=ce(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.DiagnosticRefreshRequest=Ir.WorkspaceDiagnosticRequest=Ir.DocumentDiagnosticRequest=Ir.DocumentDiagnosticReportKind=Ir.DiagnosticServerCancellationData=void 0;var UI=Do(),aU=pp(),wa=ut(),LI;(function(t){function e(r){let n=r;return n&&aU.boolean(n.retriggerRequest)}t.is=e})(LI||(Ir.DiagnosticServerCancellationData=LI={}));var DI;(function(t){t.Full="full",t.Unchanged="unchanged"})(DI||(Ir.DocumentDiagnosticReportKind=DI={}));var $I;(function(t){t.method="textDocument/diagnostic",t.messageDirection=wa.MessageDirection.clientToServer,t.type=new wa.ProtocolRequestType(t.method),t.partialResult=new UI.ProgressType})($I||(Ir.DocumentDiagnosticRequest=$I={}));var MI;(function(t){t.method="workspace/diagnostic",t.messageDirection=wa.MessageDirection.clientToServer,t.type=new wa.ProtocolRequestType(t.method),t.partialResult=new UI.ProgressType})(MI||(Ir.WorkspaceDiagnosticRequest=MI={}));var FI;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=wa.MessageDirection.serverToClient,t.type=new wa.ProtocolRequestType0(t.method)})(FI||(Ir.DiagnosticRefreshRequest=FI={}))});var zI=ce(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.DidCloseNotebookDocumentNotification=Tt.DidSaveNotebookDocumentNotification=Tt.DidChangeNotebookDocumentNotification=Tt.NotebookCellArrayChange=Tt.DidOpenNotebookDocumentNotification=Tt.NotebookDocumentSyncRegistrationType=Tt.NotebookDocument=Tt.NotebookCell=Tt.ExecutionSummary=Tt.NotebookCellKind=void 0;var Xl=(Zs(),qu(Dd)),Hr=pp(),mn=ut(),mT;(function(t){t.Markup=1,t.Code=2;function e(r){return r===1||r===2}t.is=e})(mT||(Tt.NotebookCellKind=mT={}));var gT;(function(t){function e(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}t.create=e;function r(i){let o=i;return Hr.objectLiteral(o)&&Xl.uinteger.is(o.executionOrder)&&(o.success===void 0||Hr.boolean(o.success))}t.is=r;function n(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}t.equals=n})(gT||(Tt.ExecutionSummary=gT={}));var Ip;(function(t){function e(o,s){return{kind:o,document:s}}t.create=e;function r(o){let s=o;return Hr.objectLiteral(s)&&mT.is(s.kind)&&Xl.DocumentUri.is(s.document)&&(s.metadata===void 0||Hr.objectLiteral(s.metadata))}t.is=r;function n(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)&&!gT.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}t.diff=n;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(Hr.objectLiteral(o)&&Hr.objectLiteral(s)){let l=Object.keys(o),u=Object.keys(s);if(l.length!==u.length||(l.sort(),u.sort(),!i(l,u)))return!1;for(let f=0;f<l.length;f++){let d=l[f];if(!i(o[d],s[d]))return!1}}return!0}})(Ip||(Tt.NotebookCell=Ip={}));var XI;(function(t){function e(n,i,o,s){return{uri:n,notebookType:i,version:o,cells:s}}t.create=e;function r(n){let i=n;return Hr.objectLiteral(i)&&Hr.string(i.uri)&&Xl.integer.is(i.version)&&Hr.typedArray(i.cells,Ip.is)}t.is=r})(XI||(Tt.NotebookDocument=XI={}));var Aa;(function(t){t.method="notebookDocument/sync",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.RegistrationType(t.method)})(Aa||(Tt.NotebookDocumentSyncRegistrationType=Aa={}));var GI;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(GI||(Tt.DidOpenNotebookDocumentNotification=GI={}));var HI;(function(t){function e(n){let i=n;return Hr.objectLiteral(i)&&Xl.uinteger.is(i.start)&&Xl.uinteger.is(i.deleteCount)&&(i.cells===void 0||Hr.typedArray(i.cells,Ip.is))}t.is=e;function r(n,i,o){let s={start:n,deleteCount:i};return o!==void 0&&(s.cells=o),s}t.create=r})(HI||(Tt.NotebookCellArrayChange=HI={}));var jI;(function(t){t.method="notebookDocument/didChange",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(jI||(Tt.DidChangeNotebookDocumentNotification=jI={}));var WI;(function(t){t.method="notebookDocument/didSave",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(WI||(Tt.DidSaveNotebookDocumentNotification=WI={}));var qI;(function(t){t.method="notebookDocument/didClose",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method),t.registrationMethod=Aa.method})(qI||(Tt.DidCloseNotebookDocumentNotification=qI={}))});var KI=ce(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.InlineCompletionRequest=void 0;var VI=ut(),YI;(function(t){t.method="textDocument/inlineCompletion",t.messageDirection=VI.MessageDirection.clientToServer,t.type=new VI.ProtocolRequestType(t.method)})(YI||(Sp.InlineCompletionRequest=YI={}))});var lv=ce(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.WorkspaceSymbolRequest=g.CodeActionResolveRequest=g.CodeActionRequest=g.DocumentSymbolRequest=g.DocumentHighlightRequest=g.ReferencesRequest=g.DefinitionRequest=g.SignatureHelpRequest=g.SignatureHelpTriggerKind=g.HoverRequest=g.CompletionResolveRequest=g.CompletionRequest=g.CompletionTriggerKind=g.PublishDiagnosticsNotification=g.WatchKind=g.RelativePattern=g.FileChangeType=g.DidChangeWatchedFilesNotification=g.WillSaveTextDocumentWaitUntilRequest=g.WillSaveTextDocumentNotification=g.TextDocumentSaveReason=g.DidSaveTextDocumentNotification=g.DidCloseTextDocumentNotification=g.DidChangeTextDocumentNotification=g.TextDocumentContentChangeEvent=g.DidOpenTextDocumentNotification=g.TextDocumentSyncKind=g.TelemetryEventNotification=g.LogMessageNotification=g.ShowMessageRequest=g.ShowMessageNotification=g.MessageType=g.DidChangeConfigurationNotification=g.ExitNotification=g.ShutdownRequest=g.InitializedNotification=g.InitializeErrorCodes=g.InitializeRequest=g.WorkDoneProgressOptions=g.TextDocumentRegistrationOptions=g.StaticRegistrationOptions=g.PositionEncodingKind=g.FailureHandlingKind=g.ResourceOperationKind=g.UnregistrationRequest=g.RegistrationRequest=g.DocumentSelector=g.NotebookCellTextDocumentFilter=g.NotebookDocumentFilter=g.TextDocumentFilter=void 0;g.MonikerRequest=g.MonikerKind=g.UniquenessLevel=g.WillDeleteFilesRequest=g.DidDeleteFilesNotification=g.WillRenameFilesRequest=g.DidRenameFilesNotification=g.WillCreateFilesRequest=g.DidCreateFilesNotification=g.FileOperationPatternKind=g.LinkedEditingRangeRequest=g.ShowDocumentRequest=g.SemanticTokensRegistrationType=g.SemanticTokensRefreshRequest=g.SemanticTokensRangeRequest=g.SemanticTokensDeltaRequest=g.SemanticTokensRequest=g.TokenFormat=g.CallHierarchyPrepareRequest=g.CallHierarchyOutgoingCallsRequest=g.CallHierarchyIncomingCallsRequest=g.WorkDoneProgressCancelNotification=g.WorkDoneProgressCreateRequest=g.WorkDoneProgress=g.SelectionRangeRequest=g.DeclarationRequest=g.FoldingRangeRefreshRequest=g.FoldingRangeRequest=g.ColorPresentationRequest=g.DocumentColorRequest=g.ConfigurationRequest=g.DidChangeWorkspaceFoldersNotification=g.WorkspaceFoldersRequest=g.TypeDefinitionRequest=g.ImplementationRequest=g.ApplyWorkspaceEditRequest=g.ExecuteCommandRequest=g.PrepareRenameRequest=g.RenameRequest=g.PrepareSupportDefaultBehavior=g.DocumentOnTypeFormattingRequest=g.DocumentRangesFormattingRequest=g.DocumentRangeFormattingRequest=g.DocumentFormattingRequest=g.DocumentLinkResolveRequest=g.DocumentLinkRequest=g.CodeLensRefreshRequest=g.CodeLensResolveRequest=g.CodeLensRequest=g.WorkspaceSymbolResolveRequest=void 0;g.InlineCompletionRequest=g.DidCloseNotebookDocumentNotification=g.DidSaveNotebookDocumentNotification=g.DidChangeNotebookDocumentNotification=g.NotebookCellArrayChange=g.DidOpenNotebookDocumentNotification=g.NotebookDocumentSyncRegistrationType=g.NotebookDocument=g.NotebookCell=g.ExecutionSummary=g.NotebookCellKind=g.DiagnosticRefreshRequest=g.WorkspaceDiagnosticRequest=g.DocumentDiagnosticRequest=g.DocumentDiagnosticReportKind=g.DiagnosticServerCancellationData=g.InlayHintRefreshRequest=g.InlayHintResolveRequest=g.InlayHintRequest=g.InlineValueRefreshRequest=g.InlineValueRequest=g.TypeHierarchySupertypesRequest=g.TypeHierarchySubtypesRequest=g.TypeHierarchyPrepareRequest=void 0;var F=ut(),ZI=(Zs(),qu(Dd)),Nt=pp(),cU=R0();Object.defineProperty(g,"ImplementationRequest",{enumerable:!0,get:function(){return cU.ImplementationRequest}});var lU=A0();Object.defineProperty(g,"TypeDefinitionRequest",{enumerable:!0,get:function(){return lU.TypeDefinitionRequest}});var ov=v0();Object.defineProperty(g,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return ov.WorkspaceFoldersRequest}});Object.defineProperty(g,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return ov.DidChangeWorkspaceFoldersNotification}});var uU=P0();Object.defineProperty(g,"ConfigurationRequest",{enumerable:!0,get:function(){return uU.ConfigurationRequest}});var sv=L0();Object.defineProperty(g,"DocumentColorRequest",{enumerable:!0,get:function(){return sv.DocumentColorRequest}});Object.defineProperty(g,"ColorPresentationRequest",{enumerable:!0,get:function(){return sv.ColorPresentationRequest}});var av=M0();Object.defineProperty(g,"FoldingRangeRequest",{enumerable:!0,get:function(){return av.FoldingRangeRequest}});Object.defineProperty(g,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return av.FoldingRangeRefreshRequest}});var fU=B0();Object.defineProperty(g,"DeclarationRequest",{enumerable:!0,get:function(){return fU.DeclarationRequest}});var dU=H0();Object.defineProperty(g,"SelectionRangeRequest",{enumerable:!0,get:function(){return dU.SelectionRangeRequest}});var ET=z0();Object.defineProperty(g,"WorkDoneProgress",{enumerable:!0,get:function(){return ET.WorkDoneProgress}});Object.defineProperty(g,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return ET.WorkDoneProgressCreateRequest}});Object.defineProperty(g,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return ET.WorkDoneProgressCancelNotification}});var RT=Z0();Object.defineProperty(g,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return RT.CallHierarchyIncomingCallsRequest}});Object.defineProperty(g,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return RT.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(g,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return RT.CallHierarchyPrepareRequest}});var Ia=nI();Object.defineProperty(g,"TokenFormat",{enumerable:!0,get:function(){return Ia.TokenFormat}});Object.defineProperty(g,"SemanticTokensRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensRequest}});Object.defineProperty(g,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensDeltaRequest}});Object.defineProperty(g,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensRangeRequest}});Object.defineProperty(g,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return Ia.SemanticTokensRefreshRequest}});Object.defineProperty(g,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return Ia.SemanticTokensRegistrationType}});var pU=sI();Object.defineProperty(g,"ShowDocumentRequest",{enumerable:!0,get:function(){return pU.ShowDocumentRequest}});var hU=lI();Object.defineProperty(g,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return hU.LinkedEditingRangeRequest}});var $o=yI();Object.defineProperty(g,"FileOperationPatternKind",{enumerable:!0,get:function(){return $o.FileOperationPatternKind}});Object.defineProperty(g,"DidCreateFilesNotification",{enumerable:!0,get:function(){return $o.DidCreateFilesNotification}});Object.defineProperty(g,"WillCreateFilesRequest",{enumerable:!0,get:function(){return $o.WillCreateFilesRequest}});Object.defineProperty(g,"DidRenameFilesNotification",{enumerable:!0,get:function(){return $o.DidRenameFilesNotification}});Object.defineProperty(g,"WillRenameFilesRequest",{enumerable:!0,get:function(){return $o.WillRenameFilesRequest}});Object.defineProperty(g,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return $o.DidDeleteFilesNotification}});Object.defineProperty(g,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return $o.WillDeleteFilesRequest}});var bT=RI();Object.defineProperty(g,"UniquenessLevel",{enumerable:!0,get:function(){return bT.UniquenessLevel}});Object.defineProperty(g,"MonikerKind",{enumerable:!0,get:function(){return bT.MonikerKind}});Object.defineProperty(g,"MonikerRequest",{enumerable:!0,get:function(){return bT.MonikerRequest}});var wT=II();Object.defineProperty(g,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return wT.TypeHierarchyPrepareRequest}});Object.defineProperty(g,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return wT.TypeHierarchySubtypesRequest}});Object.defineProperty(g,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return wT.TypeHierarchySupertypesRequest}});var cv=kI();Object.defineProperty(g,"InlineValueRequest",{enumerable:!0,get:function(){return cv.InlineValueRequest}});Object.defineProperty(g,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return cv.InlineValueRefreshRequest}});var AT=OI();Object.defineProperty(g,"InlayHintRequest",{enumerable:!0,get:function(){return AT.InlayHintRequest}});Object.defineProperty(g,"InlayHintResolveRequest",{enumerable:!0,get:function(){return AT.InlayHintResolveRequest}});Object.defineProperty(g,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return AT.InlayHintRefreshRequest}});var Gl=BI();Object.defineProperty(g,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Gl.DiagnosticServerCancellationData}});Object.defineProperty(g,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Gl.DocumentDiagnosticReportKind}});Object.defineProperty(g,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Gl.DocumentDiagnosticRequest}});Object.defineProperty(g,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Gl.WorkspaceDiagnosticRequest}});Object.defineProperty(g,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Gl.DiagnosticRefreshRequest}});var gn=zI();Object.defineProperty(g,"NotebookCellKind",{enumerable:!0,get:function(){return gn.NotebookCellKind}});Object.defineProperty(g,"ExecutionSummary",{enumerable:!0,get:function(){return gn.ExecutionSummary}});Object.defineProperty(g,"NotebookCell",{enumerable:!0,get:function(){return gn.NotebookCell}});Object.defineProperty(g,"NotebookDocument",{enumerable:!0,get:function(){return gn.NotebookDocument}});Object.defineProperty(g,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return gn.NotebookDocumentSyncRegistrationType}});Object.defineProperty(g,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidOpenNotebookDocumentNotification}});Object.defineProperty(g,"NotebookCellArrayChange",{enumerable:!0,get:function(){return gn.NotebookCellArrayChange}});Object.defineProperty(g,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidChangeNotebookDocumentNotification}});Object.defineProperty(g,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidSaveNotebookDocumentNotification}});Object.defineProperty(g,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return gn.DidCloseNotebookDocumentNotification}});var mU=KI();Object.defineProperty(g,"InlineCompletionRequest",{enumerable:!0,get:function(){return mU.InlineCompletionRequest}});var yT;(function(t){function e(r){let n=r;return Nt.string(n)||Nt.string(n.language)||Nt.string(n.scheme)||Nt.string(n.pattern)}t.is=e})(yT||(g.TextDocumentFilter=yT={}));var xT;(function(t){function e(r){let n=r;return Nt.objectLiteral(n)&&(Nt.string(n.notebookType)||Nt.string(n.scheme)||Nt.string(n.pattern))}t.is=e})(xT||(g.NotebookDocumentFilter=xT={}));var TT;(function(t){function e(r){let n=r;return Nt.objectLiteral(n)&&(Nt.string(n.notebook)||xT.is(n.notebook))&&(n.language===void 0||Nt.string(n.language))}t.is=e})(TT||(g.NotebookCellTextDocumentFilter=TT={}));var _T;(function(t){function e(r){if(!Array.isArray(r))return!1;for(let n of r)if(!Nt.string(n)&&!yT.is(n)&&!TT.is(n))return!1;return!0}t.is=e})(_T||(g.DocumentSelector=_T={}));var JI;(function(t){t.method="client/registerCapability",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType(t.method)})(JI||(g.RegistrationRequest=JI={}));var QI;(function(t){t.method="client/unregisterCapability",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType(t.method)})(QI||(g.UnregistrationRequest=QI={}));var eS;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(eS||(g.ResourceOperationKind=eS={}));var tS;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(tS||(g.FailureHandlingKind=tS={}));var rS;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(rS||(g.PositionEncodingKind=rS={}));var nS;(function(t){function e(r){let n=r;return n&&Nt.string(n.id)&&n.id.length>0}t.hasId=e})(nS||(g.StaticRegistrationOptions=nS={}));var iS;(function(t){function e(r){let n=r;return n&&(n.documentSelector===null||_T.is(n.documentSelector))}t.is=e})(iS||(g.TextDocumentRegistrationOptions=iS={}));var oS;(function(t){function e(n){let i=n;return Nt.objectLiteral(i)&&(i.workDoneProgress===void 0||Nt.boolean(i.workDoneProgress))}t.is=e;function r(n){let i=n;return i&&Nt.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=r})(oS||(g.WorkDoneProgressOptions=oS={}));var sS;(function(t){t.method="initialize",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(sS||(g.InitializeRequest=sS={}));var aS;(function(t){t.unknownProtocolVersion=1})(aS||(g.InitializeErrorCodes=aS={}));var cS;(function(t){t.method="initialized",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(cS||(g.InitializedNotification=cS={}));var lS;(function(t){t.method="shutdown",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType0(t.method)})(lS||(g.ShutdownRequest=lS={}));var uS;(function(t){t.method="exit",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType0(t.method)})(uS||(g.ExitNotification=uS={}));var fS;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(fS||(g.DidChangeConfigurationNotification=fS={}));var dS;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4,t.Debug=5})(dS||(g.MessageType=dS={}));var pS;(function(t){t.method="window/showMessage",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(pS||(g.ShowMessageNotification=pS={}));var hS;(function(t){t.method="window/showMessageRequest",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType(t.method)})(hS||(g.ShowMessageRequest=hS={}));var mS;(function(t){t.method="window/logMessage",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(mS||(g.LogMessageNotification=mS={}));var gS;(function(t){t.method="telemetry/event",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(gS||(g.TelemetryEventNotification=gS={}));var yS;(function(t){t.None=0,t.Full=1,t.Incremental=2})(yS||(g.TextDocumentSyncKind=yS={}));var xS;(function(t){t.method="textDocument/didOpen",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(xS||(g.DidOpenTextDocumentNotification=xS={}));var TS;(function(t){function e(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function r(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=r})(TS||(g.TextDocumentContentChangeEvent=TS={}));var _S;(function(t){t.method="textDocument/didChange",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(_S||(g.DidChangeTextDocumentNotification=_S={}));var ES;(function(t){t.method="textDocument/didClose",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(ES||(g.DidCloseTextDocumentNotification=ES={}));var RS;(function(t){t.method="textDocument/didSave",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(RS||(g.DidSaveTextDocumentNotification=RS={}));var bS;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(bS||(g.TextDocumentSaveReason=bS={}));var wS;(function(t){t.method="textDocument/willSave",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(wS||(g.WillSaveTextDocumentNotification=wS={}));var AS;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(AS||(g.WillSaveTextDocumentWaitUntilRequest=AS={}));var IS;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolNotificationType(t.method)})(IS||(g.DidChangeWatchedFilesNotification=IS={}));var SS;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(SS||(g.FileChangeType=SS={}));var vS;(function(t){function e(r){let n=r;return Nt.objectLiteral(n)&&(ZI.URI.is(n.baseUri)||ZI.WorkspaceFolder.is(n.baseUri))&&Nt.string(n.pattern)}t.is=e})(vS||(g.RelativePattern=vS={}));var kS;(function(t){t.Create=1,t.Change=2,t.Delete=4})(kS||(g.WatchKind=kS={}));var NS;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolNotificationType(t.method)})(NS||(g.PublishDiagnosticsNotification=NS={}));var PS;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(PS||(g.CompletionTriggerKind=PS={}));var CS;(function(t){t.method="textDocument/completion",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(CS||(g.CompletionRequest=CS={}));var OS;(function(t){t.method="completionItem/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(OS||(g.CompletionResolveRequest=OS={}));var LS;(function(t){t.method="textDocument/hover",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(LS||(g.HoverRequest=LS={}));var DS;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(DS||(g.SignatureHelpTriggerKind=DS={}));var $S;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})($S||(g.SignatureHelpRequest=$S={}));var MS;(function(t){t.method="textDocument/definition",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(MS||(g.DefinitionRequest=MS={}));var FS;(function(t){t.method="textDocument/references",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(FS||(g.ReferencesRequest=FS={}));var US;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(US||(g.DocumentHighlightRequest=US={}));var BS;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(BS||(g.DocumentSymbolRequest=BS={}));var XS;(function(t){t.method="textDocument/codeAction",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(XS||(g.CodeActionRequest=XS={}));var GS;(function(t){t.method="codeAction/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(GS||(g.CodeActionResolveRequest=GS={}));var HS;(function(t){t.method="workspace/symbol",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(HS||(g.WorkspaceSymbolRequest=HS={}));var jS;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(jS||(g.WorkspaceSymbolResolveRequest=jS={}));var WS;(function(t){t.method="textDocument/codeLens",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(WS||(g.CodeLensRequest=WS={}));var qS;(function(t){t.method="codeLens/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(qS||(g.CodeLensResolveRequest=qS={}));var zS;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType0(t.method)})(zS||(g.CodeLensRefreshRequest=zS={}));var VS;(function(t){t.method="textDocument/documentLink",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(VS||(g.DocumentLinkRequest=VS={}));var YS;(function(t){t.method="documentLink/resolve",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(YS||(g.DocumentLinkResolveRequest=YS={}));var KS;(function(t){t.method="textDocument/formatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(KS||(g.DocumentFormattingRequest=KS={}));var ZS;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(ZS||(g.DocumentRangeFormattingRequest=ZS={}));var JS;(function(t){t.method="textDocument/rangesFormatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(JS||(g.DocumentRangesFormattingRequest=JS={}));var QS;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(QS||(g.DocumentOnTypeFormattingRequest=QS={}));var ev;(function(t){t.Identifier=1})(ev||(g.PrepareSupportDefaultBehavior=ev={}));var tv;(function(t){t.method="textDocument/rename",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(tv||(g.RenameRequest=tv={}));var rv;(function(t){t.method="textDocument/prepareRename",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(rv||(g.PrepareRenameRequest=rv={}));var nv;(function(t){t.method="workspace/executeCommand",t.messageDirection=F.MessageDirection.clientToServer,t.type=new F.ProtocolRequestType(t.method)})(nv||(g.ExecuteCommandRequest=nv={}));var iv;(function(t){t.method="workspace/applyEdit",t.messageDirection=F.MessageDirection.serverToClient,t.type=new F.ProtocolRequestType("workspace/applyEdit")})(iv||(g.ApplyWorkspaceEditRequest=iv={}))});var fv=ce(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.createProtocolConnection=void 0;var uv=Do();function gU(t,e,r,n){return uv.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,uv.createMessageConnection)(t,e,r,n)}vp.createProtocolConnection=gU});var pv=ce(or=>{"use strict";var yU=or&&or.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kp=or&&or.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yU(e,t,r)};Object.defineProperty(or,"__esModule",{value:!0});or.LSPErrorCodes=or.createProtocolConnection=void 0;kp(Do(),or);kp((Zs(),qu(Dd)),or);kp(ut(),or);kp(lv(),or);var xU=fv();Object.defineProperty(or,"createProtocolConnection",{enumerable:!0,get:function(){return xU.createProtocolConnection}});var dv;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(dv||(or.LSPErrorCodes=dv={}))});var mv=ce(yn=>{"use strict";var TU=yn&&yn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hv=yn&&yn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TU(e,t,r)};Object.defineProperty(yn,"__esModule",{value:!0});yn.createProtocolConnection=void 0;var _U=lT();hv(lT(),yn);hv(pv(),yn);function EU(t,e,r,n){return(0,_U.createMessageConnection)(t,e,r,n)}yn.createProtocolConnection=EU});var Hv={};tn(Hv,{nodeReadFile:()=>HU});async function HU(){throw new Error("nowline: filesystem readers are unavailable in the browser embed")}var jv=bE(()=>{});var VH={};tn(VH,{EmbedRenderError:()=>Hu,__resetForTests:()=>zH,init:()=>_E,initialize:()=>HH,parse:()=>WH,render:()=>jH,run:()=>qH,sha:()=>XH,version:()=>BH});var wE="0.4.1",AE="b28a065";var WP=/did you mean ['"]?([^'"?]+)['"]?\??/i;function IE(t,e){return{severity:t.severity===2?"warning":"error",code:qP(t),message:t.message,suggestion:VP(t.message),file:e,line:(t.range?.start.line??0)+1,column:(t.range?.start.character??0)+1}}function SE(t,e){return{severity:"error",code:"parse-error",message:t.message,file:e,line:t.token?.startLine??1,column:t.token?.startColumn??1}}function vE(t,e){return{severity:"error",code:"lex-error",message:t.message,file:e,line:t.line??1,column:t.column??1}}function kE(t){return{severity:t.severity,code:"include",message:t.message,file:t.sourcePath,line:t.line!==void 0?t.line+1:1,column:1}}function NE(t,e,r="warning"){return{severity:r,code:"render.warning",message:t,file:e,line:1,column:1}}function qP(t){return typeof t.code=="string"&&t.code!==""?t.code:typeof t.code=="number"?String(t.code):zP(t.message)}function zP(t){let e=t.toLowerCase();return e.includes("duplicate identifier")?"duplicate-identifier":e.includes("unknown reference")||e.includes("did you mean")?"unknown-reference":e.includes("circular")?"circular-dependency":e.includes("requires")&&e.includes("date:")?"missing-date":e.includes("duration")?"duration":e.includes("include")?"include":e.includes("indent")?"indentation":"validation"}function VP(t){let e=t.match(WP);return e?e[1].trim():void 0}var PE="__nowline_browser_noop_include__";async function CE(t){throw new Error(`${PE}: include "${t}" was skipped \u2014 running in single-file mode.`)}function OE(t){return t.includes(PE)}var lt={};tn(lt,{AbstractAstReflection:()=>zi,AbstractCstNode:()=>dl,AbstractLangiumParser:()=>pl,AbstractParserErrorMessageProvider:()=>Md,AbstractThreadedAsyncParser:()=>OT,AstUtils:()=>Yu,BiMap:()=>Po,Cancellation:()=>ne,CompositeCstNodeImpl:()=>Io,ContextCache:()=>Co,CstNodeBuilder:()=>fl,CstUtils:()=>gf,DEFAULT_TOKENIZE_OPTIONS:()=>Np,DONE_RESULT:()=>Mt,DatatypeSymbol:()=>$d,DefaultAstNodeDescriptionProvider:()=>Nl,DefaultAstNodeLocator:()=>Cl,DefaultAsyncParser:()=>Zl,DefaultCommentProvider:()=>Kl,DefaultConfigurationProvider:()=>Ol,DefaultDocumentBuilder:()=>Hl,DefaultDocumentValidator:()=>kl,DefaultHydrator:()=>Ql,DefaultIndexManager:()=>jl,DefaultJsonSerializer:()=>Il,DefaultLangiumDocumentFactory:()=>yl,DefaultLangiumDocuments:()=>xl,DefaultLangiumProfiler:()=>MT,DefaultLexer:()=>Mo,DefaultLexerErrorMessageProvider:()=>ql,DefaultLinker:()=>Tl,DefaultNameProvider:()=>_l,DefaultReferenceDescriptionProvider:()=>Pl,DefaultReferences:()=>El,DefaultScopeComputation:()=>Rl,DefaultScopeProvider:()=>Al,DefaultServiceRegistry:()=>Sl,DefaultTokenBuilder:()=>vo,DefaultValueConverter:()=>ko,DefaultWorkspaceLock:()=>Jl,DefaultWorkspaceManager:()=>Wl,Deferred:()=>Jt,Disposable:()=>Ci,DisposableCache:()=>sa,DocumentCache:()=>qd,DocumentState:()=>he,DocumentValidator:()=>wr,EMPTY_SCOPE:()=>IF,EMPTY_STREAM:()=>Zn,EmptyFileSystem:()=>iu,EmptyFileSystemProvider:()=>Lp,ErrorWithLocation:()=>co,GrammarAST:()=>Sc,GrammarUtils:()=>gs,IndentationAwareLexer:()=>nu,IndentationAwareTokenBuilder:()=>va,JSDocDocumentationProvider:()=>Yl,LangiumCompletionParser:()=>ml,LangiumParser:()=>hl,LangiumParserErrorMessageProvider:()=>Qs,LeafCstNodeImpl:()=>Ao,LexingMode:()=>Uo,MapScope:()=>Qy,Module:()=>DT,MultiMap:()=>Bt,MultiMapScope:()=>bl,OperationCancelled:()=>br,ParserWorker:()=>LT,ProfilingTask:()=>$p,Reduction:()=>ts,RefResolving:()=>No,RegExpUtils:()=>Tf,RootCstNodeImpl:()=>Js,SimpleCache:()=>wl,StreamImpl:()=>ur,StreamScope:()=>oa,TextDocument:()=>ra,TreeStreamImpl:()=>rn,URI:()=>mt,UriTrie:()=>ia,UriUtils:()=>_t,VALIDATE_EACH_NODE:()=>XA,ValidationCategory:()=>zd,ValidationRegistry:()=>vl,ValueConverter:()=>dn,WorkspaceCache:()=>aa,assertCondition:()=>BE,assertUnreachable:()=>sn,createCompletionParser:()=>Xy,createDefaultCoreModule:()=>eu,createDefaultSharedCoreModule:()=>tu,createGrammarConfig:()=>zm,createLangiumParser:()=>Gy,createParser:()=>gl,delayNextTick:()=>Zy,diagnosticData:()=>Oo,eagerLoad:()=>Av,getDiagnosticRange:()=>GA,indentationBuilderDefaultOptions:()=>$T,inject:()=>Fo,interruptAndCheck:()=>ht,isAstNode:()=>pt,isAstNodeDescription:()=>nm,isAstNodeWithComment:()=>ex,isCompositeCstNode:()=>Or,isIMultiModeLexerDefinition:()=>ST,isJSDoc:()=>PT,isLeafCstNode:()=>Kn,isLinkingError:()=>Vi,isMultiReference:()=>lr,isNamed:()=>UA,isOperationCancelled:()=>pn,isReference:()=>wt,isRootCstNode:()=>mc,isTokenTypeArray:()=>Pp,isTokenTypeDictionary:()=>IT,loadGrammarFromJson:()=>Dp,parseJSDoc:()=>NT,prepareLangiumParser:()=>SA,setInterruptionPeriod:()=>LA,startCancelableOperation:()=>jd,stream:()=>me,toDiagnosticData:()=>HA,toDiagnosticSeverity:()=>Vd});var gf={};tn(gf,{DefaultNameRegexp:()=>mf,RangeComparison:()=>on,compareRange:()=>$E,findCommentNode:()=>vm,findDeclarationNodeAtOffset:()=>yC,findLeafNodeAtOffset:()=>km,findLeafNodeBeforeOffset:()=>ME,flattenCst:()=>gC,getDatatypeNode:()=>mC,getInteriorNodes:()=>_C,getNextNode:()=>xC,getPreviousNode:()=>UE,getStartlineNode:()=>TC,inRange:()=>am,isChildNode:()=>Sm,isCommentNode:()=>Im,streamCst:()=>so,toDocumentSegment:()=>ao,tokenToRange:()=>ds});function pt(t){return typeof t=="object"&&t!==null&&typeof t.$type=="string"}function wt(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"ref"in t}function lr(t){return typeof t=="object"&&t!==null&&typeof t.$refText=="string"&&"items"in t}function nm(t){return typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.type=="string"&&typeof t.path=="string"}function Vi(t){return typeof t=="object"&&t!==null&&typeof t.info=="object"&&typeof t.message=="string"}var zi=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let r=this.types[e.container.$type];if(!r)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);let n=r.properties[e.property]?.referenceType;if(!n)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){let r=this.types[e];return r||{name:e,properties:{},superTypes:[]}}isInstance(e,r){return pt(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});let i=n[r];if(i!==void 0)return i;{let o=this.types[e],s=o?o.superTypes.some(a=>this.isSubtype(a,r)):!1;return n[r]=s,s}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;{let n=this.getAllTypes(),i=[];for(let o of n)this.isSubtype(o,e)&&i.push(o);return this.allSubtypes[e]=i,i}}};function Or(t){return typeof t=="object"&&t!==null&&Array.isArray(t.content)}function Kn(t){return typeof t=="object"&&t!==null&&typeof t.tokenType=="object"}function mc(t){return Or(t)&&typeof t.fullText=="string"}var ur=class t{constructor(e,r){this.startFn=e,this.nextFn=r}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),r=0,n=e.next();for(;!n.done;)r++,n=e.next();return r}toArray(){let e=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,r){let n=this.map(i=>[e?e(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(e){return new t(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Mt})}join(e=","){let r=this.iterator(),n="",i,o=!1;do i=r.next(),i.done||(o&&(n+=e),n+=KP(i.value)),o=!0;while(!i.done);return n}indexOf(e,r=0){let n=this.iterator(),i=0,o=n.next();for(;!o.done;){if(i>=r&&o.value===e)return i;o=n.next(),i++}return-1}every(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(!e(n.value))return!1;n=r.next()}return!0}some(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return!0;n=r.next()}return!1}forEach(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)e(i.value,n),i=r.next(),n++}map(e){return new t(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?Mt:{done:!1,value:e(i)}})}filter(e){return new t(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&e(n.value))return n;while(!n.done);return Mt})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,r){let n=this.iterator(),i=r,o=n.next();for(;!o.done;)i===void 0?i=o.value:i=e(i,o.value),o=n.next();return i}reduceRight(e,r){return this.recursiveReduce(this.iterator(),e,r)}recursiveReduce(e,r,n){let i=e.next();if(i.done)return n;let o=this.recursiveReduce(e,r,n);return o===void 0?i.value:r(o,i.value)}find(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(e(n.value))return n.value;n=r.next()}}findIndex(e){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(e(i.value))return n;i=r.next(),n++}return-1}includes(e){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===e)return!0;n=r.next()}return!1}flatMap(e){return new t(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let o=r.iterator.next();if(o.done)r.iterator=void 0;else return o}let{done:n,value:i}=this.nextFn(r.this);if(!n){let o=e(i);if(zu(o))r.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}}while(r.iterator);return Mt})}flat(e){if(e===void 0&&(e=1),e<=0)return this;let r=e>1?this.flat(e-1):this;return new t(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}let{done:i,value:o}=r.nextFn(n.this);if(!i)if(zu(o))n.iterator=o[Symbol.iterator]();else return{done:!1,value:o}}while(n.iterator);return Mt})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(e=1){return new t(()=>{let r=this.startFn();for(let n=0;n<e;n++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(e){return new t(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>e?Mt:this.nextFn(r.state)))}distinct(e){return new t(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){let i=e?e(n.value):n.value;if(!r.set.has(i))return r.set.add(i),n}while(!n.done);return Mt})}exclude(e,r){let n=new Set;for(let i of e){let o=r?r(i):i;n.add(o)}return this.filter(i=>{let o=r?r(i):i;return!n.has(o)})}};function KP(t){return typeof t=="string"?t:typeof t>"u"?"undefined":typeof t.toString=="function"?t.toString():Object.prototype.toString.call(t)}function zu(t){return!!t&&typeof t[Symbol.iterator]=="function"}var Zn=new ur(()=>{},()=>Mt),Mt=Object.freeze({done:!0,value:void 0});function me(...t){if(t.length===1){let e=t[0];if(e instanceof ur)return e;if(zu(e))return new ur(()=>e[Symbol.iterator](),r=>r.next());if(typeof e.length=="number")return new ur(()=>({index:0}),r=>r.index<e.length?{done:!1,value:e[r.index++]}:Mt)}return t.length>1?new ur(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){let r=e.iterator.next();if(!r.done)return r;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<t.length){let r=t[e.collIndex++];zu(r)?e.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(e.array=r)}}while(e.iterator||e.array||e.collIndex<t.length);return Mt}):Zn}var rn=class extends ur{constructor(e,r,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){let s=i.iterators[i.iterators.length-1].next();if(s.done)i.iterators.pop();else return i.iterators.push(r(s.value)[Symbol.iterator]()),s}return Mt})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},ts;(function(t){function e(o){return o.reduce((s,a)=>s+a,0)}t.sum=e;function r(o){return o.reduce((s,a)=>s*a,0)}t.product=r;function n(o){return o.reduce((s,a)=>Math.min(s,a))}t.min=n;function i(o){return o.reduce((s,a)=>Math.max(s,a))}t.max=i})(ts||(ts={}));var Yu={};tn(Yu,{assignMandatoryProperties:()=>sm,copyAstNode:()=>om,findRootNode:()=>ns,getContainerOfType:()=>An,getDocument:()=>Ft,getReferenceNodes:()=>Vu,hasContainerOfType:()=>ZP,linkContentToContainer:()=>rs,streamAllContents:()=>Lr,streamAst:()=>Wt,streamContents:()=>gc,streamReferences:()=>Jn});function rs(t,e={}){for(let[r,n]of Object.entries(t))r.startsWith("$")||(Array.isArray(n)?n.forEach((i,o)=>{pt(i)&&(i.$container=t,i.$containerProperty=r,i.$containerIndex=o,e.deep&&rs(i,e))}):pt(n)&&(n.$container=t,n.$containerProperty=r,e.deep&&rs(n,e)))}function An(t,e){let r=t;for(;r;){if(e(r))return r;r=r.$container}}function ZP(t,e){let r=t;for(;r;){if(e(r))return!0;r=r.$container}return!1}function Ft(t){let r=ns(t).$document;if(!r)throw new Error("AST node has no document.");return r}function ns(t){for(;t.$container;)t=t.$container;return t}function Vu(t){return wt(t)?t.ref?[t.ref]:[]:lr(t)?t.items.map(e=>e.ref):[]}function gc(t,e){if(!t)throw new Error("Node must be an AstNode.");let r=e?.range;return new ur(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndex<n.keys.length;){let i=n.keys[n.keyIndex];if(!i.startsWith("$")){let o=t[i];if(pt(o)){if(n.keyIndex++,im(o,r))return{done:!1,value:o}}else if(Array.isArray(o)){for(;n.arrayIndex<o.length;){let s=n.arrayIndex++,a=o[s];if(pt(a)&&im(a,r))return{done:!1,value:a}}n.arrayIndex=0}}n.keyIndex++}return Mt})}function Lr(t,e){if(!t)throw new Error("Root node must be an AstNode.");return new rn(t,r=>gc(r,e))}function Wt(t,e){if(t){if(e?.range&&!im(t,e.range))return new rn(t,()=>[])}else throw new Error("Root node must be an AstNode.");return new rn(t,r=>gc(r,e),{includeRoot:!0})}function im(t,e){if(!e)return!0;let r=t.$cstNode?.range;return r?am(r,e):!1}function Jn(t){return new ur(()=>({keys:Object.keys(t),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){let r=e.keys[e.keyIndex];if(!r.startsWith("$")){let n=t[r];if(wt(n)||lr(n))return e.keyIndex++,{done:!1,value:{reference:n,container:t,property:r}};if(Array.isArray(n)){for(;e.arrayIndex<n.length;){let i=e.arrayIndex++,o=n[i];if(wt(o)||lr(n))return{done:!1,value:{reference:o,container:t,property:r,index:i}}}e.arrayIndex=0}}e.keyIndex++}return Mt})}function sm(t,e){let r=t.getTypeMetaData(e.$type),n=e;for(let i of Object.values(r.properties))i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=LE(i.defaultValue))}function LE(t){return Array.isArray(t)?[...t.map(LE)]:t}function om(t,e,r){let n={$type:t.$type};r&&(r.set(t,n),r.set(n,t));for(let[i,o]of Object.entries(t))if(!i.startsWith("$"))if(pt(o))n[i]=om(o,e,r);else if(wt(o))n[i]=e(n,i,o.$refNode,o.$refText,o);else if(Array.isArray(o)){let s=[];for(let a of o)pt(a)?s.push(om(a,e,r)):wt(a)?s.push(e(n,i,a.$refNode,a.$refText,a)):s.push(a);n[i]=s}else n[i]=o;return rs(n,{deep:!0}),n}var Sc={};tn(Sc,{AbstractElement:()=>Qt,AbstractParserRule:()=>yc,AbstractRule:()=>is,AbstractType:()=>fr,Action:()=>Qn,Alternatives:()=>xc,ArrayLiteral:()=>Ku,ArrayType:()=>Zu,Assignment:()=>ei,BooleanLiteral:()=>Ju,CharacterRange:()=>ti,Condition:()=>ri,Conjunction:()=>Tc,CrossReference:()=>ni,Disjunction:()=>_c,EndOfFile:()=>Qu,Grammar:()=>In,GrammarImport:()=>ef,Group:()=>Yi,InferredType:()=>tf,InfixRule:()=>nn,InfixRuleOperatorList:()=>Ec,InfixRuleOperators:()=>rf,Interface:()=>os,Keyword:()=>ss,LangiumGrammarAstReflection:()=>fs,LangiumGrammarTerminals:()=>JP,NamedArgument:()=>as,NegatedToken:()=>Ki,Negation:()=>nf,NumberLiteral:()=>of,Parameter:()=>cs,ParameterReference:()=>sf,ParserRule:()=>Dr,ReferenceType:()=>Rc,RegexToken:()=>Zi,ReturnType:()=>af,RuleCall:()=>Ji,SimpleType:()=>ls,StringLiteral:()=>cf,TerminalAlternatives:()=>Qi,TerminalElement:()=>er,TerminalGroup:()=>eo,TerminalRule:()=>Sn,TerminalRuleCall:()=>to,Type:()=>bc,TypeAttribute:()=>ro,TypeDefinition:()=>no,UnionType:()=>lf,UnorderedGroup:()=>wc,UntilToken:()=>io,ValueLiteral:()=>oo,Wildcard:()=>us,isAbstractElement:()=>Ac,isAbstractParserRule:()=>vn,isAbstractRule:()=>QP,isAbstractType:()=>eC,isAction:()=>kn,isAlternatives:()=>uf,isArrayLiteral:()=>tC,isArrayType:()=>cm,isAssignment:()=>$r,isBooleanLiteral:()=>lm,isCharacterRange:()=>um,isCondition:()=>rC,isConjunction:()=>fm,isCrossReference:()=>Mr,isDisjunction:()=>dm,isEndOfFile:()=>pm,isGrammar:()=>nC,isGrammarImport:()=>iC,isGroup:()=>ii,isInferredType:()=>Ic,isInfixRule:()=>oi,isInfixRuleOperatorList:()=>oC,isInfixRuleOperators:()=>sC,isInterface:()=>hm,isKeyword:()=>Er,isNamedArgument:()=>aC,isNegatedToken:()=>mm,isNegation:()=>gm,isNumberLiteral:()=>cC,isParameter:()=>lC,isParameterReference:()=>ym,isParserRule:()=>St,isReferenceType:()=>xm,isRegexToken:()=>Tm,isReturnType:()=>_m,isRuleCall:()=>Fr,isSimpleType:()=>ff,isStringLiteral:()=>uC,isTerminalAlternatives:()=>Em,isTerminalElement:()=>fC,isTerminalGroup:()=>Rm,isTerminalRule:()=>qt,isTerminalRuleCall:()=>df,isType:()=>pf,isTypeAttribute:()=>dC,isTypeDefinition:()=>pC,isUnionType:()=>bm,isUnorderedGroup:()=>hf,isUntilToken:()=>wm,isValueLiteral:()=>hC,isWildcard:()=>Am,reflection:()=>re});var JP={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},Qt={$type:"AbstractElement",cardinality:"cardinality"};function Ac(t){return re.isInstance(t,Qt.$type)}var yc={$type:"AbstractParserRule"};function vn(t){return re.isInstance(t,yc.$type)}var is={$type:"AbstractRule"};function QP(t){return re.isInstance(t,is.$type)}var fr={$type:"AbstractType"};function eC(t){return re.isInstance(t,fr.$type)}var Qn={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function kn(t){return re.isInstance(t,Qn.$type)}var xc={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function uf(t){return re.isInstance(t,xc.$type)}var Ku={$type:"ArrayLiteral",elements:"elements"};function tC(t){return re.isInstance(t,Ku.$type)}var Zu={$type:"ArrayType",elementType:"elementType"};function cm(t){return re.isInstance(t,Zu.$type)}var ei={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function $r(t){return re.isInstance(t,ei.$type)}var Ju={$type:"BooleanLiteral",true:"true"};function lm(t){return re.isInstance(t,Ju.$type)}var ti={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function um(t){return re.isInstance(t,ti.$type)}var ri={$type:"Condition"};function rC(t){return re.isInstance(t,ri.$type)}var Tc={$type:"Conjunction",left:"left",right:"right"};function fm(t){return re.isInstance(t,Tc.$type)}var ni={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Mr(t){return re.isInstance(t,ni.$type)}var _c={$type:"Disjunction",left:"left",right:"right"};function dm(t){return re.isInstance(t,_c.$type)}var Qu={$type:"EndOfFile",cardinality:"cardinality"};function pm(t){return re.isInstance(t,Qu.$type)}var In={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function nC(t){return re.isInstance(t,In.$type)}var ef={$type:"GrammarImport",path:"path"};function iC(t){return re.isInstance(t,ef.$type)}var Yi={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function ii(t){return re.isInstance(t,Yi.$type)}var tf={$type:"InferredType",name:"name"};function Ic(t){return re.isInstance(t,tf.$type)}var nn={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function oi(t){return re.isInstance(t,nn.$type)}var Ec={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function oC(t){return re.isInstance(t,Ec.$type)}var rf={$type:"InfixRuleOperators",precedences:"precedences"};function sC(t){return re.isInstance(t,rf.$type)}var os={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function hm(t){return re.isInstance(t,os.$type)}var ss={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Er(t){return re.isInstance(t,ss.$type)}var as={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function aC(t){return re.isInstance(t,as.$type)}var Ki={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function mm(t){return re.isInstance(t,Ki.$type)}var nf={$type:"Negation",value:"value"};function gm(t){return re.isInstance(t,nf.$type)}var of={$type:"NumberLiteral",value:"value"};function cC(t){return re.isInstance(t,of.$type)}var cs={$type:"Parameter",name:"name"};function lC(t){return re.isInstance(t,cs.$type)}var sf={$type:"ParameterReference",parameter:"parameter"};function ym(t){return re.isInstance(t,sf.$type)}var Dr={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function St(t){return re.isInstance(t,Dr.$type)}var Rc={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function xm(t){return re.isInstance(t,Rc.$type)}var Zi={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function Tm(t){return re.isInstance(t,Zi.$type)}var af={$type:"ReturnType",name:"name"};function _m(t){return re.isInstance(t,af.$type)}var Ji={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Fr(t){return re.isInstance(t,Ji.$type)}var ls={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function ff(t){return re.isInstance(t,ls.$type)}var cf={$type:"StringLiteral",value:"value"};function uC(t){return re.isInstance(t,cf.$type)}var Qi={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Em(t){return re.isInstance(t,Qi.$type)}var er={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function fC(t){return re.isInstance(t,er.$type)}var eo={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Rm(t){return re.isInstance(t,eo.$type)}var Sn={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function qt(t){return re.isInstance(t,Sn.$type)}var to={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function df(t){return re.isInstance(t,to.$type)}var bc={$type:"Type",name:"name",type:"type"};function pf(t){return re.isInstance(t,bc.$type)}var ro={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function dC(t){return re.isInstance(t,ro.$type)}var no={$type:"TypeDefinition"};function pC(t){return re.isInstance(t,no.$type)}var lf={$type:"UnionType",types:"types"};function bm(t){return re.isInstance(t,lf.$type)}var wc={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function hf(t){return re.isInstance(t,wc.$type)}var io={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function wm(t){return re.isInstance(t,io.$type)}var oo={$type:"ValueLiteral"};function hC(t){return re.isInstance(t,oo.$type)}var us={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Am(t){return re.isInstance(t,us.$type)}var fs=class extends zi{constructor(){super(...arguments),this.types={AbstractElement:{name:Qt.$type,properties:{cardinality:{name:Qt.cardinality}},superTypes:[]},AbstractParserRule:{name:yc.$type,properties:{},superTypes:[is.$type,fr.$type]},AbstractRule:{name:is.$type,properties:{},superTypes:[]},AbstractType:{name:fr.$type,properties:{},superTypes:[]},Action:{name:Qn.$type,properties:{cardinality:{name:Qn.cardinality},feature:{name:Qn.feature},inferredType:{name:Qn.inferredType},operator:{name:Qn.operator},type:{name:Qn.type,referenceType:fr.$type}},superTypes:[Qt.$type]},Alternatives:{name:xc.$type,properties:{cardinality:{name:xc.cardinality},elements:{name:xc.elements,defaultValue:[]}},superTypes:[Qt.$type]},ArrayLiteral:{name:Ku.$type,properties:{elements:{name:Ku.elements,defaultValue:[]}},superTypes:[oo.$type]},ArrayType:{name:Zu.$type,properties:{elementType:{name:Zu.elementType}},superTypes:[no.$type]},Assignment:{name:ei.$type,properties:{cardinality:{name:ei.cardinality},feature:{name:ei.feature},operator:{name:ei.operator},predicate:{name:ei.predicate},terminal:{name:ei.terminal}},superTypes:[Qt.$type]},BooleanLiteral:{name:Ju.$type,properties:{true:{name:Ju.true,defaultValue:!1}},superTypes:[ri.$type,oo.$type]},CharacterRange:{name:ti.$type,properties:{cardinality:{name:ti.cardinality},left:{name:ti.left},lookahead:{name:ti.lookahead},parenthesized:{name:ti.parenthesized,defaultValue:!1},right:{name:ti.right}},superTypes:[er.$type]},Condition:{name:ri.$type,properties:{},superTypes:[]},Conjunction:{name:Tc.$type,properties:{left:{name:Tc.left},right:{name:Tc.right}},superTypes:[ri.$type]},CrossReference:{name:ni.$type,properties:{cardinality:{name:ni.cardinality},deprecatedSyntax:{name:ni.deprecatedSyntax,defaultValue:!1},isMulti:{name:ni.isMulti,defaultValue:!1},terminal:{name:ni.terminal},type:{name:ni.type,referenceType:fr.$type}},superTypes:[Qt.$type]},Disjunction:{name:_c.$type,properties:{left:{name:_c.left},right:{name:_c.right}},superTypes:[ri.$type]},EndOfFile:{name:Qu.$type,properties:{cardinality:{name:Qu.cardinality}},superTypes:[Qt.$type]},Grammar:{name:In.$type,properties:{imports:{name:In.imports,defaultValue:[]},interfaces:{name:In.interfaces,defaultValue:[]},isDeclared:{name:In.isDeclared,defaultValue:!1},name:{name:In.name},rules:{name:In.rules,defaultValue:[]},types:{name:In.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:ef.$type,properties:{path:{name:ef.path}},superTypes:[]},Group:{name:Yi.$type,properties:{cardinality:{name:Yi.cardinality},elements:{name:Yi.elements,defaultValue:[]},guardCondition:{name:Yi.guardCondition},predicate:{name:Yi.predicate}},superTypes:[Qt.$type]},InferredType:{name:tf.$type,properties:{name:{name:tf.name}},superTypes:[fr.$type]},InfixRule:{name:nn.$type,properties:{call:{name:nn.call},dataType:{name:nn.dataType},inferredType:{name:nn.inferredType},name:{name:nn.name},operators:{name:nn.operators},parameters:{name:nn.parameters,defaultValue:[]},returnType:{name:nn.returnType,referenceType:fr.$type}},superTypes:[yc.$type]},InfixRuleOperatorList:{name:Ec.$type,properties:{associativity:{name:Ec.associativity},operators:{name:Ec.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:rf.$type,properties:{precedences:{name:rf.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:os.$type,properties:{attributes:{name:os.attributes,defaultValue:[]},name:{name:os.name},superTypes:{name:os.superTypes,defaultValue:[],referenceType:fr.$type}},superTypes:[fr.$type]},Keyword:{name:ss.$type,properties:{cardinality:{name:ss.cardinality},predicate:{name:ss.predicate},value:{name:ss.value}},superTypes:[Qt.$type]},NamedArgument:{name:as.$type,properties:{calledByName:{name:as.calledByName,defaultValue:!1},parameter:{name:as.parameter,referenceType:cs.$type},value:{name:as.value}},superTypes:[]},NegatedToken:{name:Ki.$type,properties:{cardinality:{name:Ki.cardinality},lookahead:{name:Ki.lookahead},parenthesized:{name:Ki.parenthesized,defaultValue:!1},terminal:{name:Ki.terminal}},superTypes:[er.$type]},Negation:{name:nf.$type,properties:{value:{name:nf.value}},superTypes:[ri.$type]},NumberLiteral:{name:of.$type,properties:{value:{name:of.value}},superTypes:[oo.$type]},Parameter:{name:cs.$type,properties:{name:{name:cs.name}},superTypes:[]},ParameterReference:{name:sf.$type,properties:{parameter:{name:sf.parameter,referenceType:cs.$type}},superTypes:[ri.$type]},ParserRule:{name:Dr.$type,properties:{dataType:{name:Dr.dataType},definition:{name:Dr.definition},entry:{name:Dr.entry,defaultValue:!1},fragment:{name:Dr.fragment,defaultValue:!1},inferredType:{name:Dr.inferredType},name:{name:Dr.name},parameters:{name:Dr.parameters,defaultValue:[]},returnType:{name:Dr.returnType,referenceType:fr.$type}},superTypes:[yc.$type]},ReferenceType:{name:Rc.$type,properties:{isMulti:{name:Rc.isMulti,defaultValue:!1},referenceType:{name:Rc.referenceType}},superTypes:[no.$type]},RegexToken:{name:Zi.$type,properties:{cardinality:{name:Zi.cardinality},lookahead:{name:Zi.lookahead},parenthesized:{name:Zi.parenthesized,defaultValue:!1},regex:{name:Zi.regex}},superTypes:[er.$type]},ReturnType:{name:af.$type,properties:{name:{name:af.name}},superTypes:[]},RuleCall:{name:Ji.$type,properties:{arguments:{name:Ji.arguments,defaultValue:[]},cardinality:{name:Ji.cardinality},predicate:{name:Ji.predicate},rule:{name:Ji.rule,referenceType:is.$type}},superTypes:[Qt.$type]},SimpleType:{name:ls.$type,properties:{primitiveType:{name:ls.primitiveType},stringType:{name:ls.stringType},typeRef:{name:ls.typeRef,referenceType:fr.$type}},superTypes:[no.$type]},StringLiteral:{name:cf.$type,properties:{value:{name:cf.value}},superTypes:[oo.$type]},TerminalAlternatives:{name:Qi.$type,properties:{cardinality:{name:Qi.cardinality},elements:{name:Qi.elements,defaultValue:[]},lookahead:{name:Qi.lookahead},parenthesized:{name:Qi.parenthesized,defaultValue:!1}},superTypes:[er.$type]},TerminalElement:{name:er.$type,properties:{cardinality:{name:er.cardinality},lookahead:{name:er.lookahead},parenthesized:{name:er.parenthesized,defaultValue:!1}},superTypes:[Qt.$type]},TerminalGroup:{name:eo.$type,properties:{cardinality:{name:eo.cardinality},elements:{name:eo.elements,defaultValue:[]},lookahead:{name:eo.lookahead},parenthesized:{name:eo.parenthesized,defaultValue:!1}},superTypes:[er.$type]},TerminalRule:{name:Sn.$type,properties:{definition:{name:Sn.definition},fragment:{name:Sn.fragment,defaultValue:!1},hidden:{name:Sn.hidden,defaultValue:!1},name:{name:Sn.name},type:{name:Sn.type}},superTypes:[is.$type]},TerminalRuleCall:{name:to.$type,properties:{cardinality:{name:to.cardinality},lookahead:{name:to.lookahead},parenthesized:{name:to.parenthesized,defaultValue:!1},rule:{name:to.rule,referenceType:Sn.$type}},superTypes:[er.$type]},Type:{name:bc.$type,properties:{name:{name:bc.name},type:{name:bc.type}},superTypes:[fr.$type]},TypeAttribute:{name:ro.$type,properties:{defaultValue:{name:ro.defaultValue},isOptional:{name:ro.isOptional,defaultValue:!1},name:{name:ro.name},type:{name:ro.type}},superTypes:[]},TypeDefinition:{name:no.$type,properties:{},superTypes:[]},UnionType:{name:lf.$type,properties:{types:{name:lf.types,defaultValue:[]}},superTypes:[no.$type]},UnorderedGroup:{name:wc.$type,properties:{cardinality:{name:wc.cardinality},elements:{name:wc.elements,defaultValue:[]}},superTypes:[Qt.$type]},UntilToken:{name:io.$type,properties:{cardinality:{name:io.cardinality},lookahead:{name:io.lookahead},parenthesized:{name:io.parenthesized,defaultValue:!1},terminal:{name:io.terminal}},superTypes:[er.$type]},ValueLiteral:{name:oo.$type,properties:{},superTypes:[]},Wildcard:{name:us.$type,properties:{cardinality:{name:us.cardinality},lookahead:{name:us.lookahead},parenthesized:{name:us.parenthesized,defaultValue:!1}},superTypes:[er.$type]}}}},re=new fs;function mC(t){let e=t,r=!1;for(;e;){let n=An(e.grammarSource,St);if(n&&n.dataType)e=e.container,r=!0;else return r?e:void 0}}function so(t){return new rn(t,e=>Or(e)?e.content:[],{includeRoot:!0})}function gC(t){return so(t).filter(Kn)}function Sm(t,e){for(;t.container;)if(t=t.container,t===e)return!0;return!1}function ds(t){return{start:{character:t.startColumn-1,line:t.startLine-1},end:{character:t.endColumn,line:t.endLine-1}}}function ao(t){if(!t)return;let{offset:e,end:r,range:n}=t;return{range:n,offset:e,end:r,length:r-e}}var on;(function(t){t[t.Before=0]="Before",t[t.After=1]="After",t[t.OverlapFront=2]="OverlapFront",t[t.OverlapBack=3]="OverlapBack",t[t.Inside=4]="Inside",t[t.Outside=5]="Outside"})(on||(on={}));function $E(t,e){if(t.end.line<e.start.line||t.end.line===e.start.line&&t.end.character<=e.start.character)return on.Before;if(t.start.line>e.end.line||t.start.line===e.end.line&&t.start.character>=e.end.character)return on.After;let r=t.start.line>e.start.line||t.start.line===e.start.line&&t.start.character>=e.start.character,n=t.end.line<e.end.line||t.end.line===e.end.line&&t.end.character<=e.end.character;return r&&n?on.Inside:r?on.OverlapBack:n?on.OverlapFront:on.Outside}function am(t,e){return $E(t,e)>on.After}var mf=/^[\w\p{L}]$/u;function yC(t,e,r=mf){if(t){if(e>0){let n=e-t.offset,i=t.text.charAt(n);r.test(i)||e--}return km(t,e)}}function vm(t,e){if(t){let r=UE(t,!0);if(r&&Im(r,e))return r;if(mc(t)){let n=t.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){let o=t.content[i];if(Im(o,e))return o}}}}function Im(t,e){return Kn(t)&&e.includes(t.tokenType.name)}function km(t,e){if(Kn(t))return t;if(Or(t)){let r=FE(t,e,!1);if(r)return km(r,e)}}function ME(t,e){if(Kn(t))return t;if(Or(t)){let r=FE(t,e,!0);if(r)return ME(r,e)}}function FE(t,e,r){let n=0,i=t.content.length-1,o;for(;n<=i;){let s=Math.floor((n+i)/2),a=t.content[s];if(a.offset<=e&&a.end>e)return a;a.end<=e?(o=r?a:void 0,n=s+1):i=s-1}return o}function UE(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t);for(;n>0;){n--;let i=r.content[n];if(e||!i.hidden)return i}t=r}}function xC(t,e=!0){for(;t.container;){let r=t.container,n=r.content.indexOf(t),i=r.content.length-1;for(;n<i;){n++;let o=r.content[n];if(e||!o.hidden)return o}t=r}}function TC(t){if(t.range.start.character===0)return t;let e=t.range.start.line,r=t,n;for(;t.container;){let i=t.container,o=n??i.content.indexOf(t);if(o===0?(t=i,n=void 0):(n=o-1,t=i.content[n]),t.range.start.line!==e)break;r=t}return r}function _C(t,e){let r=EC(t,e);return r?r.parent.content.slice(r.a+1,r.b):[]}function EC(t,e){let r=DE(t),n=DE(e),i;for(let o=0;o<r.length&&o<n.length;o++){let s=r[o],a=n[o];if(s.parent===a.parent)i={parent:s.parent,a:s.index,b:a.index};else break}return i}function DE(t){let e=[];for(;t.container;){let r=t.container,n=r.content.indexOf(t);e.push({parent:r,index:n}),t=r}return e.reverse()}var gs={};tn(gs,{findAssignment:()=>jm,findNameAssignment:()=>_f,findNodeForKeyword:()=>Gm,findNodeForProperty:()=>Oc,findNodesForKeyword:()=>IC,findNodesForKeywordInternal:()=>Hm,findNodesForProperty:()=>Bm,getActionAtElement:()=>VE,getActionType:()=>KE,getAllReachableRules:()=>Cc,getAllRulesUsedForCrossReferences:()=>AC,getCrossReferenceTerminal:()=>Fm,getEntryRule:()=>jE,getExplicitRuleType:()=>Ef,getHiddenRules:()=>WE,getRuleType:()=>Wm,getRuleTypeName:()=>PC,getTypeName:()=>ai,isArrayCardinality:()=>vC,isArrayOperator:()=>kC,isCommentTerminal:()=>Um,isDataType:()=>NC,isDataTypeRule:()=>Lc,isOptionalCardinality:()=>SC,terminalRegex:()=>hs});var co=class extends Error{constructor(e,r){super(e?`${r} at ${e.range.start.line}:${e.range.start.character}`:r)}};function sn(t,e="Error: Got unexpected value."){throw new Error(e)}function BE(t,e="Error: Condition is violated."){if(!t)throw new Error(e)}var Tf={};tn(Tf,{NEWLINE_REGEXP:()=>Om,escapeRegExp:()=>si,getTerminalParts:()=>wC,isMultilineComment:()=>Lm,isWhitespace:()=>Pc,partialMatches:()=>Dm,partialRegExp:()=>HE,whitespaceCharacters:()=>GE});function oe(t){return t.charCodeAt(0)}function yf(t,e){Array.isArray(t)?t.forEach(function(r){e.push(r)}):e.push(t)}function ps(t,e){if(t[e]===!0)throw"duplicate flag "+e;let r=t[e];t[e]=!0}function lo(t){if(t===void 0)throw Error("Internal Error - Should never get here!");return!0}function vc(){throw Error("Internal Error - Should never get here!")}function Nm(t){return t.type==="Character"}var kc=[];for(let t=oe("0");t<=oe("9");t++)kc.push(t);var Nc=[oe("_")].concat(kc);for(let t=oe("a");t<=oe("z");t++)Nc.push(t);for(let t=oe("A");t<=oe("Z");t++)Nc.push(t);var Pm=[oe(" "),oe("\f"),oe(`
37
37
  `),oe("\r"),oe(" "),oe("\v"),oe(" "),oe("\xA0"),oe("\u1680"),oe("\u2000"),oe("\u2001"),oe("\u2002"),oe("\u2003"),oe("\u2004"),oe("\u2005"),oe("\u2006"),oe("\u2007"),oe("\u2008"),oe("\u2009"),oe("\u200A"),oe("\u2028"),oe("\u2029"),oe("\u202F"),oe("\u205F"),oe("\u3000"),oe("\uFEFF")];var RC=/[0-9a-fA-F]/,xf=/[0-9]/,bC=/[1-9]/,uo=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":ps(n,"global");break;case"i":ps(n,"ignoreCase");break;case"m":ps(n,"multiLine");break;case"u":ps(n,"unicode");break;case"y":ps(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}lo(r);let n=this.disjunction();return this.consumeChar(")"),{type:r,value:n,loc:this.loc(e)}}return vc()}quantifier(e=!1){let r,n=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:i,atMost:i};break;case",":let o;this.isDigit()?(o=this.integerIncludingZero(),r={atLeast:i,atMost:o}):r={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&r===void 0)return;lo(r);break}if(!(e===!0&&r===void 0)&&lo(r))return this.peekChar(0)==="?"?(this.consumeChar("?"),r.greedy=!1):r.greedy=!0,r.type="Quantifier",r.loc=this.loc(n),r}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),lo(e)?(e.loc=this.loc(r),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):vc()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[oe(`
38
38
  `),oe("\r"),oe("\u2028"),oe("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=kc;break;case"D":e=kc,r=!0;break;case"s":e=Pm;break;case"S":e=Pm,r=!0;break;case"w":e=Nc;break;case"W":e=Nc,r=!0;break}return lo(e)?{type:"Set",value:e,complement:r}:vc()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=oe("\f");break;case"n":e=oe(`
39
39
  `);break;case"r":e=oe("\r");break;case"t":e=oe(" ");break;case"v":e=oe("\v");break}return lo(e)?{type:"Character",value:e}:vc()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:oe("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:oe(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nowline/embed",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Browser embed bundle for Nowline. Drop a <script> tag and ```nowline``` blocks render in place.",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -40,10 +40,10 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "langium": "~4.2.4",
43
- "@nowline/core": "0.4.0",
44
- "@nowline/browser": "0.4.0",
45
- "@nowline/layout": "0.4.0",
46
- "@nowline/renderer": "0.4.0"
43
+ "@nowline/browser": "0.4.1",
44
+ "@nowline/core": "0.4.1",
45
+ "@nowline/renderer": "0.4.1",
46
+ "@nowline/layout": "0.4.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^25.9.1",