@prisma/orm-toolchain 8.0.0-rc.14-dev.4 → 8.0.0-rc.14-dev.5

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 +0,0 @@
1
- {"version":3,"file":"exports-CyixGARy.mjs","names":["normalize","#parsed","#options","#readSnapshot","#interpretation","#parserOptions","#inputs","#sources","#documents","#readDocument","#interpretDiagnostics","#readSymbolTable","#readSymbolTableResult","#drop","#refreshSources","#symbolTableResult","#interpretMemo","#computeInterpretDistribution","#projectInterpretDiagnostics","#withProjectOptions","#snapshotsWithProjectOptions","#sourceFile","#rangeOffsets","#intersectsRange","#addMultilineSplitToken","#encode","#data","#first","#previousLine","#previousCharacter","#current","#resolveData","#reportedMembers","#publishMembers","#resolveMember","#state","#startLoad","#membershipSequence","#watcher","#clearWatcher","#load","#isCurrentLoad","#sendDiagnostics","#registerWatcher","#publishConfigFailure","#clearPublishedMembers","#watcherGeneration","#connection","#capabilities","#projectForConfig","#projectsByDocument","#publishForDocument","#projectsByConfig","#handleSchemaMemberChange","#eventSequence","#unmanageDocuments"],"sources":["../../../../1-framework/3-tooling/language-server/dist/exports/index.mjs"],"sourcesContent":["import { fileURLToPath, pathToFileURL } from \"node:url\";\nimport { assembleAttributeSpecs, blockSpecFactoryOf, buildSymbolTable, findBlockDescriptor, isPrismaNextSchema, renameLegacyDirective } from \"@internal/psl-parser\";\nimport { CompletionItemKind, CompletionItemTag, ConnectionError, ConnectionErrors, DiagnosticSeverity, DidChangeWatchedFilesNotification, DocumentDiagnosticReportKind, FoldingRangeKind, InsertTextFormat, LSPErrorCodes, MarkupKind, ProposedFeatures, RegistrationRequest, ResponseError, SemanticTokenModifiers, SemanticTokenTypes, TextDocumentSyncKind, createConnection } from \"vscode-languageserver\";\nimport { readFileSync, statSync } from \"node:fs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { TextDocument } from \"vscode-languageserver-textdocument\";\nimport { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PslSources, StringLiteralExprAst, SyntaxNode, TaggedLiteralExprAst, TypesBlockAst, any, filterChildren, findChildToken, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from \"@internal/psl-parser/syntax\";\nimport { normalize } from \"node:path\";\nimport { expandContractInputs, findNearestConfigPathForFile, loadConfig, requireConfigSections } from \"@internal/config-loader\";\nimport { join } from \"pathe\";\nimport { createControlStack } from \"@internal/framework-components/control\";\nimport { hasPslInterpreter } from \"@internal/psl-parser/interpret\";\nimport { CliStructuredError } from \"@internal/errors/control\";\nimport { format } from \"@internal/psl-parser/format\";\nimport { isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ProposedFeatures as ProposedFeatures$1, StreamMessageReader, StreamMessageWriter, createConnection as createConnection$1, createProtocolConnection } from \"vscode-languageserver/node\";\nimport { Console } from \"node:console\";\nimport { Readable, Writable } from \"node:stream\";\nimport { StringDecoder } from \"node:string_decoder\";\n//#region src/diagnostic-mapping.ts\nconst ParseDiagnosticSeverity = {\n\tError: 1,\n\tWarning: 2,\n\tInformation: 3,\n\tHint: 4\n};\nfunction mapParseDiagnostics(diagnostics) {\n\treturn diagnostics.map((diagnostic) => ({\n\t\trange: diagnostic.range,\n\t\tmessage: diagnostic.message,\n\t\tcode: diagnostic.code,\n\t\tseverity: ParseDiagnosticSeverity.Error\n\t}));\n}\nconst documentStartRange = {\n\tstart: {\n\t\tline: 0,\n\t\tcharacter: 0\n\t},\n\tend: {\n\t\tline: 0,\n\t\tcharacter: 1\n\t}\n};\nfunction mapInterpreterDiagnostic(diagnostic, sourceFile) {\n\treturn {\n\t\trange: diagnostic.span === void 0 ? documentStartRange : sourceFile.pslSpanToRange(diagnostic.span),\n\t\tmessage: diagnostic.message,\n\t\tcode: diagnostic.code,\n\t\tseverity: diagnostic.severity === \"warning\" ? ParseDiagnosticSeverity.Warning : ParseDiagnosticSeverity.Error\n\t};\n}\n//#endregion\n//#region src/schema-inputs.ts\nfunction hasPslInputs(config) {\n\tconst source = config.contract?.source;\n\treturn source?.format === \"psl\" && source.inputs !== void 0;\n}\nasync function resolveSchemaInputs(config, readText) {\n\tconst patterns = (hasPslInputs(config) ? config.contract?.source.inputs : void 0)?.map(toExpandablePath);\n\tconst expanded = await expandContractInputs(patterns);\n\tconst windows = isWindowsPlatform();\n\tconst candidates = expanded.map((path) => normalizeFileUri(pathToFileURL(path, { windows }).toString()));\n\tconst identities = new Set(candidates.map(canonicalFileIdentity));\n\tfunction isMember(uri) {\n\t\tif (!identities.has(canonicalFileIdentity(uri))) return false;\n\t\tconst text = readText(uri);\n\t\treturn text !== void 0 && isPrismaNextSchema(text);\n\t}\n\treturn {\n\t\tincludes: isMember,\n\t\turis: () => candidates.filter(isMember)\n\t};\n}\nfunction toExpandablePath(input) {\n\treturn isFileUri(input) ? fileURLToPath(new URL(input), { windows: isWindowsPlatform() }) : input;\n}\nfunction isWatcherCacheEligible(config) {\n\tconst patterns = config.contract?.source.inputs;\n\treturn hasPslInputs(config) && patterns !== void 0 && patterns.length > 0 && patterns.every((pattern) => /^[A-Za-z0-9_./: *?-]+$/.test(pattern) && !isFileUri(pattern) && pattern.split(\"/\").every((segment) => !segment.includes(\"**\") || segment === \"**\"));\n}\nfunction toWatcherGlobPattern(pattern) {\n\treturn isWindowsPlatform() ? pattern.replaceAll(\"\\\\\", \"/\") : pattern;\n}\nfunction isFileUri(input) {\n\ttry {\n\t\treturn new URL(input).protocol === \"file:\";\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction canonicalFileIdentity(uri) {\n\tlet url;\n\ttry {\n\t\turl = new URL(uri);\n\t} catch {\n\t\treturn uri;\n\t}\n\tif (url.protocol !== \"file:\") return uri;\n\ttry {\n\t\tconst windows = isWindowsPlatform();\n\t\tconst filePath = normalize(fileURLToPath(url, { windows }));\n\t\treturn windows ? filePath.toLowerCase() : filePath;\n\t} catch {\n\t\treturn uri;\n\t}\n}\nfunction normalizeFileUri(uri) {\n\tconst identity = canonicalFileIdentity(uri);\n\treturn identity === uri ? uri : pathToFileURL(identity, { windows: isWindowsPlatform() }).toString();\n}\nfunction isWindowsPlatform() {\n\treturn process.platform === \"win32\";\n}\n//#endregion\n//#region src/document-snapshot.ts\nvar DocumentSnapshot = class {\n\turi;\n\ttext;\n\tparserOptions;\n\t#parsed;\n\tconstructor(uri, text, parserOptions = {}) {\n\t\tthis.uri = normalizeFileUri(uri);\n\t\tthis.text = text;\n\t\tthis.parserOptions = parserOptions;\n\t\tObject.freeze(this);\n\t}\n\tparse() {\n\t\tthis.#parsed ??= parse(this.text, this.uri, this.parserOptions);\n\t\treturn this.#parsed;\n\t}\n\tget sourceFile() {\n\t\tconst { document, sources } = this.parse();\n\t\treturn sources.sourceFileFor(document.syntax);\n\t}\n};\n//#endregion\n//#region src/document-store.ts\nfunction statSafe(path) {\n\ttry {\n\t\tconst stats = statSync(path);\n\t\treturn {\n\t\t\tmtime: stats.mtimeMs,\n\t\t\tsize: stats.size\n\t\t};\n\t} catch {\n\t\treturn;\n\t}\n}\nfunction readDiskEntry(path, uri) {\n\tconst stats = statSafe(path);\n\tif (stats === void 0) return void 0;\n\ttry {\n\t\treturn {\n\t\t\torigin: \"disk\",\n\t\t\tsnapshot: new DocumentSnapshot(uri, readFileSync(path, \"utf8\")),\n\t\t\tmtime: stats.mtime,\n\t\t\tsize: stats.size\n\t\t};\n\t} catch {\n\t\treturn;\n\t}\n}\nvar DocumentStore = class {\n\tentries = /* @__PURE__ */ new Map();\n\twatchCoverage = /* @__PURE__ */ new Map();\n\twatchedIdentities = /* @__PURE__ */ new Set();\n\tsetWatchCoverage(owner, uris) {\n\t\tconst identities = new Set(Array.from(uris, canonicalFileIdentity));\n\t\tif (identities.size === 0) this.watchCoverage.delete(owner);\n\t\telse this.watchCoverage.set(owner, identities);\n\t\tconst next = /* @__PURE__ */ new Set();\n\t\tfor (const coverage of this.watchCoverage.values()) for (const identity of coverage) next.add(identity);\n\t\tfor (const identity of this.watchedIdentities) if (!next.has(identity)) this.invalidate(identity);\n\t\tfor (const identity of next) if (!this.watchedIdentities.has(identity)) this.invalidate(identity);\n\t\tthis.watchedIdentities = next;\n\t}\n\tgetOpenDocument = (uri) => {\n\t\tconst entry = this.entries.get(canonicalFileIdentity(uri));\n\t\treturn entry?.origin === \"overlay\" ? entry.document : void 0;\n\t};\n\topenDocuments() {\n\t\tconst documents = [];\n\t\tfor (const entry of this.entries.values()) if (entry.origin === \"overlay\") documents.push(entry.document);\n\t\treturn documents;\n\t}\n\ttext(uri) {\n\t\treturn this.readSnapshot(uri)?.text;\n\t}\n\treadSnapshot = (uri) => {\n\t\tconst identity = canonicalFileIdentity(uri);\n\t\tconst entry = this.entries.get(identity);\n\t\tif (entry?.origin === \"overlay\") return entry.snapshot;\n\t\tif (entry?.origin === \"disk\") {\n\t\t\tif (this.watchedIdentities.has(identity)) return entry.snapshot;\n\t\t\tconst stats = statSafe(identity);\n\t\t\tif (stats !== void 0 && stats.mtime === entry.mtime && stats.size === entry.size) return entry.snapshot;\n\t\t}\n\t\tconst fresh = readDiskEntry(identity, normalizeFileUri(uri));\n\t\tif (fresh === void 0) {\n\t\t\tthis.entries.delete(identity);\n\t\t\treturn;\n\t\t}\n\t\tthis.entries.set(identity, fresh);\n\t\treturn fresh.snapshot;\n\t};\n\tinvalidate(uri) {\n\t\tconst identity = canonicalFileIdentity(uri);\n\t\tif (this.entries.get(identity)?.origin === \"disk\") this.entries.delete(identity);\n\t}\n\topen(item) {\n\t\tconst uri = normalizeFileUri(item.uri);\n\t\tconst document = TextDocument.create(uri, item.languageId, item.version, item.text);\n\t\tthis.entries.set(canonicalFileIdentity(item.uri), {\n\t\t\torigin: \"overlay\",\n\t\t\tdocument,\n\t\t\tsnapshot: new DocumentSnapshot(uri, item.text)\n\t\t});\n\t\treturn document;\n\t}\n\tchange(identifier, changes) {\n\t\tif (changes.length === 0) return void 0;\n\t\tconst { uri, version } = identifier;\n\t\tif (version === null || version === void 0) throw new InternalError(`Received document change event for ${uri} without valid version identifier`);\n\t\tconst document = this.getOpenDocument(uri);\n\t\tif (document === void 0) return void 0;\n\t\tconst updated = TextDocument.update(document, changes, version);\n\t\tthis.entries.set(canonicalFileIdentity(uri), {\n\t\t\torigin: \"overlay\",\n\t\t\tdocument: updated,\n\t\t\tsnapshot: new DocumentSnapshot(updated.uri, updated.getText())\n\t\t});\n\t\treturn updated;\n\t}\n\tclose(uri) {\n\t\tconst document = this.getOpenDocument(uri);\n\t\tthis.entries.delete(canonicalFileIdentity(uri));\n\t\treturn document;\n\t}\n};\n//#endregion\n//#region src/guarded-connection.ts\n/**\n* Wraps a connection so that an outbound call the client is no longer there to\n* receive does nothing, instead of throwing at whoever made it.\n*\n* `vscode-jsonrpc` marks the connection closed the moment the input stream\n* ends, and every send after that throws synchronously. A throw that escapes a\n* notification handler ends the process: jsonrpc reports it through its logger,\n* which is the connection's own remote console, so the report is another send —\n* it throws again inside a `.catch()`, and the unhandled rejection is fatal.\n*\n* The wrapper carries the check so no individual send site has to: reads walk\n* the connection's features (`console`, `languages`, …) and hand back guarded\n* functions, so a send added later is guarded by construction. Only the\n* connection's departure is swallowed — any other synchronous failure is a bug\n* in the caller and still reaches it.\n*/\nfunction guardedConnection(connection) {\n\treturn guardCalls(connection);\n}\nfunction guardCalls(target) {\n\tconst guarded = /* @__PURE__ */ new Map();\n\treturn new Proxy(target, { get: (source, property) => {\n\t\tconst cached = guarded.get(property);\n\t\tif (cached !== void 0) return cached;\n\t\tconst value = Reflect.get(source, property);\n\t\tif (typeof value === \"function\") {\n\t\t\tconst call = (...args) => whileConnected(() => Reflect.apply(value, source, args));\n\t\t\tguarded.set(property, call);\n\t\t\treturn call;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null) {\n\t\t\tconst feature = guardCalls(value);\n\t\t\tguarded.set(property, feature);\n\t\t\treturn feature;\n\t\t}\n\t\treturn value;\n\t} });\n}\n/**\n* Whether an error says the connection is gone.\n*\n* The identity check is the fast path. It misses when the error comes from a\n* second copy of `vscode-jsonrpc` in the dependency tree, whose\n* `ConnectionError` is a different class carrying the same shape, so the code\n* is what decides: `Closed`, `Disposed` and `AlreadyListening` are the whole\n* range, and no other error jsonrpc throws carries a numeric `code` in it.\n*/\nfunction isConnectionGone(error) {\n\tif (error instanceof ConnectionError) return true;\n\tif (!(error instanceof Error) || !(\"code\" in error)) return false;\n\tconst { code } = error;\n\treturn code === ConnectionErrors.Closed || code === ConnectionErrors.Disposed || code === ConnectionErrors.AlreadyListening;\n}\nfunction whileConnected(send) {\n\tlet sent;\n\ttry {\n\t\tsent = send();\n\t} catch (error) {\n\t\tif (isConnectionGone(error)) return Promise.resolve(void 0);\n\t\tthrow error;\n\t}\n\treturn isThenable(sent) ? sent.then(void 0, () => void 0) : sent;\n}\nfunction isThenable(value) {\n\treturn typeof value === \"object\" && value !== null && \"then\" in value && typeof Reflect.get(value, \"then\") === \"function\";\n}\n//#endregion\n//#region src/config-resolution.ts\nconst CONFIG_FILENAME = \"prisma.config.ts\";\nconst emptyLspControlStack = {\n\tscalarTypes: [],\n\tpslBlockDescriptors: {}\n};\nasync function resolveConfigInputs(configPath, readText) {\n\tconst loaded = await loadConfig(configPath);\n\tif (!loaded.ok) throw loaded.failure;\n\tconst projectSections = requireConfigSections(loaded.value, [\"contract\", \"formatter\"]);\n\tif (!projectSections.ok) throw projectSections.failure;\n\tconst config = projectSections.value;\n\tconst inputs = await resolveSchemaInputs(config, readText);\n\tconst schemaInputConfig = config.contract === void 0 ? {} : { contract: config.contract };\n\tif (!hasPslInputs(config)) return {\n\t\tinputs,\n\t\tschemaInputConfig,\n\t\tcontrolStack: emptyLspControlStack,\n\t\t...config.formatter === void 0 ? {} : { formatter: config.formatter }\n\t};\n\tconst controlSections = requireConfigSections(loaded.value, [\n\t\t\"family\",\n\t\t\"target\",\n\t\t\"adapter\",\n\t\t\"driver\",\n\t\t\"extensions\"\n\t]);\n\tif (!controlSections.ok) throw controlSections.failure;\n\tconst stack = createControlStack(config);\n\tconst interpretation = resolveInterpretation(config, stack, inputs);\n\tconst parserOptions = config.contract?.source.format === \"psl\" ? config.contract.source.parserOptions : void 0;\n\treturn {\n\t\tinputs,\n\t\tschemaInputConfig,\n\t\tcontrolStack: lspControlStackFromStack(stack),\n\t\t...config.formatter === void 0 ? {} : { formatter: config.formatter },\n\t\t...parserOptions === void 0 ? {} : { parserOptions },\n\t\t...interpretation === void 0 ? {} : { interpretation }\n\t};\n}\nfunction lspControlStackFromStack(stack) {\n\treturn {\n\t\tscalarTypes: [...stack.scalarTypes],\n\t\tpslBlockDescriptors: stack.authoringContributions.pslBlockDescriptors,\n\t\tauthoringContributions: stack.authoringContributions,\n\t\t...stack.controlMutationDefaults === void 0 ? {} : { controlMutationDefaults: stack.controlMutationDefaults }\n\t};\n}\nfunction resolveInterpretation(config, stack, inputs) {\n\tconst source = config.contract?.source;\n\tif (source === void 0 || !hasPslInterpreter(source)) return;\n\treturn {\n\t\tsource,\n\t\tcontext: {\n\t\t\tcomposedExtensions: stack.extensions.map((p) => p.id),\n\t\t\tcomposedExtensionContracts: stack.extensionContracts,\n\t\t\tauthoringContributions: stack.authoringContributions,\n\t\t\tcodecLookup: stack.codecLookup,\n\t\t\tdataTypeLookup: stack.dataTypeLookup,\n\t\t\tcontrolMutationDefaults: stack.controlMutationDefaults,\n\t\t\tresolvedInputs: [...inputs.uris()],\n\t\t\tcapabilities: stack.capabilities\n\t\t}\n\t};\n}\n//#endregion\n//#region src/attribute-syntax-context.ts\nfunction locateAttributeSyntax(input) {\n\tconst offset = input.sourceFile.offsetAt(input.position);\n\tconst at = input.document.syntax.tokenAtOffset(offset);\n\tif (at.leftBiased()?.kind === \"Comment\") return void 0;\n\tconst token = at.leftBiased() ?? at.rightBiased();\n\tconst attribute = token === void 0 ? void 0 : skipTriviaToken(token, \"prev\")?.parent.findAncestor(any(FieldAttributeAst.cast, ModelAttributeAst.cast));\n\tif (attribute === void 0 || !isWithinAttributeOrOpenArguments(attribute, offset)) return void 0;\n\treturn {\n\t\tattribute,\n\t\t...attributeCursor(attribute, offset)\n\t};\n}\nfunction isWithinAttributeOrOpenArguments(attribute, offset) {\n\tif (attribute.syntax.isInside(offset)) return true;\n\tconst args = attribute.argList();\n\treturn args !== void 0 && args.rparen() === void 0 && offset >= args.syntax.endOffset;\n}\nfunction attributeCursor(attribute, offset) {\n\tconst anchor = attribute.syntax.tokenAtOffset(offset).leftBiased() ?? attribute.syntax.lastToken;\n\treturn {\n\t\toffset,\n\t\tpreceding: anchor === void 0 ? void 0 : skipTriviaToken(anchor, \"prev\")\n\t};\n}\nfunction argumentSiblings(node, selected, offset) {\n\tlet precedingPositionalCount = 0;\n\tconst otherNamedKeys = [];\n\tlet beforeSelected = true;\n\tfor (const arg of node.args()) {\n\t\tif (arg.syntax.offset === selected?.syntax.offset) {\n\t\t\tbeforeSelected = false;\n\t\t\tcontinue;\n\t\t}\n\t\tconst name = arg.name()?.name();\n\t\tif (name !== void 0) otherNamedKeys.push(name);\n\t\telse if (beforeSelected && arg.syntax.offset <= offset) precedingPositionalCount += 1;\n\t}\n\treturn {\n\t\tprecedingPositionalCount,\n\t\totherNamedKeys\n\t};\n}\nfunction argumentAtCursor(cursor, node) {\n\tfor (const arg of node.args()) if (arg.syntax.offset <= cursor.offset && (containsCursor(arg.syntax, cursor) || recoveredContainerContainsCursor(arg.value(), cursor.offset))) return arg;\n}\nfunction listElementAtCursor(cursor, node) {\n\tfor (const element of node.elements()) if (containsCursor(element.syntax, cursor) || recoveredContainerContainsCursor(element, cursor.offset)) return element;\n}\nfunction recordFieldAtCursor(cursor, node) {\n\tfor (const field of node.fields()) {\n\t\tconst colon = field.colon();\n\t\tif (colon !== void 0 && cursor.offset > colon.offset && (containsCursor(field.syntax, cursor) || recoveredContainerContainsCursor(field.value(), cursor.offset))) return field;\n\t}\n}\nfunction betweenDelimiters(offset, opening, closing) {\n\treturn opening !== void 0 && offset > opening.offset && (closing === void 0 || offset < closing.endOffset);\n}\nfunction recoveredContainerContainsCursor(expression, offset) {\n\tif (expression === void 0 || expression.syntax.endOffset > offset) return false;\n\tif (!(expression instanceof ArrayLiteralAst ? expression.rbracket() === void 0 : expression instanceof ObjectLiteralExprAst ? expression.rbrace() === void 0 : expression instanceof FunctionCallAst && expression.rparen() === void 0)) return false;\n\tfor (let token = expression.syntax.lastToken?.nextToken; token !== void 0; token = token.nextToken) {\n\t\tif (token.offset >= offset) return true;\n\t\tif (!isTrivia(token) && token.kind !== \"Comma\") return false;\n\t}\n\treturn true;\n}\nfunction containsCursor(node, cursor) {\n\tif (node.isInside(cursor.offset)) return true;\n\tconst preceding = cursor.preceding;\n\treturn preceding !== void 0 && preceding.endOffset <= cursor.offset && preceding.offset >= node.offset && preceding.offset < node.endOffset;\n}\n//#endregion\n//#region src/completion-context.ts\nconst UNSUPPORTED = { kind: \"unsupported\" };\nfunction classifyPslCompletionContext(input) {\n\tconst root = input.document.syntax;\n\tconst offset = input.sourceFile.offsetAt(input.position);\n\tconst at = root.tokenAtOffset(offset);\n\tif (at.leftBiased()?.kind === \"Comment\") return UNSUPPORTED;\n\tconst edit = cursorIdentifier(at, offset);\n\tconst preceding = precedingToken(at, edit);\n\tconst precedingNode = preceding?.parent;\n\tconst replacementStartOffset = edit?.offset ?? offset;\n\tconst attributeClassifierInput = {\n\t\toffset,\n\t\tnode: attributeAnchor(at),\n\t\treplacementStartOffset\n\t};\n\tconst attributeContext = classifyFieldAttribute(attributeClassifierInput) ?? classifyGenericBlockAttribute(attributeClassifierInput) ?? classifyModelAttribute(attributeClassifierInput);\n\tif (attributeContext !== void 0) return attributeContext;\n\tconst declarationKeywordContext = classifyDeclarationKeyword({\n\t\tnode: precedingNode,\n\t\toffset,\n\t\treplacementStartOffset\n\t});\n\tif (declarationKeywordContext !== void 0) return declarationKeywordContext;\n\tconst genericBlockContext = classifyGenericBlockParameter({\n\t\toffset,\n\t\tat,\n\t\tprecedingToken: preceding,\n\t\treplacementStartOffset\n\t});\n\tif (genericBlockContext !== void 0) return genericBlockContext;\n\tconst field = fieldForTypeSlot(precedingNode);\n\tif (field === void 0) return UNSUPPORTED;\n\tif (field.syntax.findAncestor(any(ModelDeclarationAst.cast, CompositeTypeDeclarationAst.cast)) === void 0) return UNSUPPORTED;\n\treturn classifyModelFieldType({\n\t\tfield,\n\t\toffset,\n\t\treplacementStartOffset,\n\t\tprecedingToken: preceding\n\t});\n}\n/**\n* Locates the field whose type position the cursor occupies. The preceding token\n* climbs to the field whether the cursor sits inside a present type (the type\n* identifier's predecessor still belongs to the field) or in the empty type slot\n* of a typeless field (whose trailing trivia lives in the enclosing block, so\n* the nearest significant token to the left is the field's own name).\n*/\nfunction fieldForTypeSlot(precedingNode) {\n\treturn precedingNode?.findAncestor(FieldDeclarationAst.cast);\n}\nfunction classifyModelFieldType(input) {\n\tconst fieldName = input.field.name();\n\tif (fieldName === void 0) return UNSUPPORTED;\n\tconst fieldNameText = fieldName.name();\n\tif (fieldNameText === void 0) return UNSUPPORTED;\n\tif (fieldName.syntax.isInside(input.offset)) return UNSUPPORTED;\n\tconst typeAnnotation = input.field.typeAnnotation();\n\tif (typeAnnotation === void 0) {\n\t\tif (input.precedingToken !== void 0 && fieldName.syntax.isInside(input.precedingToken.offset)) return {\n\t\t\tkind: \"modelType\",\n\t\t\toffset: input.offset,\n\t\t\tfieldName: fieldNameText,\n\t\t\treplacementStartOffset: input.offset\n\t\t};\n\t\treturn UNSUPPORTED;\n\t}\n\tif (typeAnnotation.syntax.isOutside(input.offset)) return UNSUPPORTED;\n\tif (typeAnnotation.argList()?.syntax.isInside(input.offset)) return UNSUPPORTED;\n\tconst name = typeAnnotation.name();\n\tif (name === void 0) return UNSUPPORTED;\n\tif (name.syntax.isOutside(input.offset)) return UNSUPPORTED;\n\tif (name.isOverQualified()) return UNSUPPORTED;\n\treturn classifyTypePosition(name, input.offset, fieldNameText, input.replacementStartOffset);\n}\n/**\n* Builds the type-completion context for a qualified name. Roles are read\n* straight off the separator-positional accessors: a populated namespace\n* segment is a `.`-qualified name, a populated space segment is a `:`-qualified\n* name, and the absence of both is a bare model type.\n*\n* Behaviour change: a `:`-qualified name with no `.` (e.g. `supabase:`,\n* `supabase:U`) is a `spaceMember` position rather than falling through to bare\n* model-type completions. A malformed leading-separator name (`:User`, `.User`)\n* carries no populated segment and resolves to `modelType` rather than\n* `unsupported`.\n*/\nfunction classifyTypePosition(name, offset, fieldName, replacementStartOffset) {\n\tconst namespace = name.namespace()?.name();\n\tif (namespace !== void 0 && namespace.length > 0) {\n\t\tconst namespaceSpace = name.space()?.name();\n\t\treturn {\n\t\t\tkind: \"namespaceMember\",\n\t\t\toffset,\n\t\t\tfieldName,\n\t\t\treplacementStartOffset,\n\t\t\tnamespace,\n\t\t\t...namespaceSpace !== void 0 && namespaceSpace.length > 0 ? { space: namespaceSpace } : {}\n\t\t};\n\t}\n\tconst space = name.space()?.name();\n\tif (space !== void 0 && space.length > 0) return {\n\t\tkind: \"spaceMember\",\n\t\toffset,\n\t\tfieldName,\n\t\treplacementStartOffset,\n\t\tspace\n\t};\n\treturn {\n\t\tkind: \"modelType\",\n\t\toffset,\n\t\tfieldName,\n\t\treplacementStartOffset\n\t};\n}\nconst declarationCast = any(ModelDeclarationAst.cast, CompositeTypeDeclarationAst.cast, TypesBlockAst.cast, GenericBlockDeclarationAst.cast, NamespaceDeclarationAst.cast);\nfunction classifyDeclarationKeyword(input) {\n\tconst precedingDeclaration = input.node?.findAncestor(declarationCast);\n\tconst namespace = input.node?.findAncestor(NamespaceDeclarationAst.cast);\n\tconst inNamespaceBody = blockBodyContainsOffset(namespace, input.offset);\n\tif (precedingDeclaration !== void 0 && !canCompleteDeclaration(precedingDeclaration, input.offset, inNamespaceBody)) return;\n\treturn {\n\t\tkind: \"declarationKeyword\",\n\t\toffset: input.offset,\n\t\tscope: inNamespaceBody ? \"namespace\" : \"document\",\n\t\treplacementStartOffset: input.replacementStartOffset\n\t};\n}\n/**\n* Whether a new declaration can begin at the cursor, given the nearest enclosing\n* declaration. Allowed when that declaration is still nascent (only its keyword\n* typed, no name or body yet), when it is a namespace whose body holds further\n* declarations, or when the cursor sits past its closing `}`.\n*/\nfunction canCompleteDeclaration(precedingDeclaration, offset, inNamespaceBody) {\n\tif (precedingDeclaration.lbrace() === void 0 && (precedingDeclaration instanceof TypesBlockAst || precedingDeclaration.name() === void 0)) return true;\n\tif (precedingDeclaration instanceof NamespaceDeclarationAst && inNamespaceBody) return true;\n\tconst rbrace = precedingDeclaration.rbrace();\n\treturn rbrace !== void 0 && offset >= rbrace.endOffset;\n}\nfunction blockBodyContainsOffset(block, offset) {\n\tif (block === void 0) return false;\n\tconst lbrace = block.lbrace();\n\tif (lbrace === void 0) return false;\n\tconst bodyStart = lbrace.endOffset;\n\tconst bodyEnd = block.rbrace()?.offset ?? block.syntax.endOffset;\n\treturn offset >= bodyStart && offset <= bodyEnd;\n}\nfunction classifyFieldAttribute(input) {\n\tconst attribute = input.node?.findAncestor(FieldAttributeAst.cast);\n\tif (attribute === void 0 || !isWithinAttributeOrOpenArguments(attribute, input.offset)) return;\n\tconst field = attribute.syntax.findAncestor(FieldDeclarationAst.cast);\n\tconst model = attribute.syntax.findAncestor(ModelDeclarationAst.cast);\n\tif (field === void 0 || model === void 0) return UNSUPPORTED;\n\tconst owner = {\n\t\townerKind: \"field\",\n\t\tfield,\n\t\tmodel\n\t};\n\treturn classifyAttributePosition(attribute, input, {\n\t\tname: (position) => ({\n\t\t\tkind: \"fieldAttributeName\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\tnamedKey: (position) => ({\n\t\t\tkind: \"fieldAttributeNamedKey\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\targumentSlot: (position) => ({\n\t\t\tkind: \"fieldAttributeArgumentSlot\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\tvalue: (position) => ({\n\t\t\tkind: \"fieldAttributeValue\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t})\n\t});\n}\nfunction classifyGenericBlockAttribute(input) {\n\tconst attribute = activeModelAttribute(input);\n\tconst block = attribute?.syntax.findAncestor(GenericBlockDeclarationAst.cast);\n\tif (attribute === void 0 || block === void 0) return;\n\tconst blockKeyword = block.keyword()?.text;\n\tif (blockKeyword === void 0 || blockKeyword.length === 0) return UNSUPPORTED;\n\tconst owner = {\n\t\townerKind: \"block\",\n\t\tblock,\n\t\tblockKeyword\n\t};\n\treturn classifyAttributePosition(attribute, input, {\n\t\tname: (position) => ({\n\t\t\tkind: \"blockAttributeName\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\tnamedKey: (position) => ({\n\t\t\tkind: \"blockAttributeNamedKey\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\targumentSlot: (position) => ({\n\t\t\tkind: \"blockAttributeArgumentSlot\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\tvalue: (position) => ({\n\t\t\tkind: \"blockAttributeValue\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t})\n\t});\n}\nfunction classifyModelAttribute(input) {\n\tconst attribute = activeModelAttribute(input);\n\tif (attribute === void 0) return;\n\tconst model = attribute.syntax.findAncestor(ModelDeclarationAst.cast);\n\tif (model === void 0) return;\n\tconst owner = {\n\t\townerKind: \"model\",\n\t\tmodel\n\t};\n\treturn classifyAttributePosition(attribute, input, {\n\t\tname: (position) => ({\n\t\t\tkind: \"modelAttributeName\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\tnamedKey: (position) => ({\n\t\t\tkind: \"modelAttributeNamedKey\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\targumentSlot: (position) => ({\n\t\t\tkind: \"modelAttributeArgumentSlot\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t}),\n\t\tvalue: (position) => ({\n\t\t\tkind: \"modelAttributeValue\",\n\t\t\t...position,\n\t\t\t...owner\n\t\t})\n\t});\n}\nfunction activeModelAttribute(input) {\n\tconst attribute = input.node?.findAncestor(ModelAttributeAst.cast);\n\tif (attribute === void 0 || !isWithinAttributeOrOpenArguments(attribute, input.offset)) return;\n\treturn attribute;\n}\nfunction attributeAnchor(at) {\n\tconst token = at.leftBiased() ?? at.rightBiased();\n\treturn token === void 0 ? void 0 : skipTriviaToken(token, \"prev\")?.parent;\n}\nfunction classifyAttributePosition(attribute, input, factory) {\n\tconst args = attribute.argList();\n\tif (args === void 0 || input.offset < args.syntax.offset) return factory.name({\n\t\toffset: input.offset,\n\t\treplacementStartOffset: input.replacementStartOffset,\n\t\treplacementEndOffset: attribute.name()?.syntax.endOffset ?? input.offset,\n\t\thasArgumentList: args !== void 0\n\t});\n\tconst attributeName = attribute.name()?.identifier()?.name();\n\tif (attributeName === void 0) return UNSUPPORTED;\n\tconst at = attribute.syntax.tokenAtOffset(input.offset);\n\tconst right = at.rightBiased();\n\tconst token = isValueToken(right) ? right : at.leftBiased();\n\tconst replaceToken = isValueToken(token);\n\treturn classifyAttributeArguments({\n\t\toffset: input.offset,\n\t\treplacementStartOffset: replaceToken ? token.offset : input.offset,\n\t\treplacementEndOffset: replaceToken ? token.endOffset : input.offset,\n\t\tattributeName,\n\t\tpreceding: attributeCursor(attribute, input.offset).preceding,\n\t\tfactory\n\t}, args, []);\n}\nfunction argumentPosition(cursor, path) {\n\treturn {\n\t\toffset: cursor.offset,\n\t\treplacementStartOffset: cursor.replacementStartOffset,\n\t\treplacementEndOffset: cursor.replacementEndOffset,\n\t\tattributeName: cursor.attributeName,\n\t\tpath\n\t};\n}\nfunction classifyAttributeArguments(cursor, args, path) {\n\tif (!betweenDelimiters(cursor.offset, args.lparen(), args.rparen())) return UNSUPPORTED;\n\tconst active = argumentAtCursor(cursor, args);\n\tconst { precedingPositionalCount: positionalIndex, otherNamedKeys: existingNamedKeys } = argumentSiblings(args, active, cursor.offset);\n\tconst position = argumentPosition(cursor, path);\n\tif (active === void 0) return followsSeparator(cursor, [\"LParen\", \"Comma\"]) ? cursor.factory.argumentSlot({\n\t\t...position,\n\t\tpositionalIndex,\n\t\texistingNamedKeys,\n\t\thasColon: false\n\t}) : UNSUPPORTED;\n\tconst colon = active.colon();\n\tif (colon !== void 0) {\n\t\tif (cursor.offset <= colon.offset) return cursor.factory.namedKey({\n\t\t\t...position,\n\t\t\texistingNamedKeys,\n\t\t\thasColon: true\n\t\t});\n\t\tconst name = active.name()?.name();\n\t\treturn name === void 0 ? UNSUPPORTED : classifyAttributeExpression(cursor, active.value(), [...path, {\n\t\t\tkind: \"namedArgument\",\n\t\t\tname\n\t\t}]);\n\t}\n\tconst value = active.value();\n\tif (value === void 0 || value instanceof IdentifierAst && value.syntax.isInside(cursor.offset)) return cursor.factory.argumentSlot({\n\t\t...position,\n\t\tpositionalIndex,\n\t\texistingNamedKeys,\n\t\thasColon: false\n\t});\n\treturn classifyAttributeExpression(cursor, value, [...path, {\n\t\tkind: \"positionalArgument\",\n\t\tindex: positionalIndex\n\t}]);\n}\nfunction classifyAttributeExpression(cursor, expression, path) {\n\tif (expression === void 0) return cursor.factory.value({\n\t\t...argumentPosition(cursor, path),\n\t\tsyntax: \"scalar\"\n\t});\n\tif (expression instanceof ArrayLiteralAst) {\n\t\tif (!betweenDelimiters(cursor.offset, expression.lbracket(), expression.rbracket())) return UNSUPPORTED;\n\t\tconst element = listElementAtCursor(cursor, expression);\n\t\treturn element !== void 0 || followsSeparator(cursor, [\"LBracket\", \"Comma\"]) ? classifyAttributeExpression(cursor, element, [...path, { kind: \"listElement\" }]) : UNSUPPORTED;\n\t}\n\tif (expression instanceof ObjectLiteralExprAst) {\n\t\tconst closing = expression.rbrace();\n\t\tif (closing !== void 0 && cursor.offset >= closing.endOffset) return UNSUPPORTED;\n\t\tconst field = recordFieldAtCursor(cursor, expression);\n\t\treturn field !== void 0 ? classifyAttributeExpression(cursor, field.value(), [...path, { kind: \"recordValue\" }]) : UNSUPPORTED;\n\t}\n\tif (expression instanceof FunctionCallAst) {\n\t\tconst opening = expression.lparen();\n\t\tif (opening !== void 0 && cursor.offset > opening.offset) {\n\t\t\tconst name = expression.name();\n\t\t\tconst identifier = name?.identifier()?.name();\n\t\t\treturn identifier !== void 0 && name?.isSimpleName(identifier) === true ? classifyAttributeArguments(cursor, expression, [...path, {\n\t\t\t\tkind: \"functionCall\",\n\t\t\t\tname: identifier\n\t\t\t}]) : UNSUPPORTED;\n\t\t}\n\t\treturn expression.name()?.syntax.isInside(cursor.offset) === true ? cursor.factory.value({\n\t\t\t...argumentPosition(cursor, path),\n\t\t\tsyntax: \"functionName\"\n\t\t}) : UNSUPPORTED;\n\t}\n\treturn expression.syntax.isOutside(cursor.offset) ? UNSUPPORTED : cursor.factory.value({\n\t\t...argumentPosition(cursor, path),\n\t\tsyntax: \"scalar\"\n\t});\n}\nfunction isValueToken(token) {\n\treturn token !== void 0 && (token.kind === \"Ident\" || token.kind === \"StringLiteral\" || token.kind === \"NumberLiteral\");\n}\nfunction followsSeparator(cursor, kinds) {\n\treturn kinds.includes(cursor.preceding?.kind ?? \"\");\n}\nfunction classifyGenericBlockParameter(input) {\n\tconst node = input.at.leftBiased()?.parent;\n\tconst block = node?.findAncestor(GenericBlockDeclarationAst.cast);\n\tif (block === void 0) return;\n\tif (hasUnsupportedAncestor(node)) return UNSUPPORTED;\n\tif (!blockBodyContainsOffset(block, input.offset)) return UNSUPPORTED;\n\tif ((node?.findAncestor(FieldDeclarationAst.cast))?.syntax.isInside(input.offset)) return UNSUPPORTED;\n\tconst keyword = block.keyword()?.text;\n\tif (keyword === void 0 || keyword.length === 0) return UNSUPPORTED;\n\tif (input.precedingToken?.kind === \"Equals\") return {\n\t\tkind: \"genericBlockValue\",\n\t\toffset: input.offset,\n\t\tblockKeyword: keyword,\n\t\treplacementStartOffset: input.replacementStartOffset\n\t};\n\tconst activePair = activeKeyValuePair(node, input.offset);\n\tif (activePair !== void 0 && isAfterEquals(activePair, input.offset)) return UNSUPPORTED;\n\treturn {\n\t\tkind: \"genericBlockKey\",\n\t\toffset: input.offset,\n\t\tblockKeyword: keyword,\n\t\treplacementStartOffset: input.replacementStartOffset,\n\t\tblock\n\t};\n}\nfunction activeKeyValuePair(node, offset) {\n\tconst pair = node?.findAncestor(KeyValuePairAst.cast);\n\tif (pair === void 0 || pair.syntax.isOutside(offset)) return;\n\treturn pair;\n}\nfunction isAfterEquals(pair, offset) {\n\tconst equals = pair.equals();\n\treturn equals !== void 0 && offset > equals.offset;\n}\nfunction hasUnsupportedAncestor(node) {\n\treturn node?.findAncestor(any(AttributeArgListAst.cast, FieldAttributeAst.cast, ModelAttributeAst.cast)) !== void 0;\n}\n/** The significant token preceding the cursor — the in-progress edit identifier\n* is skipped, so the result is the token the classifier anchors on. */\nfunction precedingToken(at, edit) {\n\tconst start = edit !== void 0 ? edit.prevToken : at.leftBiased();\n\treturn start === void 0 ? void 0 : skipTriviaToken(start, \"prev\");\n}\n/** The identifier token the cursor is editing, if any. */\nfunction cursorIdentifier(at, offset) {\n\tconst right = at.rightBiased();\n\tif (right?.kind === \"Ident\" && offset < right.endOffset) return right;\n\tconst left = at.leftBiased();\n\tif (left?.kind === \"Ident\" && left.endOffset === offset) return left;\n}\n//#endregion\n//#region src/named-type-classification.ts\n/**\n* Presentation-level classification of a `types {}` binding: a\n* non-constructor binding whose base is a configured scalar type refines that\n* scalar (rendered as a default-library type); everything else reads as a\n* plain alias. The authoritative scalar-or-not pronouncement lives in the\n* interpreter's named-type resolution — this mirrors it for display only.\n*/\nfunction refinesScalarType(symbol, scalarTypes) {\n\treturn !symbol.isConstructor && symbol.baseType !== void 0 && scalarTypes.includes(symbol.baseType);\n}\n//#endregion\n//#region src/completion-symbols.ts\nfunction modelSymbolForNode(symbolTable, node) {\n\tconst topLevelMatch = Object.values(symbolTable.topLevel.models).find((model) => sameSyntax(model.node.syntax, node.syntax));\n\tif (topLevelMatch !== void 0) return topLevelMatch;\n\tfor (const namespace of Object.values(symbolTable.topLevel.namespaces)) {\n\t\tconst namespaceMatch = Object.values(namespace.models).find((model) => sameSyntax(model.node.syntax, node.syntax));\n\t\tif (namespaceMatch !== void 0) return namespaceMatch;\n\t}\n}\nfunction blockSymbolForNode(symbolTable, node) {\n\tconst topLevelMatch = Object.values(symbolTable.topLevel.blocks).find((block) => sameSyntax(block.node.syntax, node.syntax));\n\tif (topLevelMatch !== void 0) return topLevelMatch;\n\tfor (const namespace of Object.values(symbolTable.topLevel.namespaces)) {\n\t\tconst namespaceMatch = Object.values(namespace.blocks).find((block) => sameSyntax(block.node.syntax, node.syntax));\n\t\tif (namespaceMatch !== void 0) return namespaceMatch;\n\t}\n}\nfunction fieldSymbolForNode(model, node) {\n\treturn Object.values(model.fields).find((field) => sameSyntax(field.node.syntax, node.syntax));\n}\nfunction localFieldNames(context, symbols, scalarTypes, typeConstructors = {}) {\n\tswitch (context.kind) {\n\t\tcase \"blockAttributeNamedKey\":\n\t\tcase \"blockAttributeArgumentSlot\":\n\t\tcase \"blockAttributeValue\": return [];\n\t\tcase \"fieldAttributeNamedKey\":\n\t\tcase \"fieldAttributeArgumentSlot\":\n\t\tcase \"fieldAttributeValue\":\n\t\tcase \"modelAttributeNamedKey\":\n\t\tcase \"modelAttributeArgumentSlot\":\n\t\tcase \"modelAttributeValue\": return scalarFieldNames(symbols, modelSymbolForNode(symbols, context.model), scalarTypes, typeConstructors);\n\t}\n}\nfunction referencedFieldNames(context, symbols, scalarTypes, typeConstructors = {}) {\n\tswitch (context.kind) {\n\t\tcase \"blockAttributeNamedKey\":\n\t\tcase \"blockAttributeArgumentSlot\":\n\t\tcase \"blockAttributeValue\":\n\t\tcase \"modelAttributeNamedKey\":\n\t\tcase \"modelAttributeArgumentSlot\":\n\t\tcase \"modelAttributeValue\": return [];\n\t\tcase \"fieldAttributeNamedKey\":\n\t\tcase \"fieldAttributeArgumentSlot\":\n\t\tcase \"fieldAttributeValue\": {\n\t\t\tconst model = modelSymbolForNode(symbols, context.model);\n\t\t\tif (model === void 0) return [];\n\t\t\tconst field = fieldSymbolForNode(model, context.field);\n\t\t\tif (field === void 0) return [];\n\t\t\treturn scalarFieldNames(symbols, referencedModel(symbols, model, field), scalarTypes, typeConstructors);\n\t\t}\n\t}\n}\nfunction scalarFieldNames(symbols, model, scalarTypes, typeConstructors) {\n\tif (model === void 0) return [];\n\tconst namespaceName = model.node.syntax.findAncestor(NamespaceDeclarationAst.cast)?.name()?.name();\n\tconst namespace = namespaceName === void 0 ? void 0 : symbols.topLevel.namespaces[namespaceName];\n\treturn Object.values(model.fields).filter((field) => {\n\t\tif (field.malformedType === true || field.typeContractSpaceId !== void 0) return false;\n\t\tif (field.typeConstructor !== void 0) return isScalarConstructor(field.typeConstructor.path, typeConstructors);\n\t\tif (field.typeNamespaceId !== void 0) return false;\n\t\tconst name = field.typeName;\n\t\tif (namespace?.models[name] !== void 0 || namespace?.compositeTypes[name] !== void 0 || namespace?.blocks[name] !== void 0 || symbols.topLevel.models[name] !== void 0 || symbols.topLevel.compositeTypes[name] !== void 0 || symbols.topLevel.blocks[name] !== void 0) return false;\n\t\tconst namedType = symbols.topLevel.namedTypes[name];\n\t\tif (namedType === void 0) return scalarTypes.includes(name);\n\t\treturn namedType.typeConstructor === void 0 ? refinesScalarType(namedType, scalarTypes) : isScalarConstructor(namedType.typeConstructor.path, typeConstructors);\n\t}).map((field) => field.name);\n}\nfunction isScalarConstructor(path, typeConstructors) {\n\tlet current = typeConstructors;\n\tfor (const [index, segment] of path.entries()) {\n\t\tconst value = Object.hasOwn(current, segment) ? current[segment] : void 0;\n\t\tif (value === void 0) return false;\n\t\tif (isAuthoringTypeConstructorDescriptor(value)) return index === path.length - 1;\n\t\tcurrent = value;\n\t}\n\treturn false;\n}\nfunction referencedModel(symbols, model, field) {\n\tif (field.malformedType === true || field.typeContractSpaceId !== void 0) return void 0;\n\tif (field.typeNamespaceId !== void 0) return symbols.topLevel.namespaces[field.typeNamespaceId]?.models[field.typeName];\n\tconst namespace = model.node.syntax.findAncestor(NamespaceDeclarationAst.cast)?.name()?.name();\n\treturn (namespace === void 0 ? void 0 : symbols.topLevel.namespaces[namespace]?.models[field.typeName]) ?? symbols.topLevel.models[field.typeName];\n}\nfunction sameSyntax(left, right) {\n\treturn left.offset === right.offset && left.endOffset === right.endOffset;\n}\n//#endregion\n//#region src/attribute-spec-resolution.ts\nfunction attributeSpecResolver(context, source) {\n\tswitch (context.ownerKind) {\n\t\tcase \"block\": {\n\t\t\tconst descriptor = findBlockDescriptor(source.pslBlockDescriptors, context.blockKeyword);\n\t\t\tconst block = blockSymbolForNode(source.symbolTable, context.block);\n\t\t\tif (block === void 0) return () => void 0;\n\t\t\treturn (name) => {\n\t\t\t\tconst factory = descriptor?.attributes?.[name];\n\t\t\t\tif (factory === void 0) return void 0;\n\t\t\t\treturn blindCast(factory)({\n\t\t\t\t\tsymbols: source.symbolTable,\n\t\t\t\t\tblock\n\t\t\t\t});\n\t\t\t};\n\t\t}\n\t\tcase \"model\": {\n\t\t\tif (source.authoringContributions === void 0) return () => void 0;\n\t\t\tconst model = modelSymbolForNode(source.symbolTable, context.model);\n\t\t\tif (model === void 0 || source.controlMutationDefaults === void 0) return () => void 0;\n\t\t\tconst specs = assembleAttributeSpecs(source.authoringContributions);\n\t\t\tconst specContext = {\n\t\t\t\tsymbols: source.symbolTable,\n\t\t\t\tmodel,\n\t\t\t\tcontrolMutationDefaults: {\n\t\t\t\t\t...source.controlMutationDefaults,\n\t\t\t\t\tdataTypeEntries: source.authoringContributions.dataTypes ?? {}\n\t\t\t\t}\n\t\t\t};\n\t\t\treturn (name) => specs.model[name]?.(specContext);\n\t\t}\n\t\tcase \"field\": {\n\t\t\tif (source.authoringContributions === void 0) return () => void 0;\n\t\t\tconst model = modelSymbolForNode(source.symbolTable, context.model);\n\t\t\tif (model === void 0 || source.controlMutationDefaults === void 0) return () => void 0;\n\t\t\tconst field = fieldSymbolForNode(model, context.field);\n\t\t\tif (field === void 0) return () => void 0;\n\t\t\tconst specs = assembleAttributeSpecs(source.authoringContributions);\n\t\t\tconst specContext = {\n\t\t\t\tsymbols: source.symbolTable,\n\t\t\t\tmodel,\n\t\t\t\tcontrolMutationDefaults: {\n\t\t\t\t\t...source.controlMutationDefaults,\n\t\t\t\t\tdataTypeEntries: source.authoringContributions.dataTypes ?? {}\n\t\t\t\t}\n\t\t\t};\n\t\t\treturn (name) => specs.field[name]?.({\n\t\t\t\t...specContext,\n\t\t\t\tfield\n\t\t\t});\n\t\t}\n\t}\n}\n//#endregion\n//#region src/completion-snippets.ts\nfunction requiredArgumentsSnippet(signature) {\n\treturn requiredArguments(signature).map((argument, index) => requiredArgumentSnippet(argument, index + 1)).join(\", \");\n}\nfunction requiredArguments(signature) {\n\tconst positional = signature.positional ?? [];\n\tconst positionalKeys = new Set(positional.map((argument) => argument.key));\n\treturn [...positional.flatMap((argument) => isOptionalParam(argument.type) ? [] : [{\n\t\tkind: \"positional\",\n\t\targument\n\t}]), ...Object.entries(signature.named ?? {}).flatMap(([key, { type }]) => positionalKeys.has(key) || isOptionalParam(type) ? [] : [{\n\t\tkind: \"named\",\n\t\tkey,\n\t\ttype\n\t}])];\n}\nfunction requiredArgumentSnippet(argument, tabStop) {\n\tif (argument.kind === \"positional\") return argSnippetPlaceholder(argument.argument.type, tabStop, argument.argument.key);\n\treturn `${argument.key}: ${argSnippetPlaceholder(argument.type, tabStop, argument.key)}`;\n}\nfunction argSnippetPlaceholder(param, tabStop, key) {\n\tconst placeholder = `\\${${tabStop.toString()}:${key}}`;\n\tif (param.kind === \"str\") return `\"${placeholder}\"`;\n\tif (param.kind === \"list\") return `[${placeholder}]`;\n\tif (param.kind === \"record\") return `{ ${placeholder} }`;\n\treturn placeholder;\n}\nfunction isOptionalParam(param) {\n\treturn \"optional\" in param && param.optional === true;\n}\n//#endregion\n//#region src/attribute-argument-grammar.ts\nfunction resolveGrammar(signature, path) {\n\tlet grammars = [signature];\n\tfor (const step of path) grammars = grammars.flatMap((grammar) => advanceGrammar(grammar, step));\n\treturn grammars;\n}\nfunction advanceGrammar(grammar, step) {\n\tconst type = \"kind\" in grammar ? grammar : void 0;\n\tif (type?.kind === \"oneOf\") return type.alternatives.flatMap((alternative) => advanceGrammar(alternative, step));\n\tswitch (step.kind) {\n\t\tcase \"positionalArgument\": {\n\t\t\tif (\"kind\" in grammar) return [];\n\t\t\tconst param = grammar.positional?.[step.index]?.type;\n\t\t\treturn param === void 0 ? [] : [param];\n\t\t}\n\t\tcase \"namedArgument\": {\n\t\t\tif (\"kind\" in grammar) return [];\n\t\t\tconst param = grammar.named?.[step.name]?.type;\n\t\t\treturn param === void 0 ? [] : [param];\n\t\t}\n\t\tcase \"listElement\": return type?.kind === \"list\" ? [type.of] : [];\n\t\tcase \"recordValue\": return type?.kind === \"record\" ? [type.of] : [];\n\t\tcase \"functionCall\": return type?.kind === \"funcCall\" && type.name === step.name ? [type.signature] : [];\n\t}\n}\n//#endregion\n//#region src/completion-values.ts\nfunction provideAttributeNamedKeyCompletionItems(input, spec) {\n\treturn orderedItems(resolveGrammar(spec, input.context.path).flatMap((grammar) => \"kind\" in grammar ? [] : namedKeyItems(input, grammar)));\n}\nfunction provideAttributeArgumentSlotCompletionItems(input, spec) {\n\treturn orderedItems(resolveGrammar(spec, input.context.path).flatMap((grammar) => {\n\t\tif (\"kind\" in grammar) return [];\n\t\tconst param = grammar.positional?.[input.context.positionalIndex]?.type;\n\t\treturn [...valueItems(input, param, \"scalar\"), ...namedKeyItems(input, grammar)];\n\t}));\n}\nfunction provideAttributeValueCompletionItems(input, spec) {\n\treturn orderedItems(resolveGrammar(spec, input.context.path).flatMap((grammar) => \"kind\" in grammar ? valueItems(input, grammar, input.context.syntax) : []));\n}\nfunction namedKeyItems(input, signature) {\n\treturn Object.entries(signature.named ?? {}).filter(([name]) => !input.context.existingNamedKeys.includes(name)).map(([name, param]) => {\n\t\tconst snippet = input.clientSupportsSnippets && !input.context.hasColon;\n\t\tconst value = snippet ? `\\${1:${name}}` : \"\";\n\t\treturn {\n\t\t\t...completionItem(input, name, input.context.hasColon ? name : `${name}: ${value}`, CompletionItemKind.Property, snippet, param.documentation),\n\t\t\t...!input.context.hasColon && input.clientSupportsTriggerSuggestCommand === true ? { command: {\n\t\t\t\ttitle: \"Suggest argument values\",\n\t\t\t\tcommand: \"editor.action.triggerSuggest\"\n\t\t\t} } : {}\n\t\t};\n\t});\n}\nfunction valueItems(input, type, syntax) {\n\tif (type === void 0) return [];\n\tif (type.kind === \"oneOf\") return type.alternatives.flatMap((alternative) => valueItems(input, alternative, syntax));\n\tif (type.kind === \"funcCall\") {\n\t\tconst snippet = input.clientSupportsSnippets && syntax !== \"functionName\";\n\t\tconst hasParameters = (type.signature.positional?.length ?? 0) > 0 || Object.keys(type.signature.named ?? {}).length > 0;\n\t\tconst args = requiredArgumentsSnippet(type.signature) || (hasParameters ? \"${1:}\" : \"\");\n\t\tconst text = snippet ? `${type.name}(${args})` : type.name;\n\t\treturn [{\n\t\t\t...completionItem(input, type.name, text, CompletionItemKind.Function, snippet, type.signature.documentation),\n\t\t\t...snippet && input.clientSupportsTriggerParameterHintsCommand === true && hasParameters ? { command: {\n\t\t\t\ttitle: \"Show argument hints\",\n\t\t\t\tcommand: \"editor.action.triggerParameterHints\"\n\t\t\t} } : {}\n\t\t}];\n\t}\n\tif (syntax === \"functionName\") return [];\n\tif (type.kind === \"taggedLiteral\") return type.tags.map((tag) => ({\n\t\t...completionItem(input, tag, input.clientSupportsSnippets ? `${tag}\\`$1\\`` : tag, CompletionItemKind.Value, input.clientSupportsSnippets),\n\t\tdetail: type.documentation\n\t}));\n\tswitch (type.kind) {\n\t\tcase \"identifier\": return type.name === void 0 ? [] : scalarItems(input, [type.name], type.documentation);\n\t\tcase \"str\": return scalarItems(input, type.value === void 0 ? [] : [JSON.stringify(type.value)]);\n\t\tcase \"num\": return scalarItems(input, type.value === void 0 ? [] : [String(type.value)]);\n\t\tcase \"bool\": return scalarItems(input, [\"true\", \"false\"]);\n\t\tcase \"null\": return scalarItems(input, [\"null\"]);\n\t\tcase \"fieldRef\":\n\t\tcase \"referencedFieldRef\": return scalarItems(input, input.fieldNames(type.kind));\n\t\tcase \"list\":\n\t\tcase \"record\":\n\t\tcase \"entityRef\":\n\t\tcase \"int\":\n\t\tcase \"json\":\n\t\tcase \"rejecting\": return [];\n\t}\n}\nfunction scalarItems(input, labels, documentation) {\n\treturn labels.map((label) => completionItem(input, label, label, CompletionItemKind.Value, false, documentation));\n}\nfunction completionItem(input, label, newText, kind, snippet = false, documentation) {\n\treturn {\n\t\tlabel,\n\t\tkind,\n\t\tdetail: documentation ?? (kind === CompletionItemKind.Property ? \"Attribute argument\" : \"PSL argument value\"),\n\t\tfilterText: label,\n\t\ttextEdit: {\n\t\t\trange: {\n\t\t\t\tstart: input.sourceFile.positionAt(input.context.replacementStartOffset),\n\t\t\t\tend: input.sourceFile.positionAt(input.context.replacementEndOffset)\n\t\t\t},\n\t\t\tnewText\n\t\t},\n\t\t...snippet ? { insertTextFormat: InsertTextFormat.Snippet } : {}\n\t};\n}\nfunction orderedItems(items) {\n\tconst seen = /* @__PURE__ */ new Set();\n\treturn items.filter((item) => {\n\t\tconst key = JSON.stringify([\n\t\t\titem.label,\n\t\t\titem.textEdit,\n\t\t\titem.insertTextFormat\n\t\t]);\n\t\tif (seen.has(key)) return false;\n\t\tseen.add(key);\n\t\treturn true;\n\t}).map((item, index) => ({\n\t\t...item,\n\t\tsortText: index.toString().padStart(4, \"0\")\n\t}));\n}\n//#endregion\n//#region src/completion-provider.ts\nconst categoryOrder = {\n\tconfiguredScalar: 0,\n\ttopLevelModel: 1,\n\ttopLevelCompositeType: 2,\n\tscalar: 3,\n\ttypeAlias: 4,\n\tnamespace: 5,\n\tnamespaceModel: 6,\n\tnamespaceCompositeType: 7,\n\tdeprecatedScalar: 8\n};\nconst declarationKeywordCategoryOrder = {\n\tnative: 0,\n\tgenericBlock: 1\n};\nconst nameSnippetPlaceholder = \"${1:Name}\";\nconst namespaceSnippetPlaceholder = \"${1:name}\";\nconst namespaceNativeDeclarationKeywords = [nativeDeclarationKeyword(\"model\", \"model \", `model ${nameSnippetPlaceholder} {\\n \\${0:// Fields}\\n}`, \"Defines a data model.\"), nativeDeclarationKeyword(\"type\", \"type \", `type ${nameSnippetPlaceholder} {\\n \\${0:// Fields}\\n}`, \"Defines a reusable composite type.\")];\nconst documentNativeDeclarationKeywords = [\n\t...namespaceNativeDeclarationKeywords,\n\tnativeDeclarationKeyword(\"types\", \"types \", \"types {\\n ${0:// Type aliases}\\n}\", \"Defines reusable named types.\"),\n\tnativeDeclarationKeyword(\"namespace\", \"namespace \", `namespace ${namespaceSnippetPlaceholder} {\\n \\${0:// Models and types}\\n}`, \"Groups declarations belonging to the same database schema or database.\")\n];\nfunction providePslCompletionItems(input) {\n\tconst { context } = input;\n\tswitch (context.kind) {\n\t\tcase \"unsupported\": return [];\n\t\tcase \"spaceMember\": return [];\n\t\tcase \"genericBlockValue\": return [];\n\t\tcase \"fieldAttributeName\":\n\t\tcase \"modelAttributeName\":\n\t\tcase \"blockAttributeName\": return provideAttributeNameCompletionItems(context, input.sourceFile, input.candidates, input.clientSupportsSnippets, input.clientSupportsTriggerParameterHintsCommand === true);\n\t\tcase \"fieldAttributeNamedKey\":\n\t\tcase \"modelAttributeNamedKey\":\n\t\tcase \"blockAttributeNamedKey\": {\n\t\t\tconst spec = attributeSpecResolver(context, input.candidates)(context.attributeName);\n\t\t\treturn spec === void 0 ? [] : provideAttributeNamedKeyCompletionItems({\n\t\t\t\tcontext,\n\t\t\t\tsourceFile: input.sourceFile,\n\t\t\t\tclientSupportsSnippets: input.clientSupportsSnippets,\n\t\t\t\tclientSupportsTriggerSuggestCommand: input.clientSupportsTriggerSuggestCommand === true\n\t\t\t}, spec);\n\t\t}\n\t\tcase \"fieldAttributeArgumentSlot\":\n\t\tcase \"modelAttributeArgumentSlot\":\n\t\tcase \"blockAttributeArgumentSlot\": {\n\t\t\tconst spec = attributeSpecResolver(context, input.candidates)(context.attributeName);\n\t\t\treturn spec === void 0 ? [] : provideAttributeArgumentSlotCompletionItems({\n\t\t\t\tcontext,\n\t\t\t\tsourceFile: input.sourceFile,\n\t\t\t\tclientSupportsSnippets: input.clientSupportsSnippets,\n\t\t\t\tclientSupportsTriggerSuggestCommand: input.clientSupportsTriggerSuggestCommand === true,\n\t\t\t\tclientSupportsTriggerParameterHintsCommand: input.clientSupportsTriggerParameterHintsCommand === true,\n\t\t\t\tfieldNames: (kind) => kind === \"fieldRef\" ? localFieldNames(context, input.candidates.symbolTable, input.candidates.scalarTypes, input.candidates.authoringContributions?.type) : referencedFieldNames(context, input.candidates.symbolTable, input.candidates.scalarTypes, input.candidates.authoringContributions?.type)\n\t\t\t}, spec);\n\t\t}\n\t\tcase \"fieldAttributeValue\":\n\t\tcase \"modelAttributeValue\":\n\t\tcase \"blockAttributeValue\": {\n\t\t\tconst spec = attributeSpecResolver(context, input.candidates)(context.attributeName);\n\t\t\treturn spec === void 0 ? [] : provideAttributeValueCompletionItems({\n\t\t\t\tcontext,\n\t\t\t\tsourceFile: input.sourceFile,\n\t\t\t\tclientSupportsSnippets: input.clientSupportsSnippets,\n\t\t\t\tclientSupportsTriggerParameterHintsCommand: input.clientSupportsTriggerParameterHintsCommand === true,\n\t\t\t\tfieldNames: (kind) => kind === \"fieldRef\" ? localFieldNames(context, input.candidates.symbolTable, input.candidates.scalarTypes, input.candidates.authoringContributions?.type) : referencedFieldNames(context, input.candidates.symbolTable, input.candidates.scalarTypes, input.candidates.authoringContributions?.type)\n\t\t\t}, spec);\n\t\t}\n\t\tcase \"declarationKeyword\": return provideDeclarationKeywordCompletionItems(context, input.sourceFile, input.candidates, input.clientSupportsSnippets);\n\t\tcase \"genericBlockKey\": return provideGenericBlockKeyCompletionItems(context, input.sourceFile, input.candidates);\n\t\tcase \"modelType\": return provideModelTypeCompletionItems(context, input.sourceFile, input.candidates);\n\t\tcase \"namespaceMember\": return provideNamespaceMemberCompletionItems(context, input.sourceFile, input.candidates);\n\t}\n}\nfunction provideAttributeNameCompletionItems(context, sourceFile, source, clientSupportsSnippets, clientSupportsTriggerParameterHintsCommand) {\n\tconst names = attributeNames(context, source);\n\tconst replacementRange = {\n\t\tstart: sourceFile.positionAt(context.replacementStartOffset),\n\t\tend: sourceFile.positionAt(context.replacementEndOffset)\n\t};\n\tconst resolveSpec = attributeSpecResolver(context, source);\n\treturn names.map((name) => {\n\t\tconst spec = resolveSpec(name);\n\t\tconst newText = attributeNameEditText({\n\t\t\tname,\n\t\t\tspec,\n\t\t\thasArgumentList: context.hasArgumentList,\n\t\t\tclientSupportsSnippets\n\t\t});\n\t\treturn {\n\t\t\tlabel: name,\n\t\t\tkind: CompletionItemKind.Function,\n\t\t\tdetail: spec?.documentation || \"PSL attribute\",\n\t\t\tsortText: name,\n\t\t\tfilterText: name,\n\t\t\ttextEdit: {\n\t\t\t\trange: replacementRange,\n\t\t\t\tnewText\n\t\t\t},\n\t\t\t...newText !== name ? { insertTextFormat: InsertTextFormat.Snippet } : {},\n\t\t\t...newText !== name && clientSupportsTriggerParameterHintsCommand ? { command: {\n\t\t\t\ttitle: \"Show argument hints\",\n\t\t\t\tcommand: \"editor.action.triggerParameterHints\"\n\t\t\t} } : {}\n\t\t};\n\t});\n}\nfunction attributeNames(context, source) {\n\tswitch (context.kind) {\n\t\tcase \"blockAttributeName\": {\n\t\t\tconst descriptor = findBlockDescriptor(source.pslBlockDescriptors, context.blockKeyword);\n\t\t\treturn sortedUnique(Object.keys(descriptor?.attributes ?? {}));\n\t\t}\n\t\tcase \"fieldAttributeName\":\n\t\t\tif (source.authoringContributions === void 0) return [];\n\t\t\treturn sortedUnique(Object.keys(assembleAttributeSpecs(source.authoringContributions).field));\n\t\tcase \"modelAttributeName\":\n\t\t\tif (source.authoringContributions === void 0) return [];\n\t\t\treturn sortedUnique(Object.keys(assembleAttributeSpecs(source.authoringContributions).model));\n\t}\n}\nfunction attributeNameEditText(input) {\n\tif (!input.clientSupportsSnippets || input.spec === void 0 || input.hasArgumentList) return input.name;\n\tconst required = requiredArgumentsSnippet(input.spec);\n\treturn required.length === 0 ? input.name : `${input.name}(${required})`;\n}\nfunction provideDeclarationKeywordCompletionItems(context, sourceFile, source, clientSupportsSnippets) {\n\tconst replacementRange = {\n\t\tstart: sourceFile.positionAt(context.replacementStartOffset),\n\t\tend: sourceFile.positionAt(context.offset)\n\t};\n\treturn declarationKeywordCandidates(context.scope, source).map((candidate) => ({\n\t\tlabel: candidate.label,\n\t\tkind: candidate.kind,\n\t\tdetail: candidate.detail,\n\t\tsortText: declarationKeywordSortText(candidate),\n\t\tfilterText: candidate.label,\n\t\t...clientSupportsSnippets ? { insertTextFormat: InsertTextFormat.Snippet } : {},\n\t\ttextEdit: {\n\t\t\trange: replacementRange,\n\t\t\tnewText: clientSupportsSnippets ? candidate.snippetText : candidate.insertText\n\t\t}\n\t}));\n}\nfunction declarationKeywordCandidates(scope, source) {\n\treturn [...scope === \"namespace\" ? namespaceNativeDeclarationKeywords : documentNativeDeclarationKeywords, ...genericBlockDeclarationKeywordCandidates(source.pslBlockDescriptors)];\n}\nfunction nativeDeclarationKeyword(label, insertText, snippetText, documentation) {\n\treturn {\n\t\tcategory: \"native\",\n\t\tlabel,\n\t\tinsertText,\n\t\tsnippetText,\n\t\tdetail: documentation,\n\t\tkind: CompletionItemKind.Keyword\n\t};\n}\nfunction genericBlockDeclarationKeywordCandidates(descriptors) {\n\treturn descriptorBlockKeywords(descriptors).map((keyword) => {\n\t\tconst descriptor = findBlockDescriptor(descriptors, keyword);\n\t\treturn {\n\t\t\tcategory: \"genericBlock\",\n\t\t\tlabel: keyword,\n\t\t\tinsertText: `${keyword} `,\n\t\t\tsnippetText: genericBlockSnippet(keyword),\n\t\t\tdetail: descriptor?.documentation || \"Generic block keyword\",\n\t\t\tkind: CompletionItemKind.Keyword\n\t\t};\n\t});\n}\nfunction genericBlockSnippet(keyword) {\n\treturn [\n\t\t`${keyword} ${nameSnippetPlaceholder} {`,\n\t\t` \\${0:// Block keys and attributes}`,\n\t\t\"}\"\n\t].join(\"\\n\");\n}\nfunction descriptorBlockKeywords(descriptors) {\n\tconst keywords = [];\n\tcollectDescriptorBlockKeywords(descriptors, keywords);\n\treturn sortedUnique(keywords);\n}\nfunction collectDescriptorBlockKeywords(descriptors, keywords) {\n\tfor (const value of Object.values(descriptors)) {\n\t\tif (isAuthoringPslBlockDescriptor(value)) {\n\t\t\tkeywords.push(value.keyword);\n\t\t\tcontinue;\n\t\t}\n\t\tcollectDescriptorBlockKeywords(value, keywords);\n\t}\n}\nfunction declarationKeywordSortText(candidate) {\n\treturn `${declarationKeywordCategoryOrder[candidate.category]}:${candidate.label}`;\n}\nfunction provideGenericBlockKeyCompletionItems(context, sourceFile, source) {\n\tconst descriptor = findBlockDescriptor(source.pslBlockDescriptors, context.blockKeyword);\n\tif (descriptor === void 0) return [];\n\tconst block = blockSymbolForNode(source.symbolTable, context.block);\n\tif (block === void 0) return [];\n\tconst spec = blockSpecFactoryOf(descriptor)({\n\t\tsymbols: source.symbolTable,\n\t\tblock\n\t});\n\tif (spec.mode !== \"struct\") return [];\n\tconst existing = existingGenericBlockParameterNames(context.block, context.offset);\n\tconst replacementRange = {\n\t\tstart: sourceFile.positionAt(context.replacementStartOffset),\n\t\tend: sourceFile.positionAt(context.offset)\n\t};\n\treturn Object.entries(spec.parameters).filter(([parameterName]) => !existing.has(parameterName)).map(([parameterName, parameter], index) => ({\n\t\tlabel: parameterName,\n\t\tkind: CompletionItemKind.Property,\n\t\tdetail: parameter.documentation || \"Generic block parameter\",\n\t\tsortText: genericBlockParameterSortText(index, parameterName),\n\t\tfilterText: parameterName,\n\t\ttextEdit: {\n\t\t\trange: replacementRange,\n\t\t\tnewText: parameterName\n\t\t}\n\t}));\n}\nfunction existingGenericBlockParameterNames(block, cursorOffset) {\n\tconst names = /* @__PURE__ */ new Set();\n\tfor (const entry of block.entries()) {\n\t\tif (!entry.syntax.isOutside(cursorOffset)) continue;\n\t\tconst name = entry.key()?.name();\n\t\tif (name !== void 0) names.add(name);\n\t}\n\treturn names;\n}\nfunction provideModelTypeCompletionItems(context, sourceFile, source) {\n\treturn modelTypeCompletionItems(context, sourceFile, [\n\t\t...configuredScalarCandidates(source),\n\t\t...topLevelSymbolCandidates(source.symbolTable, source.scalarTypes),\n\t\t...allNamespaceCandidates(source.symbolTable)\n\t]);\n}\nfunction provideNamespaceMemberCompletionItems(context, sourceFile, source) {\n\tif (context.space !== void 0) return [];\n\treturn modelTypeCompletionItems(context, sourceFile, namespaceCandidates(source.symbolTable.topLevel.namespaces[context.namespace]));\n}\nfunction modelTypeCompletionItems(context, sourceFile, candidates) {\n\tconst replacementRange = {\n\t\tstart: sourceFile.positionAt(context.replacementStartOffset),\n\t\tend: sourceFile.positionAt(context.offset)\n\t};\n\treturn candidates.map((candidate) => ({\n\t\tlabel: candidate.label,\n\t\tkind: candidate.kind,\n\t\tdetail: candidate.detail,\n\t\tsortText: sortText(candidate),\n\t\tfilterText: candidate.filterText,\n\t\ttextEdit: {\n\t\t\trange: replacementRange,\n\t\t\tnewText: candidate.insertText\n\t\t},\n\t\t...candidate.deprecated === true ? { tags: [CompletionItemTag.Deprecated] } : {}\n\t}));\n}\nfunction configuredScalarCandidates(source) {\n\tconst constructors = source.authoringContributions?.type ?? {};\n\treturn sortedUnique(source.scalarTypes).map((name) => {\n\t\tconst descriptor = constructors[name];\n\t\tconst typeConstructor = descriptor !== void 0 && isAuthoringTypeConstructorDescriptor(descriptor) ? descriptor : void 0;\n\t\tconst base = {\n\t\t\tlabel: name,\n\t\t\tinsertText: name,\n\t\t\tfilterText: name,\n\t\t\tkind: CompletionItemKind.Keyword\n\t\t};\n\t\tif (typeConstructor?.deprecated !== void 0) return {\n\t\t\t...base,\n\t\t\tcategory: \"deprecatedScalar\",\n\t\t\tdetail: `Deprecated: use ${typeConstructor.deprecated.replacement}.`,\n\t\t\tdeprecated: true\n\t\t};\n\t\treturn {\n\t\t\t...base,\n\t\t\tcategory: \"configuredScalar\",\n\t\t\tdetail: typeConstructor?.documentation || \"Configured scalar type\"\n\t\t};\n\t});\n}\nfunction topLevelSymbolCandidates(symbolTable, scalarTypes) {\n\tconst { topLevel } = symbolTable;\n\tconst namedTypes = Object.values(topLevel.namedTypes);\n\tconst scalarRefinementNames = namedTypes.filter((symbol) => refinesScalarType(symbol, scalarTypes)).map((symbol) => symbol.name).sort(compareNames);\n\tconst aliasNames = namedTypes.filter((symbol) => !refinesScalarType(symbol, scalarTypes)).map((symbol) => symbol.name).sort(compareNames);\n\treturn [\n\t\t...symbolCandidates(recordNames(topLevel.models), \"topLevelModel\", \"Model\", CompletionItemKind.Class),\n\t\t...symbolCandidates(recordNames(topLevel.compositeTypes), \"topLevelCompositeType\", \"Composite type\", CompletionItemKind.Struct),\n\t\t...symbolCandidates(scalarRefinementNames, \"scalar\", \"Scalar type\", CompletionItemKind.Unit),\n\t\t...symbolCandidates(aliasNames, \"typeAlias\", \"Type alias\", CompletionItemKind.Reference)\n\t];\n}\nfunction allNamespaceCandidates(symbolTable) {\n\treturn Object.values(symbolTable.topLevel.namespaces).sort((left, right) => compareNames(left.name, right.name)).map(namespaceQualifierCandidate);\n}\nfunction namespaceCandidates(namespace) {\n\tif (namespace === void 0) return [];\n\treturn [...symbolCandidates(recordNames(namespace.models), \"namespaceModel\", `Model in namespace ${namespace.name}`, CompletionItemKind.Class), ...symbolCandidates(recordNames(namespace.compositeTypes), \"namespaceCompositeType\", `Composite type in namespace ${namespace.name}`, CompletionItemKind.Struct)];\n}\nfunction namespaceQualifierCandidate(namespace) {\n\treturn {\n\t\tcategory: \"namespace\",\n\t\tlabel: namespace.name,\n\t\tinsertText: namespace.name,\n\t\tfilterText: namespace.name,\n\t\tdetail: \"Namespace\",\n\t\tkind: CompletionItemKind.Module\n\t};\n}\nfunction symbolCandidates(names, category, detail, kind) {\n\treturn names.map((name) => ({\n\t\tcategory,\n\t\tlabel: name,\n\t\tinsertText: name,\n\t\tfilterText: name,\n\t\tdetail,\n\t\tkind\n\t}));\n}\nfunction recordNames(record) {\n\treturn Object.values(record).map((symbol) => symbol.name).sort(compareNames);\n}\nfunction sortedUnique(names) {\n\treturn [...new Set(names)].sort(compareNames);\n}\nfunction sortText(candidate) {\n\treturn `${categoryOrder[candidate.category]}:${candidate.label}`;\n}\nfunction genericBlockParameterSortText(index, label) {\n\treturn `${index.toString().padStart(4, \"0\")}:${label}`;\n}\nfunction compareNames(left, right) {\n\tif (left < right) return -1;\n\tif (left > right) return 1;\n\treturn 0;\n}\n//#endregion\n//#region src/folding-ranges.ts\n/**\n* Computes folding ranges for block declarations in a PSL document.\n*\n* Block types that produce folding ranges:\n* - model (e.g., `model User { ... }`)\n* - composite type (e.g., `type Address { ... }`)\n* - namespace (e.g., `namespace billing { ... }`)\n* - generic blocks (generator, datasource, extension blocks)\n* - types block (e.g., `types { ... }`)\n*\n* The range spans from the line containing `{` to the line containing `}`.\n*/\nfunction computeFoldingRanges(document, sources) {\n\tconst ranges = [];\n\tcollectFoldingRanges(document, sources, ranges);\n\treturn ranges;\n}\nfunction collectFoldingRanges(document, sources, ranges) {\n\tfor (const declaration of document.declarations()) {\n\t\taddFoldingRange(declaration, sources, ranges);\n\t\tconst namespace = NamespaceDeclarationAst.cast(declaration.syntax);\n\t\tif (namespace !== void 0) for (const nested of namespace.declarations()) addFoldingRange(nested, sources, ranges);\n\t}\n}\nfunction addFoldingRange(declaration, sources, ranges) {\n\tconst lbrace = declaration.lbrace();\n\tconst rbrace = declaration.rbrace();\n\tif (lbrace === void 0 || rbrace === void 0) return;\n\tconst sourceFile = sources.sourceFileFor(declaration.syntax);\n\tconst startLine = sourceFile.positionAt(lbrace.offset).line;\n\tconst endLine = sourceFile.positionAt(rbrace.offset).line;\n\tranges.push({\n\t\tstartLine,\n\t\tendLine,\n\t\tkind: FoldingRangeKind.Region\n\t});\n}\n//#endregion\n//#region src/project-artifacts.ts\nfunction schemaInputIdentities(inputs) {\n\treturn new Set(Array.from(inputs.uris(), canonicalFileIdentity));\n}\nvar ProjectArtifacts = class {\n\t#options;\n\t#readSnapshot;\n\t#interpretation;\n\t#parserOptions;\n\t#snapshotsWithProjectOptions = /* @__PURE__ */ new WeakMap();\n\t#inputs;\n\t#documents = /* @__PURE__ */ new Map();\n\t#symbolTableResult;\n\t#sources;\n\t#interpretMemo;\n\tconstructor(options) {\n\t\tthis.#options = options;\n\t\tthis.#readSnapshot = options.readSnapshot;\n\t\tthis.#interpretation = options.interpretation;\n\t\tthis.#parserOptions = options.parserOptions;\n\t\tthis.#inputs = options.inputs;\n\t}\n\tget sources() {\n\t\tthis.#sources ??= new PslSources(Array.from(this.#documents.values(), (snapshot) => [snapshot.parse().document.syntax, snapshot.sourceFile]));\n\t\treturn this.#sources;\n\t}\n\tdocument = (uri) => this.#readDocument(uri);\n\tdiagnostics = (uri, projectSymbolDiagnostics) => {\n\t\tconst snapshot = this.#readDocument(uri);\n\t\tif (snapshot === void 0) return [];\n\t\tconst symbolDiagnostics = (projectSymbolDiagnostics ?? this.symbolDiagnostics()).filter((diagnostic) => diagnostic.filename === snapshot.uri);\n\t\treturn [\n\t\t\t...mapParseDiagnostics(snapshot.parse().diagnostics),\n\t\t\t...mapParseDiagnostics(symbolDiagnostics),\n\t\t\t...this.#interpretDiagnostics(snapshot.uri)\n\t\t];\n\t};\n\tsymbolTable = () => this.#readSymbolTable();\n\tsymbolDiagnostics = () => this.#readSymbolTableResult().diagnostics;\n\tdocumentChanged = (uri) => this.#drop(uri);\n\tdocumentClosed = this.documentChanged;\n\tupdateInputs = (next) => {\n\t\tthis.#inputs = next;\n\t\tconst validIdentities = schemaInputIdentities(next);\n\t\tlet changed = false;\n\t\tfor (const identity of this.#documents.keys()) if (!validIdentities.has(identity)) {\n\t\t\tthis.#documents.delete(identity);\n\t\t\tchanged = true;\n\t\t}\n\t\tif (changed) this.#refreshSources();\n\t};\n\t#refreshSources() {\n\t\tthis.#sources = void 0;\n\t\tthis.#symbolTableResult = void 0;\n\t\tthis.#interpretMemo = void 0;\n\t}\n\t#projectInterpretDiagnostics() {\n\t\tif (this.#interpretation === void 0) return /* @__PURE__ */ new Map();\n\t\tthis.#interpretMemo ??= this.#computeInterpretDistribution(this.#interpretation);\n\t\treturn this.#interpretMemo;\n\t}\n\t#computeInterpretDistribution(activeInterpretation) {\n\t\tconst currentSymbolTable = (this.#symbolTableResult ?? this.#readSymbolTableResult()).symbolTable;\n\t\tconst allDocuments = Array.from(this.#documents.values(), (snapshot) => snapshot.parse().document);\n\t\tconst warnings = [];\n\t\tconst result = activeInterpretation.source.interpret({\n\t\t\tdocuments: allDocuments,\n\t\t\tsources: this.sources,\n\t\t\tsymbolTable: currentSymbolTable\n\t\t}, {\n\t\t\t...activeInterpretation.context,\n\t\t\treportWarning: (diagnostic) => {\n\t\t\t\twarnings.push({\n\t\t\t\t\t...diagnostic,\n\t\t\t\t\tseverity: \"warning\"\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tconst diagnostics = [...warnings, ...result.ok ? [] : result.failure.diagnostics];\n\t\tif (diagnostics.length === 0) return /* @__PURE__ */ new Map();\n\t\tconst sourceFileByFilename = /* @__PURE__ */ new Map();\n\t\tfor (const snapshot of this.#documents.values()) sourceFileByFilename.set(snapshot.uri, snapshot.sourceFile);\n\t\tconst bySourceId = /* @__PURE__ */ new Map();\n\t\tfor (const diagnostic of diagnostics) {\n\t\t\tconst sourceFile = sourceFileByFilename.get(diagnostic.sourceId);\n\t\t\tif (sourceFile === void 0) continue;\n\t\t\tconst mapped = mapInterpreterDiagnostic(diagnostic, sourceFile);\n\t\t\tconst group = bySourceId.get(diagnostic.sourceId);\n\t\t\tif (group === void 0) bySourceId.set(diagnostic.sourceId, [mapped]);\n\t\t\telse group.push(mapped);\n\t\t}\n\t\treturn bySourceId;\n\t}\n\t#interpretDiagnostics(uri) {\n\t\ttry {\n\t\t\treturn this.#projectInterpretDiagnostics().get(uri) ?? [];\n\t\t} catch (error) {\n\t\t\tif (error instanceof ResponseError && (error.code === LSPErrorCodes.RequestCancelled || error.code === LSPErrorCodes.ServerCancelled || error.code === LSPErrorCodes.ContentModified)) throw error;\n\t\t\tthis.#options.onInterpretationError(uri, error);\n\t\t\treturn [{\n\t\t\t\trange: {\n\t\t\t\t\tstart: {\n\t\t\t\t\t\tline: 0,\n\t\t\t\t\t\tcharacter: 0\n\t\t\t\t\t},\n\t\t\t\t\tend: {\n\t\t\t\t\t\tline: 0,\n\t\t\t\t\t\tcharacter: 1\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tcode: \"PRISMA_NEXT_INTERPRETATION_FAILED\",\n\t\t\t\tmessage: \"Semantic diagnostics are unavailable because of an internal error. A subsequent diagnostic request or edit will retry.\",\n\t\t\t\tseverity: ParseDiagnosticSeverity.Error\n\t\t\t}];\n\t\t}\n\t}\n\t#drop(uri) {\n\t\tif (this.#documents.delete(canonicalFileIdentity(uri))) this.#refreshSources();\n\t}\n\t#readDocument(uri) {\n\t\tconst identity = canonicalFileIdentity(uri);\n\t\tconst readSnapshot = this.#readSnapshot;\n\t\tconst stored = readSnapshot(uri);\n\t\tif (stored === void 0 || !this.#inputs.includes(uri) || !isPrismaNextSchema(stored.text)) {\n\t\t\tif (this.#documents.delete(identity)) this.#refreshSources();\n\t\t\treturn;\n\t\t}\n\t\tconst snapshot = this.#withProjectOptions(stored);\n\t\tif (this.#documents.get(identity) !== snapshot) {\n\t\t\tthis.#documents.set(identity, snapshot);\n\t\t\tthis.#refreshSources();\n\t\t}\n\t\treturn snapshot;\n\t}\n\t#withProjectOptions(stored) {\n\t\tconst parserOptions = this.#parserOptions;\n\t\tif (parserOptions === void 0) return stored;\n\t\tlet snapshot = this.#snapshotsWithProjectOptions.get(stored);\n\t\tif (snapshot === void 0) {\n\t\t\tsnapshot = new DocumentSnapshot(stored.uri, stored.text, parserOptions);\n\t\t\tthis.#snapshotsWithProjectOptions.set(stored, snapshot);\n\t\t}\n\t\treturn snapshot;\n\t}\n\t#readSymbolTableResult() {\n\t\tconst currentDocuments = [];\n\t\tfor (const uri of this.#inputs.uris()) {\n\t\t\tconst snapshot = this.#readDocument(uri);\n\t\t\tif (snapshot !== void 0) currentDocuments.push(snapshot.parse().document);\n\t\t}\n\t\tthis.#symbolTableResult ??= buildSymbolTable({\n\t\t\tdocuments: currentDocuments,\n\t\t\tsources: this.sources\n\t\t});\n\t\treturn this.#symbolTableResult;\n\t}\n\t#readSymbolTable() {\n\t\treturn this.#readSymbolTableResult().symbolTable;\n\t}\n};\n//#endregion\n//#region src/semantic-tokens.ts\nconst semanticTokenTypes = [\n\tSemanticTokenTypes.keyword,\n\tSemanticTokenTypes.namespace,\n\tSemanticTokenTypes.class,\n\tSemanticTokenTypes.struct,\n\tSemanticTokenTypes.type,\n\tSemanticTokenTypes.property,\n\tSemanticTokenTypes.decorator,\n\tSemanticTokenTypes.string,\n\tSemanticTokenTypes.number,\n\tSemanticTokenTypes.comment\n];\nconst semanticTokenModifiers = [SemanticTokenModifiers.declaration, SemanticTokenModifiers.defaultLibrary];\nconst semanticTokenModifierIndexes = {\n\tdeclaration: 0,\n\tdefaultLibrary: 1\n};\nconst semanticTokenModifierBits = {\n\tdeclaration: 1 << semanticTokenModifierIndexes.declaration,\n\tdefaultLibrary: 1 << semanticTokenModifierIndexes.defaultLibrary\n};\nconst semanticTokensLegend = {\n\ttokenTypes: [...semanticTokenTypes],\n\ttokenModifiers: [...semanticTokenModifiers]\n};\nfunction buildSemanticTokens(source, range) {\n\tconst builder = new SemanticTokensBuilder(source.sourceFile, range);\n\tfor (const token of collectSemanticTokenEvents(source)) builder.add(token);\n\treturn builder.build();\n}\nfunction collectSemanticTokenEvents(source) {\n\tconst comments = collectCommentTokens(source.document);\n\tconst tokens = [];\n\tcollectDeclarations(source, tokens);\n\treturn mergeSourceOrderedTokens(comments, tokens);\n}\nvar SemanticTokensBuilder = class {\n\t#data = [];\n\t#sourceFile;\n\t#rangeOffsets;\n\t#previousLine = 0;\n\t#previousCharacter = 0;\n\t#first = true;\n\tconstructor(sourceFile, range) {\n\t\tthis.#sourceFile = sourceFile;\n\t\tif (range !== void 0) {\n\t\t\tconst startOffset = sourceFile.offsetAt(range.start);\n\t\t\tconst endOffset = sourceFile.offsetAt(range.end);\n\t\t\tthis.#rangeOffsets = {\n\t\t\t\tlower: Math.min(startOffset, endOffset),\n\t\t\t\tupper: Math.max(startOffset, endOffset)\n\t\t\t};\n\t\t}\n\t}\n\tadd(token) {\n\t\tif (!this.#intersectsRange(token.startOffset, token.endOffset)) return;\n\t\tif (token.splitMultiline) {\n\t\t\tthis.#addMultilineSplitToken(token);\n\t\t\treturn;\n\t\t}\n\t\tthis.#encode(token.startOffset, token.endOffset, token.tokenTypeIndex, token.modifierBitset);\n\t}\n\tbuild() {\n\t\treturn { data: this.#data };\n\t}\n\t#intersectsRange(startOffset, endOffset) {\n\t\tconst rangeOffsets = this.#rangeOffsets;\n\t\treturn rangeOffsets === void 0 || startOffset < rangeOffsets.upper && endOffset > rangeOffsets.lower;\n\t}\n\t#addMultilineSplitToken(token) {\n\t\tconst start = this.#sourceFile.positionAt(token.startOffset);\n\t\tconst end = this.#sourceFile.positionAt(token.endOffset);\n\t\tif (start.line === end.line) {\n\t\t\tthis.#encode(token.startOffset, token.endOffset, token.tokenTypeIndex, token.modifierBitset);\n\t\t\treturn;\n\t\t}\n\t\tfor (let line = start.line; line <= end.line; line++) {\n\t\t\tconst startOffset = line === start.line ? token.startOffset : this.#sourceFile.lineStartOffset(line);\n\t\t\tconst endOffset = line === end.line ? token.endOffset : this.#sourceFile.lineEndOffset(line);\n\t\t\tif (endOffset > startOffset && this.#intersectsRange(startOffset, endOffset)) this.#encode(startOffset, endOffset, token.tokenTypeIndex, token.modifierBitset);\n\t\t}\n\t}\n\t#encode(startOffset, endOffset, tokenTypeIndex, modifierBitset) {\n\t\tconst start = this.#sourceFile.positionAt(startOffset);\n\t\tconst deltaLine = this.#first ? start.line : start.line - this.#previousLine;\n\t\tconst deltaStart = this.#first || deltaLine !== 0 ? start.character : start.character - this.#previousCharacter;\n\t\tthis.#data.push(deltaLine, deltaStart, endOffset - startOffset, tokenTypeIndex, modifierBitset);\n\t\tthis.#previousLine = start.line;\n\t\tthis.#previousCharacter = start.character;\n\t\tthis.#first = false;\n\t}\n};\nfunction collectCommentTokens(document) {\n\tconst tokens = [];\n\tfor (const token of document.syntax.tokens()) if (token.kind === \"Comment\") tokens.push(pendingTokenForToken(token, \"comment\"));\n\treturn tokens;\n}\nfunction collectDeclarations(source, tokens) {\n\tfor (const declaration of source.document.declarations()) collectDeclaration(declaration, source, tokens, void 0);\n}\nfunction collectDeclaration(declaration, source, tokens, namespace) {\n\tif (declaration instanceof ModelDeclarationAst) {\n\t\taddToken(declaration.keyword(), \"keyword\", tokens);\n\t\taddIdentifier(declaration.name(), \"class\", tokens, semanticTokenModifierBits.declaration);\n\t\tcollectBlockMembers(declaration.members(), source, tokens, namespace);\n\t\treturn;\n\t}\n\tif (declaration instanceof CompositeTypeDeclarationAst) {\n\t\taddToken(declaration.keyword(), \"keyword\", tokens);\n\t\taddIdentifier(declaration.name(), \"struct\", tokens, semanticTokenModifierBits.declaration);\n\t\tcollectBlockMembers(declaration.members(), source, tokens, namespace);\n\t\treturn;\n\t}\n\tif (declaration instanceof NamespaceDeclarationAst) {\n\t\taddToken(declaration.keyword(), \"keyword\", tokens);\n\t\taddIdentifier(declaration.name(), \"namespace\", tokens, semanticTokenModifierBits.declaration);\n\t\tconst nestedNamespace = declaration.name()?.name();\n\t\tfor (const nested of declaration.declarations()) collectDeclaration(nested, source, tokens, nestedNamespace);\n\t\treturn;\n\t}\n\tif (declaration instanceof TypesBlockAst) {\n\t\taddToken(declaration.keyword(), \"keyword\", tokens);\n\t\tfor (const namedType of declaration.declarations()) collectNamedTypeDeclaration(namedType, source, tokens, namespace);\n\t\treturn;\n\t}\n\taddToken(declaration.keyword(), \"keyword\", tokens);\n\taddIdentifier(declaration.name(), \"type\", tokens, semanticTokenModifierBits.declaration);\n\tcollectGenericBlockMembers(declaration.members(), source, tokens, namespace);\n}\nfunction collectNamedTypeDeclaration(declaration, source, tokens, namespace) {\n\taddIdentifier(declaration.name(), \"type\", tokens, semanticTokenModifierBits.declaration);\n\tcollectTypeAnnotation(declaration.typeAnnotation(), source, tokens, namespace);\n\tcollectAttributes(declaration.attributes(), source, tokens, namespace);\n}\nfunction collectGenericBlockMembers(members, source, tokens, namespace) {\n\tfor (const member of members) {\n\t\tif (\"key\" in member) {\n\t\t\taddIdentifier(member.key(), \"property\", tokens);\n\t\t\tcollectExpression(member.value(), source, tokens, namespace);\n\t\t\tcontinue;\n\t\t}\n\t\tcollectAttribute(member, source, tokens, namespace);\n\t}\n}\nfunction collectBlockMembers(members, source, tokens, namespace) {\n\tfor (const member of members) {\n\t\tif (member instanceof FieldDeclarationAst) {\n\t\t\tcollectField(member, source, tokens, namespace);\n\t\t\tcontinue;\n\t\t}\n\t\tcollectAttribute(member, source, tokens, namespace);\n\t}\n}\nfunction collectField(field, source, tokens, namespace) {\n\taddIdentifier(field.name(), \"property\", tokens, semanticTokenModifierBits.declaration);\n\tcollectTypeAnnotation(field.typeAnnotation(), source, tokens, namespace);\n\tcollectAttributes(field.attributes(), source, tokens, namespace);\n}\nfunction collectTypeAnnotation(annotation, source, tokens, namespace) {\n\tif (annotation === void 0) return;\n\tcollectTypeReference(annotation.name(), source, tokens, namespace);\n\tcollectAttributeArgList(annotation.argList(), source, tokens, namespace);\n}\nfunction collectAttributes(attributes, source, tokens, namespace) {\n\tfor (const attribute of attributes) collectAttribute(attribute, source, tokens, namespace);\n}\nfunction collectAttribute(attribute, source, tokens, namespace) {\n\tconst marker = findChildToken(attribute.syntax, \"At\") ?? findChildToken(attribute.syntax, \"DoubleAt\");\n\tcollectDecoratorName(attribute.name(), marker, tokens);\n\tcollectAttributeArgList(attribute.argList(), source, tokens, namespace);\n}\nfunction collectDecoratorName(name, marker, tokens) {\n\tif (name === void 0) return;\n\tconst segments = identifierSegments(name);\n\tfor (const [index, segment] of segments.entries()) tokens.push(rangeForDecoratorIdentifier(segment.identifier, index === 0 ? marker : void 0));\n}\nfunction collectAttributeArgList(argList, source, tokens, namespace) {\n\tif (argList === void 0) return;\n\tfor (const arg of argList.args()) collectAttributeArg(arg, source, tokens, namespace);\n}\nfunction collectAttributeArg(arg, source, tokens, namespace) {\n\tconst name = arg.name();\n\taddIdentifier(name, \"property\", tokens);\n\tcollectExpression(arg.value(), source, tokens, namespace, expressionContextForAttributeArg(name));\n}\nfunction collectExpression(expression, source, tokens, namespace, context = {}) {\n\tif (expression === void 0) return;\n\tif (expression instanceof StringLiteralExprAst) {\n\t\taddToken(expression.token(), \"string\", tokens);\n\t\treturn;\n\t}\n\tif (expression instanceof NumberLiteralExprAst) {\n\t\taddToken(expression.token(), \"number\", tokens);\n\t\treturn;\n\t}\n\tif (expression instanceof BooleanLiteralExprAst) {\n\t\taddToken(expression.token(), \"keyword\", tokens);\n\t\treturn;\n\t}\n\tif (expression instanceof FunctionCallAst) {\n\t\tcollectTypeReference(expression.name(), source, tokens, namespace);\n\t\tfor (const arg of expression.args()) collectAttributeArg(arg, source, tokens, namespace);\n\t\treturn;\n\t}\n\tif (expression instanceof ArrayLiteralAst) {\n\t\tfor (const element of expression.elements()) collectExpression(element, source, tokens, namespace, context);\n\t\treturn;\n\t}\n\tif (expression instanceof ObjectLiteralExprAst) {\n\t\tfor (const field of expression.fields()) {\n\t\t\taddIdentifier(field.key(), \"property\", tokens);\n\t\t\tcollectExpression(field.value(), source, tokens, namespace);\n\t\t}\n\t\treturn;\n\t}\n\tif (expression instanceof TaggedLiteralExprAst) return;\n\tcollectIdentifierExpression(expression, source, tokens, namespace, context);\n}\nfunction collectIdentifierExpression(identifier, source, tokens, namespace, context) {\n\tconst text = identifier.name();\n\tif (text === void 0) return;\n\tconst bareIdentifierTokenType = context.bareIdentifierTokenType;\n\tif (bareIdentifierTokenType !== void 0) {\n\t\ttokens.push(rangeForIdentifier(identifier, bareIdentifierTokenType));\n\t\treturn;\n\t}\n\tconst classification = classifyTypeReference([text], source, namespace);\n\ttokens.push(rangeForIdentifier(identifier, classification.tokenType, classification.modifierBitset));\n}\nfunction expressionContextForAttributeArg(name) {\n\tconst argName = name?.name();\n\treturn argName === \"fields\" || argName === \"references\" ? { bareIdentifierTokenType: \"property\" } : {};\n}\nfunction collectTypeReference(name, source, tokens, namespace) {\n\tif (name === void 0) return;\n\tconst segments = identifierSegments(name);\n\tif (segments.length === 0) return;\n\tconst path = segments.map((segment) => segment.text);\n\tfor (const segment of segments.slice(0, -1)) if (isKnownNamespace(segment.text, source.symbolTable)) tokens.push(rangeForIdentifier(segment.identifier, \"namespace\"));\n\tconst finalSegment = segments[segments.length - 1];\n\tif (finalSegment === void 0) return;\n\tconst classification = classifyTypeReference(path, source, namespace);\n\ttokens.push(rangeForIdentifier(finalSegment.identifier, classification.tokenType, classification.modifierBitset));\n}\nfunction classifyTypeReference(path, source, namespace) {\n\tconst name = path[path.length - 1];\n\tif (name === void 0) return { tokenType: \"type\" };\n\tconst symbols = source.symbolTable;\n\tconst namespaceName = path.length > 1 ? path[path.length - 2] : namespace;\n\tconst namespaceScope = namespaceName !== void 0 ? symbols.topLevel.namespaces[namespaceName] : void 0;\n\tif (namespaceScope !== void 0) {\n\t\tif (Object.hasOwn(namespaceScope.models, name)) return { tokenType: \"class\" };\n\t\tif (Object.hasOwn(namespaceScope.compositeTypes, name)) return { tokenType: \"struct\" };\n\t\tif (Object.hasOwn(namespaceScope.blocks, name)) return { tokenType: \"type\" };\n\t}\n\tif (Object.hasOwn(symbols.topLevel.models, name)) return { tokenType: \"class\" };\n\tif (Object.hasOwn(symbols.topLevel.compositeTypes, name)) return { tokenType: \"struct\" };\n\tconst namedType = symbols.topLevel.namedTypes[name];\n\tif (namedType !== void 0) return refinesScalarType(namedType, source.scalarTypes) ? {\n\t\ttokenType: \"type\",\n\t\tmodifierBitset: semanticTokenModifierBits.defaultLibrary\n\t} : { tokenType: \"type\" };\n\tif (Object.hasOwn(symbols.topLevel.blocks, name)) return { tokenType: \"type\" };\n\tif (source.scalarTypes.includes(name)) return {\n\t\ttokenType: \"type\",\n\t\tmodifierBitset: semanticTokenModifierBits.defaultLibrary\n\t};\n\treturn { tokenType: \"type\" };\n}\nfunction isKnownNamespace(name, symbols) {\n\treturn Object.hasOwn(symbols.topLevel.namespaces, name);\n}\nfunction identifierSegments(name) {\n\tconst segments = [];\n\tfor (const identifier of filterChildren(name.syntax, IdentifierAst.cast)) {\n\t\tconst text = identifier.name();\n\t\tif (text !== void 0) segments.push({\n\t\t\tidentifier,\n\t\t\ttext\n\t\t});\n\t}\n\treturn segments;\n}\nfunction addIdentifier(identifier, tokenType, tokens, modifierBitset = 0) {\n\tif (identifier === void 0) return;\n\ttokens.push(rangeForIdentifier(identifier, tokenType, modifierBitset));\n}\nfunction addToken(token, tokenType, tokens, modifierBitset = 0) {\n\tif (token === void 0) return;\n\ttokens.push(pendingTokenForToken(token, tokenType, modifierBitset));\n}\nfunction rangeForIdentifier(identifier, tokenType, modifierBitset = 0) {\n\tconst token = identifier.token();\n\tif (token === void 0) return createPendingSemanticToken(identifier.syntax.offset, identifier.syntax.offset, tokenType, modifierBitset);\n\treturn pendingTokenForToken(token, tokenType, modifierBitset);\n}\nfunction rangeForDecoratorIdentifier(identifier, marker) {\n\tconst range = rangeForIdentifier(identifier, \"decorator\");\n\tif (marker === void 0 || marker.offset >= range.startOffset) return range;\n\treturn createPendingSemanticToken(marker.offset, range.endOffset, \"decorator\", range.modifierBitset);\n}\nfunction pendingTokenForToken(token, tokenType, modifierBitset = 0) {\n\treturn createPendingSemanticToken(token.offset, token.offset + token.text.length, tokenType, modifierBitset);\n}\nfunction mergeSourceOrderedTokens(left, right) {\n\tconst result = [];\n\tlet leftIndex = 0;\n\tlet rightIndex = 0;\n\twhile (leftIndex < left.length || rightIndex < right.length) {\n\t\tconst leftToken = left[leftIndex];\n\t\tconst rightToken = right[rightIndex];\n\t\tif (leftToken !== void 0 && (rightToken === void 0 || leftToken.startOffset <= rightToken.startOffset)) {\n\t\t\tresult.push(leftToken);\n\t\t\tleftIndex++;\n\t\t} else if (rightToken !== void 0) {\n\t\t\tresult.push(rightToken);\n\t\t\trightIndex++;\n\t\t}\n\t}\n\treturn result;\n}\nfunction createPendingSemanticToken(startOffset, endOffset, tokenType, modifierBitset = 0) {\n\treturn {\n\t\tstartOffset,\n\t\tendOffset,\n\t\ttokenTypeIndex: tokenTypeIndex(tokenType),\n\t\tmodifierBitset,\n\t\tsplitMultiline: tokenType === \"string\" || tokenType === \"comment\"\n\t};\n}\nfunction tokenTypeIndex(tokenType) {\n\treturn semanticTokenTypes.indexOf(tokenType);\n}\n//#endregion\n//#region src/signature-context.ts\nfunction classifyPslSignatureContext(input) {\n\tconst syntax = locateAttributeSyntax(input);\n\tif (syntax === void 0) return void 0;\n\tconst attributeName = syntax.attribute.name()?.identifier()?.name();\n\tconst args = syntax.attribute.argList();\n\tconst position = args === void 0 ? void 0 : signatureArguments(syntax, args, []);\n\tconst owner = signatureOwner(syntax.attribute);\n\treturn attributeName === void 0 || position === void 0 || owner === void 0 ? void 0 : {\n\t\t...owner,\n\t\t...position,\n\t\tattributeName\n\t};\n}\nfunction signatureOwner(attribute) {\n\tif (attribute instanceof FieldAttributeAst) {\n\t\tconst field = attribute.syntax.findAncestor(FieldDeclarationAst.cast);\n\t\tconst model = attribute.syntax.findAncestor(ModelDeclarationAst.cast);\n\t\treturn field === void 0 || model === void 0 ? void 0 : {\n\t\t\townerKind: \"field\",\n\t\t\tfield,\n\t\t\tmodel\n\t\t};\n\t}\n\tconst block = attribute.syntax.findAncestor(GenericBlockDeclarationAst.cast);\n\tif (block !== void 0) {\n\t\tconst blockKeyword = block.keyword()?.text;\n\t\treturn blockKeyword === void 0 || blockKeyword.length === 0 ? void 0 : {\n\t\t\townerKind: \"block\",\n\t\t\tblock,\n\t\t\tblockKeyword\n\t\t};\n\t}\n\tconst model = attribute.syntax.findAncestor(ModelDeclarationAst.cast);\n\treturn model === void 0 ? void 0 : {\n\t\townerKind: \"model\",\n\t\tmodel\n\t};\n}\nfunction signatureArguments(context, args, path) {\n\tif (!betweenDelimiters(context.offset, args.lparen(), args.rparen())) return void 0;\n\tconst containing = argumentAtCursor(context, args);\n\tconst next = context.preceding?.kind === \"Comma\" ? nonTriviaSibling(context.preceding, \"next\") : void 0;\n\tconst following = next instanceof SyntaxNode && next.parent?.offset === args.syntax.offset ? AttributeArgAst.cast(next) : void 0;\n\tconst active = containing ?? following;\n\tconst { precedingPositionalCount: positionalIndex, otherNamedKeys: existingNamedKeys } = argumentSiblings(args, active, context.offset);\n\tif (active === void 0) return [\"LParen\", \"Comma\"].includes(context.preceding?.kind ?? \"\") ? {\n\t\tpath,\n\t\targumentSlot: {\n\t\t\tpositionalIndex,\n\t\t\texistingNamedKeys\n\t\t}\n\t} : void 0;\n\tif (active.colon() !== void 0) {\n\t\tconst name = active.name()?.name();\n\t\tif (name === void 0) return void 0;\n\t\tconst valuePath = [...path, {\n\t\t\tkind: \"namedArgument\",\n\t\t\tname\n\t\t}];\n\t\treturn active === containing ? signatureExpression(context, active.value(), valuePath) : {\n\t\t\tpath: valuePath,\n\t\t\targumentSlot: void 0\n\t\t};\n\t}\n\tconst value = active.value();\n\tif (value === void 0 || value instanceof IdentifierAst && value.syntax.isInside(context.offset)) return {\n\t\tpath,\n\t\targumentSlot: {\n\t\t\tpositionalIndex,\n\t\t\texistingNamedKeys\n\t\t}\n\t};\n\tconst valuePath = [...path, {\n\t\tkind: \"positionalArgument\",\n\t\tindex: positionalIndex\n\t}];\n\treturn active === containing ? signatureExpression(context, value, valuePath) : {\n\t\tpath: valuePath,\n\t\targumentSlot: void 0\n\t};\n}\nfunction signatureExpression(context, expression, path) {\n\tconst position = {\n\t\tpath,\n\t\targumentSlot: void 0\n\t};\n\tif (expression === void 0 || context.offset <= expression.syntax.offset || context.offset >= expression.syntax.endOffset && !recoveredContainerContainsCursor(expression, context.offset)) return position;\n\tif (expression instanceof ArrayLiteralAst) return betweenDelimiters(context.offset, expression.lbracket(), expression.rbracket()) ? signatureExpression(context, listElementAtCursor(context, expression), [...path, { kind: \"listElement\" }]) : void 0;\n\tif (expression instanceof ObjectLiteralExprAst) {\n\t\tconst closing = expression.rbrace();\n\t\tif (closing !== void 0 && context.offset >= closing.endOffset) return void 0;\n\t\tconst field = recordFieldAtCursor(context, expression);\n\t\treturn field !== void 0 ? signatureExpression(context, field.value(), [...path, { kind: \"recordValue\" }]) : position;\n\t}\n\tif (expression instanceof FunctionCallAst) {\n\t\tconst opening = expression.lparen();\n\t\tif (opening !== void 0 && context.offset > opening.offset) {\n\t\t\tconst name = expression.name();\n\t\t\tconst identifier = name?.identifier()?.name();\n\t\t\treturn identifier !== void 0 && name?.isSimpleName(identifier) === true ? signatureArguments(context, expression, [...path, {\n\t\t\t\tkind: \"functionCall\",\n\t\t\t\tname: identifier\n\t\t\t}]) : void 0;\n\t\t}\n\t\treturn expression.name()?.syntax.isInside(context.offset) === true ? position : void 0;\n\t}\n\treturn position;\n}\n//#endregion\n//#region src/signature-help.ts\nfunction providePslSignatureHelp(input) {\n\tconst context = classifyPslSignatureContext(input);\n\tif (context === void 0) return null;\n\tconst spec = attributeSpecResolver(context, input.candidates)(context.attributeName);\n\tif (spec === void 0) return null;\n\treturn signatureHelp(context, spec, input.clientSupportsLabelOffsets === true);\n}\nfunction signatureHelp(context, spec, labelOffsets) {\n\tconst callIndex = context.path.reduce((last, step, index) => step.kind === \"functionCall\" ? index : last, -1);\n\tconst call = context.path[callIndex];\n\tconst signaturePath = context.path.slice(0, callIndex + 1);\n\tconst name = call?.kind === \"functionCall\" ? call.name : `${spec.level === \"field\" ? \"@\" : \"@@\"}${spec.name}`;\n\tconst signatures = resolveGrammar(spec, signaturePath).flatMap((grammar) => {\n\t\tif (\"kind\" in grammar) return [];\n\t\tconst active = context.path[callIndex + 1];\n\t\tconst params = parameters(grammar, active?.kind === \"namedArgument\" ? active.name : void 0);\n\t\tconst index = parameterIndex(context, active, params);\n\t\treturn [{\n\t\t\tsignature: renderSignature(name, grammar, params, labelOffsets),\n\t\t\tindex\n\t\t}];\n\t});\n\tif (signatures.length === 0) return null;\n\tconst matched = signatures.findIndex(({ signature, index }) => index >= 0 && index < (signature.parameters?.length ?? 0));\n\tconst activeSignature = matched < 0 ? 0 : matched;\n\tconst activeParameter = signatures[activeSignature]?.index;\n\treturn {\n\t\tsignatures: signatures.map(({ signature }) => signature),\n\t\tactiveSignature,\n\t\t...matched >= 0 && activeParameter !== void 0 ? { activeParameter } : {}\n\t};\n}\nfunction parameterIndex(context, active, params) {\n\tif (active?.kind === \"namedArgument\") return params.findIndex((param) => param.key === active.name);\n\tif (active?.kind === \"positionalArgument\") return active.index;\n\tconst slot = context.argumentSlot;\n\tif (slot !== void 0) return params.findIndex((param, index) => index >= slot.positionalIndex && !slot.existingNamedKeys.includes(param.key));\n\treturn -1;\n}\nfunction parameters(signature, activeName) {\n\tconst positional = signature.positional ?? [];\n\tconst keys = new Set(positional.map((param) => param.key));\n\tconst namedAlias = activeName === void 0 ? void 0 : signature.named?.[activeName];\n\treturn [...positional.map((param) => param.key === activeName && namedAlias !== void 0 ? {\n\t\tkey: param.key,\n\t\t...namedAlias\n\t} : param), ...Object.entries(signature.named ?? {}).flatMap(([key, param]) => keys.has(key) ? [] : [{\n\t\tkey,\n\t\t...param\n\t}])];\n}\nfunction renderSignature(name, signature, params, labelOffsets) {\n\tlet label = `${name}(`;\n\tconst rendered = params.map((param, index) => {\n\t\tif (index > 0) label += \", \";\n\t\tconst positional = index < (signature.positional?.length ?? 0);\n\t\tconst optional = \"optional\" in param.type && param.type.optional === true;\n\t\tconst typeLabel = optional && param.type.label.includes(\" | \") ? `(${param.type.label})` : param.type.label;\n\t\tconst text = positional ? `${typeLabel}${optional ? \"?\" : \"\"}` : `${param.key}${optional ? \"?\" : \"\"}: ${param.type.label}`;\n\t\tconst start = label.length;\n\t\tlabel += text;\n\t\tconst documentation = positional ? `**${param.key}**\\n\\n${param.documentation}${signature.named?.[param.key] === void 0 ? \"\" : `\\n\\nAccepted positionally or by \\`${param.key}:\\`.`}` : param.documentation;\n\t\treturn {\n\t\t\tlabel: positional && labelOffsets ? [start, label.length] : text,\n\t\t\tdocumentation: {\n\t\t\t\tkind: MarkupKind.Markdown,\n\t\t\t\tvalue: documentation\n\t\t\t}\n\t\t};\n\t});\n\treturn {\n\t\tlabel: `${label})`,\n\t\tdocumentation: {\n\t\t\tkind: MarkupKind.Markdown,\n\t\t\tvalue: signature.documentation\n\t\t},\n\t\tparameters: rendered\n\t};\n}\n//#endregion\n//#region src/project.ts\nconst CONFIG_LOAD_FAILED_CODE = \"PRISMA_CONFIG_LOAD_FAILED\";\nvar Project = class {\n\tconfigPath;\n\t#options;\n\t#state = { status: \"failed\" };\n\t#membershipSequence = 0;\n\t#watcherGeneration = 0;\n\t#watcher;\n\t#reportedMembers = /* @__PURE__ */ new Set();\n\tconstructor(configPath, options) {\n\t\tthis.configPath = configPath;\n\t\tthis.#options = options;\n\t}\n\tget artifacts() {\n\t\treturn this.#current()?.artifacts;\n\t}\n\tasync publishForDocument(uri) {\n\t\tconst data = await this.#resolveData().catch(() => void 0);\n\t\tif (data === void 0) return;\n\t\tconst member = data.inputs.includes(uri);\n\t\tif (!member) this.#options.unmanage(uri);\n\t\tif (member || this.#reportedMembers.has(normalizeFileUri(uri))) this.#publishMembers(data);\n\t}\n\tasync formatDocument(uri, source) {\n\t\tconst data = await this.#resolveMember(uri);\n\t\tif (data === void 0) return void 0;\n\t\ttry {\n\t\t\treturn renameLegacyDirective(format(source, data.formatter, data.parserOptions));\n\t\t} catch {\n\t\t\treturn;\n\t\t}\n\t}\n\tasync semanticTokens(uri, range) {\n\t\tconst data = await this.#resolveMember(uri);\n\t\tconst document = data?.artifacts.document(uri);\n\t\tif (data === void 0 || document === void 0) return { data: [] };\n\t\treturn buildSemanticTokens({\n\t\t\tdocument: document.parse().document,\n\t\t\tsourceFile: document.sourceFile,\n\t\t\tsymbolTable: data.artifacts.symbolTable(),\n\t\t\tscalarTypes: data.controlStack.scalarTypes\n\t\t}, range);\n\t}\n\tasync completions(uri, position, capabilities) {\n\t\tconst data = await this.#resolveMember(uri);\n\t\tconst document = data?.artifacts.document(uri);\n\t\tif (data === void 0 || document === void 0) return [];\n\t\ttry {\n\t\t\treturn [...providePslCompletionItems({\n\t\t\t\tcontext: classifyPslCompletionContext({\n\t\t\t\t\tdocument: document.parse().document,\n\t\t\t\t\tsourceFile: document.sourceFile,\n\t\t\t\t\tposition\n\t\t\t\t}),\n\t\t\t\tsourceFile: document.sourceFile,\n\t\t\t\tcandidates: {\n\t\t\t\t\t...data.controlStack,\n\t\t\t\t\tsymbolTable: data.artifacts.symbolTable()\n\t\t\t\t},\n\t\t\t\tclientSupportsSnippets: capabilities.completionSnippets,\n\t\t\t\tclientSupportsTriggerSuggestCommand: capabilities.completionTriggerSuggestCommand,\n\t\t\t\tclientSupportsTriggerParameterHintsCommand: capabilities.completionTriggerParameterHintsCommand\n\t\t\t})];\n\t\t} catch {\n\t\t\treturn [];\n\t\t}\n\t}\n\tasync signatureHelp(uri, position, labelOffsets) {\n\t\tconst data = await this.#resolveMember(uri);\n\t\tconst document = data?.artifacts.document(uri);\n\t\tif (data === void 0 || document === void 0) return null;\n\t\ttry {\n\t\t\treturn providePslSignatureHelp({\n\t\t\t\tclientSupportsLabelOffsets: labelOffsets,\n\t\t\t\tdocument: document.parse().document,\n\t\t\t\tsourceFile: document.sourceFile,\n\t\t\t\tposition,\n\t\t\t\tcandidates: {\n\t\t\t\t\t...data.controlStack,\n\t\t\t\t\tsymbolTable: data.artifacts.symbolTable()\n\t\t\t\t}\n\t\t\t});\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t}\n\tasync foldingRanges(uri) {\n\t\tconst data = await this.#resolveMember(uri);\n\t\tconst document = data?.artifacts.document(uri);\n\t\tif (data === void 0 || document === void 0) return [];\n\t\treturn computeFoldingRanges(document.parse().document, data.artifacts.sources);\n\t}\n\t#resolveData() {\n\t\tconst entry = this.#state;\n\t\tif (entry.status === \"failed\") return this.#startLoad();\n\t\treturn entry.status === \"loaded\" ? Promise.resolve(entry.data) : entry.load;\n\t}\n\tasync #resolveMember(uri) {\n\t\tconst data = await this.#resolveData().catch(() => void 0);\n\t\tif (data === void 0 || data.inputs.includes(uri)) return data;\n\t\tthis.#options.unmanage(uri);\n\t}\n\tasync reload() {\n\t\tconst data = await this.#startLoad();\n\t\tthis.#publishMembers(data);\n\t}\n\tpublishMembers() {\n\t\tconst data = this.#current();\n\t\tif (data !== void 0) this.#publishMembers(data);\n\t}\n\tdocumentChanged(uri) {\n\t\tthis.artifacts?.documentChanged(uri);\n\t}\n\tdocumentClosed(uri) {\n\t\tthis.artifacts?.documentClosed(uri);\n\t}\n\tasync diagnosticReport(requestedUri) {\n\t\tconst project = await this.#resolveData().catch(() => void 0);\n\t\tconst uri = normalizeFileUri(requestedUri);\n\t\tif (project === void 0 || !project.inputs.includes(uri) && !this.#reportedMembers.has(uri)) return {\n\t\t\tkind: DocumentDiagnosticReportKind.Full,\n\t\t\titems: []\n\t\t};\n\t\tconst projectSymbolDiagnostics = project.artifacts.symbolDiagnostics();\n\t\tconst reportFor = (memberUri) => ({\n\t\t\tkind: DocumentDiagnosticReportKind.Full,\n\t\t\titems: toDiagnostics(project.artifacts.diagnostics(memberUri, projectSymbolDiagnostics))\n\t\t});\n\t\tconst members = new Set(Array.from(project.inputs.uris(), normalizeFileUri));\n\t\tconst previous = this.#reportedMembers;\n\t\tconst relatedDocuments = {};\n\t\tfor (const memberUri of /* @__PURE__ */ new Set([...members, ...previous])) {\n\t\t\tif (memberUri === uri) continue;\n\t\t\trelatedDocuments[memberUri] = members.has(memberUri) ? reportFor(memberUri) : {\n\t\t\t\tkind: DocumentDiagnosticReportKind.Full,\n\t\t\t\titems: []\n\t\t\t};\n\t\t}\n\t\tconst report = reportFor(uri);\n\t\tif (previous.has(uri)) members.add(uri);\n\t\tthis.#reportedMembers = members;\n\t\treturn {\n\t\t\t...report,\n\t\t\t...Object.keys(relatedDocuments).length > 0 ? { relatedDocuments } : {}\n\t\t};\n\t}\n\tasync refreshMembership(uri, sequence) {\n\t\tconst entry = this.#state;\n\t\tif (entry.status === \"failed\" || this.#membershipSequence > sequence) return false;\n\t\tthis.#membershipSequence = sequence;\n\t\tthis.documentChanged(uri);\n\t\tconst project = entry.status === \"loaded\" ? entry.data : await entry.load.catch(() => void 0);\n\t\tconst isCurrent = () => this.#state.status === \"loaded\" && this.#state.data === project && this.#membershipSequence === sequence;\n\t\tif (project === void 0 || !isCurrent()) return false;\n\t\tconst nextInputs = await resolveSchemaInputs(project.schemaInputConfig, (candidate) => this.#options.documents.text(candidate));\n\t\tif (!isCurrent()) return false;\n\t\tproject.artifacts.updateInputs(nextInputs);\n\t\tconst updated = {\n\t\t\t...project,\n\t\t\tinputs: nextInputs\n\t\t};\n\t\tthis.#state = {\n\t\t\tstatus: \"loaded\",\n\t\t\tdata: updated\n\t\t};\n\t\tif (this.#watcher?.schemaInputConfig === project.schemaInputConfig && isWatcherCacheEligible(project.schemaInputConfig)) this.#options.documents.setWatchCoverage(this.configPath, nextInputs.uris());\n\t\tthis.#publishMembers(updated);\n\t\treturn true;\n\t}\n\t#current() {\n\t\tif (this.#state.status === \"failed\") return void 0;\n\t\treturn this.#state.status === \"loaded\" ? this.#state.data : this.#state.lastGood;\n\t}\n\t#startLoad() {\n\t\tthis.#membershipSequence = this.#options.nextSequence();\n\t\tthis.#clearWatcher();\n\t\tconst existing = this.#state;\n\t\tconst previousLoad = existing.status === \"loading\" ? existing.load : void 0;\n\t\tconst lastGood = this.#current();\n\t\tconst load = (previousLoad ?? Promise.resolve(void 0)).catch(() => void 0).then(() => this.#load()).then((data) => {\n\t\t\tif (this.#isCurrentLoad(load)) {\n\t\t\t\tthis.#state = {\n\t\t\t\t\tstatus: \"loaded\",\n\t\t\t\t\tdata\n\t\t\t\t};\n\t\t\t\tthis.#sendDiagnostics({\n\t\t\t\t\turi: pathToFileURL(this.configPath).toString(),\n\t\t\t\t\tdiagnostics: []\n\t\t\t\t});\n\t\t\t\tthis.#registerWatcher(data);\n\t\t\t}\n\t\t\treturn data;\n\t\t}, (error) => {\n\t\t\tif (this.#isCurrentLoad(load)) {\n\t\t\t\tthis.#publishConfigFailure(error);\n\t\t\t\tif (lastGood !== void 0) {\n\t\t\t\t\tthis.#state = {\n\t\t\t\t\t\tstatus: \"loaded\",\n\t\t\t\t\t\tdata: lastGood\n\t\t\t\t\t};\n\t\t\t\t\tthis.#registerWatcher(lastGood);\n\t\t\t\t\treturn lastGood;\n\t\t\t\t}\n\t\t\t\tthis.#state = { status: \"failed\" };\n\t\t\t\tthis.#options.unmanage();\n\t\t\t\tthis.#clearWatcher();\n\t\t\t\tthis.#clearPublishedMembers();\n\t\t\t}\n\t\t\tthrow error;\n\t\t});\n\t\tthis.#state = {\n\t\t\tstatus: \"loading\",\n\t\t\tload,\n\t\t\tlastGood\n\t\t};\n\t\treturn load;\n\t}\n\t#isCurrentLoad(load) {\n\t\treturn this.#state.status === \"loading\" && this.#state.load === load;\n\t}\n\tasync #load() {\n\t\tconst resolution = await resolveConfigInputs(this.configPath, (uri) => this.#options.documents.text(uri));\n\t\tconst artifacts = new ProjectArtifacts({\n\t\t\tinputs: resolution.inputs,\n\t\t\treadSnapshot: this.#options.documents.readSnapshot,\n\t\t\tonInterpretationError: (uri, error) => {\n\t\t\t\tconst detail = error instanceof Error ? error.stack ?? error.message : String(error);\n\t\t\t\tthis.#options.connection.console.error(`PSL interpretation failed for ${uri}: ${detail}`);\n\t\t\t},\n\t\t\t...resolution.interpretation === void 0 ? {} : { interpretation: resolution.interpretation },\n\t\t\t...resolution.parserOptions === void 0 ? {} : { parserOptions: resolution.parserOptions }\n\t\t});\n\t\treturn {\n\t\t\t...resolution,\n\t\t\tartifacts\n\t\t};\n\t}\n\t#clearWatcher() {\n\t\tconst generation = ++this.#watcherGeneration;\n\t\tthis.#options.documents.setWatchCoverage(this.configPath, []);\n\t\tthis.#watcher?.disposable.dispose();\n\t\tthis.#watcher = void 0;\n\t\treturn generation;\n\t}\n\tasync #registerWatcher(project) {\n\t\tconst generation = this.#clearWatcher();\n\t\tif (!this.#options.watchedFilesRegistration) return;\n\t\tconst patterns = project.schemaInputConfig.contract?.source.inputs ?? [];\n\t\tif (patterns.length === 0) return;\n\t\ttry {\n\t\t\tconst disposable = await this.#options.connection.client.register(DidChangeWatchedFilesNotification.type, { watchers: patterns.map((pattern) => ({ globPattern: toWatcherGlobPattern(pattern) })) });\n\t\t\tif (disposable === void 0) return;\n\t\t\tif (this.#watcherGeneration === generation) {\n\t\t\t\tthis.#watcher = {\n\t\t\t\t\tdisposable,\n\t\t\t\t\tschemaInputConfig: project.schemaInputConfig\n\t\t\t\t};\n\t\t\t\tconst current = this.#current();\n\t\t\t\tif (current?.schemaInputConfig === project.schemaInputConfig && isWatcherCacheEligible(project.schemaInputConfig)) this.#options.documents.setWatchCoverage(this.configPath, current.inputs.uris());\n\t\t\t} else disposable.dispose();\n\t\t} catch {\n\t\t\treturn;\n\t\t}\n\t}\n\t#publishMembers(project) {\n\t\tif (this.#options.pullDiagnostics) return;\n\t\tconst nextLedger = /* @__PURE__ */ new Set();\n\t\tconst projectSymbolDiagnostics = project.artifacts.symbolDiagnostics();\n\t\tfor (const candidateUri of project.inputs.uris()) {\n\t\t\tconst uri = normalizeFileUri(candidateUri);\n\t\t\tthis.#sendDiagnostics({\n\t\t\t\turi,\n\t\t\t\tdiagnostics: toDiagnostics(project.artifacts.diagnostics(uri, projectSymbolDiagnostics))\n\t\t\t});\n\t\t\tnextLedger.add(uri);\n\t\t}\n\t\tfor (const uri of this.#reportedMembers) if (!nextLedger.has(uri)) this.#sendDiagnostics({\n\t\t\turi,\n\t\t\tdiagnostics: []\n\t\t});\n\t\tthis.#reportedMembers = nextLedger;\n\t}\n\t#clearPublishedMembers() {\n\t\tif (this.#options.pullDiagnostics) return;\n\t\tfor (const uri of this.#reportedMembers) this.#sendDiagnostics({\n\t\t\turi,\n\t\t\tdiagnostics: []\n\t\t});\n\t\tthis.#reportedMembers = /* @__PURE__ */ new Set();\n\t}\n\t#publishConfigFailure(error) {\n\t\tthis.#sendDiagnostics({\n\t\t\turi: pathToFileURL(this.configPath).toString(),\n\t\t\tdiagnostics: [{\n\t\t\t\trange: {\n\t\t\t\t\tstart: {\n\t\t\t\t\t\tline: 0,\n\t\t\t\t\t\tcharacter: 0\n\t\t\t\t\t},\n\t\t\t\t\tend: {\n\t\t\t\t\t\tline: 0,\n\t\t\t\t\t\tcharacter: 1\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tmessage: CliStructuredError.is(error) ? error.why ?? error.message : error instanceof Error ? error.message : String(error),\n\t\t\t\tcode: CONFIG_LOAD_FAILED_CODE,\n\t\t\t\tseverity: DiagnosticSeverity.Error,\n\t\t\t\tsource: \"prisma\"\n\t\t\t}]\n\t\t});\n\t}\n\t#sendDiagnostics(params) {\n\t\tthis.#options.connection.sendDiagnostics({\n\t\t\t...params,\n\t\t\turi: normalizeFileUri(params.uri)\n\t\t});\n\t}\n};\nfunction toDiagnostics(computed) {\n\treturn computed.map((diagnostic) => ({\n\t\trange: diagnostic.range,\n\t\tmessage: diagnostic.message,\n\t\tcode: diagnostic.code,\n\t\tseverity: toLspSeverity(diagnostic.severity),\n\t\tsource: \"prisma\"\n\t}));\n}\nfunction toLspSeverity(severity) {\n\tswitch (severity) {\n\t\tcase ParseDiagnosticSeverity.Warning: return DiagnosticSeverity.Warning;\n\t\tcase ParseDiagnosticSeverity.Information: return DiagnosticSeverity.Information;\n\t\tcase ParseDiagnosticSeverity.Hint: return DiagnosticSeverity.Hint;\n\t\tdefault: return DiagnosticSeverity.Error;\n\t}\n}\n//#endregion\n//#region src/project-registry.ts\nvar ProjectRegistry = class {\n\t#documents;\n\t#connection;\n\t#projectsByConfig = /* @__PURE__ */ new Map();\n\t#projectsByDocument = /* @__PURE__ */ new Map();\n\t#eventSequence = 0;\n\t#capabilities = {\n\t\tpullDiagnostics: false,\n\t\twatchedFilesRegistration: false,\n\t\tdiagnosticsRefresh: false\n\t};\n\tconstructor(documents, connection) {\n\t\tthis.#documents = documents;\n\t\tthis.#connection = connection;\n\t}\n\tsetClientCapabilities(capabilities) {\n\t\tthis.#capabilities = capabilities;\n\t}\n\tasync nearestProject(uri) {\n\t\tconst knownProject = this.associatedProject(uri);\n\t\tif (knownProject !== void 0) return knownProject;\n\t\tconst filePath = filePathFromUri(uri);\n\t\tif (filePath === void 0) return void 0;\n\t\tlet configPath;\n\t\ttry {\n\t\t\tconfigPath = await findNearestConfigPathForFile(filePath);\n\t\t} catch {\n\t\t\treturn;\n\t\t}\n\t\tif (configPath === void 0) return void 0;\n\t\tconst project = this.#projectForConfig(configPath);\n\t\tthis.#projectsByDocument.set(canonicalFileIdentity(uri), project);\n\t\treturn project;\n\t}\n\tassociatedProject(uri) {\n\t\treturn this.#projectsByDocument.get(canonicalFileIdentity(uri));\n\t}\n\tdocumentChanged(uri) {\n\t\tthis.associatedProject(uri)?.documentChanged(uri);\n\t\tthis.#publishForDocument(uri).catch((error) => {\n\t\t\tthis.#connection.console.error(error instanceof Error ? error.message : String(error));\n\t\t});\n\t}\n\tdocumentClosed(uri) {\n\t\tconst project = this.associatedProject(uri);\n\t\tproject?.documentClosed(uri);\n\t\tthis.#projectsByDocument.delete(canonicalFileIdentity(uri));\n\t\tif (project?.artifacts === void 0) {\n\t\t\tif (!this.#capabilities.pullDiagnostics) this.#connection.sendDiagnostics({\n\t\t\t\turi: normalizeFileUri(uri),\n\t\t\t\tdiagnostics: []\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tproject.publishMembers();\n\t}\n\twatchConfigFiles(rootPath) {\n\t\tif (this.#capabilities.watchedFilesRegistration) this.#connection.sendRequest(RegistrationRequest.type, { registrations: [{\n\t\t\tid: \"prisma-8-config-watcher\",\n\t\t\tmethod: DidChangeWatchedFilesNotification.type.method,\n\t\t\tregisterOptions: { watchers: [{ globPattern: join(rootPath, \"**\", CONFIG_FILENAME) }] }\n\t\t}] });\n\t\telse this.#connection.console.warn(\"Client does not support dynamic file-watcher registration; Prisma 8 config changes will not be picked up without a restart.\");\n\t}\n\tasync watchedFilesChanged(changes) {\n\t\tconst changedConfigPaths = /* @__PURE__ */ new Set();\n\t\tconst memberChanges = [];\n\t\tfor (const change of changes) {\n\t\t\tconst filePath = filePathFromUri(change.uri);\n\t\t\tif (filePath?.endsWith(\"prisma.config.ts\")) changedConfigPaths.add(filePath);\n\t\t\telse memberChanges.push(change.uri);\n\t\t}\n\t\tconst configRefreshes = Array.from(changedConfigPaths, async (configPath) => {\n\t\t\treturn this.#projectsByConfig.get(configPath)?.reload().catch(() => void 0);\n\t\t});\n\t\tconst [, memberResults] = await Promise.all([Promise.all(configRefreshes), Promise.all(memberChanges.map((uri) => this.#handleSchemaMemberChange(uri)))]);\n\t\tif (this.#capabilities.pullDiagnostics && this.#capabilities.diagnosticsRefresh && (changedConfigPaths.size > 0 || memberResults.some(Boolean))) this.#connection.languages.diagnostics.refresh();\n\t}\n\t#projectForConfig(configPath) {\n\t\tlet project = this.#projectsByConfig.get(configPath);\n\t\tif (project === void 0) {\n\t\t\tproject = new Project(configPath, {\n\t\t\t\tdocuments: this.#documents,\n\t\t\t\tconnection: this.#connection,\n\t\t\t\tpullDiagnostics: this.#capabilities.pullDiagnostics,\n\t\t\t\twatchedFilesRegistration: this.#capabilities.watchedFilesRegistration,\n\t\t\t\tnextSequence: () => ++this.#eventSequence,\n\t\t\t\tunmanage: (uri) => {\n\t\t\t\t\tif (uri === void 0) this.#unmanageDocuments(configPath);\n\t\t\t\t\telse this.#projectsByDocument.delete(canonicalFileIdentity(uri));\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.#projectsByConfig.set(configPath, project);\n\t\t}\n\t\treturn project;\n\t}\n\t#unmanageDocuments(configPath) {\n\t\tfor (const document of this.#documents.openDocuments()) if (this.associatedProject(document.uri)?.configPath === configPath) this.#projectsByDocument.delete(canonicalFileIdentity(document.uri));\n\t}\n\tasync #publishForDocument(uri) {\n\t\tawait (await this.nearestProject(uri))?.publishForDocument(uri);\n\t}\n\tasync #handleSchemaMemberChange(uri) {\n\t\tconst sequence = ++this.#eventSequence;\n\t\tthis.#documents.invalidate(uri);\n\t\tconst filePath = filePathFromUri(uri);\n\t\tif (filePath === void 0) return false;\n\t\tlet configPath;\n\t\ttry {\n\t\t\tconfigPath = await findNearestConfigPathForFile(filePath);\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t\tif (configPath === void 0) return false;\n\t\treturn this.#projectsByConfig.get(configPath)?.refreshMembership(uri, sequence) ?? false;\n\t}\n};\nfunction filePathFromUri(uri) {\n\ttry {\n\t\treturn fileURLToPath(uri);\n\t} catch {\n\t\treturn;\n\t}\n}\n//#endregion\n//#region src/server.ts\nconst semanticTokenSourceLimit = 1e5;\nfunction createServer(connection) {\n\treturn createServerOn(guardedConnection(connection));\n}\nfunction createServerOn(connection) {\n\tconst documents = new DocumentStore();\n\tconst { getOpenDocument } = documents;\n\tconst projects = new ProjectRegistry(documents, connection);\n\tlet rootPath = process.cwd();\n\tlet clientCapabilities = noClientCapabilities;\n\tasync function formatDocument(uri) {\n\t\tconst document = getOpenDocument(uri);\n\t\tif (document === void 0) return [];\n\t\tconst source = document.getText();\n\t\tif (!isPrismaNextSchema(source)) return [];\n\t\tconst formatted = await (await projects.nearestProject(uri))?.formatDocument(uri, source);\n\t\tif (formatted === void 0 || formatted === source) return [];\n\t\treturn [{\n\t\t\trange: {\n\t\t\t\tstart: {\n\t\t\t\t\tline: 0,\n\t\t\t\t\tcharacter: 0\n\t\t\t\t},\n\t\t\t\tend: document.positionAt(source.length)\n\t\t\t},\n\t\t\tnewText: formatted\n\t\t}];\n\t}\n\tasync function semanticTokensForDocument(uri, range) {\n\t\tconst document = getOpenDocument(uri);\n\t\tif (document === void 0) return emptySemanticTokens();\n\t\tif (document.getText().length > semanticTokenSourceLimit) return emptySemanticTokens();\n\t\treturn (await projects.nearestProject(uri))?.semanticTokens(uri, range) ?? emptySemanticTokens();\n\t}\n\tasync function completeDocument(uri, position) {\n\t\tif (getOpenDocument(uri) === void 0) return [];\n\t\treturn (await projects.nearestProject(uri))?.completions(uri, position, clientCapabilities) ?? [];\n\t}\n\tasync function signatureHelpForDocument(uri, position) {\n\t\tif (getOpenDocument(uri) === void 0) return null;\n\t\treturn (await projects.nearestProject(uri))?.signatureHelp(uri, position, clientCapabilities.signatureLabelOffsets) ?? null;\n\t}\n\tconnection.onInitialize(async (params) => {\n\t\trootPath = resolveRootPath(params);\n\t\tclientCapabilities = resolveClientCapabilities(params);\n\t\tprojects.setClientCapabilities(clientCapabilities);\n\t\treturn { capabilities: {\n\t\t\ttextDocumentSync: {\n\t\t\t\topenClose: true,\n\t\t\t\tchange: TextDocumentSyncKind.Incremental\n\t\t\t},\n\t\t\tdocumentFormattingProvider: true,\n\t\t\tfoldingRangeProvider: true,\n\t\t\tsemanticTokensProvider: {\n\t\t\t\tlegend: semanticTokensLegend,\n\t\t\t\tfull: true,\n\t\t\t\trange: true\n\t\t\t},\n\t\t\tcompletionProvider: { triggerCharacters: [\n\t\t\t\t\".\",\n\t\t\t\t\"@\",\n\t\t\t\t\"[\",\n\t\t\t\t\"(\",\n\t\t\t\t\"{\",\n\t\t\t\t\":\",\n\t\t\t\t\",\"\n\t\t\t] },\n\t\t\tsignatureHelpProvider: { triggerCharacters: [\"(\", \",\"] },\n\t\t\t...clientCapabilities.pullDiagnostics ? { diagnosticProvider: {\n\t\t\t\tinterFileDependencies: true,\n\t\t\t\tworkspaceDiagnostics: false\n\t\t\t} } : {}\n\t\t} };\n\t});\n\tconnection.onInitialized(() => projects.watchConfigFiles(rootPath));\n\tconnection.onDidChangeWatchedFiles((params) => projects.watchedFilesChanged(params.changes));\n\tconnection.onDocumentFormatting((params) => formatDocument(params.textDocument.uri));\n\tconnection.onCompletion((params) => completeDocument(params.textDocument.uri, params.position));\n\tconnection.onSignatureHelp((params) => signatureHelpForDocument(params.textDocument.uri, params.position));\n\tconnection.languages.semanticTokens.on((params) => semanticTokensForDocument(params.textDocument.uri));\n\tconnection.languages.semanticTokens.onRange((params) => semanticTokensForDocument(params.textDocument.uri, params.range));\n\tconnection.languages.diagnostics.on(async (params) => {\n\t\tif (!clientCapabilities.pullDiagnostics) return {\n\t\t\tkind: DocumentDiagnosticReportKind.Full,\n\t\t\titems: []\n\t\t};\n\t\tconst uri = normalizeFileUri(params.textDocument.uri);\n\t\tconst project = await projects.nearestProject(uri);\n\t\tif (project === void 0) return {\n\t\t\tkind: DocumentDiagnosticReportKind.Full,\n\t\t\titems: []\n\t\t};\n\t\treturn project.diagnosticReport(uri);\n\t});\n\tconnection.onFoldingRanges(async (params) => {\n\t\treturn (await projects.nearestProject(params.textDocument.uri))?.foldingRanges(params.textDocument.uri) ?? [];\n\t});\n\tconnection.onDidOpenTextDocument((event) => {\n\t\tconst document = documents.open(event.textDocument);\n\t\tprojects.documentChanged(document.uri);\n\t});\n\tconnection.onDidChangeTextDocument((event) => {\n\t\tconst document = documents.change(event.textDocument, event.contentChanges);\n\t\tif (document !== void 0) projects.documentChanged(document.uri);\n\t});\n\tconnection.onDidCloseTextDocument((event) => {\n\t\tconst document = documents.close(event.textDocument.uri);\n\t\tif (document === void 0) return;\n\t\tprojects.documentClosed(document.uri);\n\t});\n\tconnection.listen();\n\tfunction artifactsForDocument(uri) {\n\t\treturn projects.associatedProject(uri)?.artifacts;\n\t}\n\treturn {\n\t\tdispose: () => connection.dispose(),\n\t\tgetDocumentAst: (uri) => artifactsForDocument(uri)?.document(uri),\n\t\tgetProjectSymbolTable: (uri) => {\n\t\t\tconst artifacts = artifactsForDocument(uri);\n\t\t\tif (artifacts?.document(uri) === void 0) return void 0;\n\t\t\treturn artifacts.symbolTable();\n\t\t}\n\t};\n}\nfunction emptySemanticTokens() {\n\treturn { data: [] };\n}\nconst noClientCapabilities = {\n\twatchedFilesRegistration: false,\n\tcompletionSnippets: false,\n\tsignatureLabelOffsets: false,\n\tcompletionTriggerSuggestCommand: false,\n\tcompletionTriggerParameterHintsCommand: false,\n\tpullDiagnostics: false,\n\tdiagnosticsRefresh: false\n};\nfunction resolveClientCapabilities(params) {\n\treturn {\n\t\twatchedFilesRegistration: params.capabilities.workspace?.didChangeWatchedFiles?.dynamicRegistration === true,\n\t\tcompletionSnippets: params.capabilities.textDocument?.completion?.completionItem?.snippetSupport === true,\n\t\tsignatureLabelOffsets: params.capabilities.textDocument?.signatureHelp?.signatureInformation?.parameterInformation?.labelOffsetSupport === true,\n\t\tcompletionTriggerSuggestCommand: supportsCompletionCommand(params.initializationOptions, \"supportsTriggerSuggestCommand\"),\n\t\tcompletionTriggerParameterHintsCommand: supportsCompletionCommand(params.initializationOptions, \"supportsTriggerParameterHintsCommand\"),\n\t\tpullDiagnostics: params.capabilities.textDocument?.diagnostic?.relatedDocumentSupport === true,\n\t\tdiagnosticsRefresh: params.capabilities.workspace?.diagnostics?.refreshSupport === true\n\t};\n}\nfunction supportsCompletionCommand(options, capability) {\n\tif (typeof options !== \"object\" || options === null || !(\"completion\" in options)) return false;\n\tconst completion = options.completion;\n\tif (typeof completion !== \"object\" || completion === null) return false;\n\treturn capability === \"supportsTriggerSuggestCommand\" ? \"supportsTriggerSuggestCommand\" in completion && completion.supportsTriggerSuggestCommand === true : \"supportsTriggerParameterHintsCommand\" in completion && completion.supportsTriggerParameterHintsCommand === true;\n}\nfunction resolveRootPath(params) {\n\tconst workspaceFolder = params.workspaceFolders?.[0];\n\tif (workspaceFolder !== void 0) return fileURLToPath(workspaceFolder.uri);\n\tif (params.rootUri) return fileURLToPath(params.rootUri);\n\tif (params.rootPath) return params.rootPath;\n\treturn process.cwd();\n}\n//#endregion\n//#region src/stdio-transport.ts\n/**\n* `objectMode: false` is what makes this a byte stream rather than a stream of\n* whatever objects the host yielded: it converts each chunk to a `Buffer`.\n* `vscode-jsonrpc` needs that — it slices header blocks with\n* `Buffer.from(chunk, 0, length)`, and on a plain `Uint8Array` those arguments\n* are ignored, so it reads the whole chunk as one header block and rejects the\n* message.\n*/\nfunction byteInputStream(stdin) {\n\treturn Readable.from(stdin, { objectMode: false });\n}\n/**\n* Bridges the byte stream `vscode-jsonrpc` writes to the text sink a host\n* hands over.\n*\n* LSP declares each message's `Content-Length` in bytes, so a UTF-8 sequence\n* that arrives split across two writes has to be held back until it is whole:\n* decoding half of one yields a replacement character, which is a different\n* number of bytes than the header promised. `StreamMessageWriter` writes each\n* body in one call and Node never splits a chunk given to `_write`, so the\n* decoder holds nothing back in practice — it is here because the contract\n* this satisfies is \"bytes in, text out\", and a writer that chunks its bodies\n* would otherwise corrupt every multi-byte message silently.\n*\n* Back-pressure is dropped: `TextSink.write` returns nothing to wait on, so\n* every write reports flushed the moment the sink has taken it. A client that\n* stops reading grows the host's own output queue instead of slowing the\n* server down, and the diagnostics for a large schema are not small. Fixing it\n* needs a sink that reports when it drained.\n*/\nfunction textOutputStream(stdout) {\n\tconst decoder = new StringDecoder(\"utf8\");\n\treturn new Writable({\n\t\twrite(chunk, _encoding, callback) {\n\t\t\tstdout.write(decoder.write(chunk));\n\t\t\tcallback();\n\t\t},\n\t\tfinal(callback) {\n\t\t\tconst pending = decoder.end();\n\t\t\tif (pending !== \"\") stdout.write(pending);\n\t\t\tcallback();\n\t\t}\n\t});\n}\n//#endregion\n//#region src/console-capture.ts\n/**\n* Sends everything written through the global `console` to the host's stderr\n* for the length of the run, and returns the undo.\n*\n* The client owns stdout: anything on it that is not a `Content-Length` frame\n* desynchronises the client for good. `console.log` and friends write straight\n* to the process's own stdout, so one call from anywhere in the dependency\n* graph — resolving a project's config reaches c12 and jiti — corrupts the\n* protocol. `vscode-languageserver/node` redirects the console for exactly\n* this reason when it takes stdio off `process.argv`; over injected streams\n* that never runs, so the redirect happens here.\n*\n* A dependency that writes to `process.stdout` directly still reaches the\n* client. Nothing short of replacing the process's own descriptor covers that,\n* and only the host owns the process.\n*/\nfunction captureConsole(stderr) {\n\tconst host = globalThis.console;\n\tconst sink = textOutputStream(stderr);\n\tglobalThis.console = new Console({\n\t\tstdout: sink,\n\t\tstderr: sink\n\t});\n\treturn () => {\n\t\tglobalThis.console = host;\n\t};\n}\n//#endregion\n//#region src/stream-server.ts\n/**\n* How long the conversation may stand completely still before a message the\n* connection took off the reader but never dispatched is written off. It\n* answers a cancellation itself without telling anyone, so the count of\n* messages awaiting dispatch can be left standing; every other route decrements\n* it. Any activity restarts the clock, so this delays the exit rather than\n* cutting a reply short.\n*/\nconst stalledDispatchGraceMs = 50;\n/**\n* How long a host abort lets in-flight work drain before the run settles\n* regardless. The host has already decided to stop, so a handler that never\n* settles — or work that never goes idle — must not hold the exit code back\n* forever; it only gets this long to finish cleanly.\n*/\nconst abortDrainDeadlineMs = 2e3;\n/**\n* How often the client's process id is polled when the host handed one over.\n* The same cadence `vscode-languageserver/node` uses for its own watch.\n*/\nconst clientProcessPollMs = 3e3;\nfunction processAlive(pid) {\n\ttry {\n\t\tprocess.kill(pid, 0);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n/**\n* Runs the server over the host's streams and resolves with the exit code the\n* client's departure implies. The host owns the process, so nothing here ends\n* it; every route out settles the promise instead.\n*/\nfunction runServerOverStreams(streams) {\n\tconst input = byteInputStream(streams.stdin);\n\tconst inputMessages = new StreamMessageReader(input);\n\tconst outputMessages = new StreamMessageWriter(textOutputStream(streams.stdout));\n\tconst releaseConsole = captureConsole(streams.stderr);\n\treturn new Promise((resolve) => {\n\t\tlet settled = false;\n\t\t/**\n\t\t* Messages the connection is handling and replies it is writing. A request\n\t\t* handler's dispatch covers everything it awaits and the write of its\n\t\t* reply, so this stays above zero for as long as the client is owed\n\t\t* anything.\n\t\t*/\n\t\tlet inFlight = 0;\n\t\t/** Messages decoded off the stream that the connection has not started. */\n\t\tlet awaitingDispatch = 0;\n\t\tlet lastActivity = Date.now();\n\t\tlet departure;\n\t\tlet idleCheck;\n\t\tlet abortDeadline;\n\t\tlet clientWatch;\n\t\tfunction settle(code) {\n\t\t\tif (settled) return;\n\t\t\tsettled = true;\n\t\t\tif (idleCheck !== void 0) clearTimeout(idleCheck);\n\t\t\tif (abortDeadline !== void 0) clearTimeout(abortDeadline);\n\t\t\tif (clientWatch !== void 0) clearInterval(clientWatch);\n\t\t\treleaseConsole();\n\t\t\tserver.dispose();\n\t\t\tinput.destroy();\n\t\t\tresolve(code);\n\t\t}\n\t\tfunction moved() {\n\t\t\tlastActivity = Date.now();\n\t\t\tcheckIdle();\n\t\t}\n\t\t/**\n\t\t* Settles once nothing is left in flight. The client's departure is not the\n\t\t* end of the work: everything already read is queued, and a handler that\n\t\t* awaits — resolving a project reads the filesystem — has its reply written\n\t\t* turns later.\n\t\t*/\n\t\tfunction settleOnceIdle(code) {\n\t\t\tdeparture ??= code;\n\t\t\tcheckIdle();\n\t\t}\n\t\tfunction checkIdle() {\n\t\t\tif (settled || departure === void 0 || idleCheck !== void 0) return;\n\t\t\tidleCheck = setTimeout(() => {\n\t\t\t\tidleCheck = void 0;\n\t\t\t\tif (settled || departure === void 0) return;\n\t\t\t\tif (inFlight > 0) return;\n\t\t\t\tif (awaitingDispatch === 0 || Date.now() - lastActivity >= stalledDispatchGraceMs) {\n\t\t\t\t\tsettle(departure());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcheckIdle();\n\t\t\t}, 1);\n\t\t}\n\t\t/** LSP reserves 0 for a client that asked to shut down before leaving. */\n\t\tfunction departureCode() {\n\t\t\treturn watchDog.shutdownReceived ? 0 : 1;\n\t\t}\n\t\tconst reader = {\n\t\t\tonError: inputMessages.onError,\n\t\t\tonClose: inputMessages.onClose,\n\t\t\tonPartialMessage: inputMessages.onPartialMessage,\n\t\t\tlisten: (callback) => inputMessages.listen((message) => {\n\t\t\t\tawaitingDispatch += 1;\n\t\t\t\tmoved();\n\t\t\t\tcallback(message);\n\t\t\t}),\n\t\t\tdispose: () => inputMessages.dispose()\n\t\t};\n\t\tconst writer = {\n\t\t\tonError: outputMessages.onError,\n\t\t\tonClose: outputMessages.onClose,\n\t\t\twrite: (message) => {\n\t\t\t\tinFlight += 1;\n\t\t\t\tmoved();\n\t\t\t\treturn outputMessages.write(message).finally(() => {\n\t\t\t\t\tinFlight -= 1;\n\t\t\t\t\tmoved();\n\t\t\t\t});\n\t\t\t},\n\t\t\tend: () => outputMessages.end(),\n\t\t\tdispose: () => outputMessages.dispose()\n\t\t};\n\t\tconst watchDog = {\n\t\t\tshutdownReceived: false,\n\t\t\tinitialize: () => void 0,\n\t\t\texit: (code) => settleOnceIdle(() => code)\n\t\t};\n\t\tconst server = createServer(createConnection((logger) => createProtocolConnection(reader, writer, logger, { messageStrategy: { handleMessage: (message, next) => {\n\t\t\tawaitingDispatch -= 1;\n\t\t\tinFlight += 1;\n\t\t\tmoved();\n\t\t\treturn Promise.resolve(next(message)).finally(() => {\n\t\t\t\tinFlight -= 1;\n\t\t\t\tmoved();\n\t\t\t});\n\t\t} } }), watchDog, ProposedFeatures.all));\n\t\tinputMessages.onClose(() => settleOnceIdle(departureCode));\n\t\tinputMessages.onError((error) => {\n\t\t\tstreams.stderr.write(`Language server transport error: ${messageOf(error)}\\n`);\n\t\t\tsettleOnceIdle(() => 1);\n\t\t});\n\t\tconst clientProcessId = streams.clientProcessId;\n\t\tif (clientProcessId !== void 0) {\n\t\t\tconst settleIfClientGone = () => {\n\t\t\t\tif (!processAlive(clientProcessId)) settle(departureCode());\n\t\t\t};\n\t\t\tclientWatch = setInterval(settleIfClientGone, clientProcessPollMs);\n\t\t\tclientWatch.unref();\n\t\t\tsettleIfClientGone();\n\t\t}\n\t\tfunction settleOnAbort() {\n\t\t\tsettleOnceIdle(departureCode);\n\t\t\tabortDeadline ??= setTimeout(() => settle(departureCode()), abortDrainDeadlineMs);\n\t\t\tabortDeadline.unref();\n\t\t}\n\t\tconst hostShutdown = streams.signal;\n\t\tif (hostShutdown?.aborted === true) settleOnAbort();\n\t\telse hostShutdown?.addEventListener(\"abort\", settleOnAbort, { once: true });\n\t});\n}\nfunction messageOf(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n//#endregion\n//#region src/start-server.ts\nfunction startServer(streams) {\n\tif (streams === void 0) {\n\t\tcreateServer(createConnection$1(ProposedFeatures$1.all));\n\t\treturn;\n\t}\n\treturn runServerOverStreams(streams);\n}\n//#endregion\nexport { ParseDiagnosticSeverity, createServer, mapParseDiagnostics, startServer };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAM,0BAA0B;CAC/B,OAAO;CACP,SAAS;CACT,aAAa;CACb,MAAM;AACP;AACA,SAAS,oBAAoB,aAAa;CACzC,OAAO,YAAY,KAAK,gBAAgB;EACvC,OAAO,WAAW;EAClB,SAAS,WAAW;EACpB,MAAM,WAAW;EACjB,UAAU,wBAAwB;CACnC,EAAE;AACH;AACA,MAAM,qBAAqB;CAC1B,OAAO;EACN,MAAM;EACN,WAAW;CACZ;CACA,KAAK;EACJ,MAAM;EACN,WAAW;CACZ;AACD;AACA,SAAS,yBAAyB,YAAY,YAAY;CACzD,OAAO;EACN,OAAO,WAAW,SAAS,KAAK,IAAI,qBAAqB,WAAW,eAAe,WAAW,IAAI;EAClG,SAAS,WAAW;EACpB,MAAM,WAAW;EACjB,UAAU,WAAW,aAAa,YAAY,wBAAwB,UAAU,wBAAwB;CACzG;AACD;AAGA,SAAS,aAAa,QAAQ;CAC7B,MAAM,SAAS,OAAO,UAAU;CAChC,OAAO,QAAQ,WAAW,SAAS,OAAO,WAAW,KAAK;AAC3D;AACA,eAAe,oBAAoB,QAAQ,UAAU;CACpD,MAAM,YAAY,aAAa,MAAM,IAAI,OAAO,UAAU,OAAO,SAAS,KAAK,EAAA,EAAI,IAAI,gBAAgB;CACvG,MAAM,WAAW,MAAM,qBAAqB,QAAQ;CACpD,MAAM,UAAU,kBAAkB;CAClC,MAAM,aAAa,SAAS,KAAK,SAAS,iBAAiB,cAAc,MAAM,EAAE,QAAQ,CAAC,C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