@prisma/orm-framework 8.0.0-rc.20-dev.14 → 8.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-C9wgJCNs.d.mts → authoring-C2UAuRfN.d.mts} +4 -14
- package/dist/{authoring-C9wgJCNs.d.mts.map → authoring-C2UAuRfN.d.mts.map} +1 -1
- package/dist/{authoring-BNzxszPO.mjs → authoring-CuGQP7_1.mjs} +4 -26
- package/dist/authoring-CuGQP7_1.mjs.map +1 -0
- package/dist/{binder-DJRPMfsD-D7PEvJOJ.d.mts → binder-BszqDG1t-icu83_4f.d.mts} +16 -12
- package/dist/{binder-DJRPMfsD-D7PEvJOJ.d.mts.map → binder-BszqDG1t-icu83_4f.d.mts.map} +1 -1
- package/dist/{components-Cl5lB_Iw.d.mts → components-BenCVFk4.d.mts} +3 -3
- package/dist/{components-Cl5lB_Iw.d.mts.map → components-BenCVFk4.d.mts.map} +1 -1
- package/dist/components.d.mts +10 -10
- package/dist/components.mjs +4 -4
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__components.d.mts +3 -3
- package/dist/components__control.d.mts +3 -3
- package/dist/components__control.mjs +2 -2
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/{config-types-j3Elycru.d.mts → config-types-BJ79TZCl.d.mts} +5 -5
- package/dist/{config-types-j3Elycru.d.mts.map → config-types-BJ79TZCl.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +19 -54
- package/dist/contract-authoring.d.mts.map +1 -1
- package/dist/contract-authoring.mjs +15 -28
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/control-B3OS8JEw.d.mts +1 -0
- package/dist/{control-BeXOxtXA-DRX60Yu3.d.mts → control-BeXOxtXA-BU8y-LiK.d.mts} +2 -2
- package/dist/{control-BeXOxtXA-DRX60Yu3.d.mts.map → control-BeXOxtXA-BU8y-LiK.d.mts.map} +1 -1
- package/dist/{control-Df-HE5e4.d.mts → control-CS1uqJj_.d.mts} +8 -9
- package/dist/{control-Df-HE5e4.d.mts.map → control-CS1uqJj_.d.mts.map} +1 -1
- package/dist/{control-DKOWXGUq.mjs → control-Dn1CMH6R.mjs} +8 -16
- package/dist/control-Dn1CMH6R.mjs.map +1 -0
- package/dist/{control-MllEQmML-tXi_WAy3.mjs → control-MllEQmML-BdhmgQVr.mjs} +2 -2
- package/dist/{control-MllEQmML-tXi_WAy3.mjs.map → control-MllEQmML-BdhmgQVr.mjs.map} +1 -1
- package/dist/{declarations-BgUAq1RG-Dz_-EI1Q.mjs → declarations-BgUAq1RG-DPNkVezv.mjs} +2 -2
- package/dist/{declarations-BgUAq1RG-Dz_-EI1Q.mjs.map → declarations-BgUAq1RG-DPNkVezv.mjs.map} +1 -1
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-D5tvAHf4.d.mts → execution-BPJbNttJ.d.mts} +2 -2
- package/dist/{execution-D5tvAHf4.d.mts.map → execution-BPJbNttJ.d.mts.map} +1 -1
- package/dist/{execution-CgR7dFMU.d.mts → execution-BWR_z8XI.d.mts} +2 -2
- package/dist/{execution-CgR7dFMU.d.mts.map → execution-BWR_z8XI.d.mts.map} +1 -1
- package/dist/{execution-DMsDYKSr.mjs → execution-GInmnTZ9.mjs} +2 -2
- package/dist/{execution-DMsDYKSr.mjs.map → execution-GInmnTZ9.mjs.map} +1 -1
- package/dist/{expressions-CMQzbnHk-BL2zN0Iv.mjs → expressions-CMQzbnHk-FYhlr1aG.mjs} +2 -2
- package/dist/{expressions-CMQzbnHk-BL2zN0Iv.mjs.map → expressions-CMQzbnHk-FYhlr1aG.mjs.map} +1 -1
- package/dist/{framework-authoring-DSqNuI8w-BMQDwpgF.d.mts → framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts} +17 -97
- package/dist/framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts.map +1 -0
- package/dist/{framework-components-BhbsOiJc-BpDfGsqn.d.mts → framework-components-BqHA1V92-D9j8uXa-.d.mts} +3 -3
- package/dist/{framework-components-BhbsOiJc-BpDfGsqn.d.mts.map → framework-components-BqHA1V92-D9j8uXa-.d.mts.map} +1 -1
- package/dist/ids.d.mts +3 -98
- package/dist/ids.d.mts.map +1 -1
- package/dist/ids.mjs +12 -52
- package/dist/ids.mjs.map +1 -1
- package/dist/{migration-DpdvEAEC.mjs → migration-D57w8Uxv.mjs} +2 -2
- package/dist/{migration-DpdvEAEC.mjs.map → migration-D57w8Uxv.mjs.map} +1 -1
- package/dist/{migration-Ox7HWa_t.d.mts → migration-Dk1sYIvs.d.mts} +2 -2
- package/dist/{migration-Ox7HWa_t.d.mts.map → migration-Dk1sYIvs.d.mts.map} +1 -1
- package/dist/{parse-bZgfjovA-BNgYhylT.mjs → parse-bZgfjovA-gD3hVy3X.mjs} +3 -3
- package/dist/{parse-bZgfjovA-BNgYhylT.mjs.map → parse-bZgfjovA-gD3hVy3X.mjs.map} +1 -1
- package/dist/{parse-djL5wker-sY18Mt5K.d.mts → parse-djL5wker-DnMlKOii.d.mts} +6 -6
- package/dist/{parse-djL5wker-sY18Mt5K.d.mts.map → parse-djL5wker-DnMlKOii.d.mts.map} +1 -1
- package/dist/{psl-ast-C8W7AM1f-DYtFq1nP.d.mts → psl-ast-0oMzInxd-Nx9cHmcc.d.mts} +3 -3
- package/dist/{psl-ast-C8W7AM1f-DYtFq1nP.d.mts.map → psl-ast-0oMzInxd-Nx9cHmcc.d.mts.map} +1 -1
- package/dist/psl-ast-CFQfCJeM.d.mts +2 -0
- package/dist/psl-parser.d.mts +12 -12
- package/dist/psl-parser.mjs +17 -55
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +3 -3
- package/dist/psl-parser__interpret.d.mts +30 -30
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +110 -298
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +3 -3
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts +133 -0
- package/dist/temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts.map +1 -0
- package/dist/{temporal-presets-5TK1pTYJ-DmhrnMP1.mjs → temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs} +29 -281
- package/dist/temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs.map +1 -0
- package/dist/{type-constructor-calls-BLf-HsFy-CHiXyVEH.mjs → type-constructor-calls-CNd1Xlw2-DjyX5mKn.mjs} +52 -7
- package/dist/type-constructor-calls-CNd1Xlw2-DjyX5mKn.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-BNzxszPO.mjs.map +0 -1
- package/dist/control-CV9doMHb.d.mts +0 -1
- package/dist/control-DKOWXGUq.mjs.map +0 -1
- package/dist/framework-authoring-DSqNuI8w-BMQDwpgF.d.mts.map +0 -1
- package/dist/psl-ast-sZ1tAYRc.d.mts +0 -2
- package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs.map +0 -1
- package/dist/temporal-presets-De4oKG36-DlGYQgF1.d.mts +0 -258
- package/dist/temporal-presets-De4oKG36-DlGYQgF1.d.mts.map +0 -1
- package/dist/type-constructor-calls-BLf-HsFy-CHiXyVEH.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/temporal-type-aliases-D98ei6Fj.mjs"],"sourcesContent":["import { t as assembleDataTypes } from \"./data-type-V6mcDhcG.mjs\";\nimport { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { tsQuotedTextSource, tsTemplateText } from \"@internal/ts-render\";\nimport { invariant } from \"@internal/utils/assertions\";\nimport { notOk, ok } from \"@internal/utils/result\";\n//#region src/shared/framework-authoring.ts\n/** The descriptor kinds a `type` namespace holds as leaves. */\nconst AUTHORING_TYPE_DESCRIPTOR_KINDS = [\"typeConstructor\", \"typeAlias\"];\nconst AUTHORING_WARNING_BATCH_THRESHOLD = 5;\n/**\n* Emits collected authoring warnings once per build, grouped by `code`:\n* a group at or below the threshold itemizes every `message`; above it,\n* one summary — `\"<count> <summary>\"` followed by the `item` lines — so\n* a build with many hits of one kind does not wall-of-text, and warnings\n* of different codes never batch into each other's summary.\n*/\nfunction flushAuthoringWarnings(warnings) {\n\tconst groups = /* @__PURE__ */ new Map();\n\tfor (const warning of warnings) {\n\t\tconst key = JSON.stringify([warning.code, warning.summary]);\n\t\tconst group = groups.get(key) ?? [];\n\t\tgroup.push(warning);\n\t\tgroups.set(key, group);\n\t}\n\tfor (const group of groups.values()) {\n\t\tconst first = group[0];\n\t\tif (first === void 0) continue;\n\t\tif (group.length <= AUTHORING_WARNING_BATCH_THRESHOLD) {\n\t\t\tfor (const warning of group) process.emitWarning(warning.message, { code: warning.code });\n\t\t\tcontinue;\n\t\t}\n\t\tprocess.emitWarning(`${group.length} ${first.summary}\\n${group.map((w) => ` - ${w.item}`).join(\"\\n\")}`, { code: first.code });\n\t}\n}\nfunction classifyEnumMemberType(values) {\n\tlet sawText = false;\n\tlet sawInt = false;\n\tfor (const key of Object.keys(values)) {\n\t\tconst value = values[key];\n\t\tif (value === void 0 || typeof value === \"string\") sawText = true;\n\t\telse if (typeof value === \"number\" && Number.isInteger(value)) sawInt = true;\n\t\telse return null;\n\t}\n\tif (sawText && sawInt) return null;\n\tif (sawText) return \"text\";\n\tif (sawInt) return \"int\";\n\treturn null;\n}\n/**\n* Resolves the codec id for an `enum` block. When `@@type` is absent, the codec\n* is inferred from the members via {@link classifyEnumMemberType}; otherwise the\n* explicit `@@type(\"codec\")` argument is parsed. Pushes the appropriate\n* diagnostic and returns `undefined` when neither yields a codec. `codecSpan` is\n* the span downstream codec-validation diagnostics should anchor to. Shared by\n* every family's enum factory so inference and the explicit path stay identical.\n*/\nfunction resolveEnumCodecId(block, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst typeAttr = block.attributes[\"type\"];\n\tif (typeAttr === void 0) {\n\t\tconst inferredKind = classifyEnumMemberType(block.values);\n\t\tif (inferredKind === null || ctx.enumInferenceCodecs === void 0) {\n\t\t\tctx.diagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_CANNOT_INFER_TYPE\",\n\t\t\t\tmessage: `cannot infer @@type for enum \"${block.name}\"; add an explicit @@type(...)`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.span\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn {\n\t\t\tcodecId: ctx.enumInferenceCodecs[inferredKind],\n\t\t\tcodecSpan: block.span\n\t\t};\n\t}\n\tconst codecId = typeAttr.args[\"codecId\"];\n\tinvariant(typeof codecId === \"string\", \"@@type on an enum block parses one string argument\");\n\treturn {\n\t\tcodecId,\n\t\tcodecSpan: typeAttr.argSpans?.[\"codecId\"] ?? typeAttr.span\n\t};\n}\n/** Refuses the `authoring.field` key, which held field presets before Prisma 8 removed them. A component built against the old types would otherwise lose its presets silently. */\nfunction assertNoAuthoringFieldNamespace(componentId, authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"field\")) return;\n\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Component \"${componentId}\" contributes authoring.field, which Prisma 8 removed with field presets. Contribute a type alias (kind: 'typeAlias') or a type constructor in authoring.type.`);\n}\nfunction isAuthoringArgRef(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"arg\") return false;\n\tconst { index } = value;\n\treturn typeof index === \"number\" && Number.isInteger(index) && index >= 0;\n}\nfunction isAuthoringTemplateRecord(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction isAuthoringTypeConstructorDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeConstructor\";\n}\nfunction isAuthoringTypeAliasDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"typeAlias\";\n}\n/** Whether `value` is a leaf of a `type` namespace: a type constructor or a type alias. */\nfunction isAuthoringTypeDescriptor(value) {\n\treturn isAuthoringTypeConstructorDescriptor(value) || isAuthoringTypeAliasDescriptor(value);\n}\n/** The type constructor at `path` in the contributions' type namespace, or `undefined` when none is there. */\nfunction getAuthoringTypeConstructor(contributions, path) {\n\tlet current = contributions?.type;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringTypeConstructorDescriptor(current) ? current : void 0;\n}\nfunction isAuthoringEntityTypeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"entity\";\n}\nfunction isAuthoringPslBlockDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"pslBlock\";\n}\nfunction isAuthoringModelAttributeDescriptor(value) {\n\treturn \"kind\" in value && value.kind === \"modelAttribute\";\n}\nfunction isCopyableNamespaceObject(value) {\n\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return false;\n\tconst proto = Object.getPrototypeOf(value);\n\treturn proto === Object.prototype || proto === null;\n}\nfunction isWellFormedDescriptor(value, descriptorKinds) {\n\tif (typeof value !== \"object\" || value === null || !(\"kind\" in value)) return false;\n\tconst kind = value.kind;\n\tif (typeof kind !== \"string\" || !(typeof descriptorKinds === \"string\" ? [descriptorKinds] : descriptorKinds).includes(kind)) return false;\n\tswitch (kind) {\n\t\tcase \"typeConstructor\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\treturn typeof output === \"object\" && output !== null;\n\t\t}\n\t\tcase \"typeAlias\": {\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null || !(\"type\" in output)) return false;\n\t\t\treturn typeof output.type === \"object\" && output.type !== null;\n\t\t}\n\t\tcase \"entity\": {\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\") return false;\n\t\t\tif (value.discriminator.length === 0) return false;\n\t\t\tif (!(\"output\" in value)) return false;\n\t\t\tconst output = value.output;\n\t\t\tif (typeof output !== \"object\" || output === null) return false;\n\t\t\tconst factory = \"factory\" in output ? output.factory : void 0;\n\t\t\tconst template = \"template\" in output ? output.template : void 0;\n\t\t\treturn typeof factory === \"function\" || template !== void 0;\n\t\t}\n\t\tcase \"pslBlock\": {\n\t\t\tif (!(\"keyword\" in value) || typeof value.keyword !== \"string\" || value.keyword.length === 0) return false;\n\t\t\tif (!(\"discriminator\" in value) || typeof value.discriminator !== \"string\" || value.discriminator.length === 0) return false;\n\t\t\tif (!(\"name\" in value)) return false;\n\t\t\tconst name = value.name;\n\t\t\tif (typeof name !== \"object\" || name === null) return false;\n\t\t\tif (!(\"required\" in name) || typeof name.required !== \"boolean\") return false;\n\t\t\tif (!(\"spec\" in value) || typeof value.spec !== \"function\") return false;\n\t\t\tif (!(\"attributes\" in value) || value.attributes === void 0) return true;\n\t\t\tconst attributes = value.attributes;\n\t\t\tif (typeof attributes !== \"object\" || attributes === null || Array.isArray(attributes)) return false;\n\t\t\treturn Object.values(attributes).every((factory) => typeof factory === \"function\");\n\t\t}\n\t\tcase \"modelAttribute\":\n\t\t\tif (!(\"attribute\" in value) || typeof value.attribute !== \"string\" || value.attribute.length === 0) return false;\n\t\t\tif (!(\"spec\" in value)) return false;\n\t\t\treturn \"lower\" in value && typeof value.lower === \"function\";\n\t\tdefault: return false;\n\t}\n}\nfunction deepCopyNamespace(source, descriptorKind) {\n\tconst copy = {};\n\tfor (const [key, value] of Object.entries(source)) copy[key] = isCopyableNamespaceObject(value) && !isWellFormedDescriptor(value, descriptorKind) ? deepCopyNamespace(value, descriptorKind) : value;\n\treturn copy;\n}\n/**\n* Merges `source` into `target` recursively at the descriptor-namespace\n* level. `descriptorKind` is the `kind` value, or values, ('typeConstructor'\n* and 'typeAlias', 'entity', or 'pslBlock') that identifies a descriptor\n* (terminal merge point; same-path registrations across components are\n* reported as duplicates) as opposed to a sub-namespace (recursion target).\n*\n* Path segments are validated against prototype-pollution names\n* (`__proto__`, `constructor`, `prototype`). A value that is neither a\n* recognized leaf nor a plain object — e.g. a malformed descriptor\n* where the canonical leaf guard rejected it for missing `output` —\n* is reported as an invalid contribution rather than recursed into,\n* which would either silently mangle state or infinite-loop on\n* primitive properties.\n*\n* Within-registry duplicate detection is this walker's job;\n* cross-registry detection runs separately via\n* `assertNoCrossRegistryCollisions` after merging completes.\n*/\nfunction mergeAuthoringNamespaces(target, source, path, descriptorKind, label) {\n\tconst assertSafePath = (currentPath) => {\n\t\tconst blockedSegment = currentPath.find((segment) => segment === \"__proto__\" || segment === \"constructor\" || segment === \"prototype\");\n\t\tif (blockedSegment) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Helper path segments must not use \"${blockedSegment}\".`);\n\t};\n\tfor (const [key, sourceValue] of Object.entries(source)) {\n\t\tconst currentPath = [...path, key];\n\t\tassertSafePath(currentPath);\n\t\tconst hasExistingValue = Object.hasOwn(target, key);\n\t\tconst existingValue = hasExistingValue ? target[key] : void 0;\n\t\tif (!hasExistingValue) {\n\t\t\ttarget[key] = isCopyableNamespaceObject(sourceValue) && !isWellFormedDescriptor(sourceValue, descriptorKind) ? deepCopyNamespace(sourceValue, descriptorKind) : sourceValue;\n\t\t\tcontinue;\n\t\t}\n\t\tconst existingIsLeaf = isWellFormedDescriptor(existingValue, descriptorKind);\n\t\tconst sourceIsLeaf = isWellFormedDescriptor(sourceValue, descriptorKind);\n\t\tif (existingIsLeaf || sourceIsLeaf) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring ${label} helper \"${currentPath.join(\".\")}\". Helper names must be unique across composed packs.`);\n\t\tif (!isCopyableNamespaceObject(existingValue) || !isCopyableNamespaceObject(sourceValue)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring ${label} helper \"${currentPath.join(\".\")}\". Expected a sub-namespace object or a recognized descriptor; received a malformed value.`);\n\t\tmergeAuthoringNamespaces(existingValue, sourceValue, currentPath, descriptorKind, label);\n\t}\n}\nconst ATTRIBUTE_SPEC_LEVELS = [\"model\", \"field\"];\nfunction mergeAuthoringAttributeSpecs(target, source, contributedBy, owners) {\n\tconst invalidContribution = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs contribution from descriptor \"${contributedBy}\". ${detail}`);\n\tif (!isCopyableNamespaceObject(source)) throw invalidContribution(\"Expected a record carrying a \\\"model\\\" and a \\\"field\\\" level.\");\n\tfor (const level of ATTRIBUTE_SPEC_LEVELS) {\n\t\tconst contributed = source[level];\n\t\tif (!isCopyableNamespaceObject(contributed)) throw invalidContribution(`The \"${level}\" level must be a record of spec factories keyed by attribute name.`);\n\t\tfor (const [attribute, factory] of Object.entries(contributed)) {\n\t\t\tconst entryPath = `${level}.${attribute}`;\n\t\t\tconst invalidEntry = (detail) => runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring attributeSpecs entry \"${entryPath}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\t\tif (attribute === \"__proto__\" || attribute === \"constructor\" || attribute === \"prototype\") throw invalidEntry(`Attribute names must not use \"${attribute}\".`);\n\t\t\tif (typeof factory !== \"function\") throw invalidEntry(\"Each entry must be a spec factory function.\");\n\t\t\tconst existingOwner = owners.get(entryPath);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate authoring attributeSpecs entry \"${entryPath}\". Descriptor \"${contributedBy}\" conflicts with \"${existingOwner}\". Each attribute name may be claimed once per level.`);\n\t\t\towners.set(entryPath, contributedBy);\n\t\t\ttarget[level][attribute] = factory;\n\t\t}\n\t}\n}\n/**\n* Collects the full dotted paths of every well-formed descriptor of\n* `descriptorKind` in a raw contribution tree, using the same boundary\n* classification as {@link mergeAuthoringNamespaces}. Lets assembly-level\n* callers attribute each contributed path to its contributing component\n* before merging, so a same-path collision can be reported naming both\n* contributors.\n*/\nfunction collectContributedDescriptorPaths(namespace, descriptorKind, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isWellFormedDescriptor(value, descriptorKind)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (isCopyableNamespaceObject(value)) paths.push(...collectContributedDescriptorPaths(value, descriptorKind, currentPath));\n\t}\n\treturn paths;\n}\n/**\n* Derives the scalar view of an assembled authoring type namespace: every\n* **top-level** type constructor that is instantiable with an empty argument\n* list — all declared args optional and no entity-ref argument. A bare type\n* name `T` in a schema is semantically the zero-arg instantiation `T()`, so\n* each entry is exactly what that call produces (defaulted template values\n* applied, absent optional-arg typeParams keys omitted). Constructors\n* registered under a namespace segment, constructors with required args, and\n* entity-ref constructors are not scalars and are excluded.\n*\n* Eligibility needs no template inspection: templates that cannot resolve\n* for their legal call shapes are rejected at the composition boundary by\n* {@link assertResolvableTypeConstructorTemplates}, so the zero-arg\n* instantiation below cannot fail for an eligible constructor.\n*/\nfunction collectScalarTypeConstructors(namespace) {\n\tconst result = /* @__PURE__ */ new Map();\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) continue;\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tif (value.args?.some((arg) => arg.optional !== true)) continue;\n\t\tresult.set(name, instantiateAuthoringTypeConstructor(value, []));\n\t}\n\treturn result;\n}\nfunction visitTemplateArgRefs(template, visit) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) {\n\t\tvisit(template);\n\t\treturn;\n\t}\n\tif (Array.isArray(template)) {\n\t\tfor (const value of template) visitTemplateArgRefs(value, visit);\n\t\treturn;\n\t}\n\tif (typeof template === \"object\" && template !== null) for (const value of Object.values(template)) visitTemplateArgRefs(value, visit);\n}\n/**\n* Boundary validation for a contributed authoring type namespace, called\n* per contributing component at assembly (which supplies `contributedBy`\n* for attribution). Rejects what the types cannot express — entity-ref\n* constructors are skipped (their output derives from the referenced\n* entity): every `typeParams` arg-ref must point at a declared argument\n* index.\n*/\nfunction assertResolvableTypeConstructorTemplates(namespace, contributedBy, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, name];\n\t\tif (isAuthoringTypeAliasDescriptor(value)) {\n\t\t\tfor (const [key, template] of Object.entries(value.output.type.typeParams ?? {})) visitTemplateArgRefs(template, () => {\n\t\t\t\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring type alias \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". output.type.typeParams.${key} references an argument, but a type alias takes none. Write the value itself.`);\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (!isAuthoringTypeConstructorDescriptor(value)) {\n\t\t\tassertResolvableTypeConstructorTemplates(value, contributedBy, currentPath);\n\t\t\tcontinue;\n\t\t}\n\t\tif (value.entityRefArg !== void 0) continue;\n\t\tconst args = value.args ?? [];\n\t\tconst invalid = (detail) => /* @__PURE__ */ new Error(`Invalid authoring type constructor \"${currentPath.join(\".\")}\" contributed by descriptor \"${contributedBy}\". ${detail}`);\n\t\tfor (const [key, template] of Object.entries(value.output.typeParams ?? {})) visitTemplateArgRefs(template, (ref) => {\n\t\t\tif (args[ref.index] === void 0) throw invalid(`output.typeParams.${key} references argument ${ref.index}, but the constructor declares ${args.length} argument(s). Declare the argument or correct the reference index.`);\n\t\t});\n\t}\n}\nfunction collectDescriptorPaths(namespace, isLeaf, path = []) {\n\tconst paths = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tpaths.push(currentPath.join(\".\"));\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) paths.push(...collectDescriptorPaths(value, isLeaf, currentPath));\n\t}\n\treturn paths;\n}\nfunction collectDescriptorEntries(namespace, isLeaf, descriptorKind, label, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, descriptorKind)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tif (value.discriminator.length > 0) entries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif ((record[\"kind\"] !== void 0 || record[\"keyword\"] !== void 0 || record[\"discriminator\"] !== void 0) && !isLeaf(value)) {\n\t\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring ${label} contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the ${label} descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\t}\n\t\t\tentries.push(...collectDescriptorEntries(value, isLeaf, descriptorKind, label, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two or more entries in the same namespace share a key. A\n* duplicate key makes dispatch ambiguous — the caller's lookup dispatches by\n* this key, so one entry would silently shadow the other. Catch duplicates\n* before building any dispatch map.\n*\n* `label` (e.g. `'pslBlock'`, `'entityType'`) names which namespace the\n* duplicate was found in and is carried in the structured error metadata;\n* the key itself is always called `key` in both the message and the\n* metadata, since what it semantically represents (a discriminator for\n* `entityType`, the parser's dispatch keyword for `pslBlock`) is the\n* caller's concern, not this function's.\n*/\nfunction assertUniqueDiscriminators(entries, label) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: key } of entries) {\n\t\tconst existing = seen.get(key);\n\t\tif (existing !== void 0) throw runtimeError(\"RUNTIME.DUPLICATE_AUTHORING_DISCRIMINATOR\", `Duplicate ${label} key \"${key}\" registered at both \"${existing}\" and \"${path}\". Each ${label} contribution must use a unique key.`, {\n\t\t\tlabel,\n\t\t\tkey,\n\t\t\texistingPath: existing,\n\t\t\tpath\n\t\t});\n\t\tseen.set(key, path);\n\t}\n}\nfunction collectPslBlockDescriptorEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringPslBlockDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"pslBlock\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.discriminator,\n\t\t\t\tkeyword: value.keyword\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tconst hasKind = record[\"kind\"] === \"pslBlock\";\n\t\t\tconst hasKeyword = typeof record[\"keyword\"] === \"string\";\n\t\t\tconst hasDiscriminator = typeof record[\"discriminator\"] === \"string\";\n\t\t\tif (hasKind || hasKeyword && hasDiscriminator) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring pslBlock contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/keyword/discriminator) but does not satisfy the pslBlock descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectPslBlockDescriptorEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Every `pslBlockDescriptors` entry requires a matching `entityTypes` factory\n* with the same discriminator. An `entityTypes` factory may stand alone (e.g.\n* `enum`, reachable from the TypeScript builder without any PSL block).\n*\n* Uniqueness for pslBlock entries is keyed on **keyword**, not discriminator:\n* several keywords (e.g. `policy_select`/`policy_insert`) may legitimately\n* share one discriminator, routing to the same `entityTypes` factory and the\n* same `entries[discriminator]` slot — that N:1 shape is exactly what lets\n* one entity kind be authored through several PSL keywords. What must stay\n* unique is the keyword itself, since that's what the parser dispatches on.\n*/\nfunction assertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace) {\n\tconst blockEntries = collectPslBlockDescriptorEntries(pslBlockNamespace);\n\tconst entityEntries = collectDescriptorEntries(entityTypeNamespace, isAuthoringEntityTypeDescriptor, \"entity\", \"entityType\");\n\tassertUniqueDiscriminators(blockEntries.map((entry) => ({\n\t\tpath: entry.path,\n\t\tdiscriminator: entry.keyword\n\t})), \"pslBlock\");\n\tassertUniqueDiscriminators(entityEntries, \"entityType\");\n\tconst entityDiscriminators = new Set(entityEntries.map((entry) => entry.discriminator));\n\tfor (const block of blockEntries) if (!entityDiscriminators.has(block.discriminator)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Incomplete extension contribution: pslBlock helper \"${block.path}\" registers discriminator \"${block.discriminator}\" but no entityType contribution shares that discriminator. An extension-contributed PSL block requires a matching entityType factory so the parsed AST node can lower to an IR class instance; add an entityType helper with discriminator \"${block.discriminator}\".`);\n}\nfunction collectModelAttributeEntries(namespace, path = []) {\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringModelAttributeDescriptor(value)) {\n\t\t\tif (!isWellFormedDescriptor(value, \"modelAttribute\")) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push({\n\t\t\t\tpath: currentPath.join(\".\"),\n\t\t\t\tdiscriminator: value.attribute\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) {\n\t\t\tconst record = blindCast(value);\n\t\t\tif (typeof record[\"attribute\"] === \"string\" && \"spec\" in record) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Malformed authoring modelAttribute contribution at \"${currentPath.join(\".\")}\". The value carries descriptor keys (kind/attribute) but does not satisfy the modelAttribute descriptor shape. Fix the contribution so it is a complete descriptor, or remove the stray keys if it was meant to be a sub-namespace.`);\n\t\t\tentries.push(...collectModelAttributeEntries(value, currentPath));\n\t\t}\n\t}\n\treturn entries;\n}\n/**\n* Throws when two modelAttribute contributions — at any paths, even\n* different ones — claim the same bare `@@` attribute name. The family\n* interpreter dispatches by attribute name, not by registration path, so\n* two descriptors claiming the same name would have one silently shadow\n* the other.\n*/\nfunction assertUniqueModelAttributeNames(entries) {\n\tconst seen = /* @__PURE__ */ new Map();\n\tfor (const { path, discriminator: attribute } of entries) {\n\t\tconst existing = seen.get(attribute);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Duplicate modelAttribute \"${attribute}\" registered at both \"${existing}\" and \"${path}\". Each modelAttribute contribution must claim a unique attribute name.`);\n\t\tseen.set(attribute, path);\n\t}\n}\nfunction assertNoCrossRegistryCollisions(typeNamespace, entityTypeNamespace = {}, pslBlockNamespace = {}, modelAttributeNamespace = {}) {\n\tconst typePaths = new Set(collectDescriptorPaths(typeNamespace, isAuthoringTypeDescriptor));\n\tconst entityPaths = new Set(collectDescriptorPaths(entityTypeNamespace, isAuthoringEntityTypeDescriptor));\n\tfor (const entityPath of entityPaths) if (typePaths.has(entityPath)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Ambiguous authoring registry path \"${entityPath}\". The same path is registered as an entity contribution AND as a type constructor or type alias; PSL resolution would be ambiguous. Register each path in only one of authoringContributions.type / authoringContributions.entityTypes.`);\n\tassertPslBlocksHaveFactories(entityTypeNamespace, pslBlockNamespace);\n\tassertUniqueModelAttributeNames(collectModelAttributeEntries(modelAttributeNamespace));\n}\nfunction collectDescriptorNodes(namespace, isLeaf, path = []) {\n\tconst nodes = [];\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) {\n\t\t\tnodes.push([currentPath.join(\".\"), value]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) nodes.push(...collectDescriptorNodes(value, isLeaf, currentPath));\n\t}\n\treturn nodes;\n}\nfunction resolveAuthoringTemplateValue(template, args) {\n\tif (template === void 0) return;\n\tif (isAuthoringArgRef(template)) return args[template.index];\n\tif (Array.isArray(template)) return template.map((value) => resolveAuthoringTemplateValue(value, args));\n\tif (typeof template === \"object\" && template !== null) {\n\t\tconst resolved = {};\n\t\tfor (const [key, value] of Object.entries(template)) {\n\t\t\tconst resolvedValue = resolveAuthoringTemplateValue(value, args);\n\t\t\tif (resolvedValue !== void 0) resolved[key] = resolvedValue;\n\t\t}\n\t\treturn resolved;\n\t}\n\treturn template;\n}\nfunction validateAuthoringHelperArguments(helperPath, descriptors, args) {\n\tconst expected = descriptors ?? [];\n\tconst minimumArgs = expected.reduce((count, descriptor, index) => descriptor.optional ? count : index + 1, 0);\n\tif (args.length < minimumArgs || args.length > expected.length) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${helperPath} expects ${minimumArgs === expected.length ? expected.length : `${minimumArgs}-${expected.length}`} argument(s), received ${args.length}`);\n\texpected.forEach((descriptor, index) => {\n\t\tif (args[index] === void 0 && !descriptor.optional) throw runtimeError(\"CONTRACT.ARGUMENT_INVALID\", `${argumentLabel(helperPath, descriptor, index)} is missing`);\n\t});\n}\nfunction argumentLabel(helperPath, descriptor, index) {\n\treturn descriptor.name === void 0 ? `Authoring helper argument at ${helperPath}[${index}]` : `Argument \"${descriptor.name}\" of ${helperPath}`;\n}\nfunction argumentIndexOf(template) {\n\tlet index;\n\tvisitTemplateArgRefs(template, (ref) => {\n\t\tindex ??= ref.index;\n\t});\n\treturn index;\n}\nfunction issueKey(issue) {\n\tconst [first] = issue.path ?? [];\n\tconst key = typeof first === \"object\" && first !== null ? first.key : first;\n\treturn typeof key === \"string\" ? key : void 0;\n}\nfunction authoringTypeParamsIssue(template, typeParams, paramsSchema) {\n\tif (template.typeParams === void 0 || paramsSchema === void 0) return void 0;\n\tconst result = paramsSchema[\"~standard\"].validate(typeParams ?? {});\n\tif (result instanceof Promise) throw new InternalError(`The parameter schema of codec \"${template.codecId}\" is asynchronous; authoring requires a synchronous schema.`);\n\tconst [issue] = result.issues ?? [];\n\tif (issue === void 0) return void 0;\n\tconst key = issueKey(issue);\n\treturn {\n\t\tmessage: issue.message,\n\t\targumentIndex: key === void 0 ? void 0 : argumentIndexOf(template.typeParams[key])\n\t};\n}\n/**\n* Checks the type parameters a constructor produced against its codec's parameter schema, which is where the bounds of a data type's parameters are written. A failure names the argument the failing parameter came from.\n*/\nfunction validateAuthoringTypeParams(helperPath, template, typeParams, paramsSchema) {\n\tconst issue = authoringTypeParamsIssue(template, typeParams, paramsSchema);\n\tif (issue === void 0) return;\n\tconst { argumentIndex } = issue;\n\tthrow runtimeError(\"CONTRACT.ARGUMENT_INVALID\", argumentIndex === void 0 ? `The type parameters of ${helperPath} are invalid: ${issue.message}` : `Authoring helper argument at ${helperPath}[${argumentIndex}] is invalid: ${issue.message}`, {\n\t\thelperPath,\n\t\t...ifDefined(\"argumentIndex\", argumentIndex)\n\t});\n}\nfunction resolveAuthoringStorageTypeTemplate(template, args) {\n\tconst typeParams = template.typeParams === void 0 ? void 0 : resolveAuthoringTemplateValue(template.typeParams, args);\n\tif (typeParams !== void 0 && !isAuthoringTemplateRecord(typeParams)) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Resolved authoring typeParams must be an object for codec \"${template.codecId}\", received ${String(typeParams)}`);\n\tconst normalizedTypeParams = typeParams !== void 0 && Object.keys(typeParams).length === 0 ? void 0 : typeParams;\n\treturn {\n\t\tcodecId: template.codecId,\n\t\t...ifDefined(\"typeParams\", normalizedTypeParams)\n\t};\n}\nfunction instantiateAuthoringTypeConstructor(descriptor, args) {\n\treturn resolveAuthoringStorageTypeTemplate(descriptor.output, args);\n}\nfunction instantiateAuthoringTypeAlias(descriptor) {\n\tconst { output } = descriptor;\n\treturn {\n\t\ttype: resolveAuthoringStorageTypeTemplate(output.type, []),\n\t\t...ifDefined(\"onCreate\", output.onCreate),\n\t\t...ifDefined(\"onUpdate\", output.onUpdate)\n\t};\n}\nconst GENERATOR_PHASE_TEXT = {\n\tonCreate: \"on create\",\n\tonUpdate: \"on update\"\n};\n/**\n* The generators the calls of the type alias at `path` resolve to for its column, or `undefined` when it calls none. A call that does not resolve is the pack's mistake, so it throws `CONTRACT.PACK_CONTRIBUTION_INVALID`. `length` is the column's length, in its data type's normal form, when the caller's family knows it.\n*/\nfunction resolveTypeAliasGenerators(input) {\n\tconst { type, ...calls } = instantiateAuthoringTypeAlias(input.descriptor);\n\tconst phases = {};\n\tfor (const phase of [\"onCreate\", \"onUpdate\"]) {\n\t\tconst call = calls[phase];\n\t\tif (call === void 0) continue;\n\t\tconst resolution = input.generatorFunctions.resolve(call, {\n\t\t\tcodecId: type.codecId,\n\t\t\ttypeParams: type.typeParams,\n\t\t\tlength: input.length\n\t\t});\n\t\tif (resolution.ok) {\n\t\t\tphases[phase] = resolution.generator;\n\t\t\tcontinue;\n\t\t}\n\t\tconst written = `Type alias \"${input.path}\" calls ${call.name}() ${GENERATOR_PHASE_TEXT[phase]}`;\n\t\tthrow runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", resolution.reason === \"refused\" ? `${written}, which its codec \"${type.codecId}\" refuses: ${resolution.message}` : resolution.reason === \"not-bound\" ? `${written}, which does not apply to its codec \"${type.codecId}\".` : `${written}, but no component declares the generator function \"${call.name}\".`);\n\t}\n\treturn phases.onCreate === void 0 && phases.onUpdate === void 0 ? void 0 : phases;\n}\n/**\n* Refuses a type alias of `namespace` whose fixed type params its codec's parameter schema refuses, or whose generator call does not resolve for its codec and length. The control stack and the TypeScript builders call it on their assembled namespace, so PSL and TypeScript refuse the same packs, before any schema is read.\n*/\nfunction assertTypeAliasesValid(namespace, lookups) {\n\tfor (const [path, descriptor] of collectDescriptorNodes(namespace, isAuthoringTypeDescriptor)) {\n\t\tif (!isAuthoringTypeAliasDescriptor(descriptor)) continue;\n\t\tconst { type } = instantiateAuthoringTypeAlias(descriptor);\n\t\tconst issue = authoringTypeParamsIssue(descriptor.output.type, type.typeParams, lookups.paramsSchemaOf(type.codecId));\n\t\tif (issue !== void 0) throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type alias \"${path}\" fixes type parameters its codec \"${type.codecId}\" refuses: ${issue.message}`);\n\t\tresolveTypeAliasGenerators({\n\t\t\tpath,\n\t\t\tdescriptor,\n\t\t\tgeneratorFunctions: lookups.generatorFunctions,\n\t\t\tlength: lookups.fieldLength({\n\t\t\t\tcodecId: type.codecId,\n\t\t\t\ttypeParams: type.typeParams\n\t\t\t})\n\t\t});\n\t}\n}\n/**\n* The column a type constructor makes from the stored values of its arguments, as a reader that holds values rather than written arguments has them, or why its codec's parameter schema refuses the parameters they give. The schema check is {@link validateAuthoringTypeParams}'s.\n*/\nfunction instantiateAuthoringTypeConstructorFromValues(descriptor, values, paramsSchema) {\n\tconst output = instantiateAuthoringTypeConstructor(descriptor, values);\n\tconst issue = authoringTypeParamsIssue(descriptor.output, output.typeParams, paramsSchema);\n\treturn issue === void 0 ? ok(output) : notOk(issue);\n}\nfunction instantiateAuthoringEntityType(helperPath, descriptor, args, ctx) {\n\tif (\"factory\" in descriptor.output) {\n\t\tconst input = args[0];\n\t\treturn blindCast(descriptor.output.factory)(input, ctx);\n\t}\n\tvalidateAuthoringHelperArguments(helperPath, descriptor.args, args);\n\treturn blindCast(resolveAuthoringTemplateValue(descriptor.output.template, args));\n}\n//#endregion\n//#region src/shared/data-type-support.ts\nconst UNKNOWN_CONTRIBUTOR = \"<unknown>\";\n/** Merge every component's PSL support for its data types, refusing two claims on one key. */\nfunction assembleAuthoringDataTypes(components) {\n\tconst merged = {};\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const component of components) {\n\t\tconst contributedBy = component.id ?? UNKNOWN_CONTRIBUTOR;\n\t\tfor (const [key, entry] of Object.entries(component.authoring?.dataTypes ?? {})) {\n\t\t\tconst existingOwner = owners.get(key);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_ENTRY_DUPLICATE\", `Duplicate authoring entry for \"${key}\". Component \"${contributedBy}\" conflicts with \"${existingOwner}\".`, {\n\t\t\t\tkey,\n\t\t\t\tcontributedBy,\n\t\t\t\towner: existingOwner\n\t\t\t});\n\t\t\towners.set(key, contributedBy);\n\t\t\tmerged[key] = entry;\n\t\t}\n\t}\n\treturn merged;\n}\nfunction descriptorsIn(namespace, isLeaf, path = []) {\n\treturn Object.entries(namespace ?? {}).flatMap(([key, value]) => {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeaf(value)) return [{\n\t\t\tpath: currentPath.join(\".\"),\n\t\t\tdescriptor: value\n\t\t}];\n\t\tif (typeof value !== \"object\" || value === null || Array.isArray(value)) return [];\n\t\treturn descriptorsIn(value, isLeaf, currentPath);\n\t});\n}\n/** Every type constructor a component contributes. */\nfunction contributedHelpers(component) {\n\treturn descriptorsIn(component.authoring?.type, isAuthoringTypeDescriptor).flatMap(({ path, descriptor }) => isAuthoringTypeConstructorDescriptor(descriptor) ? [{\n\t\tpath,\n\t\tdescriptor,\n\t\tcontributedBy: component.id ?? UNKNOWN_CONTRIBUTOR\n\t}] : []);\n}\n/** The data types a contract source can write: each entry's own, and every type a plain-number entry classifies a number as. */\nfunction writableDataTypes(entries) {\n\treturn new Set(entries.flatMap(({ key, entry }) => [key, ...entry.written.kind === \"plain\" && entry.written.syntax === \"number\" ? entry.written.types : []]));\n}\n/** Refuses a value argument whose data type is unregistered, or that no contract source can write, directly or through a cast, and a type-constructor argument that is not a value. */\nfunction enforceValueArguments(support, contributed, writable) {\n\tconst { path, descriptor, contributedBy } = contributed;\n\tfor (const [index, argument] of (descriptor.args ?? []).entries()) {\n\t\tconst label = `Argument ${argument.name === void 0 ? `#${index + 1}` : `\"${argument.name}\"`} of type constructor \"${path}\"`;\n\t\tconst argumentKind = argument.kind;\n\t\tif (argumentKind !== \"value\") throw runtimeError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `${label} contributed by \"${contributedBy}\" is an argument of kind \"${argumentKind}\", but a type constructor's argument is a value of a data type. Declare it as { kind: 'value', dataType: ... }, naming the data type its value belongs to.`, {\n\t\t\tpackId: contributedBy,\n\t\t\tcontribution: path,\n\t\t\treason: \"type-constructor-argument-not-a-value\"\n\t\t});\n\t\tconst type = support.lookup.get(argument.dataType);\n\t\tif (type === void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `${label} names data type \"${argument.dataType}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: argument.dataType,\n\t\t\tcontributedBy\n\t\t});\n\t\tif (![argument.dataType, ...Object.keys(type.casts)].some((admittedType) => writable.has(admittedType))) throw runtimeError(\"CONTRACT.DATA_TYPE_NOT_WRITABLE\", `${label} contributed by \"${contributedBy}\" takes a value of data type \"${argument.dataType}\", which no contract source can write.`, {\n\t\t\tdataType: argument.dataType,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\nfunction textDataTypesOf(components) {\n\treturn components.flatMap((component) => (component.authoring?.textDataTypes ?? []).map((dataType) => ({\n\t\tdataType,\n\t\tcontributedBy: component.id ?? UNKNOWN_CONTRIBUTOR\n\t})));\n}\n/**\n* The checks assembly makes across components on their data types, each naming the component and the id at fault:\n*\n* 1. every codec names a registered data type;\n* 2. every authoring entry, and every type a number classifier returns, names a registered data type;\n* 3. every type a cast takes values of is registered and can be written, because a cast from a type nobody can write is never exercised;\n* 4. no two entries claim one tag or one plain form;\n* 5. every text data type a component names is registered.\n*/\nfunction enforceDataTypeAssemblyInvariants(input) {\n\tconst unregistered = (contributedBy, id, what) => {\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_UNREGISTERED\", `${what} names data type \"${id}\", which no component registers. Contributed by \"${contributedBy}\".`, {\n\t\t\tdataType: id,\n\t\t\tcontributedBy\n\t\t});\n\t};\n\tfor (const codec of input.codecs) if (!input.lookup.has(codec.dataType)) unregistered(codec.contributedBy, codec.dataType, `Codec \"${codec.codecId}\"`);\n\tfor (const { key, entry, contributedBy } of input.authoringEntries) {\n\t\tif (!input.lookup.has(key)) unregistered(contributedBy, key, \"Authoring entry\");\n\t\tif (entry.written.kind === \"plain\" && entry.written.syntax === \"number\") {\n\t\t\tfor (const classified of entry.written.types) if (!input.lookup.has(classified)) unregistered(contributedBy, classified, `The classifier of authoring entry \"${key}\"`);\n\t\t}\n\t}\n\tfor (const { dataType, contributedBy } of input.textDataTypes) if (!input.lookup.has(dataType)) unregistered(contributedBy, dataType, \"The text data types\");\n\tconst writable = writableDataTypes(input.authoringEntries);\n\tfor (const { type, contributedBy } of input.declaredTypes) {\n\t\tconst sources = [...Object.keys(type.casts), ...type.listCast?.of ?? []];\n\t\tfor (const source of sources) {\n\t\t\tif (!input.lookup.has(source)) unregistered(contributedBy, source, `The casts of data type \"${type.id}\"`);\n\t\t\tif (!writable.has(source)) throw runtimeError(\"CONTRACT.DATA_TYPE_NOT_WRITABLE\", `Data type \"${type.id}\" casts from \"${source}\", which no contract source can write, so the cast is never exercised. Contributed by \"${contributedBy}\".`, {\n\t\t\t\tdataType: type.id,\n\t\t\t\tsource,\n\t\t\t\tcontributedBy\n\t\t\t});\n\t\t}\n\t}\n\tconst claimants = /* @__PURE__ */ new Map();\n\tfor (const { key, entry, contributedBy } of input.authoringEntries) {\n\t\tconst written = entry.written;\n\t\tconst claim = written.kind === \"tag\" ? `tag \"${written.tag}\"` : `plain ${written.syntax}`;\n\t\tconst existing = claimants.get(claim);\n\t\tif (existing !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_WRITTEN_FORM_DUPLICATE\", `Two authoring entries claim the ${claim}: \"${key}\" from \"${contributedBy}\" conflicts with \"${existing.key}\" from \"${existing.contributedBy}\".`, {\n\t\t\tclaim,\n\t\t\tkey,\n\t\t\tcontributedBy,\n\t\t\towner: existing.key,\n\t\t\townerContributedBy: existing.contributedBy\n\t\t});\n\t\tclaimants.set(claim, {\n\t\t\tkey,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\n/**\n* The data types the components register, with their authoring entries, as every contract source reads values with. Refuses two registrations of one data type or one entry key, every case {@link enforceDataTypeAssemblyInvariants} lists, a value argument of a type constructor whose data type is unregistered or that no contract source can write, and a type-constructor argument that is not a value. ADR 254.\n*/\nfunction assembleDataTypeSupport(components, dataTypeOfCodec) {\n\tconst { lookup, declared } = assembleDataTypes(components);\n\tconst entries = assembleAuthoringDataTypes(components);\n\tconst contributedBy = (component) => component.id ?? UNKNOWN_CONTRIBUTOR;\n\tconst authoringEntries = components.flatMap((component) => Object.entries(component.authoring?.dataTypes ?? {}).map(([key, entry]) => ({\n\t\tkey,\n\t\tentry,\n\t\tcontributedBy: contributedBy(component)\n\t})));\n\tenforceDataTypeAssemblyInvariants({\n\t\tlookup,\n\t\tdeclaredTypes: declared,\n\t\tcodecs: components.flatMap((component) => (component.types?.codecTypes?.codecDescriptors ?? []).map(({ codecId, dataType }) => ({\n\t\t\tcodecId,\n\t\t\tdataType,\n\t\t\tcontributedBy: contributedBy(component)\n\t\t}))),\n\t\tauthoringEntries,\n\t\ttextDataTypes: textDataTypesOf(components)\n\t});\n\tconst support = {\n\t\tentries,\n\t\tlookup,\n\t\tdataTypeOfCodec,\n\t\ttextDataTypes: [...new Set(components.flatMap((component) => component.authoring?.textDataTypes ?? []))]\n\t};\n\tconst writable = writableDataTypes(authoringEntries);\n\tfor (const contributed of components.flatMap(contributedHelpers)) enforceValueArguments(support, contributed, writable);\n\treturn {\n\t\tsupport,\n\t\tdeclared\n\t};\n}\n//#endregion\n//#region src/shared/tagged-literal.ts\nconst TAGGED_LITERAL_MAX_BYTES = 65536;\n/** The message a tagged literal's canonicalization failure is reported with, in PSL and in TypeScript. */\nfunction describeTaggedLiteralFailure(reason) {\n\tswitch (reason) {\n\t\tcase \"nul\": return \"Tagged literals must not contain NUL characters.\";\n\t\tcase \"too-large\": return `Tagged literal exceeds ${TAGGED_LITERAL_MAX_BYTES} bytes.`;\n\t}\n}\nconst PSL_BACKTICK_ESCAPES = /* @__PURE__ */ new Set([\"`\", \"\\\\\"]);\nconst TEMPLATE_TAG_ESCAPES = /* @__PURE__ */ new Set([\n\t\"`\",\n\t\"\\\\\",\n\t\"$\"\n]);\n/** The escapes a PSL backtick string resolves: `` \\` `` and `\\\\`. PSL has no interpolation, so `${` is ordinary text. */\nfunction resolvePslBacktickEscapes(raw) {\n\treturn resolveEscapes(raw, PSL_BACKTICK_ESCAPES);\n}\n/** The escapes a TypeScript template tag resolves: the PSL two plus `\\$`, the only way to write `${` in a template literal. */\nfunction resolveTemplateTagEscapes(raw) {\n\treturn resolveEscapes(raw, TEMPLATE_TAG_ESCAPES);\n}\n/** Every other backslash sequence is kept as written, both characters, so a SQL body may contain `E'\\n'` unchanged. */\nfunction resolveEscapes(raw, escapes) {\n\tlet out = \"\";\n\tlet i = 0;\n\twhile (i < raw.length) {\n\t\tconst ch = raw.charAt(i);\n\t\tconst next = raw.charAt(i + 1);\n\t\tif (ch === \"\\\\\" && escapes.has(next)) {\n\t\t\tout += next;\n\t\t\ti += 2;\n\t\t\tcontinue;\n\t\t}\n\t\tout += ch;\n\t\ti++;\n\t}\n\treturn out;\n}\nconst BLANK_LINE = /^[ \\t]*$/;\nconst LEADING_INDENT = /^[ \\t]*/;\nconst LINE_BREAK = /\\r\\n|\\r|\\n/g;\n/**\n* Turns the escape-resolved body of a tagged literal into its canonical text:\n* newlines become `\\n`, every blank line before the first non-blank line and\n* after the last one is dropped, common leading whitespace is removed, internal\n* blank lines become empty, and no trailing newline is added. The result is its\n* own canonical text. Fails on a NUL character or when the result is larger\n* than 65536 UTF-8 bytes.\n*/\nfunction canonicalizeTaggedLiteralBody(resolved) {\n\tconst nul = resolved.indexOf(\"\\0\");\n\tif (nul !== -1) return {\n\t\tok: false,\n\t\treason: \"nul\",\n\t\toffset: nul\n\t};\n\tconst lines = splitLines(resolved);\n\twhile (lines.length > 0 && BLANK_LINE.test(lines[0]?.text ?? \"\")) lines.shift();\n\twhile (lines.length > 0 && BLANK_LINE.test(lines.at(-1)?.text ?? \"\")) lines.pop();\n\tconst indent = commonIndent(lines);\n\tconst bodyLines = lines.map((line) => BLANK_LINE.test(line.text) ? {\n\t\ttext: \"\",\n\t\tstart: line.start\n\t} : {\n\t\ttext: line.text.slice(indent),\n\t\tstart: line.start + indent\n\t});\n\tconst excess = offsetWhereBytesExceed(bodyLines, TAGGED_LITERAL_MAX_BYTES);\n\tif (excess !== void 0) return {\n\t\tok: false,\n\t\treason: \"too-large\",\n\t\toffset: excess\n\t};\n\treturn {\n\t\tok: true,\n\t\ttext: bodyLines.map((line) => line.text).join(\"\\n\")\n\t};\n}\nfunction splitLines(text) {\n\tconst lines = [];\n\tlet start = 0;\n\tfor (const match of text.matchAll(LINE_BREAK)) {\n\t\tlines.push({\n\t\t\ttext: text.slice(start, match.index),\n\t\t\tstart\n\t\t});\n\t\tstart = match.index + match[0].length;\n\t}\n\tlines.push({\n\t\ttext: text.slice(start),\n\t\tstart\n\t});\n\treturn lines;\n}\nfunction commonIndent(lines) {\n\tlet indent = Number.POSITIVE_INFINITY;\n\tfor (const line of lines) {\n\t\tif (BLANK_LINE.test(line.text)) continue;\n\t\tindent = Math.min(indent, LEADING_INDENT.exec(line.text)?.[0].length ?? 0);\n\t}\n\treturn Number.isFinite(indent) ? indent : 0;\n}\n/** The resolved-body offset of the first character that pushes the text past `limit` bytes. */\nfunction offsetWhereBytesExceed(lines, limit) {\n\tlet bytes = 0;\n\tfor (const [index, line] of lines.entries()) {\n\t\tif (index > 0) {\n\t\t\tbytes += 1;\n\t\t\tif (bytes > limit) return line.start;\n\t\t}\n\t\tlet offsetInLine = 0;\n\t\tfor (const char of line.text) {\n\t\t\tbytes += utf8Length(char.codePointAt(0) ?? 0);\n\t\t\tif (bytes > limit) return line.start + offsetInLine;\n\t\t\toffsetInLine += char.length;\n\t\t}\n\t}\n}\nfunction utf8Length(codePoint) {\n\tif (codePoint < 128) return 1;\n\tif (codePoint < 2048) return 2;\n\tif (codePoint < 65536) return 3;\n\treturn 4;\n}\nfunction escapeQuotedText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\n/**\n* The PSL text of a tagged literal holding `text`: the backtick form, or the double-quote form when the text holds a\n* backtick, which reads better than escaping each backtick. A multi-line text starts on the line after the opening\n* backtick, so indentation a printer adds to an enclosing block is common to every line and the canonicalization\n* removes it. The literal's canonical text is `text` again only when {@link printedTaggedLiteralReadsBack} holds; text\n* with leading indentation or a carriage return, for example, does not read back. ADR 129.\n*/\nfunction printTaggedLiteral(tag, text) {\n\tif (text.includes(\"`\")) return `${tag}\"${escapeQuotedText(text)}\"`;\n\tconst fenced = text.replace(/\\\\(?=\\\\|$)/g, \"\\\\\\\\\");\n\treturn isPrintedOnOwnLines(text) ? `${tag}\\`\\n${fenced}\\n\\`` : `${tag}\\`${fenced}\\``;\n}\nfunction isPrintedOnOwnLines(text) {\n\treturn !text.includes(\"`\") && text.includes(\"\\n\");\n}\n/** Whether the literal {@link printTaggedLiteral} prints for `text` has `text` as its canonical text. */\nfunction printedTaggedLiteralReadsBack(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(isPrintedOnOwnLines(text) ? `\\n${text}\\n` : text);\n\treturn canonical.ok && canonical.text === text;\n}\n/**\n* TypeScript source for `text` in generated code: a template literal with `tag`, or `tsQuotedTextSource(text)`. It\n* writes a template only when the tag's TypeScript function canonicalizes its text as `canonicalizeTaggedLiteralBody`\n* does and that leaves `text` unchanged, which holds for `sql`. It also falls back when a line ends in a space or a\n* tab, which editors strip on save, and when `text` holds a character a template would carry unescaped and invisible.\n* A multi-line template's lines sit one level deeper than the line it opens on.\n*/\nfunction tsTaggedTemplateSource(tag, text) {\n\tif (!templateHoldsUnchanged(text)) return {\n\t\tsource: tsQuotedTextSource(text),\n\t\tusesTag: false\n\t};\n\tconst escaped = tsTemplateText(text);\n\tif (!text.includes(\"\\n\")) return {\n\t\tsource: `${tag}\\`${escaped}\\``,\n\t\tusesTag: true\n\t};\n\treturn {\n\t\tsource: `${tag}\\`\\n${escaped.split(\"\\n\").map((line) => line.length === 0 ? line : ` ${line}`).join(\"\\n\")}\\n\\``,\n\t\tusesTag: true\n\t};\n}\nconst WHITESPACE_ONLY_LINE = /^\\s+$/;\nconst TRAILING_SPACE_OR_TAB = /[ \\t]$/;\nfunction templateHoldsUnchanged(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\tif (!canonical.ok || canonical.text !== text) return false;\n\tconst lines = text.split(\"\\n\");\n\tconst indentTreatsAsBlank = (line) => WHITESPACE_ONLY_LINE.test(line) && !BLANK_LINE.test(line);\n\tif (lines.some((line) => indentTreatsAsBlank(line) || TRAILING_SPACE_OR_TAB.test(line))) return false;\n\treturn !holdsCharacterThatNeedsAnEscape(text);\n}\nfunction holdsCharacterThatNeedsAnEscape(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 && char !== \"\\n\" && char !== \"\t\" || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/shared/temporal-type-aliases.ts\n/**\n* Canonical id for the wall-clock-now mutation default generator. It flows to the control-plane descriptor, to each family's runtime generator, and to the `now()` binding of the codecs that store it.\n*/\nconst TIMESTAMP_NOW_GENERATOR_ID = \"timestampNow\";\n/** Builds the control-plane descriptor for the wall-clock-now mutation default generator. */\nfunction timestampNowControlDescriptor() {\n\treturn { id: TIMESTAMP_NOW_GENERATOR_ID };\n}\nconst NOW_CALL = {\n\tname: \"now\",\n\targs: {}\n};\n/**\n* Builds the `temporal.{CreatedAt,UpdatedAt}` type alias pair for a target's timestamp column type. `CreatedAt` calls `now()` on create; `UpdatedAt` calls it on create and on update. The target's `now()` binding for the codec picks the generator. `value` names the value the codec gives in TypeScript, such as `a JavaScript Date`, and ends each alias's documentation.\n*/\n/* @__NO_SIDE_EFFECTS__ */\nfunction temporalTypeAliases(type, value) {\n\treturn {\n\t\tCreatedAt: {\n\t\t\tkind: \"typeAlias\",\n\t\t\tdocumentation: `A timestamp the client sets to now when a row is created. Its value is ${value}.`,\n\t\t\toutput: {\n\t\t\t\ttype,\n\t\t\t\tonCreate: NOW_CALL\n\t\t\t}\n\t\t},\n\t\tUpdatedAt: {\n\t\t\tkind: \"typeAlias\",\n\t\t\tdocumentation: `A timestamp the client sets to now when a row is created and every time it is updated. Its value is ${value}.`,\n\t\t\toutput: {\n\t\t\t\ttype,\n\t\t\t\tonCreate: NOW_CALL,\n\t\t\t\tonUpdate: NOW_CALL\n\t\t\t}\n\t\t}\n\t};\n}\n//#endregion\nexport { isAuthoringEntityTypeDescriptor as A, resolveTypeAliasGenerators as B, flushAuthoringWarnings as C, instantiateAuthoringTypeConstructor as D, instantiateAuthoringTypeAlias as E, isAuthoringTypeDescriptor as F, validateAuthoringTypeParams as H, mergeAuthoringAttributeSpecs as I, mergeAuthoringNamespaces as L, isAuthoringPslBlockDescriptor as M, isAuthoringTypeAliasDescriptor as N, instantiateAuthoringTypeConstructorFromValues as O, isAuthoringTypeConstructorDescriptor as P, resolveAuthoringTemplateValue as R, collectScalarTypeConstructors as S, instantiateAuthoringEntityType as T, validateAuthoringHelperArguments as V, assertNoCrossRegistryCollisions as _, canonicalizeTaggedLiteralBody as a, classifyEnumMemberType as b, printedTaggedLiteralReadsBack as c, tsTaggedTemplateSource as d, assembleAuthoringDataTypes as f, assertNoAuthoringFieldNamespace as g, AUTHORING_TYPE_DESCRIPTOR_KINDS as h, TAGGED_LITERAL_MAX_BYTES as i, isAuthoringModelAttributeDescriptor as j, isAuthoringArgRef as k, resolvePslBacktickEscapes as l, contributedHelpers as m, temporalTypeAliases as n, describeTaggedLiteralFailure as o, assembleDataTypeSupport as p, timestampNowControlDescriptor as r, printTaggedLiteral as s, TIMESTAMP_NOW_GENERATOR_ID as t, resolveTemplateTagEscapes as u, assertResolvableTypeConstructorTemplates as v, getAuthoringTypeConstructor as w, collectContributedDescriptorPaths as x, assertTypeAliasesValid as y, resolveEnumCodecId as z };\n\n//# sourceMappingURL=temporal-type-aliases-D98ei6Fj.mjs.map"],"mappings":";;;;;;;;;;AAUA,MAAM,kCAAkC,CAAC,mBAAmB,WAAW;AACvE,MAAM,oCAAoC;;;;;;;;AAQ1C,SAAS,uBAAuB,UAAU;CACzC,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,WAAW,UAAU;EAC/B,MAAM,MAAM,KAAK,UAAU,CAAC,QAAQ,MAAM,QAAQ,OAAO,CAAC;EAC1D,MAAM,QAAQ,OAAO,IAAI,GAAG,KAAK,CAAC;EAClC,MAAM,KAAK,OAAO;EAClB,OAAO,IAAI,KAAK,KAAK;CACtB;CACA,KAAK,MAAM,SAAS,OAAO,OAAO,GAAG;EACpC,MAAM,QAAQ,MAAM;EACpB,IAAI,UAAU,KAAK,GAAG;EACtB,IAAI,MAAM,UAAU,mCAAmC;GACtD,KAAK,MAAM,WAAW,OAAO,QAAQ,YAAY,QAAQ,SAAS,EAAE,MAAM,QAAQ,KAAK,CAAC;GACxF;EACD;EACA,QAAQ,YAAY,GAAG,MAAM,OAAO,GAAG,MAAM,QAAQ,IAAI,MAAM,KAAK,MAAM,OAAO,EAAE,MAAM,CAAC,CAAC,KAAK,IAAI,KAAK,EAAE,MAAM,MAAM,KAAK,CAAC;CAC9H;AACD;AACA,SAAS,uBAAuB,QAAQ;CACvC,IAAI,UAAU;CACd,IAAI,SAAS;CACb,KAAK,MAAM,OAAO,OAAO,KAAK,MAAM,GAAG;EACtC,MAAM,QAAQ,OAAO;EACrB,IAAI,UAAU,KAAK,KAAK,OAAO,UAAU,UAAU,UAAU;OACxD,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,KAAK,GAAG,SAAS;OACnE,OAAO;CACb;CACA,IAAI,WAAW,QAAQ,OAAO;CAC9B,IAAI,SAAS,OAAO;CACpB,IAAI,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t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
2
2
|
import { n as notOk } from "./result-8OXF26MN.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-CMQzbnHk-
|
|
6
|
-
//#region ../../../1-framework/2-authoring/psl-parser/dist/
|
|
3
|
+
import { h as describeTaggedLiteralFailure } from "./temporal-type-aliases-D98ei6Fj-DEtfAQYL.mjs";
|
|
4
|
+
import { S as readWrittenValueAs, l as describeExpected, t as admittedForms } from "./authoring-CuGQP7_1.mjs";
|
|
5
|
+
import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-CMQzbnHk-FYhlr1aG.mjs";
|
|
6
|
+
//#region ../../../1-framework/2-authoring/psl-parser/dist/contributed-type-scope-CbBzMSUB.mjs
|
|
7
7
|
function diagnosticSource(sources, node) {
|
|
8
8
|
return {
|
|
9
9
|
sources,
|
|
@@ -210,8 +210,53 @@ function readWrittenScalar(expression) {
|
|
|
210
210
|
};
|
|
211
211
|
return AN_EXPRESSION;
|
|
212
212
|
}
|
|
213
|
+
function isContributedTypeDescriptor(value) {
|
|
214
|
+
return "kind" in value && (value.kind === "typeConstructor" || value.kind === "typeAlias");
|
|
215
|
+
}
|
|
216
|
+
/** The codec a column typed by `descriptor` is stored with. */
|
|
217
|
+
function contributedTypeCodecId(descriptor) {
|
|
218
|
+
return descriptor.kind === "typeAlias" ? descriptor.output.type.codecId : descriptor.output.codecId;
|
|
219
|
+
}
|
|
220
|
+
/** The descriptor at `path` in `namespace`, or `undefined` when none is contributed there. */
|
|
221
|
+
function contributedTypeAt(namespace, path) {
|
|
222
|
+
const [name, ...rest] = path;
|
|
223
|
+
if (name === void 0 || !Object.hasOwn(namespace, name)) return void 0;
|
|
224
|
+
const value = namespace[name];
|
|
225
|
+
if (value === void 0) return void 0;
|
|
226
|
+
if (isContributedTypeDescriptor(value)) return rest.length === 0 ? value : void 0;
|
|
227
|
+
return contributedTypeAt(value, rest);
|
|
228
|
+
}
|
|
229
|
+
function contributedTypeScope(contributedTypes) {
|
|
230
|
+
const members = collect(contributedTypes, []);
|
|
231
|
+
return {
|
|
232
|
+
lookup(name) {
|
|
233
|
+
return members.get(name);
|
|
234
|
+
},
|
|
235
|
+
entries() {
|
|
236
|
+
return members.entries();
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function collect(namespace, prefix) {
|
|
241
|
+
const members = /* @__PURE__ */ new Map();
|
|
242
|
+
for (const [name, value] of Object.entries(namespace)) {
|
|
243
|
+
const path = [...prefix, name];
|
|
244
|
+
members.set(name, isContributedTypeDescriptor(value) ? {
|
|
245
|
+
kind: "contributedType",
|
|
246
|
+
name,
|
|
247
|
+
path,
|
|
248
|
+
descriptor: value
|
|
249
|
+
} : {
|
|
250
|
+
kind: "contributedNamespace",
|
|
251
|
+
name,
|
|
252
|
+
path,
|
|
253
|
+
members: collect(value, path)
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
return members;
|
|
257
|
+
}
|
|
213
258
|
//#endregion
|
|
214
|
-
//#region ../../../1-framework/2-authoring/psl-parser/dist/type-constructor-calls-
|
|
259
|
+
//#region ../../../1-framework/2-authoring/psl-parser/dist/type-constructor-calls-CNd1Xlw2.mjs
|
|
215
260
|
const TAGGED_LITERAL_FAILURE_CODES = {
|
|
216
261
|
nul: "PSL_TAGGED_LITERAL_NUL",
|
|
217
262
|
"too-large": "PSL_TAGGED_LITERAL_TOO_LARGE"
|
|
@@ -256,6 +301,6 @@ function reportTypeConstructorNotCalled(input) {
|
|
|
256
301
|
});
|
|
257
302
|
}
|
|
258
303
|
//#endregion
|
|
259
|
-
export {
|
|
304
|
+
export { contributedTypeCodecId as a, diagnosticFromSpan as c, mapPslDiagnostics as d, nodePslSpan as f, readWrittenScalar as g, readResolvedConstructorCall as h, contributedTypeAt as i, diagnosticSource as l, readResolvedAttributes as m, readExpressionAs as n, contributedTypeScope as o, readResolvedAttribute as p, reportTypeConstructorNotCalled as r, createPslDiagnosticCollector as s, isBareTypeConstructor as t, keywordPslSpan as u };
|
|
260
305
|
|
|
261
|
-
//# sourceMappingURL=type-constructor-calls-
|
|
306
|
+
//# sourceMappingURL=type-constructor-calls-CNd1Xlw2-DjyX5mKn.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-constructor-calls-CNd1Xlw2-DjyX5mKn.mjs","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/contributed-type-scope-CbBzMSUB.mjs","../../../../1-framework/2-authoring/psl-parser/dist/type-constructor-calls-CNd1Xlw2.mjs"],"sourcesContent":["import { a as NumberLiteralExprAst, i as FunctionCallAst, l as StringLiteralExprAst, m as IdentifierAst, r as BooleanLiteralExprAst, s as ObjectLiteralExprAst, t as ArrayLiteralAst, u as TaggedLiteralExprAst, y as printSyntax } from \"./expressions-CMQzbnHk.mjs\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/diagnostic.ts\nfunction diagnosticSource(sources, node) {\n\treturn {\n\t\tsources,\n\t\tnode,\n\t\tat(span) {\n\t\t\tconst sourceFile = sources.sourceFileFor(node);\n\t\t\tconst range = span === void 0 ? {\n\t\t\t\tstart: sourceFile.positionAt(node.offset),\n\t\t\t\tend: sourceFile.positionAt(node.endOffset)\n\t\t\t} : sourceFile.pslSpanToRange(span);\n\t\t\treturn {\n\t\t\t\tfilename: sourceFile.filename,\n\t\t\t\trange\n\t\t\t};\n\t\t}\n\t};\n}\nfunction diagnosticFromSpan(diagnostic, source) {\n\tif (diagnostic.span === void 0) throw new InternalError(\"Owned PSL diagnostic has no span\");\n\treturn {\n\t\tcode: diagnostic.code,\n\t\tmessage: diagnostic.message,\n\t\t...source.at(diagnostic.span),\n\t\t...diagnostic.data === void 0 ? {} : { data: diagnostic.data }\n\t};\n}\nfunction mapPslDiagnostics(diagnostics, sources) {\n\treturn diagnostics.map(({ filename, code, message, range, data }) => ({\n\t\tcode,\n\t\tmessage,\n\t\tsourceId: filename,\n\t\tspan: sources.sourceFileNamed(filename).rangeToPslSpan(range),\n\t\t...data === void 0 ? {} : { data }\n\t}));\n}\nfunction createPslDiagnosticCollector(sources) {\n\tconst entries = [];\n\treturn {\n\t\tget length() {\n\t\t\treturn entries.length;\n\t\t},\n\t\tpush(...diagnostics) {\n\t\t\tfor (const diagnostic of diagnostics) entries.push({\n\t\t\t\tkind: \"psl\",\n\t\t\t\tdiagnostic\n\t\t\t});\n\t\t},\n\t\tpushUnlocated(...diagnostics) {\n\t\t\tfor (const diagnostic of diagnostics) entries.push({\n\t\t\t\tkind: \"psl\",\n\t\t\t\tdiagnostic,\n\t\t\t\tomitSpan: true\n\t\t\t});\n\t\t},\n\t\tpushExternal(...diagnostics) {\n\t\t\tfor (const diagnostic of diagnostics) entries.push({\n\t\t\t\tkind: \"external\",\n\t\t\t\tdiagnostic\n\t\t\t});\n\t\t},\n\t\ttoExternal() {\n\t\t\treturn entries.flatMap((entry) => {\n\t\t\t\tif (entry.kind === \"external\") return [entry.diagnostic];\n\t\t\t\tif (entry.omitSpan) {\n\t\t\t\t\tconst { code, message, filename, data } = entry.diagnostic;\n\t\t\t\t\treturn [{\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tmessage,\n\t\t\t\t\t\tsourceId: filename,\n\t\t\t\t\t\t...data === void 0 ? {} : { data }\n\t\t\t\t\t}];\n\t\t\t\t}\n\t\t\t\treturn mapPslDiagnostics([entry.diagnostic], sources);\n\t\t\t});\n\t\t}\n\t};\n}\n//#endregion\n//#region src/resolve.ts\nfunction readResolvedAttribute(attribute, sources) {\n\treturn {\n\t\tname: attributeName(attribute.name()),\n\t\targs: readResolvedArgList(attribute.argList(), sources),\n\t\tspan: nodePslSpan(attribute.syntax, sources),\n\t\tnode: attribute\n\t};\n}\nfunction readResolvedAttributes(attributes, sources) {\n\treturn Array.from(attributes, (attribute) => readResolvedAttribute(attribute, sources));\n}\nfunction readResolvedConstructorCall(annotation, sources) {\n\tconst argList = annotation?.argList();\n\tif (annotation === void 0 || argList === void 0) return void 0;\n\treturn {\n\t\tpath: annotation.name()?.path() ?? [],\n\t\targs: readResolvedArgList(argList, sources),\n\t\tspan: nodePslSpan(annotation.syntax, sources)\n\t};\n}\nfunction readResolvedArgList(argList, sources) {\n\tif (argList === void 0) return [];\n\tconst args = [];\n\tfor (const arg of argList.args()) {\n\t\tconst name = arg.name()?.name();\n\t\tconst expression = arg.value();\n\t\targs.push({\n\t\t\tkind: name !== void 0 ? \"named\" : \"positional\",\n\t\t\t...name !== void 0 ? { name } : {},\n\t\t\tvalue: renderExpression(expression),\n\t\t\t...expression !== void 0 ? { expression } : {},\n\t\t\tspan: nodePslSpan(arg.syntax, sources),\n\t\t\tnode: arg\n\t\t});\n\t}\n\treturn args;\n}\nfunction attributeName(name) {\n\treturn name?.path().join(\".\") ?? \"\";\n}\nfunction renderExpression(expression) {\n\tif (expression === void 0) return \"\";\n\treturn printSyntax(expression.syntax).trim();\n}\nfunction nodePslSpan(node, sources) {\n\tconst sourceFile = sources.sourceFileFor(node);\n\tconst start = node.offset;\n\tconst end = start + node.green.textLength;\n\treturn {\n\t\tstart: sourceFile.offsetToPslPosition(start),\n\t\tend: sourceFile.offsetToPslPosition(end)\n\t};\n}\n/** Unsupported-top-level-block diagnostics are anchored to the keyword token. */\nfunction keywordPslSpan(node, keyword, sources) {\n\tconst sourceFile = sources.sourceFileFor(node);\n\tconst start = node.offset;\n\tconst end = start + keyword.length;\n\treturn {\n\t\tstart: sourceFile.offsetToPslPosition(start),\n\t\tend: sourceFile.offsetToPslPosition(end)\n\t};\n}\n//#endregion\n//#region src/written-scalar.ts\nconst AN_EXPRESSION = {\n\tok: false,\n\treason: \"not-a-literal\",\n\tfound: \"an expression\"\n};\nfunction written(value) {\n\treturn {\n\t\tok: true,\n\t\twritten: value\n\t};\n}\n/** Reads a PSL literal expression as a `WrittenScalar`, for a position that takes a value of a data type. ADR 254. */\nfunction readWrittenScalar(expression) {\n\tconst syntax = expression.syntax;\n\tconst string = StringLiteralExprAst.cast(syntax)?.value();\n\tif (string !== void 0) return written({\n\t\tkind: \"string\",\n\t\ttext: string\n\t});\n\tconst number = NumberLiteralExprAst.cast(syntax);\n\tif (number !== void 0) {\n\t\tconst text = number.token()?.text;\n\t\treturn text === void 0 ? AN_EXPRESSION : written({\n\t\t\tkind: \"number\",\n\t\t\ttext\n\t\t});\n\t}\n\tconst boolean = BooleanLiteralExprAst.cast(syntax)?.value();\n\tif (boolean !== void 0) return written({\n\t\tkind: \"boolean\",\n\t\tvalue: boolean\n\t});\n\tconst tagged = TaggedLiteralExprAst.cast(syntax);\n\tif (tagged !== void 0) {\n\t\tconst canonicalization = tagged.canonicalization();\n\t\treturn canonicalization.ok ? written({\n\t\t\tkind: \"tag\",\n\t\t\ttag: tagged.tagName(),\n\t\t\ttext: canonicalization.text\n\t\t}) : {\n\t\t\tok: false,\n\t\t\treason: canonicalization.reason\n\t\t};\n\t}\n\tif (IdentifierAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"an identifier\"\n\t};\n\tif (FunctionCallAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"a function call\"\n\t};\n\tif (ArrayLiteralAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"a list\"\n\t};\n\tif (ObjectLiteralExprAst.cast(syntax) !== void 0) return {\n\t\tok: false,\n\t\treason: \"not-a-literal\",\n\t\tfound: \"an object\"\n\t};\n\treturn AN_EXPRESSION;\n}\n//#endregion\n//#region src/contributed-type-scope.ts\nfunction isContributedTypeDescriptor(value) {\n\treturn \"kind\" in value && (value.kind === \"typeConstructor\" || value.kind === \"typeAlias\");\n}\n/** The codec a column typed by `descriptor` is stored with. */\nfunction contributedTypeCodecId(descriptor) {\n\treturn descriptor.kind === \"typeAlias\" ? descriptor.output.type.codecId : descriptor.output.codecId;\n}\n/** The descriptor at `path` in `namespace`, or `undefined` when none is contributed there. */\nfunction contributedTypeAt(namespace, path) {\n\tconst [name, ...rest] = path;\n\tif (name === void 0 || !Object.hasOwn(namespace, name)) return void 0;\n\tconst value = namespace[name];\n\tif (value === void 0) return void 0;\n\tif (isContributedTypeDescriptor(value)) return rest.length === 0 ? value : void 0;\n\treturn contributedTypeAt(value, rest);\n}\nfunction contributedTypeScope(contributedTypes) {\n\tconst members = collect(contributedTypes, []);\n\treturn {\n\t\tlookup(name) {\n\t\t\treturn members.get(name);\n\t\t},\n\t\tentries() {\n\t\t\treturn members.entries();\n\t\t}\n\t};\n}\nfunction collect(namespace, prefix) {\n\tconst members = /* @__PURE__ */ new Map();\n\tfor (const [name, value] of Object.entries(namespace)) {\n\t\tconst path = [...prefix, name];\n\t\tmembers.set(name, isContributedTypeDescriptor(value) ? {\n\t\t\tkind: \"contributedType\",\n\t\t\tname,\n\t\t\tpath,\n\t\t\tdescriptor: value\n\t\t} : {\n\t\t\tkind: \"contributedNamespace\",\n\t\t\tname,\n\t\t\tpath,\n\t\t\tmembers: collect(value, path)\n\t\t});\n\t}\n\treturn members;\n}\n//#endregion\nexport { keywordPslSpan as a, readResolvedAttributes as c, diagnosticFromSpan as d, diagnosticSource as f, readWrittenScalar as i, readResolvedConstructorCall as l, contributedTypeCodecId as n, nodePslSpan as o, mapPslDiagnostics as p, contributedTypeScope as r, readResolvedAttribute as s, contributedTypeAt as t, createPslDiagnosticCollector as u };\n\n//# sourceMappingURL=contributed-type-scope-CbBzMSUB.mjs.map","import { i as readWrittenScalar } from \"./contributed-type-scope-CbBzMSUB.mjs\";\nimport { admittedForms, describeExpected, readWrittenValueAs } from \"@internal/framework-components/authoring\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { notOk } from \"@internal/utils/result\";\nimport { describeTaggedLiteralFailure } from \"@internal/framework-components/control\";\n//#region src/read-expression-as.ts\nconst TAGGED_LITERAL_FAILURE_CODES = {\n\tnul: \"PSL_TAGGED_LITERAL_NUL\",\n\t\"too-large\": \"PSL_TAGGED_LITERAL_TOO_LARGE\"\n};\n/**\n* Reads `expression` as a value of `dataType`: the literal is read through the authoring entry for its syntax, then taken into `dataType` directly or through a cast it declares. The read every argument typed by a data type takes, in an attribute or a type constructor. ADR 254.\n*/\nfunction readExpressionAs(support, dataType, expression) {\n\tif (!support.lookup.has(dataType)) throw new InternalError(`An argument receives data type \"${dataType}\", which this stack does not register.`);\n\tconst forms = admittedForms(support, [dataType]);\n\tif (forms.length === 0) throw new InternalError(`An argument receives data type \"${dataType}\", which nothing in this stack writes.`);\n\tconst literal = readWrittenScalar(expression);\n\tif (!literal.ok) return literal.reason === \"not-a-literal\" ? notOk({\n\t\tcode: \"PSL_INVALID_ATTRIBUTE_SYNTAX\",\n\t\tmessage: `${describeExpected(forms)}; got ${literal.found}`\n\t}) : notOk({\n\t\tcode: TAGGED_LITERAL_FAILURE_CODES[literal.reason],\n\t\tmessage: describeTaggedLiteralFailure(literal.reason)\n\t});\n\treturn readWrittenValueAs(support, dataType, literal.written);\n}\n//#endregion\n//#region src/type-constructor-calls.ts\nfunction isBareTypeConstructor(descriptor) {\n\treturn descriptor.entityRefArg === void 0 && (descriptor.args ?? []).every((arg) => arg.optional === true);\n}\nfunction argumentSpelling(descriptor) {\n\tconst args = descriptor.args ?? [];\n\tconst reference = descriptor.entityRefArg;\n\tconst count = Math.max(args.length, (reference?.index ?? -1) + 1);\n\tconst names = [];\n\tfor (let index = 0; index < count; index++) {\n\t\tconst arg = args[index];\n\t\tif (index === reference?.index) names.push(reference.entityKind);\n\t\telse if (arg !== void 0 && arg.optional !== true) names.push(arg.name ?? `argument${index + 1}`);\n\t}\n\treturn names.join(\", \");\n}\nfunction reportTypeConstructorNotCalled(input) {\n\tinput.diagnostics.push({\n\t\tcode: \"PSL_TYPE_CONSTRUCTOR_NOT_CALLED\",\n\t\tmessage: `${input.entityLabel} uses type constructor \"${input.path}\" without arguments. Write ${input.path}(${argumentSpelling(input.descriptor)}).`,\n\t\t...input.source.at(input.span)\n\t});\n}\n//#endregion\nexport { reportTypeConstructorNotCalled as n, readExpressionAs as r, isBareTypeConstructor as t };\n\n//# sourceMappingURL=type-constructor-calls-CNd1Xlw2.mjs.map"],"mappings":";;;;;;AAGA,SAAS,iBAAiB,SAAS,MAAM;CACxC,OAAO;EACN;EACA;EACA,GAAG,MAAM;GACR,MAAM,aAAa,QAAQ,cAAc,IAAI;GAC7C,MAAM,QAAQ,SAAS,KAAK,IAAI;IAC/B,OAAO,WAAW,WAAW,KAAK,MAAM;IACxC,KAAK,WAAW,WAAW,KAAK,SAAS;GAC1C,IAAI,WAAW,eAAe,IAAI;GAClC,OAAO;IACN,UAAU,WAAW;IACrB;GACD;EACD;CACD;AACD;AACA,SAAS,mBAAmB,YAAY,QAAQ;CAC/C,IAAI,WAAW,SAAS,KAAK,GAAG,MAAM,IAAI,cAAc,kCAAkC;CAC1F,OAAO;EACN,MAAM,WAAW;EACjB,SAAS,WAAW;EACpB,GAAG,OAAO,GAAG,WAAW,IAAI;EAC5B,GAAG,WAAW,SAAS,KAAK,IAAI,CAAC,IAAI,EAAE,MAAM,WAAW,KAAK;CAC9D;AACD;AACA,SAAS,kBAAkB,aAAa,SAAS;CAChD,OAAO,YAAY,KAAK,EAAE,UAAU,MAAM,SAAS,OAAO,YAAY;EACrE;EACA;EACA,UAAU;EACV,MAAM,QAAQ,gBAAgB,QAAQ,CAAC,CAAC,eAAe,KAAK;EAC5D,GAAG,SAAS,KAAK,IAAI,CAAC,IAAI,EAAE,KAAK;CAClC,EAAE;AACH;AACA,SAAS,6BAA6B,SAAS;CAC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,MAAM,OAAO,GAAG,MAAM,IAAI;CAC9B,CAAC;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.21",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"uniku": "^0.5.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/config": "8.0.0-rc.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.
|
|
19
|
+
"@internal/config": "8.0.0-rc.21",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.21",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.21",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.21",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.21",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.21",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.21",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.21",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.21",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.21",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.21",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.21",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.21",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.21",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-BNzxszPO.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { a as dataTypeId, o as dataTypeParams } from \"./data-type-V6mcDhcG.mjs\";\nimport { a as readContractValue, o as numeralText, r as enumRefusalOf } from \"./codec-descriptor-CPSGZunM.mjs\";\nimport { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { r as codecForRef } from \"./resolve-codec-qqMjZrmn.mjs\";\nimport { A as instantiateAuthoringEntityType, B as isAuthoringSelectRef, C as assertResolvableTypeConstructorTemplates, D as collectScalarTypeConstructors, F as isAuthoringArgRef, G as mergeAuthoringNamespaces, H as isAuthoringTypeConstructorDescriptor, I as isAuthoringEntityTypeDescriptor, J as resolveTypeAliasGenerators, K as resolveAuthoringTemplateValue, L as isAuthoringFieldPresetDescriptor, M as instantiateAuthoringTypeAlias, N as instantiateAuthoringTypeConstructor, O as flushAuthoringWarnings, P as instantiateAuthoringTypeConstructorFromValues, R as isAuthoringModelAttributeDescriptor, S as assertNoCrossRegistryCollisions, T as classifyEnumMemberType, U as isAuthoringTypeDescriptor, V as isAuthoringTypeAliasDescriptor, X as validateAuthoringTypeParams, Y as validateAuthoringHelperArguments, _ as tsTaggedTemplateSource, a as temporalCodecPreset, c as temporalTypeAliases, d as canonicalizeTaggedLiteralBody, f as describeTaggedLiteralFailure, g as resolveTemplateTagEscapes, i as temporalAuthoringPresets, j as instantiateAuthoringFieldPreset, k as getAuthoringTypeConstructor, m as printedTaggedLiteralReadsBack, n as TEMPORAL_ON_UPDATE_ARG, o as temporalPhaseTemplate, p as printTaggedLiteral, q as resolveEnumCodecId, r as TIMESTAMP_NOW_GENERATOR_ID, s as temporalPhaseTemplateWithParams, t as TEMPORAL_ON_CREATE_ARG, v as assembleAuthoringDataTypes, w as assertTypeAliasesValid, x as AUTHORING_TYPE_DESCRIPTOR_KINDS, y as assembleDataTypeSupport, z as isAuthoringPslBlockDescriptor } from \"./temporal-presets-5TK1pTYJ.mjs\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\n//#region src/shared/authoring-type-constructor-call.ts\n/** Every type constructor of `namespace`, with its path, in namespace order. */\nfunction* authoringTypeConstructors(namespace, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {\n\t\tpath: [...path, name],\n\t\tdescriptor: value\n\t};\n\telse if (!isAuthoringTypeAliasDescriptor(value)) yield* authoringTypeConstructors(value, [...path, name]);\n}\nfunction produces(produced, wanted) {\n\tconst wantedFields = {\n\t\t...wanted,\n\t\ttypeParams: wanted.typeParams ?? {}\n\t};\n\treturn Object.entries({\n\t\t...produced,\n\t\ttypeParams: produced.typeParams ?? {}\n\t}).every(([key, value]) => canonicalizeJson(value) === canonicalizeJson(wantedFields[key]));\n}\n/**\n* The arguments that make `descriptor` produce exactly `output`, when each of its type parameters\n* comes straight from one argument; `undefined` when it cannot produce `output`, including when\n* `output` has no value for an argument the constructor requires.\n*/\nfunction authoringTypeConstructorArguments(descriptor, output) {\n\tif (descriptor.entityRefArg !== void 0 || descriptor.output.codecId !== output.codecId) return;\n\tconst args = [];\n\tfor (const [key, template] of Object.entries(descriptor.output.typeParams ?? {})) {\n\t\tconst value = output.typeParams?.[key];\n\t\tif (value !== void 0 && isAuthoringArgRef(template) && template.path === void 0) args[template.index] = value;\n\t}\n\tconst requiredArgs = (descriptor.args ?? []).filter((arg) => arg.optional !== true).length;\n\tif (args.length < requiredArgs || Array.from(args).includes(void 0)) return void 0;\n\ttry {\n\t\treturn produces(instantiateAuthoringTypeConstructor(descriptor, args), output) ? args : void 0;\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* The first call, in namespace order, to a type constructor in `namespace` that produces exactly\n* `output`. The inverse of {@link instantiateAuthoringTypeConstructor} for constructors whose type\n* parameters each come straight from one argument. A constructor whose argument names another\n* entity is never chosen. `undefined` when no call produces `output`.\n*/\nfunction findAuthoringTypeConstructorCall(namespace, output) {\n\tfor (const { path, descriptor } of authoringTypeConstructors(namespace)) {\n\t\tconst args = authoringTypeConstructorArguments(descriptor, output);\n\t\tif (args !== void 0) return {\n\t\t\tpath,\n\t\t\targs\n\t\t};\n\t}\n}\n//#endregion\n//#region src/shared/enum-stored-members.ts\nfunction storedFormOf(stored) {\n\treturn canonicalStringify(JSON.parse(JSON.stringify(stored)));\n}\n/** The key two stored values are equal by: the data type's `equalityKey` when it declares one, else the stored form as `contract.json` holds it, compared by `canonicalStringify`. */\nfunction storedValueKey(stored, equalityKey) {\n\treturn equalityKey?.(stored) ?? storedFormOf(stored);\n}\n/**\n* Each enum member whose stored form equals an earlier member's, paired with the first such member. Stored forms are compared as `contract.json` holds them, so negative zero is zero, and by `canonicalStringify`, so two objects with the same entries in a different order are equal; or, when the enum's data type declares an `equalityKey`, by that key, so `0.5` and `0.50` are one `numeric` value. Every enum authoring surface refuses the members this returns.\n*/\nfunction duplicateStoredMembers(members, equalityKey) {\n\tconst memberByKey = /* @__PURE__ */ new Map();\n\tconst duplicates = [];\n\tfor (const member of members) {\n\t\tconst { name, stored } = member;\n\t\tconst key = storedValueKey(stored, equalityKey);\n\t\tconst earlier = memberByKey.get(key);\n\t\tif (earlier === void 0) memberByKey.set(key, member);\n\t\telse if (storedFormOf(earlier.stored) === storedFormOf(stored)) duplicates.push({\n\t\t\tearlier: earlier.name,\n\t\t\tlater: name,\n\t\t\tstored\n\t\t});\n\t\telse duplicates.push({\n\t\t\tearlier: earlier.name,\n\t\t\tlater: name,\n\t\t\tstored,\n\t\t\tearlierStored: earlier.stored\n\t\t});\n\t}\n\treturn duplicates;\n}\n//#endregion\n//#region src/shared/written-value.ts\n/**\n* Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.\n*/\nfunction describeRefusal(refusal, support, guidance) {\n\tswitch (refusal.kind) {\n\t\tcase \"unknown-tag\": return {\n\t\t\tcode: \"PSL_UNKNOWN_LITERAL_TAG\",\n\t\t\tmessage: `Unknown literal tag \"${refusal.tag}\". Known tags: ${refusal.known.join(\", \")}.`\n\t\t};\n\t\tcase \"unwritable\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(guidance.forms)}; this target has no data type for a ${refusal.syntax} value`\n\t\t};\n\t\tcase \"unreadable\":\n\t\tcase \"refused-by-type\": return {\n\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\tmessage: refusal.message\n\t\t};\n\t\tcase \"no-cast\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: describeRefusedValueType(refusal, support, guidance)\n\t\t};\n\t}\n}\n/** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */\nfunction describeExpected(forms) {\n\treturn `Expected ${joinForms(forms)}`;\n}\n/**\n* Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.\n*/\nfunction describeRefusedValueType(refused, support, guidance) {\n\tconst expected = describeExpected(guidance.forms);\n\tconst valueForm = writtenForm(support, refused.valueType);\n\tif (valueForm !== void 0 && guidance.forms.some((form) => isSameForm(form, valueForm))) return `${expected} that ${refused.receivingType} can hold; got ${refused.valueType}`;\n\treturn guidance.rewrite === void 0 ? expected : `${expected}; write ${guidance.rewrite}`;\n}\nfunction isSameForm(a, b) {\n\treturn a.kind === \"tag\" && b.kind === \"tag\" ? a.tag === b.tag : a.kind === b.kind;\n}\n/** Text a contract source reads as a number literal. */\nconst NUMBER_TEXT = /^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?$|^[+-]?(?:NaN|Infinity)$/;\nconst DECIMAL_TEXT = /^([+-]?)0*(\\d*?)(?:\\.(\\d*?))?0*$/;\n/** A decimal numeral in one form: no plus sign, no leading or trailing zeros, the sign of zero kept. Other text is itself. */\nfunction canonicalNumber(text) {\n\tconst match = text.includes(\".\") ? DECIMAL_TEXT.exec(text) : /^([+-]?)0*(\\d*)$/.exec(text);\n\tif (match === null) return text;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\"] = match;\n\treturn `${sign === \"-\" ? \"-\" : \"\"}${whole === \"\" ? \"0\" : whole}${fraction === \"\" ? \"\" : `.${fraction}`}`;\n}\n/** Whether a stored value is the number `text` writes, digit for digit and with its sign, so writing the text unquoted stores what it says. */\nfunction sameNumber(text, stored) {\n\tconst storedText = typeof stored === \"number\" ? Object.is(stored, -0) ? \"-0\" : numeralText(stored) : typeof stored === \"string\" ? stored : void 0;\n\treturn storedText !== void 0 && canonicalNumber(storedText) === canonicalNumber(text);\n}\n/**\n* The literal to write in place of a quoted string that `receivingType` refuses under `receivingParams`: the string as a literal of the first tag the type admits, or else the string's text unquoted, as a number or a boolean. `undefined` when the value is not a quoted string, no such literal reads back as the same text, the type would refuse each of them too, or the number the text writes would be stored as another number, as `-0` is stored without its sign or `9007199254740993` as the nearest double.\n*/\nfunction exactRewrite(support, receiving, written) {\n\tif (written.kind !== \"string\") return void 0;\n\tconst castOf = (candidate) => {\n\t\tconst read = readWrittenValue(support, candidate);\n\t\tif (!read.ok) return void 0;\n\t\tconst cast = castTypedValue(support, receiving.receivingType, receiving.receivingParams, read.value);\n\t\treturn cast.ok ? cast.value : void 0;\n\t};\n\tconst admits = (candidate) => castOf(candidate) !== void 0;\n\tconst [tag] = admittedTags(support, receiving.receivingType);\n\tif (tag !== void 0 && printedTaggedLiteralReadsBack(written.text) && admits({\n\t\tkind: \"tag\",\n\t\ttag,\n\t\ttext: written.text\n\t})) return printTaggedLiteral(tag, written.text);\n\tif (NUMBER_TEXT.test(written.text)) {\n\t\tconst stored = castOf({\n\t\t\tkind: \"number\",\n\t\t\ttext: written.text\n\t\t});\n\t\tif (stored !== void 0 && sameNumber(written.text, stored.value)) return written.text;\n\t}\n\tif ((written.text === \"true\" || written.text === \"false\") && admits({\n\t\tkind: \"boolean\",\n\t\tvalue: written.text === \"true\"\n\t})) return written.text;\n}\nfunction findEntry(support, matches) {\n\tfor (const [key, entry] of Object.entries(support.entries)) if (matches(entry)) return {\n\t\tkey,\n\t\tentry\n\t};\n}\n/** The entry a tag names, or `undefined` when no pack registered that tag. */\nfunction entryForTag(support, tag) {\n\treturn findEntry(support, ({ written }) => written.kind === \"tag\" && written.tag === tag);\n}\n/** The entry that reads a plain string, boolean or number, or `undefined` when none does. */\nfunction entryForPlain(support, syntax) {\n\treturn findEntry(support, ({ written }) => written.kind === \"plain\" && written.syntax === syntax);\n}\n/** Every tag a stack registers, in the order the entries were merged. */\nfunction knownTags(support) {\n\treturn Object.values(support.entries).flatMap((entry) => entry.written.kind === \"tag\" ? [entry.written.tag] : []);\n}\nfunction textOf(written) {\n\treturn written.kind === \"boolean\" ? String(written.value) : written.text;\n}\nfunction messageOf(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n/** The value of `type` that `json` gives under `params`, constructed by that type; a refusal is worded for a diagnostic. */\nfunction valueOfType(support, type, json, params, refuse) {\n\tconst declaration = support.lookup.get(type);\n\tif (declaration === void 0) throw new InternalError(`A value of \"${type}\" was written, and this stack does not register it.`);\n\ttry {\n\t\treturn ok(declaration.valueFrom(json(), params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk(refuse(messageOf(error)));\n\t}\n}\n/** Read one written value through the authoring entry for its syntax, as a value its type constructs. */\nfunction readWrittenValue(support, written) {\n\tconst found = written.kind === \"tag\" ? entryForTag(support, written.tag) : entryForPlain(support, written.kind);\n\tif (found === void 0) return written.kind === \"tag\" ? notOk({\n\t\tkind: \"unknown-tag\",\n\t\ttag: written.tag,\n\t\tknown: knownTags(support)\n\t}) : notOk({\n\t\tkind: \"unwritable\",\n\t\tsyntax: written.kind\n\t});\n\tconst text = textOf(written);\n\tconst form = found.entry.written;\n\tconst unreadable = (message) => ({\n\t\tkind: \"unreadable\",\n\t\tmessage\n\t});\n\tif (form.kind === \"plain\" && form.syntax === \"number\") {\n\t\tconst classified = form.classify(text);\n\t\treturn classified === void 0 ? notOk(unreadable(`no data type of this target holds the number ${text}`)) : valueOfType(support, classified.type, () => classified.value, {}, unreadable);\n\t}\n\treturn valueOfType(support, dataTypeId(found.key), () => form.parse(text), {}, unreadable);\n}\n/** Take a value into the receiving type, directly or through the cast that type declares; the receiving type constructs the result under `receivingParams`, the parameters of the position that receives it. */\nfunction castTypedValue(support, receivingType, receivingParams, value) {\n\tconst refusedByType = (message) => ({\n\t\tkind: \"refused-by-type\",\n\t\treceivingType,\n\t\tmessage\n\t});\n\tif (value.type === receivingType) return valueOfType(support, receivingType, () => value.value, receivingParams, refusedByType);\n\tconst declaration = support.lookup.get(receivingType);\n\tconst cast = declaration?.casts[value.type];\n\tif (cast === void 0) return notOk({\n\t\tkind: \"no-cast\",\n\t\treceivingType,\n\t\treceivingParams,\n\t\tvalueType: value.type,\n\t\tcasts: Object.keys(declaration?.casts ?? {})\n\t});\n\tconst source = support.lookup.get(value.type);\n\tif (source === void 0) throw new InternalError(`A value of \"${value.type}\" was cast, and this stack does not register it.`);\n\tlet json;\n\ttry {\n\t\tjson = cast(source.toContract(value));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk({\n\t\t\tkind: \"unreadable\",\n\t\t\tmessage: messageOf(error)\n\t\t});\n\t}\n\treturn valueOfType(support, receivingType, () => json, receivingParams, refusedByType);\n}\n/**\n* Reads `written` as a value of `receivingType`: through the authoring entry for its syntax, then into `receivingType` directly or through a cast it declares. A refusal is worded for a diagnostic at the written value. The read every value of a fixed receiving type takes: an attribute argument, a type-constructor argument, and its TypeScript counterpart. ADR 254.\n*/\nfunction readWrittenValueAs(support, receivingType, written) {\n\tconst forms = admittedForms(support, [receivingType]);\n\tconst read = readWrittenValue(support, written);\n\tif (!read.ok) return notOk(describeRefusal(read.failure, support, {\n\t\tforms,\n\t\trewrite: void 0\n\t}));\n\tconst cast = castTypedValue(support, receivingType, {}, read.value);\n\tif (cast.ok) return cast;\n\tconst rewrite = exactRewrite(support, {\n\t\treceivingType,\n\t\treceivingParams: {}\n\t}, written);\n\treturn notOk(describeRefusal(cast.failure, support, {\n\t\tforms,\n\t\trewrite\n\t}));\n}\n/**\n* Reads `written` into the codec `ref` names, built with `ref`'s type parameters: the authoring entry for its syntax reads it, the codec's data type takes it directly or through a cast, the data type constructs it under the type parameters, and the codec checks it. Returns the value as the data type stores it. A written list is read element by element into the element types of the data type's list cast, then through the list cast.\n*\n* A refusal is worded for a diagnostic, after `subject` and the element it is about, as in `enum \"Ratio\" member \"Half\" at element 2: Expected a number`: syntax no entry reads or a cast refuses is `PSL_INVALID_LITERAL`, a value of a type the data type neither is nor casts from is `PSL_VALUE_TYPE_INCOMPATIBLE`, and a value the data type under the type parameters or the codec refuses is `PSL_VALUE_REFUSED`. ADR 254.\n*/\nfunction readWrittenValueIntoCodec(input) {\n\tconst { support, ref, written, subject } = input;\n\tconst codec = codecForRef(input.codecLookup, ref);\n\tif (codec === void 0) throw new InternalError(`${subject}: no codec descriptor is registered for \"${ref.codecId}\", but the value was read for it.`);\n\tconst receivingType = codec.dataType.id;\n\tconst receivingParams = dataTypeParams(codec.dataType, ref.typeParams);\n\tconst refused = (elementIndex, { code, message }) => notOk({\n\t\tcode,\n\t\tmessage: `${elementIndex === void 0 ? subject : `${subject} at element ${elementIndex + 1}`}: ${message}`\n\t});\n\tconst stored = (json) => {\n\t\ttry {\n\t\t\tconst value = codec.dataType.valueFrom(json, receivingParams);\n\t\t\tcodec.fromDataTypeValue(value);\n\t\t\treturn ok(codec.dataType.toContract(value));\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn refused(void 0, {\n\t\t\t\tcode: \"PSL_VALUE_REFUSED\",\n\t\t\t\tmessage: messageOf(error)\n\t\t\t});\n\t\t}\n\t};\n\tconst forms = admittedForms(support, [receivingType]);\n\tif (written.kind === \"list\") {\n\t\tconst listCast = support.lookup.get(receivingType)?.listCast;\n\t\tif (listCast === void 0) return refused(void 0, {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(forms)}; got a list`\n\t\t});\n\t\tconst elementGuidance = {\n\t\t\tforms: admittedForms(support, listCast.of),\n\t\t\trewrite: void 0\n\t\t};\n\t\tconst elements = [];\n\t\tfor (const [index, element] of written.elements.entries()) {\n\t\t\tif (element.kind === \"list\") return refused(index, {\n\t\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\t\tmessage: \"a list holds values, not other lists\"\n\t\t\t});\n\t\t\tconst read = readWrittenValue(support, element);\n\t\t\tif (!read.ok) return refused(index, describeRefusal(read.failure, support, elementGuidance));\n\t\t\tif (!listCast.of.includes(read.value.type)) return refused(index, {\n\t\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\t\tmessage: describeRefusedValueType({\n\t\t\t\t\treceivingType,\n\t\t\t\t\tvalueType: read.value.type\n\t\t\t\t}, support, elementGuidance)\n\t\t\t});\n\t\t\telements.push(read.value.value);\n\t\t}\n\t\tlet json;\n\t\ttry {\n\t\t\tjson = listCast.cast(elements);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn refused(void 0, {\n\t\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\t\tmessage: messageOf(error)\n\t\t\t});\n\t\t}\n\t\treturn stored(json);\n\t}\n\tconst read = readWrittenValue(support, written);\n\tif (!read.ok) return refused(void 0, describeRefusal(read.failure, support, {\n\t\tforms,\n\t\trewrite: void 0\n\t}));\n\tconst cast = castTypedValue(support, receivingType, receivingParams, read.value);\n\tif (cast.ok) return stored(cast.value.value);\n\tconst { failure } = cast;\n\tif (failure.kind === \"refused-by-type\") return refused(void 0, {\n\t\tcode: \"PSL_VALUE_REFUSED\",\n\t\tmessage: failure.message\n\t});\n\treturn refused(void 0, describeRefusal(failure, support, {\n\t\tforms,\n\t\trewrite: failure.kind === \"no-cast\" ? exactRewrite(support, failure, written) : void 0\n\t}));\n}\n/** The type itself, then each type it casts from, in key order. */\nfunction admittedTypes(support, dataType) {\n\treturn [dataType, ...Object.keys(support.lookup.get(dataType)?.casts ?? {})];\n}\n/** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */\nfunction admittedTags(support, dataType) {\n\tconst tags = admittedTypes(support, dataType).flatMap((type) => {\n\t\tconst written = support.entries[type]?.written;\n\t\treturn written?.kind === \"tag\" ? [written.tag] : [];\n\t});\n\treturn [...new Set(tags)];\n}\n/** The form a value of a tagged literal's type is written in. */\nfunction tagForm(tag) {\n\treturn {\n\t\tkind: \"tag\",\n\t\ttag,\n\t\tphrase: `${tag}\\`...\\``\n\t};\n}\nconst PLAIN_PHRASES = {\n\tstring: \"a quoted string\",\n\tboolean: \"true or false\",\n\tnumber: \"a number\"\n};\nfunction writtenForm(support, type) {\n\tconst written = support.entries[type]?.written;\n\tif (written?.kind === \"tag\") return tagForm(written.tag);\n\tif (written?.kind === \"plain\" && written.syntax !== \"number\") return {\n\t\tkind: written.syntax,\n\t\tphrase: PLAIN_PHRASES[written.syntax]\n\t};\n\treturn Object.entries(support.entries).some(([key, entry]) => entry.written.kind === \"plain\" && entry.written.syntax === \"number\" && (key === type || entry.written.types.some((listed) => listed === type))) ? {\n\t\tkind: \"number\",\n\t\tphrase: PLAIN_PHRASES.number\n\t} : void 0;\n}\n/** What {@link describeAdmittedForms} returns for a type that nothing writes. */\nconst NO_WRITTEN_FORM = \"no written form\";\n/** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */\nfunction admittedForms(support, receivingTypes) {\n\tconst forms = [];\n\tfor (const type of receivingTypes.flatMap((receiving) => admittedTypes(support, receiving))) {\n\t\tconst form = writtenForm(support, type);\n\t\tif (form !== void 0 && !forms.some((listed) => isSameForm(listed, form))) forms.push(form);\n\t}\n\treturn forms;\n}\nfunction joinForms(forms) {\n\treturn forms.length === 0 ? NO_WRITTEN_FORM : forms.map((form) => form.phrase).join(\" or \");\n}\n/** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */\nfunction describeAdmittedForms(support, dataType) {\n\treturn joinForms(admittedForms(support, [dataType]));\n}\n//#endregion\n//#region src/shared/discriminator-rule.ts\n/**\n* The refusals of a discriminator: the field must be required, hold one value, and have one of the stack's text data types; and when an enum types it, each variant's value, as the field stores it, must be one of the enum's members, compared by the field's data type's equality. Returns no refusals for a discriminator that is valid.\n*/\nfunction discriminatorRefusals(input) {\n\tconst { field } = input;\n\tconst textDataTypes = input.dataTypes.textDataTypes ?? [];\n\tif (textDataTypes.length === 0) throw new InternalError(\"The stack names no text data types, so no field can be a discriminator; the target names its text types in its authoring contributions.\");\n\tconst refusals = [];\n\tif (field.nullable) refusals.push({ kind: \"optional\" });\n\tif (field.many) refusals.push({ kind: \"list\" });\n\tconst dataType = field.ref === void 0 ? void 0 : input.codecLookup.descriptorFor(field.ref.codecId)?.dataType;\n\tif (dataType === void 0 || !textDataTypes.includes(dataType)) refusals.push({\n\t\tkind: \"not-text\",\n\t\tdataType,\n\t\ttextDataTypes\n\t});\n\tconst members = field.enumMembers;\n\tif (members !== void 0) {\n\t\tconst equalityKey = dataType === void 0 ? void 0 : input.dataTypes.lookup.get(dataType)?.equalityKey;\n\t\tconst memberKeys = new Set(members.map((member) => storedValueKey(member, equalityKey)));\n\t\tfor (const { key, stored } of input.variantValues) if (!memberKeys.has(storedValueKey(stored, equalityKey))) refusals.push({\n\t\t\tkind: \"not-a-member\",\n\t\t\tkey,\n\t\t\tstored,\n\t\t\tmembers\n\t\t});\n\t}\n\treturn refusals;\n}\n/**\n* A discriminator refusal worded as a PSL diagnostic: a refusal of the field at its `@@discriminator`, and a value that is not a member at its `@@base`. The wording names PSL syntax, so PSL sources word the refusals with this; a TypeScript source words them in its own terms.\n*/\nfunction describeDiscriminatorRefusal(refusal, subject) {\n\tconst field = `Discriminator field \"${subject.fieldName}\" on model \"${subject.modelName}\"`;\n\tswitch (refusal.kind) {\n\t\tcase \"optional\": return `${field} must be required, but it is optional. Remove the \"?\"`;\n\t\tcase \"list\": return `${field} must hold one value, but it is a list. Remove the \"[]\"`;\n\t\tcase \"not-text\": return `${field} must be text, such as String, but is \"${subject.typeName}\"`;\n\t\tcase \"not-a-member\": return `Model \"${subject.variantName(refusal.key)}\" declares @@base value ${JSON.stringify(refusal.stored)}, which is not a member of enum \"${subject.enumName}\", the type of discriminator field \"${subject.modelName}.${subject.fieldName}\". Write one of: ${refusal.members.map((member) => JSON.stringify(member)).join(\", \")}`;\n\t}\n}\n/**\n* Applies the discriminator rule to one discriminator and its variants: reads each variant's written value into the field's codec with {@link readWrittenValueIntoCodec}, worded after `subject`, then decides with {@link discriminatorRefusals}. A refused field refuses the whole discriminator, so its variants' values are neither read nor refused. A discriminator is text, so a stored value that is not a string is a bug in a text data type.\n*/\nfunction applyDiscriminatorRule(input) {\n\tconst { field, codecLookup, dataTypes } = input;\n\tconst fieldOnly = discriminatorRefusals({\n\t\tfield,\n\t\tvariantValues: [],\n\t\tcodecLookup,\n\t\tdataTypes\n\t}).filter(isFieldRefusal);\n\tif (fieldOnly.length > 0) return {\n\t\tfieldRefusals: fieldOnly,\n\t\tvariantRefusals: [],\n\t\tvalues: /* @__PURE__ */ new Map()\n\t};\n\tconst ref = field.ref;\n\tif (ref === void 0) throw new InternalError(\"A discriminator field the rule accepts has a codec.\");\n\tconst reads = input.variants.map(({ key, written }) => ({\n\t\tkey,\n\t\treading: readWrittenValueIntoCodec({\n\t\t\tsupport: dataTypes,\n\t\t\tcodecLookup,\n\t\t\tref,\n\t\t\twritten,\n\t\t\tsubject: input.subject\n\t\t})\n\t}));\n\tconst notMembers = new Map(discriminatorRefusals({\n\t\tfield,\n\t\tvariantValues: reads.flatMap(({ key, reading }) => reading.ok ? [{\n\t\t\tkey,\n\t\t\tstored: reading.value\n\t\t}] : []),\n\t\tcodecLookup,\n\t\tdataTypes\n\t}).flatMap((refusal) => refusal.kind === \"not-a-member\" ? [[refusal.key, refusal]] : []));\n\tconst variantRefusals = [];\n\tconst values = /* @__PURE__ */ new Map();\n\tfor (const { key, reading } of reads) {\n\t\tif (!reading.ok) {\n\t\t\tvariantRefusals.push({\n\t\t\t\tkind: \"unreadable\",\n\t\t\t\tkey,\n\t\t\t\trefusal: reading.failure\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst notMember = notMembers.get(key);\n\t\tif (notMember !== void 0) {\n\t\t\tvariantRefusals.push(notMember);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof reading.value !== \"string\") throw new InternalError(`Discriminator field codec \"${ref.codecId}\" stores a text value as ${typeof reading.value}.`);\n\t\tvalues.set(key, reading.value);\n\t}\n\treturn {\n\t\tfieldRefusals: [],\n\t\tvariantRefusals,\n\t\tvalues\n\t};\n}\nfunction isFieldRefusal(refusal) {\n\treturn refusal.kind !== \"not-a-member\";\n}\n//#endregion\n//#region src/shared/enum-block-members.ts\n/**\n* A problem with an enum's members as a diagnostic at the member, or at the block when the problem is the enum's codec.\n*/\nfunction enumMemberProblemDiagnostic(problem, site) {\n\tconst { enumName, codecId, sourceId } = site;\n\tconst at = (member) => ({\n\t\tsourceId,\n\t\tspan: site.memberSpans[member] ?? site.span\n\t});\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" cannot use the codec \"${codecId}\". ${problem.refusal}`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-missing\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" uses codec \"${codecId}\", which no pack in the contract provides`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-refused-member\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" was rejected by codec \"${codecId}\": ${problem.reason}`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"member-not-stored-as-written\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" is written ${problem.written}, but its codec stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"duplicate-member-value\": return {\n\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\tmessage: problem.earlierStored === void 0 ? `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" both store ${JSON.stringify(problem.stored)}` : `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" store ${JSON.stringify(problem.earlierStored)} and ${JSON.stringify(problem.stored)}, which the database holds equal`,\n\t\t\t...at(problem.later)\n\t\t};\n\t}\n}\n/** A member as it is written: its recorded written value, or a bare member's name, as text. */\nfunction writtenMember(block, memberName, memberValue) {\n\tconst written = block.writtenValues?.[memberName];\n\tif (written !== void 0) return written;\n\tif (memberValue === void 0) return {\n\t\tkind: \"string\",\n\t\ttext: memberName\n\t};\n\tthrow new InternalError(`enum \"${block.name}\" member \"${memberName}\" has a value, but the block holds no written value for it.`);\n}\n/**\n* Reads the members of an `enum` block through its codec with {@link readWrittenValueIntoCodec}: each member's syntax gives it a data type, the codec's data type takes it directly or through a cast, and the codec checks it, so a number keeps every digit and a quoted value is text. A bare member is read from its own name, as text.\n* Pushes a diagnostic and returns `undefined` when a member is refused, when two members\n* store the same value, or when the block has no members. Shared by every family's enum factory.\n*/\nfunction readEnumBlockMembers(block, codecId, codec, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst site = {\n\t\tenumName: block.name,\n\t\tcodecId,\n\t\tsourceId,\n\t\tspan: block.span,\n\t\tmemberSpans: block.parameterSpans\n\t};\n\tconst members = [];\n\tconst storedMembers = [];\n\tlet memberError = false;\n\tfor (const [memberName, memberValue] of Object.entries(block.values)) {\n\t\tconst span = block.parameterSpans[memberName] ?? block.span;\n\t\tconst reading = readWrittenValueIntoCodec({\n\t\t\tsupport: ctx.dataTypes,\n\t\t\tcodecLookup: ctx.codecLookup,\n\t\t\tref: { codecId },\n\t\t\twritten: writtenMember(block, memberName, memberValue),\n\t\t\tsubject: `enum \"${block.name}\" member \"${memberName}\"`\n\t\t});\n\t\tif (!reading.ok) {\n\t\t\tdiagnostics?.push(memberValue === void 0 ? {\n\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : {\n\t\t\t\t...reading.failure,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tconst read = readContractValue(codec, reading.value, void 0);\n\t\tmembers.push({\n\t\t\tname: memberName,\n\t\t\tvalue: read\n\t\t});\n\t\tstoredMembers.push({\n\t\t\tname: memberName,\n\t\t\tstored: codec.dataType.toContract(codec.toDataTypeValue(read))\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(storedMembers, codec.dataType.equalityKey)) {\n\t\tdiagnostics?.push(enumMemberProblemDiagnostic({\n\t\t\tkind: \"duplicate-member-value\",\n\t\t\t...duplicate\n\t\t}, site));\n\t\tmemberError = true;\n\t}\n\tif (memberError) return void 0;\n\tif (members.length === 0) {\n\t\tdiagnostics?.push({\n\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\tsourceId,\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn members;\n}\n//#endregion\n//#region src/shared/enum-members.ts\n/** Whether TypeScript gives the value a literal type: a primitive, or an array or plain object of them. */\nfunction hasLiteralType(value) {\n\tif ([\n\t\t\"string\",\n\t\t\"number\",\n\t\t\"boolean\",\n\t\t\"bigint\"\n\t].includes(typeof value)) return true;\n\tif (Array.isArray(value)) return value.every(hasLiteralType);\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === Object.prototype || prototype === null) && Object.values(value).every(hasLiteralType);\n}\n/**\n* A member's value in the form its codec stores it, and that form read back by the codec. A codec that throws on either is a refusal naming the member; an internal error is not the member's fault and propagates.\n*/\nfunction encodeEnumMember(member, codec) {\n\ttry {\n\t\tconst stored = codec.dataType.toContract(codec.toDataTypeValue(member.value));\n\t\treturn ok({\n\t\t\tstored,\n\t\t\treadBack: readContractValue(codec, stored, void 0)\n\t\t});\n\t} catch (cause) {\n\t\tif (isInternalError(cause)) throw cause;\n\t\treturn notOk({\n\t\t\tkind: \"codec-refused-member\",\n\t\t\tmember: member.name,\n\t\t\treason: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/**\n* Refuses a member its codec reads back as a different value from the one written. A member with no literal type has nothing to compare.\n*/\nfunction notStoredAsWritten(member, stored, readBack) {\n\tif (!hasLiteralType(member.value)) return void 0;\n\tif (hasLiteralType(readBack) && canonicalStringify(readBack) === canonicalStringify(member.value)) return void 0;\n\treturn {\n\t\tkind: \"member-not-stored-as-written\",\n\t\tmember: member.name,\n\t\twritten: canonicalStringify(member.value),\n\t\tstored,\n\t\twriteAs: hasLiteralType(readBack) ? canonicalStringify(readBack) : JSON.stringify(stored)\n\t};\n}\n/**\n* Each member of an enum in the form its codec stores it. Refuses a codec an enum cannot use, a codec the lookup does not have, a member the codec refuses, a member the codec reads back as another value, and two members stored as the same value. Every family's contract build calls this, and reports the problems in its own terms.\n*/\nfunction encodeEnumMembers(decodedEnum, codecLookup) {\n\tconst descriptor = codecLookup.descriptorFor(decodedEnum.codecId);\n\tconst refusal = descriptor === void 0 ? void 0 : enumRefusalOf(descriptor);\n\tif (refusal !== void 0) return notOk([{\n\t\tkind: \"codec-not-for-enums\",\n\t\trefusal\n\t}]);\n\tconst codec = codecLookup.get(decodedEnum.codecId);\n\tif (codec === void 0) return notOk([{ kind: \"codec-missing\" }]);\n\tconst problems = [];\n\tconst members = [];\n\tfor (const member of decodedEnum.enumMembers) {\n\t\tconst encoded = encodeEnumMember(member, codec);\n\t\tif (!encoded.ok) {\n\t\t\tproblems.push(encoded.failure);\n\t\t\tcontinue;\n\t\t}\n\t\tconst { stored, readBack } = encoded.value;\n\t\tconst mismatch = notStoredAsWritten(member, stored, readBack);\n\t\tif (mismatch !== void 0) problems.push(mismatch);\n\t\tmembers.push({\n\t\t\tname: member.name,\n\t\t\tvalue: stored\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(members.map(({ name, value }) => ({\n\t\tname,\n\t\tstored: value\n\t})), codec.dataType.equalityKey)) problems.push({\n\t\tkind: \"duplicate-member-value\",\n\t\t...duplicate\n\t});\n\treturn problems.length > 0 ? notOk(problems) : ok(members);\n}\n//#endregion\n//#region src/shared/field-preset-resolution.ts\nfunction presetSpellingsUnder(members, prefix) {\n\treturn Object.entries(members).flatMap(([name, member]) => isAuthoringFieldPresetDescriptor(member) ? [`${prefix}.${name}(${(member.args ?? []).map((arg, index) => arg.name ?? `argument${index + 1}`).join(\", \")})`] : presetSpellingsUnder(member, `${prefix}.${name}`));\n}\n/**\n* How each field preset registered under `namespace`, at any depth, is written, with the names of its arguments: `temporal.timestamp(onCreate, onUpdate)`.\n*/\nfunction fieldPresetSpellings(contributions, namespace) {\n\tconst members = contributions?.field?.[namespace];\n\tif (members === void 0 || isAuthoringFieldPresetDescriptor(members)) return [];\n\treturn presetSpellingsUnder(members, namespace);\n}\n/**\n* Walks `authoringContributions.field` segment by segment and returns the field-preset descriptor at the path, or `undefined` when none is registered there.\n*/\nfunction getAuthoringFieldPreset(contributions, path) {\n\tlet current = contributions?.field;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringFieldPresetDescriptor(current) ? current : void 0;\n}\n//#endregion\nexport { AUTHORING_TYPE_DESCRIPTOR_KINDS, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, admittedForms, admittedTags, applyDiscriminatorRule, assembleAuthoringDataTypes, assembleDataTypeSupport, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertTypeAliasesValid, authoringTypeConstructorArguments, authoringTypeConstructors, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeDiscriminatorRefusal, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, encodeEnumMembers, entryForPlain, entryForTag, enumMemberProblemDiagnostic, exactRewrite, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeAlias, instantiateAuthoringTypeConstructor, instantiateAuthoringTypeConstructorFromValues, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringSelectRef, isAuthoringTypeAliasDescriptor, isAuthoringTypeConstructorDescriptor, isAuthoringTypeDescriptor, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, readWrittenValueAs, readWrittenValueIntoCodec, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, resolveTypeAliasGenerators, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, temporalPhaseTemplateWithParams, temporalTypeAliases, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };\n\n//# sourceMappingURL=authoring.mjs.map"],"mappings":";;;;;;;;;;AAUA,UAAU,0BAA0B,WAAW,OAAO,CAAC,GAAG;CACzD,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,SAAS,GAAG,IAAI,qCAAqC,KAAK,GAAG,MAAM;EAC7G,MAAM,CAAC,GAAG,MAAM,IAAI;EACpB,YAAY;CACb;MACK,IAAI,CAAC,+BAA+B,KAAK,GAAG,OAAO,0BAA0B,OAAO,CAAC,GAAG,MAAM,IAAI,CAAC;AACzG;AACA,SAAS,SAAS,UAAU,QAAQ;CACnC,MAAM,eAAe;EACpB,GAAG;EACH,YAAY,OAAO,cAAc,CAAC;CACnC;CACA,OAAO,OAAO,QAAQ;EACrB,GAAG;EACH,YAAY,SAAS,cAAc,CAAC;CACrC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,WAAW,iBAAiB,KAAK,MAAM,iBAAiB,aAAa,IAAI,CAAC;AAC3F;;;;;;AAMA,SAAS,kCAAkC,YAAY,QAAQ;CAC9D,IAAI,WAAW,iBAAiB,KAAK,KAAK,WAAW,OAAO,YAAY,OAAO,SAAS;CACxF,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,CAAC,KAAK,aAAa,OAAO,QAAQ,WAAW,OAAO,cAAc,CAAC,CAAC,GAAG;EACjF,MAAM,QAAQ,OAA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