@prisma/orm-target-postgres 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/{adapter-BIWKN0d7-HfXFH4vy.mjs → adapter-BIWKN0d7-B2BpKdVy.mjs} +3 -3
  2. package/dist/{adapter-BIWKN0d7-HfXFH4vy.mjs.map → adapter-BIWKN0d7-B2BpKdVy.mjs.map} +1 -1
  3. package/dist/{adapter-BNZo-LwN.d.mts → adapter-CGBZvb_8.d.mts} +3 -3
  4. package/dist/{adapter-BNZo-LwN.d.mts.map → adapter-CGBZvb_8.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +7 -7
  6. package/dist/adapter.mjs +3 -3
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__control.d.mts +2 -2
  10. package/dist/adapter__control.mjs +3 -3
  11. package/dist/adapter__runtime.d.mts +1 -1
  12. package/dist/adapter__runtime.mjs +4 -4
  13. package/dist/adapter__sql-renderer.d.mts +1 -1
  14. package/dist/adapter__types.d.mts +3 -3
  15. package/dist/{authoring-BYl9graG-BTI-XfEW.mjs → authoring-DOlbnTzz-BWXtiq9i.mjs} +3 -3
  16. package/dist/{authoring-BYl9graG-BTI-XfEW.mjs.map → authoring-DOlbnTzz-BWXtiq9i.mjs.map} +1 -1
  17. package/dist/check-expressions-BLd3bGf1-CwtBWbN3.d.mts +21 -0
  18. package/dist/check-expressions-BLd3bGf1-CwtBWbN3.d.mts.map +1 -0
  19. package/dist/check-expressions-CCFJKC7N-DHEJIG2S.mjs +118 -0
  20. package/dist/check-expressions-CCFJKC7N-DHEJIG2S.mjs.map +1 -0
  21. package/dist/{codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs → codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs} +6 -3
  22. package/dist/codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs.map +1 -0
  23. package/dist/codec-descriptor-Dp3lP7Rc.d.mts +1 -0
  24. package/dist/{codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts → codec-descriptor-nXA2rkO1-DyArG-p2.d.mts} +12 -4
  25. package/dist/codec-descriptor-nXA2rkO1-DyArG-p2.d.mts.map +1 -0
  26. package/dist/{codec-registry-D8Nsfksc-B5zXDblI.mjs → codec-registry-qdVGkdp_-DCI2nWSt.mjs} +4 -4
  27. package/dist/{codec-registry-D8Nsfksc-B5zXDblI.mjs.map → codec-registry-qdVGkdp_-DCI2nWSt.mjs.map} +1 -1
  28. package/dist/{codec-type-map-CIZ7LbPA-CeMPxEAm.d.mts → codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts} +4 -4
  29. package/dist/{codec-type-map-CIZ7LbPA-CeMPxEAm.d.mts.map → codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts.map} +1 -1
  30. package/dist/codec-types-BioRVnRb.d.mts +2 -0
  31. package/dist/{codec-types-C7E42vTO-CGX0m6Mb.d.mts → codec-types-xBRj9sIm-atN8rfl1.d.mts} +4 -4
  32. package/dist/{codec-types-C7E42vTO-CGX0m6Mb.d.mts.map → codec-types-xBRj9sIm-atN8rfl1.d.mts.map} +1 -1
  33. package/dist/{codecs-BVyoUeNy-DZw_7n3P.mjs → codecs-BcYLh1iB-Dxi2UgkJ.mjs} +41 -3
  34. package/dist/codecs-BcYLh1iB-Dxi2UgkJ.mjs.map +1 -0
  35. package/dist/{codecs-DulR4oG1.d.mts → codecs-DCtBjmAW.d.mts} +3 -3
  36. package/dist/{codecs-DulR4oG1.d.mts.map → codecs-DCtBjmAW.d.mts.map} +1 -1
  37. package/dist/{codecs-BJBFipkV-CVMp939Z.d.mts → codecs-qCAX5T6T-sg3NIKfN.d.mts} +40 -3
  38. package/dist/codecs-qCAX5T6T-sg3NIKfN.d.mts.map +1 -0
  39. package/dist/{contract-contributions-DTGGTwRZ-DUokY6NT.mjs → contract-contributions-DTGGTwRZ-BmYIo6M5.mjs} +3 -3
  40. package/dist/{contract-contributions-DTGGTwRZ-DUokY6NT.mjs.map → contract-contributions-DTGGTwRZ-BmYIo6M5.mjs.map} +1 -1
  41. package/dist/{control-nSGzcTXc.d.mts → control-CCetIiFG.d.mts} +3 -3
  42. package/dist/{control-nSGzcTXc.d.mts.map → control-CCetIiFG.d.mts.map} +1 -1
  43. package/dist/{control-policy-D9yEV-XI-CCDB2v5g.mjs → control-policy-B1Zvw6VN-DN4QDwpc.mjs} +3 -3
  44. package/dist/{control-policy-D9yEV-XI-CCDB2v5g.mjs.map → control-policy-B1Zvw6VN-DN4QDwpc.mjs.map} +1 -1
  45. package/dist/{date-time-now-generators-DsGxTwjo-DTb5oTHX.mjs → date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs} +3 -3
  46. package/dist/{date-time-now-generators-DsGxTwjo-DTb5oTHX.mjs.map → date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs.map} +1 -1
  47. package/dist/{descriptor-meta-RxUflZY0-BNMenVO8.mjs → descriptor-meta-CGRsMMdO-tQxNSE_j.mjs} +6 -6
  48. package/dist/{descriptor-meta-RxUflZY0-BNMenVO8.mjs.map → descriptor-meta-CGRsMMdO-tQxNSE_j.mjs.map} +1 -1
  49. package/dist/{descriptor-meta-I7Ih-0hE-BzEpKpQF.mjs → descriptor-meta-I7Ih-0hE-CrOjEir4.mjs} +3 -3
  50. package/dist/{descriptor-meta-I7Ih-0hE-BzEpKpQF.mjs.map → descriptor-meta-I7Ih-0hE-CrOjEir4.mjs.map} +1 -1
  51. package/dist/{diff-database-schema-j18Gm75j-CNAELOTU.mjs → diff-database-schema-ASDRsuei-3Yro3-Tw.mjs} +3 -3
  52. package/dist/{diff-database-schema-j18Gm75j-CNAELOTU.mjs.map → diff-database-schema-ASDRsuei-3Yro3-Tw.mjs.map} +1 -1
  53. package/dist/{full-text-collection-method-DHuJr46z-Bndk11cK.d.mts → full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts} +4 -4
  54. package/dist/full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts.map +1 -0
  55. package/dist/{full-text-xZIrFi7x.d.mts → full-text-k_9J-JPd.d.mts} +3 -3
  56. package/dist/{full-text-xZIrFi7x.d.mts.map → full-text-k_9J-JPd.d.mts.map} +1 -1
  57. package/dist/{infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs → infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs} +11 -9
  58. package/dist/infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs.map +1 -0
  59. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  60. package/dist/{op-factory-call-DI5rMe0F-Cvj8LzGR.mjs → op-factory-call-CUu2s6l7-CaAVzTwP.mjs} +7 -4
  61. package/dist/op-factory-call-CUu2s6l7-CaAVzTwP.mjs.map +1 -0
  62. package/dist/operation-types-ByVoHU_s.d.mts +1 -0
  63. package/dist/{operation-types-BlaAPrew-BkZiJwPy.d.mts → operation-types-DfWYI0Cn-fXs3p9mN.d.mts} +3 -3
  64. package/dist/{operation-types-BlaAPrew-BkZiJwPy.d.mts.map → operation-types-DfWYI0Cn-fXs3p9mN.d.mts.map} +1 -1
  65. package/dist/{pack-BSTwDeu2.d.mts → pack-DKR4BRIY.d.mts} +5 -5
  66. package/dist/{pack-BSTwDeu2.d.mts.map → pack-DKR4BRIY.d.mts.map} +1 -1
  67. package/dist/{planner-Bhde2uHk-CSZF9ODS.mjs → planner-C69ALB15-CasiGSdJ.mjs} +7 -7
  68. package/dist/{planner-Bhde2uHk-CSZF9ODS.mjs.map → planner-C69ALB15-CasiGSdJ.mjs.map} +1 -1
  69. package/dist/{planner-produced-postgres-migration-CT7o4vF9-DHyGaSfZ.mjs → planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs} +4 -4
  70. package/dist/{planner-produced-postgres-migration-CT7o4vF9-DHyGaSfZ.mjs.map → planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs.map} +1 -1
  71. package/dist/{postgres-codec-traits-BfhOLlQK-BqSX5cGp.mjs → postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs} +3 -3
  72. package/dist/{postgres-codec-traits-BfhOLlQK-BqSX5cGp.mjs.map → postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs.map} +1 -1
  73. package/dist/{postgres-contract-view-d_EYkS83-Busf8EFd.mjs → postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs} +5 -5
  74. package/dist/{postgres-contract-view-d_EYkS83-Busf8EFd.mjs.map → postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs.map} +1 -1
  75. package/dist/{postgres-migration-CRKs0heQ-BE95T3ql.mjs → postgres-migration-69O9MUBt-BQ1_mj4S.mjs} +6 -6
  76. package/dist/{postgres-migration-CRKs0heQ-BE95T3ql.mjs.map → postgres-migration-69O9MUBt-BQ1_mj4S.mjs.map} +1 -1
  77. package/dist/{prisma7-binding-BwJtshLc.mjs → prisma7-binding-CcrXBBbM.mjs} +5 -5
  78. package/dist/{prisma7-binding-BwJtshLc.mjs.map → prisma7-binding-CcrXBBbM.mjs.map} +1 -1
  79. package/dist/{prisma7-binding-CQXZgPCd.d.mts → prisma7-binding-DFb9yHdO.d.mts} +5 -5
  80. package/dist/{prisma7-binding-CQXZgPCd.d.mts.map → prisma7-binding-DFb9yHdO.d.mts.map} +1 -1
  81. package/dist/{render-ops-CSWpAFQI-CqyjJlzM.mjs → render-ops-Dr6RDk6z-CSGJsR6N.mjs} +3 -3
  82. package/dist/{render-ops-CSWpAFQI-CqyjJlzM.mjs.map → render-ops-Dr6RDk6z-CSGJsR6N.mjs.map} +1 -1
  83. package/dist/{runtime-BjS3N8LM.d.mts → runtime-DGgnFCG7.d.mts} +2 -2
  84. package/dist/{runtime-BjS3N8LM.d.mts.map → runtime-DGgnFCG7.d.mts.map} +1 -1
  85. package/dist/{runtime-DtjW0GP_.d.mts → runtime-R_BCXCp_.d.mts} +2 -2
  86. package/dist/{runtime-DtjW0GP_.d.mts.map → runtime-R_BCXCp_.d.mts.map} +1 -1
  87. package/dist/{sql-renderer-BiBhge7D.d.mts → sql-renderer-BnO2fkSf.d.mts} +4 -4
  88. package/dist/{sql-renderer-BiBhge7D.d.mts.map → sql-renderer-BnO2fkSf.d.mts.map} +1 -1
  89. package/dist/target.d.mts +16 -16
  90. package/dist/target.mjs +16 -16
  91. package/dist/target__codec-descriptor.d.mts +2 -2
  92. package/dist/target__codec-descriptor.mjs +1 -1
  93. package/dist/target__codec-types.d.mts +3 -3
  94. package/dist/target__codecs.d.mts +2 -2
  95. package/dist/target__codecs.mjs +2 -2
  96. package/dist/target__control.mjs +141 -34
  97. package/dist/target__control.mjs.map +1 -1
  98. package/dist/target__diff-database-schema.mjs +1 -1
  99. package/dist/target__full-text-index-authoring.mjs +1 -1
  100. package/dist/target__full-text.d.mts +3 -3
  101. package/dist/target__issue-planner.mjs +1 -1
  102. package/dist/target__migration.mjs +2 -2
  103. package/dist/target__op-factory-call.mjs +1 -1
  104. package/dist/target__operation-types.d.mts +2 -2
  105. package/dist/target__pack.d.mts +2 -2
  106. package/dist/target__pack.mjs +1 -1
  107. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  108. package/dist/target__planner.mjs +2 -2
  109. package/dist/target__prisma7-binding.d.mts +1 -1
  110. package/dist/target__prisma7-binding.mjs +1 -1
  111. package/dist/target__render-ops.mjs +1 -1
  112. package/dist/target__runtime.d.mts +2 -2
  113. package/dist/target__runtime.mjs +3 -3
  114. package/dist/target__runtime.mjs.map +1 -1
  115. package/dist/target__types.d.mts +3 -3
  116. package/dist/target__types.mjs +1 -1
  117. package/dist/types-CuFeRfUn.d.mts +2 -0
  118. package/dist/{types-DOmgp_12.d.mts → types-D-U10Lyo.d.mts} +2 -2
  119. package/dist/{types-DOmgp_12.d.mts.map → types-D-U10Lyo.d.mts.map} +1 -1
  120. package/dist/{types-D6lgKhE5-D1J9YJnd.d.mts → types-D6lgKhE5-BrgAgVCq.d.mts} +4 -4
  121. package/dist/{types-D6lgKhE5-D1J9YJnd.d.mts.map → types-D6lgKhE5-BrgAgVCq.d.mts.map} +1 -1
  122. package/package.json +9 -9
  123. package/dist/check-expressions-BPrbjEKM-CEIP4jTS.mjs +0 -48
  124. package/dist/check-expressions-BPrbjEKM-CEIP4jTS.mjs.map +0 -1
  125. package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts +0 -55
  126. package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts.map +0 -1
  127. package/dist/codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs.map +0 -1
  128. package/dist/codec-descriptor-Fb3UoQGb.d.mts +0 -1
  129. package/dist/codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts.map +0 -1
  130. package/dist/codec-types-CiEHACsD.d.mts +0 -2
  131. package/dist/codecs-BJBFipkV-CVMp939Z.d.mts.map +0 -1
  132. package/dist/codecs-BVyoUeNy-DZw_7n3P.mjs.map +0 -1
  133. package/dist/full-text-collection-method-DHuJr46z-Bndk11cK.d.mts.map +0 -1
  134. package/dist/infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs.map +0 -1
  135. package/dist/op-factory-call-DI5rMe0F-Cvj8LzGR.mjs.map +0 -1
  136. package/dist/operation-types-Bz8xX2oY.d.mts +0 -1
  137. package/dist/types-BZ2l9Q5i.d.mts +0 -2
@@ -1 +0,0 @@
1
- {"version":3,"file":"codecs-BVyoUeNy-DZw_7n3P.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codecs-BVyoUeNy.mjs"],"sourcesContent":["import { A as PG_TIMESTAMP_TEMPORAL_CODEC_ID, C as PG_TEXT_CODEC_ID, D as PG_TIMESTAMP_DATE_CODEC_ID, E as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, F as PG_UNBOUNDED_INT_CODEC_ID, I as PG_UUID_CODEC_ID, L as PG_VARBIT_CODEC_ID, M as PG_TIME_STRING_CODEC_ID, N as PG_TIME_TEMPORAL_CODEC_ID, O as PG_TIMESTAMP_INSTANT_CODEC_ID, P as PG_TSQUERY_CODEC_ID, R as PG_VARCHAR_CODEC_ID, S as PG_TEXT_ARRAY_CODEC_ID, T as PG_TIMESTAMPTZ_STRING_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_JSON_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TIMETZ_CODEC_ID, k as PG_TIMESTAMP_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_INT_CODEC_ID, w as PG_TIMESTAMPTZ_DATE_CODEC_ID, x as PG_NUMERIC_CODEC_ID, y as PG_JSONB_CODEC_ID } from \"./codec-ids-D0wjQdEW.mjs\";\nimport { a as errorTemporalUnavailableForDefault, c as errorTimestampTextWrongType, i as errorTemporalUnavailable, l as postgresError, o as errorTemporalUnrepresentable, r as errorTemporalNonIsoCalendar, s as errorTemporalWrongType, t as errorDateStyleNotIso } from \"./errors-Di_apgWJ.mjs\";\nimport { $ as postgresIntervalFields, A as pgTimestampStoredText, C as pgNumericParams, D as pgTime, E as pgTextArray, F as pgTsquery, G as ISO_DURATION, H as isoYearText, I as pgUuid, J as intervalFieldsOf, K as MICROS_PER_SECOND, L as pgVarbit, M as pgTimestamptzStoredText, N as pgTimetz, Q as pgIntervalStoredText, R as pgVarchar, S as pgNumeric, T as pgText, U as postgresYearText, W as BYTEA_TEXT, Y as microsFromFraction, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptz, k as pgTimestamp, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, q as formatIsoDuration, r as pgBitLengthParams, s as pgCharacterLengthParams, u as pgEnum, v as pgInterval, w as pgPrecisionParams, x as pgJsonbEnumRefusal, y as pgJson } from \"./data-types-B7S_CHZd.mjs\";\nimport { a as postgresCodec, r as definePostgresCodecs, t as PostgresCodecDescriptor } from \"./codec-descriptor-DoR-cTFZ.mjs\";\nimport \"./namespace-ids-xtp_ZY86.mjs\";\nimport { t as PostgresNativeEnum } from \"./postgres-native-enum-CdP3b_-R.mjs\";\nimport { CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, NullCheckExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlRawCodec, SqlTextCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlRawDescriptor, sqlTextDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, dateTimeStoredText, decimalTextBigintLiteral, decimalTextNumberLiteral, floatNumberLiteral, floatToJson, isNonFiniteText, numeralText, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral, storedNumeralText } from \"@internal/framework-components/codec\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\nimport { sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { parse } from \"postgres-array\";\n//#region src/core/codec-helpers.ts\n/**\n* A `numeric` value as its canonical decimal text. A number is written out without an exponent,\n* because `numeric` text has no exponent syntax and `toDataTypeValue` refuses one.\n*/\nconst pgNumericDecode = (wire) => {\n\tif (typeof wire === \"number\") return numeralText(wire);\n\treturn wire;\n};\nconst DECIMAL_INTEGER = /^-?\\d+$/;\n/**\n* Requires an application value to be of the JS type the codec reads.\n*\n* A range check reads a value of the wrong type as a value out of range, and\n* reports a number plainly inside the range as outside it — so the type is\n* established first and answered for on its own terms, naming what a caller\n* has to change.\n*/\nconst requireJsType = (codecId, expected, value) => {\n\tif (typeof value === expected) return;\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a ${expected}, got ${typeof value} ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: typeof value\n\t} });\n};\n/** Writes a `bigint` application value as the decimal text the wire form of the exact integer codecs carries. */\nconst pgBigintEncode = (codecId, value) => {\n\trequireJsType(codecId, \"bigint\", value);\n\treturn value.toString();\n};\n/**\n* Writes an application value as the decimal text these codecs carry as their\n* canonical JSON.\n*\n* A schema-written literal default (`BigInt @default(0)`) arrives here as a\n* `number`, since a number literal is the only integer a schema language\n* writes, and one that is a safe integer names its value exactly. Past that\n* range the literal was rounded before any of this ran, so the value written is\n* not the value meant — which this refuses rather than minting an exact-looking\n* total from it. A non-integral number is refused on the same terms.\n*/\nconst pgBigintDigits = (codecId, value) => {\n\tif (typeof value !== \"number\") return pgBigintEncode(codecId, value);\n\tif (!Number.isSafeInteger(value)) throw postgresError(\"RUNTIME.ENCODE_FAILED\", `${codecId} number literal must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn BigInt(value).toString();\n};\n/**\n* Reads a wire or JSON value as a `bigint`, rejecting anything `BigInt()` would\n* misread. A number-typed wire value must also be a safe integer: past\n* ±(2^53 − 1) the driver's `number` has already rounded, so stringifying it\n* would mint a spuriously-exact `bigint` that need not equal the stored value.\n*/\nconst decimalIntegerDecode = (codecId, wire) => {\n\tif (typeof wire === \"bigint\") return wire;\n\tconst text = String(wire);\n\tif (!DECIMAL_INTEGER.test(text)) throw postgresError(\"RUNTIME.DECODE_FAILED\", `${codecId} value must be a decimal integer`, { meta: {\n\t\tcodecId,\n\t\treceived: text\n\t} });\n\tif (typeof wire === \"number\" && !Number.isSafeInteger(wire)) throw postgresError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire number must be an integer within the safe integer range, got ${text}`, { meta: {\n\t\tcodecId,\n\t\treceived: text\n\t} });\n\treturn BigInt(text);\n};\n/** Reads an `int8` wire or JSON value as a `bigint`, rejecting anything `BigInt()` would misread. */\nconst pgInt8Decode = (wire) => decimalIntegerDecode(\"pg/int8@1\", wire);\n/**\n* Reads an unconstrained-`numeric` wire or JSON value as a `bigint`, rejecting\n* non-integral values — including `NaN` and the infinities, which are `numeric`\n* values but not integers.\n*/\nconst pgUnboundedIntDecode = (wire) => decimalIntegerDecode(\"pg/unboundedint@1\", wire);\n/**\n* A SQL number literal has no form for `NaN` or the infinities; PostgreSQL reads and writes them as\n* the text `NaN`, `Infinity`, `-Infinity`, so the float codecs carry them as that text on the wire,\n* as `floatToJson` does in JSON.\n*/\nconst pgFloatEncode = (value) => Number.isFinite(value) ? value : String(value);\n/**\n* Requires an integer within ±(2^53 − 1), the range a JS `number` holds\n* exactly. The guard throws rather than rounding: past the boundary a `number`\n* silently loses digits, which is the failure mode this codec exists to refuse.\n*/\nconst pgInt8NumberGuard = (code, value) => {\n\tif (!Number.isSafeInteger(value)) throw postgresError(code, `pg/int8number@1 value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId: \"pg/int8number@1\",\n\t\treceived: String(value)\n\t} });\n\treturn value;\n};\nconst pgInt8NumberEncode = (value) => {\n\trequireJsType(\"pg/int8number@1\", \"number\", value);\n\treturn String(pgInt8NumberGuard(\"RUNTIME.ENCODE_FAILED\", value));\n};\n/**\n* Reads an `int8` wire value as a `number`, throwing outside ±(2^53 − 1) and on\n* non-integral input. Decimal text goes through `BigInt` before the range check\n* so an out-of-range value is compared exactly rather than after rounding.\n*/\nconst pgInt8NumberDecode = (wire) => {\n\tif (typeof wire === \"number\") return pgInt8NumberGuard(\"RUNTIME.DECODE_FAILED\", wire);\n\tconst value = decimalIntegerDecode(\"pg/int8number@1\", wire);\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/int8number@1 value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId: \"pg/int8number@1\",\n\t\treceived: value.toString()\n\t} });\n\treturn Number(value);\n};\n/** A `number` holds an integer exactly only within the safe integer range, so digit text past it is refused. */\nconst pgInt8NumberFromDigits = (digits) => Number(readJsonIntegerText(\"pg/int8number@1\", digits, SAFE_INTEGER_BIGINT_RANGE));\n/** Parses an ISO-8601 duration into the application value. */\nconst pgIntervalFromIso = (text) => intervalFieldsOf(text);\n/** Renders the application value as its canonical ISO-8601 duration. */\nconst pgIntervalToIso = (value) => formatIsoDuration(value);\nconst ZERO_INTERVAL = {\n\tmonths: 0,\n\tdays: 0,\n\tmicros: 0n\n};\n/** `count` with the sign `negative` gives it, never `-0`. */\nconst signed = (negative, count) => negative && count !== 0 ? -count : count;\nconst negated = ({ months, days, micros }) => ({\n\tmonths: signed(true, months),\n\tdays: signed(true, days),\n\tmicros: -micros\n});\n/** Hours, minutes, seconds and a fraction of a second, with one sign for all of them. */\nfunction timeMicros(negative, hours, minutes, seconds, fraction) {\n\tconst magnitude = (BigInt(hours) * 3600n + BigInt(minutes) * 60n + BigInt(seconds)) * MICROS_PER_SECOND + microsFromFraction(fraction, negative);\n\treturn negative ? -magnitude : magnitude;\n}\nconst VERBOSE_FIELD = /^(-?)(\\d+)(?:\\.(\\d+))? (year|mon|day|hour|min|sec)s?$/;\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'postgres_verbose'`: `@ 1 year 2 mons\n* -3 days 4 hours 5 mins 6.5 secs`, each field with its own sign, and ` ago` negating the whole; `@ 0`\n* for zero.\n*/\nfunction verboseIntervalFields(text) {\n\tif (!text.startsWith(\"@ \")) return void 0;\n\tconst ago = text.endsWith(\" ago\");\n\tconst body = text.slice(2, ago ? -4 : void 0);\n\tif (body === \"0\") return ZERO_INTERVAL;\n\tconst words = body.split(\" \");\n\tif (words.length === 0 || words.length % 2 !== 0) return void 0;\n\tlet months = 0;\n\tlet days = 0;\n\tlet micros = 0n;\n\tfor (let index = 0; index < words.length; index += 2) {\n\t\tconst match = VERBOSE_FIELD.exec(`${words[index]} ${words[index + 1]}`);\n\t\tif (match === null) return void 0;\n\t\tconst [, sign = \"\", whole = \"0\", fraction, unit] = match;\n\t\tif (fraction !== void 0 && unit !== \"sec\") return void 0;\n\t\tconst negative = sign === \"-\";\n\t\tconst count = signed(negative, Number(whole));\n\t\tif (unit === \"year\") months += count * 12;\n\t\telse if (unit === \"mon\") months += count;\n\t\telse if (unit === \"day\") days += count;\n\t\telse if (unit === \"hour\") micros += BigInt(count) * 3600n * MICROS_PER_SECOND;\n\t\telse if (unit === \"min\") micros += BigInt(count) * 60n * MICROS_PER_SECOND;\n\t\telse micros += timeMicros(negative, \"0\", \"0\", whole, fraction ?? \"\");\n\t}\n\tconst fields = {\n\t\tmonths,\n\t\tdays,\n\t\tmicros\n\t};\n\treturn ago ? negated(fields) : fields;\n}\nconst SQL_MIXED = /^([+-])(\\d+)-(\\d+) ([+-])(\\d+) ([+-])(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?$/;\nconst SQL_YEAR_MONTH = /^(-?)(\\d+)-(\\d+)$/;\nconst SQL_DAY_TIME = /^(-?)(?:(\\d+) )?(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?$/;\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'sql_standard'`. A value with fields of\n* one sign and of one kind, year-month or day-time, has a single leading sign for all of them:\n* `-1-2`, `-1 2:03:04`, `-0:00:01.5`. Any other value signs each part: `+1-2 -3 +4:05:06.5`. Zero is\n* `0`.\n*/\nfunction sqlStandardIntervalFields(text) {\n\tif (text === \"0\") return ZERO_INTERVAL;\n\tconst mixed = SQL_MIXED.exec(text);\n\tif (mixed !== null) {\n\t\tconst [, yearSign, years = \"0\", months = \"0\", daySign, days = \"0\", timeSign] = mixed;\n\t\tconst monthCount = Number(years) * 12 + Number(months);\n\t\treturn {\n\t\t\tmonths: signed(yearSign === \"-\", monthCount),\n\t\t\tdays: signed(daySign === \"-\", Number(days)),\n\t\t\tmicros: timeMicros(timeSign === \"-\", mixed[7] ?? \"0\", mixed[8] ?? \"0\", mixed[9] ?? \"0\", mixed[10] ?? \"\")\n\t\t};\n\t}\n\tconst yearMonth = SQL_YEAR_MONTH.exec(text);\n\tif (yearMonth !== null) {\n\t\tconst [, sign, years = \"0\", months = \"0\"] = yearMonth;\n\t\tconst monthCount = Number(years) * 12 + Number(months);\n\t\treturn {\n\t\t\tmonths: signed(sign === \"-\", monthCount),\n\t\t\tdays: 0,\n\t\t\tmicros: 0n\n\t\t};\n\t}\n\tconst dayTime = SQL_DAY_TIME.exec(text);\n\tif (dayTime === null) return void 0;\n\tconst [, sign, days = \"0\", hours = \"0\", minutes = \"0\", seconds = \"0\", fraction = \"\"] = dayTime;\n\tconst negative = sign === \"-\";\n\treturn {\n\t\tmonths: 0,\n\t\tdays: signed(negative, Number(days)),\n\t\tmicros: timeMicros(negative, hours, minutes, seconds, fraction)\n\t};\n}\n/** Reads the interval text PostgreSQL prints under any `IntervalStyle`. */\nconst intervalTextFields = (text) => {\n\tconst fields = ISO_DURATION.test(text) ? intervalFieldsOf(text) : postgresIntervalFields(text) ?? verboseIntervalFields(text) ?? sqlStandardIntervalFields(text);\n\tif (fields === void 0) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/interval@1 value must be interval text PostgreSQL prints under an IntervalStyle, got ${text}`, { meta: {\n\t\tcodecId: \"pg/interval@1\",\n\t\treceived: text\n\t} });\n\treturn fields;\n};\nconst pgIntervalDecode = (wire) => {\n\tif (typeof wire === \"string\") return intervalTextFields(wire);\n\tconst part = (name) => {\n\t\tconst raw = wire[name];\n\t\treturn typeof raw === \"number\" ? raw : 0;\n\t};\n\tconst seconds = part(\"seconds\") + part(\"milliseconds\") / 1e3;\n\treturn {\n\t\tmonths: part(\"years\") * 12 + part(\"months\"),\n\t\tdays: part(\"days\"),\n\t\tmicros: BigInt(part(\"hours\")) * 3600n * MICROS_PER_SECOND + BigInt(part(\"minutes\")) * 60n * MICROS_PER_SECOND + BigInt(Math.round(seconds * 1e6))\n\t};\n};\nconst pgByteaToBase64 = (value) => Buffer.from(value).toString(\"base64\");\nconst pgByteaFromBase64 = (base64) => new Uint8Array(Buffer.from(base64, \"base64\"));\n/** The text PostgreSQL prints for `bytea` under `bytea_output = 'escape'`: `\\\\` for a backslash, `\\nnn` in octal for a byte outside printable ASCII, and every other byte as itself. */\nconst BYTEA_ESCAPE_TEXT = /^(?:[ -[\\]-~]|\\\\\\\\|\\\\[0-3][0-7]{2})*$/;\nconst BYTEA_ESCAPE = /\\\\\\\\|\\\\([0-3][0-7]{2})|[ -[\\]-~]/g;\nfunction byteaOfEscapeText(text) {\n\tconst bytes = [];\n\tfor (const [token, octal] of text.matchAll(BYTEA_ESCAPE)) bytes.push(octal !== void 0 ? Number.parseInt(octal, 8) : token === \"\\\\\\\\\" ? 92 : token.charCodeAt(0));\n\treturn Uint8Array.from(bytes);\n}\nconst pgByteaDecodeWire = (wire) => {\n\tif (wire instanceof Uint8Array) return wire.constructor === Uint8Array ? wire : new Uint8Array(wire.buffer, wire.byteOffset, wire.byteLength);\n\tif (BYTEA_TEXT.test(wire)) return new Uint8Array(Buffer.from(wire.slice(2), \"hex\"));\n\tif (!wire.startsWith(\"\\\\x\") && BYTEA_ESCAPE_TEXT.test(wire)) return byteaOfEscapeText(wire);\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bytea@1 wire value must be a Uint8Array or bytea text, as PostgreSQL prints it under bytea_output 'hex' or 'escape'\", { meta: {\n\t\tcodecId: \"pg/bytea@1\",\n\t\treceived: wire\n\t} });\n};\nconst parseJsonWire = JSON.parse;\nconst pgJsonEncode = (value) => JSON.stringify(value);\nconst pgJsonDecode = (wire) => typeof wire === \"string\" ? parseJsonWire(wire) : wire;\nconst pgJsonbEncode = (value) => JSON.stringify(value);\nconst pgJsonbDecode = (wire) => typeof wire === \"string\" ? parseJsonWire(wire) : wire;\n//#endregion\n//#region src/core/date-time-wire-text.ts\nconst INFINITIES = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\nconst ISO_DATE_PREFIX = /^[+-]?\\d{4,}-\\d{2}-\\d{2}/;\nconst LONG_YEAR_DATE = /^(\\d{7,})(-\\d{2}-\\d{2})$/;\nconst END_OF_DAY = \"24:00:00\";\nconst MIDNIGHT = \"00:00:00\";\n/** `wire`, a date or timestamp PostgreSQL printed or its ISO 8601 stored form, unless it printed it under a DateStyle other than ISO, which is refused. `infinity` and `-infinity` print the same in every style. */\nfunction requireIsoDateStyle(codecId, wire) {\n\tif (INFINITIES.has(wire) || ISO_DATE_PREFIX.test(wire)) return wire;\n\tthrow errorDateStyleNotIso(codecId, wire);\n}\n/**\n* The stored form (ADR 254, \"Date and time types\") of the text PostgreSQL prints for a date or time type under DateStyle ISO, with the UTC offset of an instant converted to UTC. A value PostgreSQL holds beyond the stored form's range is read as ISO text of the same shape: a year of seven digits keeps them all, as in `+5874897-12-31`, and the end of the day stays `24:00:00`. Text PostgreSQL prints under another DateStyle is refused.\n*/\nfunction storedTextFromWire(codecId, reading, wire) {\n\tif (reading.holdsInfinity && INFINITIES.has(wire)) return wire;\n\tconst hasDate = reading.shape !== \"time\" && reading.shape !== \"timeWithOffset\";\n\tif (hasDate) requireIsoDateStyle(codecId, wire);\n\tconst longYear = reading.shape === \"date\" ? LONG_YEAR_DATE.exec(wire) : null;\n\tif (longYear !== null) return `+${longYear[1]}${longYear[2]}`;\n\tif (!hasDate && wire.startsWith(END_OF_DAY)) {\n\t\tconst read = storedText(codecId, reading, `${MIDNIGHT}${wire.slice(8)}`);\n\t\treturn `${END_OF_DAY}${read.slice(8)}`;\n\t}\n\treturn storedText(codecId, reading, wire);\n}\nfunction storedText(codecId, reading, wire) {\n\treturn dateTimeStoredText(isoYearText(wire), {\n\t\tshape: reading.shape,\n\t\townerId: codecId,\n\t\t...ifDefined(\"maxOffsetHours\", reading.maxOffsetHours)\n\t}, wire);\n}\n//#endregion\n//#region src/core/require-temporal.ts\nlet fallback;\n/**\n* Sets the implementation `requireTemporal` returns when the runtime has no global `Temporal`.\n* The value is held once per process. Only the control entry calls this.\n*/\nfunction setFallbackTemporal(implementation) {\n\tfallback = implementation;\n}\n/**\n* The `Temporal` to use: the runtime's own when it has one, else the fallback. Throws\n* `RUNTIME.TEMPORAL_UNAVAILABLE` when there is neither.\n*/\nfunction requireTemporal(meta) {\n\tconst runtimeTemporal = blindCast(globalThis).Temporal;\n\tif (runtimeTemporal !== void 0) return runtimeTemporal;\n\tif (fallback !== void 0) return fallback;\n\tthrow \"generatorId\" in meta ? errorTemporalUnavailableForDefault(meta.generatorId) : errorTemporalUnavailable(meta.codecId, meta.operation);\n}\n//#endregion\n//#region src/core/temporal-codec-helpers.ts\nconst POSTGRES_TEMPORAL_SENTINELS = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\n/** The Temporal types whose text PostgreSQL prints the same in every DateStyle, because it holds no date. Every other Temporal codec reads a date, so its text is refused unless PostgreSQL printed it under DateStyle ISO. */\nconst TEMPORAL_TAGS_WITHOUT_A_DATE = /* @__PURE__ */ new Set([\"Temporal.PlainTime\"]);\nfunction decodeTemporalText(identity, wire, parse) {\n\tconst temporal = requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t});\n\tif (!TEMPORAL_TAGS_WITHOUT_A_DATE.has(identity.temporalTag)) requireIsoDateStyle(identity.codecId, wire);\n\tif (POSTGRES_TEMPORAL_SENTINELS.has(wire)) throw errorTemporalUnrepresentable({\n\t\t...identity,\n\t\toperation: \"decode\",\n\t\tvalue: wire,\n\t\tdetail: `PostgreSQL's ${wire} is a sentinel with no position on the timeline, so no Temporal value denotes it`\n\t});\n\ttry {\n\t\treturn parse(temporal, isoYearText(wire));\n\t} catch (cause) {\n\t\tthrow errorTemporalUnrepresentable({\n\t\t\t...identity,\n\t\t\toperation: \"decode\",\n\t\t\tvalue: wire,\n\t\t\tdetail: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\nfunction encodeTemporalValue(identity, value, isoText = (temporalValue) => temporalValue.toString()) {\n\tconst tag = typeof value === \"object\" && value !== null ? Reflect.get(value, Symbol.toStringTag) : void 0;\n\tif (tag !== identity.temporalTag) throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, describeEncodeInput(value, tag));\n\tif (value.calendarId !== void 0 && value.calendarId !== \"iso8601\") throw errorTemporalNonIsoCalendar(identity.codecId, value.calendarId);\n\treturn postgresYearText(isoText(value));\n}\nfunction describeEncodeInput(value, tag) {\n\tif (typeof tag === \"string\") return `a ${tag}`;\n\tif (value instanceof Date) return \"a Date\";\n\tif (value === null) return \"null\";\n\treturn `a ${typeof value}`;\n}\n/** Refuses `infinity` and `-infinity` in a stored value, which no Temporal value or `Date` holds, naming the text codec of the type that does. */\nfunction refuseInfinity(codecId, holds, textCodecId, text) {\n\tif (!POSTGRES_TEMPORAL_SENTINELS.has(text)) return;\n\trefuseJsonValue(codecId, `${holds}, not infinity or -infinity, which ${textCodecId} holds`, text);\n}\nconst DATE_TEMPORAL = {\n\tcodecId: PG_DATE_TEMPORAL_CODEC_ID,\n\tstringType: \"DateString\",\n\ttemporalTag: \"Temporal.PlainDate\"\n};\nconst TIMESTAMP_TEMPORAL = {\n\tcodecId: PG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestampString(p)\",\n\ttemporalTag: \"Temporal.PlainDateTime\"\n};\nconst TIMESTAMPTZ_TEMPORAL = {\n\tcodecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestamptzString(p)\",\n\ttemporalTag: \"Temporal.Instant\"\n};\nconst TIMESTAMP_INSTANT = {\n\tcodecId: PG_TIMESTAMP_INSTANT_CODEC_ID,\n\tstringType: \"TimestampString(p)\",\n\ttemporalTag: \"Temporal.Instant\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: PG_TIME_TEMPORAL_CODEC_ID,\n\tstringType: \"TimeString(p)\",\n\ttemporalTag: \"Temporal.PlainTime\"\n};\nconst pgDateTemporalDecode = (wire) => decodeTemporalText(DATE_TEMPORAL, wire, (temporal, text) => temporal.PlainDate.from(text));\nconst pgDateTemporalEncode = (value) => encodeTemporalValue(DATE_TEMPORAL, value);\nconst pgTimestampTemporalDecode = (wire) => decodeTemporalText(TIMESTAMP_TEMPORAL, wire, (temporal, text) => temporal.PlainDateTime.from(text));\nconst pgTimestampTemporalEncode = (value) => encodeTemporalValue(TIMESTAMP_TEMPORAL, value);\nconst pgTimestamptzTemporalDecode = (wire) => decodeTemporalText(TIMESTAMPTZ_TEMPORAL, wire, (temporal, text) => temporal.Instant.from(text));\nconst pgTimestamptzTemporalEncode = (value) => encodeTemporalValue(TIMESTAMPTZ_TEMPORAL, value);\n/** Reads a timestamp without a time zone as the instant it names in UTC. */\nconst pgTimestampInstantDecode = (wire) => decodeTemporalText(TIMESTAMP_INSTANT, wire, (temporal, text) => temporal.Instant.from(`${pgTimestampStoredText(text)}Z`));\n/** Writes an instant as its UTC date and time, with no offset, as a timestamp without a time zone holds it. */\nconst pgTimestampInstantEncode = (value) => encodeTemporalValue(TIMESTAMP_INSTANT, value, (instant) => withoutUtcDesignator(instant.toString()));\nconst pgTimeTemporalDecode = (wire) => decodeTemporalText(TIME_TEMPORAL, wire, (temporal, text) => temporal.PlainTime.from(text));\nconst pgTimeTemporalEncode = (value) => encodeTemporalValue(TIME_TEMPORAL, value);\nconst EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS = (/* @__PURE__ */ new Date(\"-004713-11-24T00:00:00Z\")).getTime();\nfunction utcIsoText(value, codecId) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS) throw new RangeError(`${codecId} writes a Date as UTC text and needs a valid Date on or after 4714-11-24 BC, the earliest timestamp PostgreSQL holds; got ${String(value)}`);\n\treturn value.toISOString();\n}\nfunction utcTimestamptzText(value, codecId) {\n\treturn postgresYearText(utcIsoText(value, codecId));\n}\n/** The UTC wall-clock time of `value` with no offset, as PostgreSQL reads a timestamp without a time zone. */\nfunction utcTimestampText(value, codecId) {\n\treturn postgresYearText(withoutUtcDesignator(utcIsoText(value, codecId)));\n}\n/** ISO text in UTC without its trailing `Z`. */\nfunction withoutUtcDesignator(isoText) {\n\treturn isoText.endsWith(\"Z\") ? isoText.slice(0, -1) : isoText;\n}\n//#endregion\n//#region src/core/date-codecs.ts\nconst TIMESTAMPTZ_DATE = {\n\tcodecId: PG_TIMESTAMPTZ_DATE_CODEC_ID,\n\ttypeDescription: \"timestamp with time zone\",\n\tstringType: \"TimestamptzString\",\n\ttextCodecId: PG_TIMESTAMPTZ_STRING_CODEC_ID,\n\tinstantText: pgTimestamptzStoredText\n};\nconst TIMESTAMP_DATE = {\n\tcodecId: PG_TIMESTAMP_DATE_CODEC_ID,\n\ttypeDescription: \"timestamp, read as UTC\",\n\tstringType: \"TimestampString\",\n\ttextCodecId: PG_TIMESTAMP_STRING_CODEC_ID,\n\tinstantText: (text) => pgTimestamptzStoredText(`${pgTimestampStoredText(text)}Z`)\n};\nfunction invalidDate(identity) {\n\treturn /* @__PURE__ */ new RangeError(`${identity.codecId} requires a valid Date or a representable ISO PostgreSQL ${identity.typeDescription}; use ${identity.stringType} for unsupported values`);\n}\nfunction isRepresentable(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime()) && value.getTime() >= EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS;\n}\nfunction validateDate(identity, value) {\n\tif (!isRepresentable(value)) throw invalidDate(identity);\n\treturn value;\n}\n/** The instant a stored or printed value names, or `undefined` for `infinity` and a value outside the range a `Date` holds. */\nfunction storedInstant(identity, text) {\n\tif (text === \"infinity\" || text === \"-infinity\") return void 0;\n\ttry {\n\t\treturn identity.instantText(text);\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return void 0;\n\t\tthrow error;\n\t}\n}\nfunction decodeDate(identity, wire) {\n\tconst instant = typeof wire === \"string\" ? storedInstant(identity, requireIsoDateStyle(identity.codecId, wire)) : void 0;\n\tconst date = instant === void 0 ? void 0 : new Date(instant);\n\tif (date === void 0 || !isRepresentable(date)) throw invalidDate(identity);\n\treturn date;\n}\n/** The `Date` a stored value names. A `Date` holds neither `infinity` nor an instant before 4714-11-24 BC or after +275760-09-13, so those are refused. */\nfunction dateOfStoredText(identity, text) {\n\tconst instant = storedInstant(identity, text);\n\tconst date = instant === void 0 ? void 0 : new Date(instant);\n\tif (date === void 0 || !isRepresentable(date)) return refuseJsonValue(identity.codecId, `an instant a Date holds, from 4714-11-24 BC to +275760-09-13 and not infinity or -infinity, which ${identity.textCodecId} holds`, text);\n\treturn date;\n}\nvar PgTimestamptzDateCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn utcTimestamptzText(validateDate(TIMESTAMPTZ_DATE, value), this.id);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeDate(TIMESTAMPTZ_DATE, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn dateOfStoredText(TIMESTAMPTZ_DATE, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(validateDate(TIMESTAMPTZ_DATE, input).toISOString());\n\t}\n};\nvar PgTimestamptzDateDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_DATE_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzDateCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzDateDescriptor = new PgTimestamptzDateDescriptor();\nconst pgTimestamptzDateColumn = (params = {}) => column(pgTimestamptzDateDescriptor.factory(params), pgTimestamptzDateDescriptor.codecId, params);\n/**\n* A `timestamp` column read and written as a JavaScript `Date`, treating the stored date and time as UTC. A read appends `Z` to the stored value; a write sends the `Date`'s UTC date and time with no offset, so a written value reads back unchanged whatever the server's, the session's or the process's time zone. PostgreSQL fills a database default `now()` in the session's time zone, so under a `TimeZone` other than UTC that value reads back shifted; `@onCreate(now())` writes UTC from the client.\n*/\nvar PgTimestampDateCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn utcTimestampText(validateDate(TIMESTAMP_DATE, value), this.id);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeDate(TIMESTAMP_DATE, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn dateOfStoredText(TIMESTAMP_DATE, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(utcTimestampText(validateDate(TIMESTAMP_DATE, input), this.id));\n\t}\n};\nvar PgTimestampDateDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_DATE_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampDateCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampDateDescriptor = new PgTimestampDateDescriptor();\nconst pgTimestampDateColumn = (params = {}) => column(pgTimestampDateDescriptor.factory(params), pgTimestampDateDescriptor.codecId, params);\n//#endregion\n//#region src/core/interval-string-codec.ts\nconst MAX_FRACTION_DIGITS = 6;\nfunction describeReceived(value) {\n\tif (typeof value === \"string\") return JSON.stringify(value);\n\treturn value === null ? \"null\" : `a ${typeof value}`;\n}\nfunction refusedDuration(value, reason) {\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", `${PG_INTERVAL_STRING_CODEC_ID} writes ${reason}, got ${describeReceived(value)}`, { meta: {\n\t\tcodecId: PG_INTERVAL_STRING_CODEC_ID,\n\t\treceived: typeof value\n\t} });\n}\n/** The duration `pg/interval` stores for an ISO 8601 duration the application wrote. */\nfunction storedDuration(value) {\n\tif (typeof value !== \"string\" || !ISO_DURATION.test(value)) return refusedDuration(value, \"an ISO 8601 duration, as in \\\"P1Y2M3DT4H5M6.5S\\\"\");\n\tif ((/\\.(\\d+)S$/.exec(value)?.[1]?.length ?? 0) > MAX_FRACTION_DIGITS) return refusedDuration(value, `a duration with at most ${MAX_FRACTION_DIGITS} digits after the decimal point, because pg/interval holds microseconds`);\n\treturn pgIntervalStoredText(value);\n}\n/**\n* An interval read and written as the ISO 8601 duration `pg/interval` stores, such as `P1Y2M3DT4H5M6.5S`. A read gives that form whatever `IntervalStyle` the server prints in. Equal intervals can have different forms, `P1D` and `PT24H`, so the codec keeps the form a value was written in.\n*/\nvar PgIntervalStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedDuration(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn formatIsoDuration(pgIntervalDecode(wire));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(storedDuration(input));\n\t}\n};\nvar PgIntervalStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgInterval.id;\n\tcodecId = PG_INTERVAL_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tkeepsWrittenForm = true;\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgIntervalStringCodec(this, pgInterval, params ?? {});\n\t}\n};\nconst pgIntervalStringDescriptor = new PgIntervalStringDescriptor();\nconst pgIntervalStringColumn = (params = {}) => column(pgIntervalStringDescriptor.factory(params), pgIntervalStringDescriptor.codecId, params);\n//#endregion\n//#region src/core/list-decoder.ts\nfunction parsePostgresListText(wireValue) {\n\tif (typeof wireValue !== \"string\") throw new TypeError(`expected raw text for a Postgres array, got ${typeof wireValue}`);\n\treturn blindCast(parse(wireValue));\n}\nasync function decodePostgresListText(wireValue, decodeElement) {\n\tconst decoded = [];\n\tfor (const element of parsePostgresListText(wireValue)) {\n\t\tif (element === null) {\n\t\t\tdecoded.push(null);\n\t\t\tcontinue;\n\t\t}\n\t\tdecoded.push(await decodeElement(element));\n\t}\n\treturn decoded;\n}\n//#endregion\n//#region src/core/temporal-codecs.ts\nvar PgDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgDateTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgDateTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"a date a Temporal.PlainDate holds\", PG_DATE_STRING_CODEC_ID, value.value);\n\t\treturn pgDateTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgDateTemporalEncode(input));\n\t}\n};\nvar PgDateTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateTemporalCodec(this, pgDate);\n\t}\n};\nconst pgDateTemporalDescriptor = new PgDateTemporalDescriptor();\nvar PgTimestampTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestampTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestampTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"a date and time a Temporal.PlainDateTime holds\", PG_TIMESTAMP_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestampTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestampTemporalEncode(input));\n\t}\n};\nvar PgTimestampTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampTemporalCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampTemporalDescriptor = new PgTimestampTemporalDescriptor();\n/**\n* A `timestamp` column read and written as a `Temporal.Instant`, treating the stored date and time as UTC. A write sends the instant's UTC date and time with no offset. PostgreSQL fills a database default `now()` in the session's time zone, so under a `TimeZone` other than UTC that value reads back shifted; `@onCreate(now())` writes UTC from the client.\n*/\nvar PgTimestampInstantCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestampInstantEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestampInstantDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"an instant a Temporal.Instant holds\", PG_TIMESTAMP_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestampInstantDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestampInstantEncode(input));\n\t}\n};\nvar PgTimestampInstantDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_INSTANT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampInstantCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampInstantDescriptor = new PgTimestampInstantDescriptor();\nvar PgTimestamptzTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestamptzTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestamptzTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"an instant a Temporal.Instant holds\", PG_TIMESTAMPTZ_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestamptzTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestamptzTemporalEncode(input));\n\t}\n};\nvar PgTimestamptzTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzTemporalCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzTemporalDescriptor = new PgTimestamptzTemporalDescriptor();\nvar PgTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimeTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgTimeTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimeTemporalEncode(input));\n\t}\n};\nvar PgTimeTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimeTemporalCodec(this, pgTime, params ?? {});\n\t}\n};\nconst pgTimeTemporalDescriptor = new PgTimeTemporalDescriptor();\n//#endregion\n//#region src/core/temporal-string-codecs.ts\nconst DATE_READING = {\n\tshape: \"date\",\n\tholdsInfinity: true\n};\nconst TIMESTAMP_READING = {\n\tshape: \"dateTime\",\n\tholdsInfinity: true\n};\nconst TIMESTAMPTZ_READING = {\n\tshape: \"instant\",\n\tholdsInfinity: true\n};\nconst TIME_READING = {\n\tshape: \"time\",\n\tholdsInfinity: false\n};\nvar PgDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, DATE_READING, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar PgDateStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgDateStringCodec(this, pgDate);\n\t}\n};\nconst pgDateStringDescriptor = new PgDateStringDescriptor();\nfunction requireText(codecId, value) {\n\tif (typeof value === \"string\") return value;\n\tthrow errorTimestampTextWrongType(codecId, describeValue(value));\n}\nfunction describeValue(value) {\n\tif (value === null) return \"null\";\n\tif (value instanceof Date) return \"a Date\";\n\treturn `a ${typeof value}`;\n}\nvar PgTimestampStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(requireText(this.id, value));\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, TIMESTAMP_READING, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar PgTimestampStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampStringCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampStringDescriptor = new PgTimestampStringDescriptor();\nvar PgTimestamptzStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(requireText(this.id, value));\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, TIMESTAMPTZ_READING, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar PgTimestamptzStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzStringCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzStringDescriptor = new PgTimestamptzStringDescriptor();\nvar PgTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, TIME_READING, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar PgTimeStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgTimeStringCodec(this, pgTime, params ?? {});\n\t}\n};\nconst pgTimeStringDescriptor = new PgTimeStringDescriptor();\n//#endregion\n//#region src/core/codecs.ts\n/** A decimal numeral: an optional minus sign, digits, and an optional fraction. */\nconst DECIMAL_NUMERAL_TEXT = /^-?\\d+(?:\\.\\d+)?$/;\n/** A decimal numeral is written as PostgreSQL prints it, without leading zeros or a minus sign on zero; other spellings PostgreSQL reads, such as `1e5`, are refused. */\nfunction numericJson(value) {\n\tif (typeof value !== \"string\" || isNonFiniteText(value)) return value;\n\tif (DECIMAL_NUMERAL_TEXT.test(value)) return storedNumeralText(value);\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", \"pg/numeric@1 application value must be numeric text: an optionally negated decimal numeral, or NaN, Infinity or -Infinity\", { meta: {\n\t\tcodecId: PG_NUMERIC_CODEC_ID,\n\t\treceived: value\n\t} });\n}\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* PostgreSQL's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation — escaping, sign, and range — where a native conversion\n* would be most likely to diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects a `character` value as text, which drops the trailing spaces that pad it to its length and nothing else, so an include reads the value a flat read's `decode` returns.\n*/\nconst unpaddedCharJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst decodePostgresNumberWire = (wire) => typeof wire === \"string\" ? Number(wire) : wire;\nconst decodePostgresBooleanWire = (wire) => {\n\tif (typeof wire === \"boolean\") return wire;\n\tif (wire === \"t\" || wire === \"true\") return true;\n\tif (wire === \"f\" || wire === \"false\") return false;\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bool@1 wire value must be boolean text\", { meta: {\n\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\treceived: wire\n\t} });\n};\n/**\n* Projects a numeric-valued expression as decimal text.\n*\n* The cast is part of the projected expression, which is what makes it correct:\n* whatever `jsonProjection` returns is the argument the JSON constructor\n* receives, so casting here happens *before* PostgreSQL builds the JSON value.\n* Handed a `numeric` or `int8` directly, the constructor emits a JSON **number**,\n* and every digit past IEEE-754's 53 bits of significand is gone by the time the\n* driver has parsed it — before any codec can intervene. A cast applied to the\n* constructor's result instead of its argument would be too late to matter.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\n/**\n* Projects the text PostgreSQL prints for the value, which is the value the runtime driver returns\n* for an ordinary row, so `fromWire` reads an included value as it reads a row (ADR 254, \"Rows the\n* database returns as JSON\"). PostgreSQL's own JSON conversion would write another value: a `bytea`\n* as its hex text but a `jsonb` document as the document itself, which `fromWire` cannot tell from\n* the document's JSON text when the document is a string.\n*/\nconst printedTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst postgresSqlCharDescriptor = postgresCodec(sqlCharDescriptor, {\n\tdataType: pgChar,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst postgresSqlVarcharDescriptor = postgresCodec(sqlVarcharDescriptor, {\n\tdataType: pgVarchar,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\nconst postgresSqlIntDescriptor = postgresCodec(sqlIntDescriptor, {\n\tdataType: pgInt4,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new PgIntCodec(descriptor, dataType)\n});\nconst postgresSqlFloatDescriptor = postgresCodec(sqlFloatDescriptor, {\n\tdataType: pgFloat8,\n\trenderValueLiteral: floatNumberLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new PgFloatCodec(descriptor, dataType)\n});\nconst postgresSqlTextDescriptor = postgresCodec(sqlTextDescriptor, {\n\tdataType: pgText,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqlTextCodec(descriptor, dataType)\n});\n/**\n* Projects a raw value as the text its type's output function prints, which a flat read returns\n* too, so an include reads the same value. Postgres' JSON form of `integer` or `boolean` would be a\n* number or a boolean, and a cast to `text` does not always print the output form: `true::text` is\n* `true` where the output is `t`. `format('%s', …)` prints through the output function, and turns\n* NULL into an empty string, so NULL is kept apart.\n*/\nconst outputFunctionJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: NullCheckExpr.isNull(expression),\n\tvalue: LiteralExpr.of(null)\n}], FunctionCallExpr.of(\"format\", [LiteralExpr.of(\"%s\"), expression]));\nconst postgresSqlRawDescriptor = postgresCodec(sqlRawDescriptor, {\n\tdataType: sqlRawDataType,\n\tjsonProjection: outputFunctionJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlRawCodec(descriptor, dataType, params)\n});\nvar PgTextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTextDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgText.id;\n\tcodecId = PG_TEXT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgTextCodec(this, pgText);\n\t}\n};\nconst pgTextDescriptor = new PgTextDescriptor();\nconst pgTextColumn = () => column(pgTextDescriptor.factory(), pgTextDescriptor.codecId, void 0);\n/**\n* Codec for a `pg.enum(Ref)` column bound to a native Postgres enum type.\n* Text passthrough, identical to `pg/text@1` — encode/decode do not carry the\n* enum's member values; membership is enforced by the native type itself, not\n* by this codec. `renderValueLiteral` renders a member value as its TS\n* literal, which is what drives the column's typed value-union (via\n* `renderValueSetType` reading the column's `valueSet` ref) — the codec\n* itself carries no params of its own; typing comes entirely from the\n* column's value-set, not from `pg/enum@1`.\n*\n* A distinct codec id (rather than reusing `pg/text@1` on a plain text\n* column) keeps native-enum columns independently identifiable — from a\n* column's `codecId` alone, without also inspecting its data type — which\n* the managed (DDL) phase needs to target `CREATE TYPE`/`ALTER TYPE`\n* operations at exactly the columns that use one.\n*\n* Not `textual`, although its values are strings: Postgres has no `LIKE`,\n* `ILIKE` or `to_tsvector` over an enum type.\n*/\nvar PgEnumCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* Narrows codec `typeParams` to {@link PgEnumParams} — the shape that binds a\n* column to a named database type (a native enum's `CREATE TYPE` name).\n*/\nfunction isPgEnumParams(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && \"typeName\" in value && typeof value.typeName === \"string\";\n}\nvar PgEnumDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgEnum.id;\n\tcodecId = PG_ENUM_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = \"A pg/enum codec types the column of a native enum, whose values the database enforces with an enum type of its own. Declare a native enum instead: native_enum in PSL, or nativeEnum in TypeScript.\";\n\tparamsSchema = pgEnumParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgEnumCodec(this, pgEnum, params);\n\t}\n\t/**\n\t* Authoring-time hook a `pg.enum(<ref>)` type constructor calls once it has\n\t* resolved its ref argument to the referenced `native_enum` entity:\n\t* produces this codec's per-column `typeParams` from the entity's bare type\n\t* name. Schema-qualification (`auth.aal_level` for a\n\t* named non-default schema) is not this hook's concern — the field's\n\t* namespace isn't known at this call site for every authoring path (the TS\n\t* builder resolves a column before it knows its model's namespace), so it is\n\t* applied later, at contract construction, by {@link qualifyNativeType} via\n\t* the target's `authoring.qualifyColumnType` hook. Returns `undefined` if `entity` is not a `PostgresNativeEnum` (a\n\t* contributor bug, not a user-schema error — the caller decides how to\n\t* report it).\n\t*/\n\tcolumnFromEntity(entity) {\n\t\tif (!PostgresNativeEnum.is(entity)) return void 0;\n\t\treturn { typeParams: { typeName: entity.typeName } };\n\t}\n\t/**\n\t* Schema-qualifies this native enum type's name for the namespace the\n\t* consuming column lives in: `${namespaceId}.${typeName}` for a named\n\t* non-default schema, bare for the target's default schema (`public`) or\n\t* the late-bound unbound sentinel (whose schema `search_path` resolves at\n\t* runtime). Postgres's `format_type()` reports the bare name for a\n\t* public-schema type, so a public column's declared native type must stay\n\t* bare to match. Owned here because the codec owns its native type.\n\t*/\n\tqualifyNativeType(typeName, namespaceId) {\n\t\treturn namespaceId === \"public\" || namespaceId === UNBOUND_NAMESPACE_ID ? typeName : `${namespaceId}.${typeName}`;\n\t}\n};\nconst pgEnumDescriptor = new PgEnumDescriptor();\n/**\n* Contract-construction-time column-type qualifier the Postgres target\n* contributes through `authoring.qualifyColumnType`.\n* `buildSqlContractFromDefinition` calls this for every column as it is\n* constructed, passing the column's bare type info and its owning\n* `namespaceId`; a native-enum column (`pg/enum@1`) gets its type name\n* schema-qualified for that namespace (via\n* {@link PgEnumDescriptor.qualifyNativeType}), which rewrites only\n* `typeParams.typeName`. Every other codec passes through unchanged.\n* Both the PSL `pg.enum(Ref)` path and the TS `pg.enum(handle)` path route\n* through here — the dispatch keys off the codec id, not authoring surface.\n*/\nfunction postgresQualifyColumnType(input, namespaceId) {\n\tif (input.codecId !== \"pg/enum@1\") return input;\n\tconst bareTypeName = input.typeParams?.[\"typeName\"];\n\tif (typeof bareTypeName !== \"string\") return input;\n\tconst qualified = pgEnumDescriptor.qualifyNativeType(bareTypeName, namespaceId);\n\treturn { typeParams: {\n\t\t...input.typeParams,\n\t\ttypeName: qualified\n\t} };\n}\n/** The elements of the `text[]` text PostgreSQL prints, each a string or NULL. */\nfunction readTextArrayWire(wire) {\n\treturn parsePostgresListText(wire).map((element) => {\n\t\tif (element === null || typeof element === \"string\") return element;\n\t\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", `pg/text-array@1 reads a one-dimensional text[], and ${wire} has more dimensions`, { meta: {\n\t\t\tcodecId: PG_TEXT_ARRAY_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t});\n}\n/**\n* Postgres `text[]` control codec. Encode is an identity pass-through: the pg\n* wire driver serialises a JS `string[]` to a Postgres array literal under the\n* `$N::text[]` cast emitted from this codec's native type. Decode reads the\n* array text the driver returns, or an array a driver has already parsed. Not a\n* user-facing scalar — it is not part of the authorable `CodecTypes` surface,\n* only the runtime codec registry.\n*/\nvar PgTextArrayCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn typeof wire === \"string\" ? readTextArrayWire(wire) : wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf([...input]);\n\t}\n};\nvar PgTextArrayDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgTextArray.id;\n\tcodecId = PG_TEXT_ARRAY_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTextArrayCodec(this, pgTextArray);\n\t}\n};\nconst pgTextArrayDescriptor = new PgTextArrayDescriptor();\nvar PgInt4Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInt4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt4Codec(this, pgInt4);\n\t}\n};\nconst pgInt4Descriptor = new PgInt4Descriptor();\nconst pgInt4Column = () => column(pgInt4Descriptor.factory(), pgInt4Descriptor.codecId, void 0);\nvar PgInt2Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInt2Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt2.id;\n\tcodecId = PG_INT2_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt2Codec(this, pgInt2);\n\t}\n};\nconst pgInt2Descriptor = new PgInt2Descriptor();\nconst pgInt2Column = () => column(pgInt2Descriptor.factory(), pgInt2Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` spans the full signed 64-bit range, which a JS `number`\n* cannot hold past 2^53. Application values are `bigint` and the canonical JSON\n* is decimal text; the wire form is the decimal string `pg` reads and writes for\n* this type.\n*/\nvar PgInt8Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgBigintEncode(PG_INT8_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgInt8Decode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn BigInt(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgBigintDigits(PG_INT8_CODEC_ID, input));\n\t}\n};\nvar PgInt8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8Codec(this, pgInt8);\n\t}\n};\nconst pgInt8Descriptor = new PgInt8Descriptor();\nconst pgInt8Column = () => column(pgInt8Descriptor.factory(), pgInt8Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `pg/int8` carries, which every codec of that data type shares. The descriptor\n* claims no target type, so `int8` in type position stays `pg/int8@1`.\n*/\nvar PgInt8NumberCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgInt8NumberEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgInt8NumberDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgInt8NumberFromDigits(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgInt8NumberEncode(input));\n\t}\n};\nvar PgInt8NumberDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_NUMBER_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8NumberCodec(this, pgInt8);\n\t}\n};\nconst pgInt8NumberDescriptor = new PgInt8NumberDescriptor();\nconst pgInt8NumberColumn = () => column(pgInt8NumberDescriptor.factory(), pgInt8NumberDescriptor.codecId, void 0);\nvar PgFloat4Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloat(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(input));\n\t}\n};\nvar PgFloat4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat4.id;\n\tcodecId = PG_FLOAT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat4Codec(this, pgFloat4);\n\t}\n};\nconst pgFloat4Descriptor = new PgFloat4Descriptor();\nconst pgFloat4Column = () => column(pgFloat4Descriptor.factory(), pgFloat4Descriptor.codecId, void 0);\nvar PgFloat8Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloat(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(input));\n\t}\n};\nvar PgFloat8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat8Codec(this, pgFloat8);\n\t}\n};\nconst pgFloat8Descriptor = new PgFloat8Descriptor();\nconst pgFloat8Column = () => column(pgFloat8Descriptor.factory(), pgFloat8Descriptor.codecId, void 0);\nvar PgBoolCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresBooleanWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgBoolDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBool.id;\n\tcodecId = PG_BOOL_CODEC_ID;\n\ttraits = [\"equality\", \"boolean\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgBoolCodec(this, pgBool);\n\t}\n};\nconst pgBoolDescriptor = new PgBoolDescriptor();\nconst pgBoolColumn = () => column(pgBoolDescriptor.factory(), pgBoolDescriptor.codecId, void 0);\nvar PgNumericCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgNumericDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(numericJson(input));\n\t}\n};\nvar PgNumericDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_NUMERIC_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tkeepsWrittenForm = true;\n\tparamsSchema = pgNumericParams;\n\tfactory(params) {\n\t\treturn () => new PgNumericCodec(this, pgNumeric, params ?? {});\n\t}\n};\nconst pgNumericDescriptor = new PgNumericDescriptor();\nconst pgNumericColumn = (params = {}) => column(pgNumericDescriptor.factory(params), pgNumericDescriptor.codecId, params);\n/**\n* A genuinely unbounded integer over unconstrained Postgres `numeric` storage.\n* Application values are `bigint` and the canonical JSON is decimal text, like\n* `pg/int8@1`; decode rejects non-integral values. The descriptor claims no\n* target type, so `numeric` and `decimal` in type position stay `pg/numeric@1`.\n*/\nvar PgUnboundedIntCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgBigintEncode(PG_UNBOUNDED_INT_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgUnboundedIntDecode(wire);\n\t}\n\t/** A `bigint` holds only a whole number, so a value with a fraction, or `NaN` or an infinity, is refused. */\n\tfromDataTypeValue(value) {\n\t\treturn readJsonIntegerText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgBigintDigits(PG_UNBOUNDED_INT_CODEC_ID, input));\n\t}\n};\nvar PgUnboundedIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_UNBOUNDED_INT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgUnboundedIntCodec(this, pgNumeric, params ?? {});\n\t}\n};\nconst pgUnboundedIntDescriptor = new PgUnboundedIntDescriptor();\nconst pgUnboundedIntColumn = () => column(pgUnboundedIntDescriptor.factory(), pgUnboundedIntDescriptor.codecId, void 0);\nconst TIMETZ_READING = {\n\tshape: \"timeWithOffset\",\n\tholdsInfinity: false,\n\tmaxOffsetHours: 15\n};\nvar PgTimetzCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, TIMETZ_READING, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar PgTimetzDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTimetz.id;\n\tcodecId = PG_TIMETZ_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimetzCodec(this, pgTimetz, params ?? {});\n\t}\n};\nconst pgTimetzDescriptor = new PgTimetzDescriptor();\nconst pgTimetzColumn = (params = {}) => column(pgTimetzDescriptor.factory(params), pgTimetzDescriptor.codecId, params);\nvar PgBitCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgBitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBit.id;\n\tcodecId = PG_BIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgBitCodec(this, pgBit, params ?? {});\n\t}\n};\nconst pgBitDescriptor = new PgBitDescriptor();\nconst pgBitColumn = (params = {}) => column(pgBitDescriptor.factory(params), pgBitDescriptor.codecId, params);\nvar PgVarbitCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgVarbitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarbit.id;\n\tcodecId = PG_VARBIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgVarbitCodec(this, pgVarbit, params ?? {});\n\t}\n};\nconst pgVarbitDescriptor = new PgVarbitDescriptor();\nconst pgVarbitColumn = (params = {}) => column(pgVarbitDescriptor.factory(params), pgVarbitDescriptor.codecId, params);\nvar PgByteaCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgByteaDecodeWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgByteaFromBase64(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgByteaToBase64(input));\n\t}\n};\nvar PgByteaDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgBytea.id;\n\tcodecId = PG_BYTEA_CODEC_ID;\n\ttraits = [\"equality\"];\n\tenumRefusal = \"The contract stores a bytea value as base64 text, which PostgreSQL reads as the bytes of that text, so no CHECK can compare a value with the members. No enum can use a bytea codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgByteaCodec(this, pgBytea);\n\t}\n};\nconst pgByteaDescriptor = new PgByteaDescriptor();\nvar PgUuidCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgUuidDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgUuid.id;\n\tcodecId = PG_UUID_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgUuidCodec(this, pgUuid);\n\t}\n};\nconst pgUuidDescriptor = new PgUuidDescriptor();\nconst pgUuidColumn = () => column(pgUuidDescriptor.factory(), pgUuidDescriptor.codecId, void 0);\nvar PgInetCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInetDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInet.id;\n\tcodecId = PG_INET_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInetCodec(this, pgInet);\n\t}\n};\nconst pgInetDescriptor = new PgInetDescriptor();\nconst pgInetColumn = () => column(pgInetDescriptor.factory(), pgInetDescriptor.codecId, void 0);\nvar PgTsqueryCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn blindCast(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn blindCast(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* The type of a full-text query: what the parsers and the tag in `full-text` return, and what a\n* `tsquery` value read back from a query binds as when passed to `fullTextMatches`, `fullTextRank`\n* or `fullTextHeadline`. It has no column helper, because a contract cannot author a `tsquery`\n* column, and no traits, because comparing or ordering queries means nothing to an application.\n*/\nvar PgTsqueryDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTsquery.id;\n\tcodecId = PG_TSQUERY_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"PostgreSQL normalises the query text, so a member as written is not the value a query reads back: it prints a & b as 'a' & 'b'. No enum can use a tsquery codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTsqueryCodec(this, pgTsquery);\n\t}\n};\nconst pgTsqueryDescriptor = new PgTsqueryDescriptor();\n/**\n* An application value is a {@link PgInterval} — the three fields PostgreSQL\n* actually stores, `{ months, days, micros }` — and its canonical JSON is the\n* ISO-8601 duration string PostgreSQL spells under\n* `IntervalStyle = 'iso_8601'`: `P1M`, `P30D`, `P1Y2M3DT4H5M6S`, `PT0S` for\n* zero, each component carrying its own sign.\n*\n* Value and representation are independent here, as they are for `pg/bytea@1`\n* (`Uint8Array` carried as base64) and `pg/int8@1` (`bigint` carried as decimal\n* text). Reading an interval hands back numbers to compute with rather than a\n* string to parse; writing one takes the same numbers.\n*\n* The fields stay independent because a month has no fixed length: `{months: 1}`\n* and `{days: 30}` are different values and neither converts to the other. The\n* ISO rendering normalises only in its own spelling — twelve months render as a\n* year — so `{months: 13}` renders `P1Y1M` and reads back as `{months: 13}`.\n*/\nvar PgIntervalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgIntervalToIso(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgIntervalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgIntervalFromIso(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgIntervalToIso(input));\n\t}\n};\nvar PgIntervalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgInterval.id;\n\tcodecId = PG_INTERVAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tkeepsWrittenForm = true;\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgIntervalCodec(this, pgInterval, params ?? {});\n\t}\n};\nconst pgIntervalDescriptor = new PgIntervalDescriptor();\nconst pgIntervalColumn = (params = {}) => column(pgIntervalDescriptor.factory(params), pgIntervalDescriptor.codecId, params);\nvar PgJsonCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgJsonEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgJsonDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgJsonDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgJson.id;\n\tcodecId = PG_JSON_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"The json type has no equality operator, so no CHECK can compare a value with the members. No enum can use a json codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonCodec(this, pgJson);\n\t}\n};\nconst pgJsonDescriptor = new PgJsonDescriptor();\nconst pgJsonColumn = () => column(pgJsonDescriptor.factory(), pgJsonDescriptor.codecId, void 0);\nvar PgJsonbCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgJsonbEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgJsonbDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgJsonbDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgJsonb.id;\n\tcodecId = PG_JSONB_CODEC_ID;\n\ttraits = [\"equality\"];\n\tenumRefusal = pgJsonbEnumRefusal;\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonbCodec(this, pgJsonb);\n\t}\n};\nconst pgJsonbDescriptor = new PgJsonbDescriptor();\nconst pgJsonbColumn = () => column(pgJsonbDescriptor.factory(), pgJsonbDescriptor.codecId, void 0);\nvar PgIntCodec = class extends SqlIntCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgFloatCodec = class extends SqlFloatCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgCharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn unpaddedCharJsonProjection(expression);\n\t}\n\tdataType = pgChar.id;\n\tcodecId = PG_CHAR_CODEC_ID;\n\ttraits = sqlCharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new SqlCharCodec(this, pgChar, params ?? {});\n\t}\n};\nconst pgCharDescriptor = new PgCharDescriptor();\nconst pgCharColumn = (params = {}) => column(pgCharDescriptor.factory(params), pgCharDescriptor.codecId, params);\nvar PgVarcharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarchar.id;\n\tcodecId = PG_VARCHAR_CODEC_ID;\n\ttraits = sqlVarcharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new SqlVarcharCodec(this, pgVarchar, params ?? {});\n\t}\n};\nconst pgVarcharDescriptor = new PgVarcharDescriptor();\nconst pgVarcharColumn = (params = {}) => column(pgVarcharDescriptor.factory(params), pgVarcharDescriptor.codecId, params);\nvar PgIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT_CODEC_ID;\n\ttraits = sqlIntDescriptor.traits;\n\tparamsSchema = sqlIntDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgIntCodec(this, pgInt4);\n\t}\n};\nconst pgIntDescriptor = new PgIntDescriptor();\nconst pgIntColumn = () => column(pgIntDescriptor.factory(), pgIntDescriptor.codecId, void 0);\nvar PgFloatDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT_CODEC_ID;\n\ttraits = sqlFloatDescriptor.traits;\n\tparamsSchema = sqlFloatDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloatCodec(this, pgFloat8);\n\t}\n};\nconst pgFloatDescriptor = new PgFloatDescriptor();\nconst pgFloatColumn = () => column(pgFloatDescriptor.factory(), pgFloatDescriptor.codecId, void 0);\nconst codecDescriptors = definePostgresCodecs([\n\tpostgresSqlCharDescriptor,\n\tpostgresSqlVarcharDescriptor,\n\tpostgresSqlIntDescriptor,\n\tpostgresSqlFloatDescriptor,\n\tpostgresSqlTextDescriptor,\n\tpostgresSqlRawDescriptor,\n\tpgTextDescriptor,\n\tpgEnumDescriptor,\n\tpgCharDescriptor,\n\tpgVarcharDescriptor,\n\tpgIntDescriptor,\n\tpgFloatDescriptor,\n\tpgInt4Descriptor,\n\tpgInt2Descriptor,\n\tpgInt8Descriptor,\n\tpgInt8NumberDescriptor,\n\tpgFloat4Descriptor,\n\tpgFloat8Descriptor,\n\tpgNumericDescriptor,\n\tpgUnboundedIntDescriptor,\n\tpgDateTemporalDescriptor,\n\tpgTimestampTemporalDescriptor,\n\tpgTimestamptzTemporalDescriptor,\n\tpgTimeTemporalDescriptor,\n\tpgDateStringDescriptor,\n\tpgTimestampStringDescriptor,\n\tpgTimestamptzStringDescriptor,\n\tpgTimestamptzDateDescriptor,\n\tpgTimestampDateDescriptor,\n\tpgTimestampInstantDescriptor,\n\tpgTimeStringDescriptor,\n\tpgTimetzDescriptor,\n\tpgBoolDescriptor,\n\tpgBitDescriptor,\n\tpgVarbitDescriptor,\n\tpgByteaDescriptor,\n\tpgUuidDescriptor,\n\tpgInetDescriptor,\n\tpgIntervalDescriptor,\n\tpgIntervalStringDescriptor,\n\tpgJsonDescriptor,\n\tpgJsonbDescriptor,\n\tpgTextArrayDescriptor,\n\tpgTsqueryDescriptor\n]);\n//#endregion\nexport { PgIntervalStringDescriptor as A, pgTimestamptzDateDescriptor as B, pgUuidColumn as C, decodePostgresListText as D, postgresQualifyColumnType as E, PgTimestamptzDateCodec as F, setFallbackTemporal as H, PgTimestamptzDateDescriptor as I, pgTimestampDateColumn as L, pgIntervalStringDescriptor as M, PgTimestampDateCodec as N, parsePostgresListText as O, PgTimestampDateDescriptor as P, pgTimestampDateDescriptor as R, pgUnboundedIntColumn as S, pgVarcharColumn as T, requireTemporal as V, pgJsonColumn as _, pgCharColumn as a, pgTextColumn as b, pgFloat8Column as c, pgInt2Column as d, pgInt4Column as f, pgIntervalColumn as g, pgIntColumn as h, pgBoolColumn as i, pgIntervalStringColumn as j, PgIntervalStringCodec as k, pgFloatColumn as l, pgInt8NumberColumn as m, isPgEnumParams as n, pgEnumDescriptor as o, pgInt8Column as p, pgBitColumn as r, pgFloat4Column as s, codecDescriptors as t, pgInetColumn as u, pgJsonbColumn as v, pgVarbitColumn as w, pgTimetzColumn as x, pgNumericColumn as y, pgTimestamptzDateColumn as z };\n\n//# sourceMappingURL=codecs-BVyoUeNy.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,MAAM,mBAAmB,SAAS;CACjC,IAAI,OAAO,SAAS,UAAU,OAAO,YA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AO,mBAAmB,KAAK;CAChC;CACA,UAAU;EACT,aAAa,IAAI,aAAa,MAAM,QAAQ;CAC7C;AACD;AACA,MAAM,oBAAoB,IAAI,kBAAkB;AAChD,MAAM,sBAAsB,OAAO,kBAAkB,QAAQ,GAAG,kBAAkB,SAAS,KAAK,CAAC;AACjG,MAAM,mBAAmB,qBAAqB;CAC7C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"full-text-collection-method-DHuJr46z-Bndk11cK.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/full-text-collection-method-DHuJr46z.d.mts"],"mappings":";;;;;;;;KAOK,0BAA0B,gBAAgB,QAAQ;UAC7C;WACC,sBAAsB,OAAO;WAC7B;WACA;;KAEN,oBAAoB,cAAc,6BAA6B,iDAAiD,QAAQ,uBAAuB,0CAA0C,wBAAwB,6BAA6B;;UAEzO,gCAAgC;WAC/B,SAAS;;;YAGR;aACC,qBAAqB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs","names":["readColumnDefault"],"sources":["../../../../3-targets/postgres/1-target/dist/infer-psl-contract-DnTNOWZT.mjs"],"sourcesContent":["import { C as PG_TEXT_CODEC_ID } from \"./codec-ids-D0wjQdEW.mjs\";\nimport { l as postgresError } from \"./errors-Di_apgWJ.mjs\";\nimport { b as pgJsonb, t as createPostgresBuiltinDataTypeLookup, y as pgJson } from \"./data-types-B7S_CHZd.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-DhUYJbVb.mjs\";\nimport { r as createPostgresBuiltinCodecLookup } from \"./codec-registry-D8Nsfksc.mjs\";\nimport \"./full-text-index-definition-B0kQDs_M.mjs\";\nimport { t as POLICY_BLOCK_KEYWORDS } from \"./authoring-BYl9graG.mjs\";\nimport { t as postgresRenderCheckExpressions } from \"./check-expressions-BPrbjEKM.mjs\";\nimport { n as readPostgresDefault } from \"./default-normalizer-BqK6XxdC.mjs\";\nimport { codecForRef, readContractValue } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isInternalError } from \"@internal/utils/internal-error\";\nimport { coordinateKey, elementCoordinates } from \"@internal/framework-components/ir\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { getAuthoringTypeConstructor, instantiateAuthoringTypeConstructor, validateAuthoringHelperArguments } from \"@internal/framework-components/authoring\";\nimport { NAME_THE_PSL_SOURCE_LOSES, isPslIdentifier } from \"@internal/psl-parser\";\nimport { printSqlExpressionLiteral, sqlTextsReadBack, storedSqlText } from \"@internal/sql-contract/sql-expression\";\nimport { composeCheckWirePrefix, computeCheckContentHash, computeIndexContentHash, formatWireName, parseWireName } from \"@internal/sql-schema-ir/naming\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { readReportedDefault } from \"@internal/family-sql/control\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { isColumnDefault } from \"@internal/contract/types\";\nimport { inferColumnTypes, inferredTypeConstructors, mapDefault, toEnumMemberName } from \"@internal/family-sql/psl-build\";\nimport { buildChildRelationField, deriveRelationFieldName, inferRelations, toEnumName, toFieldName, toModelName } from \"@internal/family-sql/psl-infer\";\nimport { UNSPECIFIED_PSL_NAMESPACE_ID, makePslNamespace, makePslNamespaceEntries } from \"@internal/framework-components/psl-ast\";\nimport { escapePslString } from \"@internal/sql-contract/data-type-support\";\n//#region src/core/psl-build/psl-literals.ts\nconst SYNTHETIC_SPAN = {\n\tstart: {\n\t\toffset: 0,\n\t\tline: 1,\n\t\tcolumn: 1\n\t},\n\tend: {\n\t\toffset: 0,\n\t\tline: 1,\n\t\tcolumn: 1\n\t}\n};\nfunction buildSimpleConstraintFieldAttribute(name, constraintName) {\n\tif (constraintName === void 0) return buildAttribute(\"field\", name, []);\n\treturn buildAttribute(\"field\", name, [namedArg(\"map\", `\"${escapePslString(constraintName)}\"`)]);\n}\nfunction parseDefaultAttributeString(attributeText) {\n\treturn buildAttribute(\"field\", \"default\", [positionalArg(attributeText.replace(/^@default\\(/, \"\").replace(/\\)$/, \"\"))]);\n}\nfunction buildMapAttribute(target, mapName) {\n\treturn buildAttribute(target, \"map\", [positionalArg(`\"${escapePslString(mapName)}\"`)]);\n}\nfunction buildAttribute(target, name, args) {\n\treturn {\n\t\tkind: \"attribute\",\n\t\ttarget,\n\t\tname,\n\t\targs,\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\nfunction positionalArg(value) {\n\treturn {\n\t\tkind: \"positional\",\n\t\tvalue,\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\nfunction namedArg(name, value) {\n\treturn {\n\t\tkind: \"named\",\n\t\tname,\n\t\tvalue,\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\n//#endregion\n//#region src/core/psl-infer/infer-default-codec.ts\n/**\n* The codec reference `contract emit` builds for a column of `pslType`: the codec its type constructor names, with the type parameters the values of the call's arguments give. Infer writes each argument only when its literal reads back as that value. An enum column's default is a member name, which is text either way, so it reads through the text codec.\n*/\nfunction inferredCodecRef(context, pslType, isEnum) {\n\tif (isEnum) return { codecId: PG_TEXT_CODEC_ID };\n\tconst descriptor = getAuthoringTypeConstructor(context.authoringContributions, pslType.path);\n\tif (descriptor === void 0) return void 0;\n\tconst args = pslType.values ?? [];\n\tvalidateAuthoringHelperArguments(pslType.path.join(\".\"), descriptor.args, args);\n\tconst { codecId, typeParams } = instantiateAuthoringTypeConstructor(descriptor, args);\n\treturn {\n\t\tcodecId,\n\t\t...ifDefined(\"typeParams\", typeParams === void 0 ? void 0 : blindCast(typeParams))\n\t};\n}\n/**\n* The default checks for `context`. A default the codec refuses has no PSL literal, so the raw\n* expression prints instead of a schema `contract emit` would reject. A column whose codec cannot be\n* built with its type parameters is treated the same way. An `InternalError` is a bug, not a\n* refusal, so it passes through.\n*\n* A data type says which values its column takes, not that every codec of it accepts each one: the\n* temporal codecs represent types that cast from text but refuse `infinity`, which PostgreSQL stores\n* and reports verbatim.\n*/\nfunction inferredColumnDefaults(context) {\n\treturn {\n\t\tcodecOf(pslType, isEnum) {\n\t\t\ttry {\n\t\t\t\tconst ref = inferredCodecRef(context, pslType, isEnum);\n\t\t\t\treturn ref === void 0 ? void 0 : context.codecLookup.descriptorFor(ref.codecId);\n\t\t\t} catch (error) {\n\t\t\t\tif (isInternalError(error)) throw error;\n\t\t\t\treturn;\n\t\t\t}\n\t\t},\n\t\ttypeParamsOf(pslType, isEnum) {\n\t\t\ttry {\n\t\t\t\treturn inferredCodecRef(context, pslType, isEnum)?.typeParams;\n\t\t\t} catch (error) {\n\t\t\t\tif (isInternalError(error)) throw error;\n\t\t\t\treturn;\n\t\t\t}\n\t\t},\n\t\treadsBack(value, pslType, isEnum, isList) {\n\t\t\tconst values = isList && Array.isArray(value) ? value : [value];\n\t\t\ttry {\n\t\t\t\tconst ref = inferredCodecRef(context, pslType, isEnum);\n\t\t\t\tif (ref === void 0) return false;\n\t\t\t\tconst codec = codecForRef(context.codecLookup, ref);\n\t\t\t\tif (codec === void 0) return false;\n\t\t\t\tfor (const element of values) readContractValue(codec, blindCast(element), ref.typeParams);\n\t\t\t\treturn true;\n\t\t\t} catch (error) {\n\t\t\t\tif (isInternalError(error)) throw error;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t};\n}\n/** For a table whose columns have no literal default, such as a many-to-many junction table. */\nconst noColumnDefaults = {\n\tcodecOf: () => void 0,\n\ttypeParamsOf: () => void 0,\n\treadsBack: () => false\n};\n//#endregion\n//#region src/core/psl-build/unique-name.ts\n/** `desiredName`, or it with the lowest number from 2 up that makes it unused. */\nfunction createUniqueFieldName(desiredName, usedFieldNames) {\n\tif (!usedFieldNames.has(desiredName)) return desiredName;\n\tlet counter = 2;\n\twhile (usedFieldNames.has(`${desiredName}${counter}`)) counter++;\n\treturn `${desiredName}${counter}`;\n}\n//#endregion\n//#region src/core/psl-build/native-enum-block.ts\n/** One `native_enum <name> { … }` block, with `@@map` when the type name differs from the block name. */\nfunction buildNativeEnumBlock(name, typeName, values) {\n\tconst usedMemberNames = /* @__PURE__ */ new Set([NAME_THE_PSL_SOURCE_LOSES]);\n\treturn {\n\t\tkind: \"native_enum\",\n\t\tkeyword: \"native_enum\",\n\t\tname,\n\t\tparameters: Object.fromEntries(values.map((value) => {\n\t\t\tconst memberName = createUniqueFieldName(toEnumMemberName(value), usedMemberNames);\n\t\t\tusedMemberNames.add(memberName);\n\t\t\treturn [memberName, {\n\t\t\t\texpression: JSON.stringify(value),\n\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t}];\n\t\t})),\n\t\tblockAttributes: name === typeName ? [] : [{\n\t\t\tname: \"map\",\n\t\t\targs: [{\n\t\t\t\tkind: \"positional\",\n\t\t\t\tvalue: `\"${escapePslString(typeName)}\"`,\n\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t}],\n\t\t\tspan: SYNTHETIC_SPAN\n\t\t}],\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\n//#endregion\n//#region src/core/psl-infer/infer-names.ts\nfunction buildFieldNamesByTable(tables) {\n\tconst fieldNamesByTable = /* @__PURE__ */ new Map();\n\tfor (const table of Object.values(tables)) {\n\t\tconst assignmentOrder = [...Object.values(table.columns).map((column, index) => {\n\t\t\tconst { name, map } = toFieldName(column.name);\n\t\t\treturn {\n\t\t\t\tcolumnName: column.name,\n\t\t\t\tdesiredFieldName: name,\n\t\t\t\tfieldMap: map,\n\t\t\t\tindex\n\t\t\t};\n\t\t})].sort((left, right) => {\n\t\t\tconst mapComparison = Number(left.fieldMap !== void 0) - Number(right.fieldMap !== void 0);\n\t\t\tif (mapComparison !== 0) return mapComparison;\n\t\t\treturn left.index - right.index;\n\t\t});\n\t\tconst usedFieldNames = /* @__PURE__ */ new Set();\n\t\tconst tableFieldNames = /* @__PURE__ */ new Map();\n\t\tfor (const column of assignmentOrder) {\n\t\t\tconst fieldName = createUniqueFieldName(column.desiredFieldName, usedFieldNames);\n\t\t\tusedFieldNames.add(fieldName);\n\t\t\ttableFieldNames.set(column.columnName, {\n\t\t\t\tfieldName,\n\t\t\t\tfieldMap: column.fieldMap\n\t\t\t});\n\t\t}\n\t\tfieldNamesByTable.set(table.name, tableFieldNames);\n\t}\n\treturn fieldNamesByTable;\n}\nfunction resolveColumnFieldName(fieldNamesByTable, tableName, columnName) {\n\treturn fieldNamesByTable.get(tableName)?.get(columnName)?.fieldName ?? toFieldName(columnName).name;\n}\nfunction buildTopLevelNameMap(sources, normalize, kind, sourceKind) {\n\tconst results = /* @__PURE__ */ new Map();\n\tconst normalizedToSources = /* @__PURE__ */ new Map();\n\tfor (const source of sources) {\n\t\tconst normalized = normalize(source);\n\t\tresults.set(source, normalized);\n\t\tnormalizedToSources.set(normalized.name, [...normalizedToSources.get(normalized.name) ?? [], source]);\n\t}\n\tconst duplicates = [...normalizedToSources.entries()].filter(([, conflictingSources]) => conflictingSources.length > 1);\n\tif (duplicates.length > 0) throw postgresError(\"CONTRACT.NAME_DUPLICATE\", `PSL ${kind} name collisions detected:\\n${duplicates.map(([normalizedName, conflictingSources]) => `- ${kind} \"${normalizedName}\" from ${sourceKind}s ${conflictingSources.map((source) => `\"${source}\"`).join(\", \")}`).join(\"\\n\")}`, { meta: {\n\t\tkind,\n\t\tnames: duplicates.map(([normalizedName]) => normalizedName)\n\t} });\n\treturn results;\n}\nfunction topologicalSort(models, tables, modelNameMap) {\n\tconst modelByName = /* @__PURE__ */ new Map();\n\tfor (const model of models) modelByName.set(model.name, model);\n\tconst deps = /* @__PURE__ */ new Map();\n\tconst tableToModel = /* @__PURE__ */ new Map();\n\tfor (const tableName of Object.keys(tables)) {\n\t\tconst modelName = modelNameMap.get(tableName);\n\t\tassertDefined(modelName, `topologicalSort: no model name mapped for table \"${tableName}\"`);\n\t\ttableToModel.set(tableName, modelName);\n\t\tdeps.set(modelName, /* @__PURE__ */ new Set());\n\t}\n\tfor (const [tableName, table] of Object.entries(tables)) {\n\t\tconst modelName = tableToModel.get(tableName);\n\t\tassertDefined(modelName, `topologicalSort: no model name recorded for table \"${tableName}\"`);\n\t\tconst modelDeps = deps.get(modelName);\n\t\tassertDefined(modelDeps, `topologicalSort: no dependency set recorded for model \"${modelName}\"`);\n\t\tfor (const fk of table.foreignKeys) {\n\t\t\tconst refModelName = tableToModel.get(fk.referencedTable);\n\t\t\tif (refModelName && refModelName !== modelName) modelDeps.add(refModelName);\n\t\t}\n\t}\n\tconst result = [];\n\tconst visited = /* @__PURE__ */ new Set();\n\tconst visiting = /* @__PURE__ */ new Set();\n\tconst sortedNames = [...deps.keys()].sort();\n\tfunction visit(name) {\n\t\tif (visited.has(name)) return;\n\t\tif (visiting.has(name)) return;\n\t\tvisiting.add(name);\n\t\tconst nameDeps = deps.get(name);\n\t\tassertDefined(nameDeps, `topologicalSort: no dependency set recorded for model \"${name}\"`);\n\t\tconst sortedDeps = [...nameDeps].sort();\n\t\tfor (const dep of sortedDeps) visit(dep);\n\t\tvisiting.delete(name);\n\t\tvisited.add(name);\n\t\tconst model = modelByName.get(name);\n\t\tassertDefined(model, `topologicalSort: no model block recorded for \"${name}\"`);\n\t\tresult.push(model);\n\t}\n\tfor (const name of sortedNames) visit(name);\n\treturn result;\n}\n//#endregion\n//#region src/core/psl-infer/infer-enum-blocks.ts\nconst PSL_SCALAR_TYPE_NAMES = /* @__PURE__ */ new Set([\n\t\"String\",\n\t\"Boolean\",\n\t\"Int\",\n\t\"BigInt\",\n\t\"Float\",\n\t\"Decimal\",\n\t\"DateTime\",\n\t\"Json\",\n\t\"Bytes\"\n]);\n/**\n* Builds one `native_enum` extension-block AST node per introspected enum\n* definition. Block names go through the shared top-level transform\n* (`toEnumName`, intra-enum collisions throw like model collisions) and are\n* then reserved against the model names — an enum whose PSL name a model\n* already claims gets a numeric suffix, with `@@map` carrying the real type\n* name. Members print as explicit `member = \"value\"` pairs: the member name\n* is the sanitized value (deduplicated within the block), the JSON-encoded\n* value carries the truth verbatim.\n*/\nfunction buildNativeEnumBlocks(definitions, modelNames) {\n\tconst enumNames = buildTopLevelNameMap([...definitions.keys()].sort(), toEnumName, \"enum\", \"enum type\");\n\tconst usedTopLevelNames = new Set(PSL_SCALAR_TYPE_NAMES);\n\tfor (const result of modelNames.values()) usedTopLevelNames.add(result.name);\n\tconst enumNameMap = /* @__PURE__ */ new Map();\n\tconst enumBlocks = [];\n\tfor (const [typeName, result] of enumNames) {\n\t\tconst name = createUniqueFieldName(result.name, usedTopLevelNames);\n\t\tusedTopLevelNames.add(name);\n\t\tenumNameMap.set(typeName, name);\n\t\tenumBlocks.push(buildNativeEnumBlock(name, typeName, definitions.get(typeName) ?? []));\n\t}\n\treturn {\n\t\tenumNameMap,\n\t\tenumBlocks\n\t};\n}\n/**\n* The name of the adopted native enum `column` is typed by: the database reported its type as an\n* enum named in `enumTypeNames`, in `schemaName` when the output is wrapped in that schema's\n* namespace. Undefined for any other column.\n*/\nfunction adoptedEnumTypeName(column, enumTypeNames, schemaName) {\n\tconst reported = column.reportedType;\n\tif (reported?.kind !== \"enum\" || reported.name === void 0) return void 0;\n\tif (schemaName !== void 0 && reported.schema !== schemaName) return void 0;\n\treturn enumTypeNames.has(reported.name) ? reported.name : void 0;\n}\n//#endregion\n//#region src/core/psl-infer/infer-foreign-keys.ts\n/**\n* Coordinates every element a set of already-assembled contracts declare,\n* mapped to the {@link SqlDescribedContractSpace} that owns it and keyed by\n* the shared {@link coordinateKey} helper. `contract infer` uses this to omit\n* database elements a stack extension pack's contract space already\n* describes — reusing the same coordinate walk the contract-space aggregate\n* and cross-space collision check use (`elementCoordinates`), rather than a\n* bespoke per-entity-kind membership test — and, for a foreign key whose\n* referenced table an entry owns, to resolve the qualified cross-space\n* relation it describes.\n*/\nfunction describedContractOwners(describedContracts) {\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const entry of describedContracts) for (const coordinate of elementCoordinates(entry.contract.storage)) owners.set(coordinateKey(coordinate), entry);\n\treturn owners;\n}\nfunction resolveCrossSpaceTarget(owner, namespaceId, tableName) {\n\tconst domainNamespace = owner.contract.domain.namespaces[namespaceId];\n\tif (domainNamespace === void 0) return;\n\tfor (const [modelName, model] of Object.entries(domainNamespace.models)) {\n\t\tconst storage = blindCast(model.storage);\n\t\tif (storage.namespaceId !== namespaceId || storage.table !== tableName) continue;\n\t\tconst fieldNamesByColumn = /* @__PURE__ */ new Map();\n\t\tfor (const [fieldName, fieldStorage] of Object.entries(storage.fields)) fieldNamesByColumn.set(fieldStorage.column, { fieldName });\n\t\treturn {\n\t\t\tspaceId: owner.spaceId,\n\t\t\tnamespaceId,\n\t\t\tmodelName,\n\t\t\tfieldNamesByColumn\n\t\t};\n\t}\n}\n/**\n* Classifies every foreign key on a surviving table into one of three cases.\n* A foreign key that carries a `referencedSchema` is checked against the\n* pack-owned coordinates first, so a pack-owned target wins even when a local\n* table happens to share its bare name; only foreign keys with no owned\n* coordinate fall through to the local/dangling distinction.\n*\n* - **Cross-space**: `referencedSchema` is set and a described contract owns\n* the coordinate `(referencedSchema, 'table', referencedTable)`. The\n* referenced table is absent from the tree (omitted because the pack\n* describes it, or never introspected — `contract infer` walks a single\n* namespace). Removed from `foreignKeys` (so `inferRelations` never falls\n* back to a bare, unqualified table name for it) and replaced with a\n* `RelationField` qualified with the owning pack's space id and namespace\n* id. `owners` holds only pack-declared coordinates, so an app's own table\n* (e.g. `public.users`) is never owned and cannot be captured here.\n* - **Local**: not a pack-owned coordinate, and the referenced table survived\n* introspection — left untouched, `inferRelations` handles it as before.\n* - **Dangling**: not a pack-owned coordinate, and the referenced table is\n* neither in the tree nor owned by any described contract. Removed from\n* `foreignKeys`, keeping the scalar column, rather than emitting a relation\n* to a model that was never defined.\n*\n* A pack that owns the referenced coordinate but declares no domain model\n* mapped to it is malformed; that case throws rather than degrading to a\n* silent drop, which would contradict the dangling definition above.\n*/\nfunction resolveForeignKeys(tables, owners) {\n\tconst resultTables = {};\n\tconst extraRelationsByTable = /* @__PURE__ */ new Map();\n\tconst crossSpaceFieldNamesByTable = /* @__PURE__ */ new Map();\n\tconst danglingForeignKeysByTable = /* @__PURE__ */ new Map();\n\tfor (const [tableName, table] of Object.entries(tables)) {\n\t\tconst keptForeignKeys = [];\n\t\tfor (const fk of table.foreignKeys) {\n\t\t\tif (fk.referencedSchema !== void 0) {\n\t\t\t\tconst owner = owners.get(coordinateKey({\n\t\t\t\t\tnamespaceId: fk.referencedSchema,\n\t\t\t\t\tentityKind: \"table\",\n\t\t\t\t\tentityName: fk.referencedTable\n\t\t\t\t}));\n\t\t\t\tif (owner !== void 0) {\n\t\t\t\t\tconst target = resolveCrossSpaceTarget(owner, fk.referencedSchema, fk.referencedTable);\n\t\t\t\t\tif (target === void 0) throw postgresError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `contract infer: described contract space \"${owner.spaceId}\" owns storage coordinate \"${fk.referencedSchema}.${fk.referencedTable}\" but declares no domain model mapped to it. A pack that describes a table must also declare the domain model it maps to; this pack is malformed.`, { meta: {\n\t\t\t\t\t\tspaceId: owner.spaceId,\n\t\t\t\t\t\ttableName: fk.referencedTable\n\t\t\t\t\t} });\n\t\t\t\t\tif (!crossSpaceFieldNamesByTable.has(fk.referencedTable)) crossSpaceFieldNamesByTable.set(fk.referencedTable, target.fieldNamesByColumn);\n\t\t\t\t\tconst fieldName = deriveRelationFieldName(fk.columns, fk.referencedTable);\n\t\t\t\t\tconst optional = fk.columns.some((columnName) => table.columns[columnName]?.nullable ?? false);\n\t\t\t\t\tconst relationField = {\n\t\t\t\t\t\t...buildChildRelationField(fieldName, target.modelName, fk, optional, void 0, table),\n\t\t\t\t\t\ttypeNamespaceId: target.namespaceId,\n\t\t\t\t\t\ttypeContractSpaceId: target.spaceId\n\t\t\t\t\t};\n\t\t\t\t\tconst existingRelations = extraRelationsByTable.get(tableName);\n\t\t\t\t\tif (existingRelations) existingRelations.push(relationField);\n\t\t\t\t\telse extraRelationsByTable.set(tableName, [relationField]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (tables[fk.referencedTable] !== void 0) keptForeignKeys.push(fk);\n\t\t\telse {\n\t\t\t\tconst dangling = {\n\t\t\t\t\tcolumns: fk.columns,\n\t\t\t\t\treferencedSchema: fk.referencedSchema,\n\t\t\t\t\treferencedTable: fk.referencedTable\n\t\t\t\t};\n\t\t\t\tconst existingDangling = danglingForeignKeysByTable.get(tableName);\n\t\t\t\tif (existingDangling) existingDangling.push(dangling);\n\t\t\t\telse danglingForeignKeysByTable.set(tableName, [dangling]);\n\t\t\t}\n\t\t}\n\t\tresultTables[tableName] = keptForeignKeys.length === table.foreignKeys.length ? table : new SqlTableIR({\n\t\t\t...table,\n\t\t\tforeignKeys: keptForeignKeys\n\t\t});\n\t}\n\treturn {\n\t\ttables: resultTables,\n\t\textraRelationsByTable,\n\t\tcrossSpaceFieldNamesByTable,\n\t\tdanglingForeignKeysByTable\n\t};\n}\n/**\n* Explains a foreign key `resolveForeignKeys` dropped as dangling: the\n* database enforces it, but its target lives outside the introspected\n* schema, so infer has no model to point a relation at. The suggested fix\n* targets the common cause — an unconfigured extension pack's schema\n* (e.g. Supabase's `auth`).\n*/\nfunction buildDanglingForeignKeyWarning(danglingForeignKeys, fieldNamesByTable, tableName) {\n\treturn `Foreign key ${danglingForeignKeys.map((fk) => {\n\t\tconst fieldNames = fk.columns.map((columnName) => resolveColumnFieldName(fieldNamesByTable, tableName, columnName));\n\t\tconst target = fk.referencedSchema !== void 0 ? `${fk.referencedSchema}.${fk.referencedTable}` : fk.referencedTable;\n\t\treturn `\"${fieldNames.join(\", \")}\" -> \"${target}\"`;\n\t}).join(\", \")} exists in the database, but its target schema is outside the introspected scope, so no relation field was generated. If the target schema is described by an extension pack, add it to extensions and re-run infer.`;\n}\n//#endregion\n//#region src/core/psl-build/index-attributes.ts\nfunction buildModelConstraintAttribute(name, fields, constraintName) {\n\tconst args = [positionalArg(`[${fields.join(\", \")}]`)];\n\tif (constraintName !== void 0) args.push(namedArg(\"map\", `\"${escapePslString(constraintName)}\"`));\n\treturn buildAttribute(\"model\", name, args);\n}\n/**\n* The naming of a live index, re-detected rather than trusted: wire when the\n* live name parses as a wire name AND that hash recomputes from the\n* introspected content; otherwise exact.\n*/\nfunction detectIndexNaming(index) {\n\tconst parsed = parseWireName(index.name);\n\tconst recomputed = computeIndexContentHash({\n\t\t...index.columns !== void 0 ? { columns: index.columns } : {},\n\t\t...index.expression !== void 0 ? { expression: index.expression } : {},\n\t\t...index.where !== void 0 ? { where: index.where } : {},\n\t\tunique: index.unique,\n\t\t...index.type !== void 0 ? { type: index.type } : {},\n\t\t...index.options !== void 0 ? { options: index.options } : {}\n\t});\n\treturn parsed !== void 0 && parsed.hash === recomputed ? {\n\t\tkind: \"wire\",\n\t\tprefix: parsed.prefix\n\t} : { kind: \"exact\" };\n}\nfunction namingArg(naming, exactName) {\n\treturn naming.kind === \"wire\" ? namedArg(\"name\", `\"${escapePslString(naming.prefix)}\"`) : namedArg(\"map\", `\"${escapePslString(exactName)}\"`);\n}\n/**\n* Emits one `@@index` attribute at full fidelity, named as `naming` says;\n* without it, the naming is re-detected from the live name and content.\n*/\nfunction buildIndexAttribute(index, fieldNames, naming = detectIndexNaming(index)) {\n\tconst args = [];\n\tif (fieldNames !== void 0) args.push(positionalArg(`[${fieldNames.join(\", \")}]`));\n\telse {\n\t\tassertDefined(index.expression, `buildIndexAttribute: index \"${index.name}\" carries neither columns nor expression; SqlIndexIR enforces exactly one`);\n\t\targs.push(namedArg(\"expression\", printSqlExpressionLiteral(index.expression)));\n\t}\n\targs.push(namingArg(naming, index.name));\n\tif (index.where !== void 0) args.push(namedArg(\"where\", printSqlExpressionLiteral(index.where)));\n\tif (index.unique) args.push(namedArg(\"unique\", \"true\"));\n\tif (index.type !== void 0 || index.options !== void 0) args.push(namedArg(\"type\", `\"${escapePslString(index.type ?? \"btree\")}\"`));\n\tif (index.options !== void 0) {\n\t\tconst entries = Object.entries(index.options ?? {}).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([key, value]) => `${key}: \"${escapePslString(String(value))}\"`);\n\t\targs.push(namedArg(\"options\", `{ ${entries.join(\", \")} }`));\n\t}\n\treturn buildAttribute(\"model\", \"index\", args);\n}\n/**\n* Emits one `@@fullTextIndex` attribute. A weight group of one field is written as the bare field,\n* a larger group as a list, and the language only when it is not the default.\n*/\nfunction buildFullTextIndexAttribute(index, definition, fieldNameOf, naming) {\n\tconst args = [positionalArg(`[${definition.weightGroups.map((group) => {\n\t\tconst names = group.map(fieldNameOf);\n\t\treturn names.length === 1 ? names[0] ?? \"\" : `[${names.join(\", \")}]`;\n\t}).join(\", \")}]`), namingArg(naming, index.name)];\n\tif (definition.language !== \"english\") args.push(namedArg(\"language\", `\"${definition.language}\"`));\n\tif (index.where !== void 0) args.push(namedArg(\"where\", printSqlExpressionLiteral(index.where)));\n\treturn buildAttribute(\"model\", \"fullTextIndex\", args);\n}\n/**\n* Emits one `@@check` attribute, named as `naming` says. Without it, a live,\n* non-derived check is written in the `map:` form. Re-detecting `name:` is not\n* attempted there: the live expression is Postgres's own reprint, but a\n* wire-named check's hash was taken over the author's original text, so\n* recomputing the hash from the reprint would essentially never match. `map:`\n* plus the verbatim reprint is correct regardless — a reprint compared against\n* a later reprint of the same expression is stable, so the emitted contract\n* signs the live database with zero pending operations. `buildIntrospectedPolicyBlocks`\n* makes the same call for `@@map` on adopted RLS policies, for the same reason.\n*/\nfunction buildCheckAttribute(check, naming = { kind: \"exact\" }) {\n\treturn buildAttribute(\"model\", \"check\", [namedArg(\"expression\", printSqlExpressionLiteral(check.expression)), namingArg(naming, check.name)]);\n}\n//#endregion\n//#region src/core/psl-infer/infer-sql-text.ts\n/** Why `contract infer` skips an exact-named object whose SQL a `sql` literal would change. */\nconst SQL_DOES_NOT_READ_BACK = \"its SQL cannot be written as a sql literal that reads back unchanged. It is not in this schema, so migration plan will drop it. A sql literal written by hand holds different text, so migration plan then stops with a conflict for an index or check, or drops and recreates a policy. Either change the SQL in the database to the text of the literal, or add the object without map: or @@map so Prisma names it.\";\n/** The note on a model whose column default `contract infer` printed as a `sql` literal that reads back as different text. */\nfunction defaultDoesNotReadBackNote(column) {\n\treturn `// prisma: default of \"${column}\" holds text a sql literal cannot write back unchanged; check its string constants before applying a migration`;\n}\n/**\n* The index as `contract infer` prints it, or `undefined` when it is skipped. An exact-named index\n* is compared byte for byte, so its SQL must read back unchanged. A wire-named index is compared by\n* name, and its canonical SQL hashes to the same name, so it is printed with that text.\n*/\nfunction printableIndex(index) {\n\tif (sqlTextsReadBack([index.expression, index.where])) return index;\n\tconst expression = index.expression === void 0 ? void 0 : storedSqlText(index.expression);\n\tconst where = index.where === void 0 ? void 0 : storedSqlText(index.where);\n\tif (expression === void 0 && index.expression !== void 0) return void 0;\n\tif (where === void 0 && index.where !== void 0) return void 0;\n\tconst canonical = {\n\t\t...index,\n\t\t...expression !== void 0 ? { expression } : {},\n\t\t...where !== void 0 ? { where } : {}\n\t};\n\treturn detectIndexNaming(canonical).kind === \"wire\" ? canonical : void 0;\n}\n//#endregion\n//#region src/core/psl-infer/infer-model-blocks.ts\nfunction buildModel(table, columnTypes, enumNameOf, fieldNamesByTable, defaultMapping, defaultOf, columnDefaults, relationFields, danglingForeignKeys, rlsEnabled = false, policySkipNotes = []) {\n\tconst { name: modelName, map: mapName } = toModelName(table.name);\n\tconst fieldNameMap = fieldNamesByTable.get(table.name);\n\tconst pkColumns = new Set(table.primaryKey?.columns ?? []);\n\tconst isSinglePk = pkColumns.size === 1;\n\tconst singlePkConstraintName = isSinglePk ? table.primaryKey?.name : void 0;\n\tconst uniqueColumns = /* @__PURE__ */ new Map();\n\tfor (const unique of table.uniques) if (unique.columns.length === 1) {\n\t\tconst [columnName = \"\"] = unique.columns;\n\t\tconst existingConstraintName = uniqueColumns.get(columnName);\n\t\tif (!uniqueColumns.has(columnName) || existingConstraintName === void 0 && unique.name) uniqueColumns.set(columnName, unique.name);\n\t}\n\tconst derivedCheckNames = computeDerivedCheckNames(table);\n\tconst defaultNotes = [];\n\tconst fields = [];\n\tfor (const column of Object.values(table.columns)) fields.push(buildScalarField(column, table, columnTypes, enumNameOf, fieldNameMap, defaultMapping, defaultOf, columnDefaults, pkColumns, isSinglePk, singlePkConstraintName, uniqueColumns, derivedCheckNames, () => defaultNotes.push(defaultDoesNotReadBackNote(column.name))));\n\tconst usedFieldNames = new Set(fields.map((field) => field.name));\n\tfor (const rel of relationFields) fields.push(buildRelationField(rel, table.name, fieldNamesByTable, usedFieldNames));\n\tconst modelAttributes = [];\n\tif (table.primaryKey && table.primaryKey.columns.length > 1) {\n\t\tconst pkFieldNames = table.primaryKey.columns.map((columnName) => resolveColumnFieldName(fieldNamesByTable, table.name, columnName));\n\t\tmodelAttributes.push(buildModelConstraintAttribute(\"id\", pkFieldNames, table.primaryKey.name));\n\t}\n\tfor (const unique of table.uniques) if (unique.columns.length > 1) {\n\t\tconst uniqueFieldNames = unique.columns.map((columnName) => resolveColumnFieldName(fieldNamesByTable, table.name, columnName));\n\t\tmodelAttributes.push(buildModelConstraintAttribute(\"unique\", uniqueFieldNames, unique.name));\n\t}\n\tconst sqlSkipNotes = [];\n\tconst skipNote = (kind, name) => sqlSkipNotes.push(`// prisma: skipped ${kind} \"${name}\": ${SQL_DOES_NOT_READ_BACK}`);\n\tfor (const index of table.indexes) {\n\t\tconst printable = printableIndex(index);\n\t\tif (printable === void 0) {\n\t\t\tskipNote(\"index\", index.name);\n\t\t\tcontinue;\n\t\t}\n\t\tconst indexFieldNames = printable.columns?.map((columnName) => resolveColumnFieldName(fieldNamesByTable, table.name, columnName));\n\t\tmodelAttributes.push(buildIndexAttribute(printable, indexFieldNames));\n\t}\n\tfor (const check of table.checks ?? []) {\n\t\tif (derivedCheckNames.has(check.name)) continue;\n\t\tif (!sqlTextsReadBack([check.expression])) {\n\t\t\tskipNote(\"check\", check.name);\n\t\t\tcontinue;\n\t\t}\n\t\tmodelAttributes.push(buildCheckAttribute(check));\n\t}\n\tif (mapName) modelAttributes.push(buildMapAttribute(\"model\", mapName));\n\tif (rlsEnabled) modelAttributes.push(buildAttribute(\"model\", \"rls\", []));\n\tconst warnings = [];\n\tif (!table.primaryKey) warnings.push(\"This table has no primary key in the database\");\n\tif (danglingForeignKeys.length > 0) warnings.push(buildDanglingForeignKeyWarning(danglingForeignKeys, fieldNamesByTable, table.name));\n\tconst commentLines = [\n\t\t...warnings.length > 0 ? [`// WARNING: ${warnings.join(\" \")}`] : [],\n\t\t...policySkipNotes,\n\t\t...sqlSkipNotes,\n\t\t...defaultNotes\n\t];\n\tconst comment = commentLines.length > 0 ? commentLines.join(\"\\n\") : void 0;\n\treturn {\n\t\tkind: \"model\",\n\t\tname: modelName,\n\t\tfields,\n\t\tattributes: modelAttributes,\n\t\tspan: SYNTHETIC_SPAN,\n\t\t...comment !== void 0 ? { comment } : {}\n\t};\n}\n/**\n* The live check names that are derived: a live check's name matches `formatWireName(composeCheckWirePrefix(table, column, kind), computeCheckContentHash(expression))` for some column of the table and some candidate `postgresRenderCheckExpressions` would render for that column. Never by comparing expressions — the live body is a Postgres reprint, never the authored text. One set serves both the element nullability of list fields and `@@check` exclusion in `buildModel`, so the two decisions cannot drift apart.\n*\n* `membership` is unreachable here today: infer never emits domain enums (`enumType()` is not inferred), so no inferred column has member values and no membership check is ever derived. Inferring domain enums would mean threading the column's member values through here.\n*/\nfunction computeDerivedCheckNames(table) {\n\tconst liveCheckNames = new Set((table.checks ?? []).map((check) => check.name));\n\tconst derivedCheckNames = /* @__PURE__ */ new Set();\n\tfor (const column of Object.values(table.columns)) for (const candidate of postgresRenderCheckExpressions({\n\t\ttableName: table.name,\n\t\tcolumnName: column.name,\n\t\tmany: column.many === true,\n\t\tmemberValues: void 0\n\t})) {\n\t\tconst derivedName = formatWireName(composeCheckWirePrefix(table.name, column.name, candidate.kind), computeCheckContentHash(candidate.expression));\n\t\tif (liveCheckNames.has(derivedName)) derivedCheckNames.add(derivedName);\n\t}\n\treturn derivedCheckNames;\n}\nfunction buildScalarField(column, table, columnTypes, enumNameOf, fieldNameMap, defaultMapping, defaultOf, columnDefaults, pkColumns, isSinglePk, singlePkConstraintName, uniqueColumns, derivedCheckNames, noteDefaultThatDoesNotReadBack) {\n\tconst resolvedField = fieldNameMap?.get(column.name);\n\tconst fieldName = resolvedField?.fieldName ?? toFieldName(column.name).name;\n\tconst fieldMap = resolvedField?.fieldMap;\n\tconst enumPslName = enumNameOf(column);\n\tconst pslType = enumPslName === void 0 ? columnTypes(table.name, column.name) : {\n\t\tpath: [enumPslName],\n\t\targs: [],\n\t\tvalues: []\n\t};\n\tconst typeName = pslType.path.join(\".\");\n\tconst typeConstructor = enumPslName !== void 0 ? {\n\t\tkind: \"typeConstructor\",\n\t\tpath: [\"pg\", \"enum\"],\n\t\targs: [positionalArg(enumPslName)],\n\t\tspan: SYNTHETIC_SPAN\n\t} : pslType.args.length > 0 || pslType.path.length > 1 ? {\n\t\tkind: \"typeConstructor\",\n\t\tpath: pslType.path,\n\t\targs: pslType.args.map(positionalArg),\n\t\tspan: SYNTHETIC_SPAN\n\t} : void 0;\n\tconst attributes = [];\n\tconst isId = isSinglePk && pkColumns.has(column.name);\n\tif (isId) attributes.push(buildSimpleConstraintFieldAttribute(\"id\", singlePkConstraintName));\n\tconst isEnumColumn = enumPslName !== void 0;\n\tconst defaultAttribute = inferDefaultAttribute(column, defaultOf(table.name, column), {\n\t\t...defaultMapping,\n\t\t...ifDefined(\"columnCodec\", columnDefaults.codecOf(pslType, isEnumColumn)),\n\t\t...ifDefined(\"typeParams\", columnDefaults.typeParamsOf(pslType, isEnumColumn)),\n\t\tlist: column.many === true\n\t}, (value) => columnDefaults.readsBack(value, pslType, isEnumColumn, column.many === true), noteDefaultThatDoesNotReadBack);\n\tif (defaultAttribute !== void 0) attributes.push(parseDefaultAttributeString(defaultAttribute));\n\tif (uniqueColumns.has(column.name) && !isId) {\n\t\tconst uniqueConstraintName = uniqueColumns.get(column.name);\n\t\tattributes.push(buildSimpleConstraintFieldAttribute(\"unique\", uniqueConstraintName));\n\t}\n\tif (fieldMap !== void 0) attributes.push(buildMapAttribute(\"field\", fieldMap));\n\treturn {\n\t\tkind: \"field\",\n\t\tname: fieldName,\n\t\ttypeName,\n\t\t...ifDefined(\"typeConstructor\", typeConstructor),\n\t\toptional: column.nullable,\n\t\tlist: column.many === true,\n\t\t...ifDefined(\"elementOptional\", column.many === true && !enforcesElementNotNull(table, column, derivedCheckNames) ? true : void 0),\n\t\tattributes,\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\nfunction enforcesElementNotNull(table, column, derivedCheckNames) {\n\treturn postgresRenderCheckExpressions({\n\t\ttableName: table.name,\n\t\tcolumnName: column.name,\n\t\tmany: true,\n\t\tmemberValues: void 0\n\t}).some((candidate) => candidate.kind === \"elementNotNull\" && derivedCheckNames.has(formatWireName(composeCheckWirePrefix(table.name, column.name, candidate.kind), computeCheckContentHash(candidate.expression))));\n}\n/**\n* A literal default prints as the PSL literal the column's data type takes. A literal that has no\n* such PSL literal prints as a `sql` tagged literal holding the expression Postgres reported.\n*/\nfunction inferDefaultAttribute(column, read, defaultMapping, readsBack, noteTextThatDoesNotReadBack) {\n\tif (column.default === void 0 && column.resolvedDefault?.kind === \"function\" && column.resolvedDefault.expression === \"autoincrement()\") return \"@default(autoincrement())\";\n\tif (read === void 0) return void 0;\n\tif (read.kind === \"function\") return mappedAttribute(read, defaultMapping, noteTextThatDoesNotReadBack);\n\tif (column.many === true && !Array.isArray(read.value)) return void 0;\n\treturn literalOrRawAttribute(read, column, defaultMapping, readsBack, noteTextThatDoesNotReadBack);\n}\n/**\n* A literal no data type the column takes writes, or that the column's codec does not read back,\n* has no PSL literal, so the raw database default prints instead.\n*/\nfunction literalOrRawAttribute(columnDefault, column, defaultMapping, readsBack, noteTextThatDoesNotReadBack) {\n\tconst printed = columnDefault;\n\tconst result = printed.kind === \"literal\" && !readsBack(printed.value) ? void 0 : mapDefault(printed, defaultMapping);\n\tif (result !== void 0) return result.attribute;\n\treturn typeof column.default === \"string\" ? mappedAttribute({\n\t\tkind: \"function\",\n\t\texpression: column.default\n\t}, defaultMapping, noteTextThatDoesNotReadBack) : void 0;\n}\n/**\n* A default expression prints even when its `sql` literal reads back as different text: dropping it\n* would let the next plan drop the default. The caller notes it instead.\n*/\nfunction mappedAttribute(columnDefault, defaultMapping, noteTextThatDoesNotReadBack) {\n\tif (columnDefault.kind === \"function\" && !sqlTextsReadBack([columnDefault.expression])) noteTextThatDoesNotReadBack();\n\treturn mapDefault(columnDefault, defaultMapping)?.attribute;\n}\nfunction buildRelationField(rel, hostTableName, fieldNamesByTable, usedFieldNames) {\n\tconst fieldName = createUniqueFieldName(rel.fieldName, usedFieldNames);\n\tusedFieldNames.add(fieldName);\n\tconst args = [];\n\tif (rel.fields && rel.references) {\n\t\tif (rel.relationName) args.push(namedArg(\"name\", `\"${escapePslString(rel.relationName)}\"`));\n\t\targs.push(namedArg(\"fields\", `[${rel.fields.map((columnName) => resolveColumnFieldName(fieldNamesByTable, hostTableName, columnName)).join(\", \")}]`));\n\t\targs.push(namedArg(\"references\", `[${rel.references.map((columnName) => resolveColumnFieldName(fieldNamesByTable, rel.referencedTableName ?? \"\", columnName)).join(\", \")}]`));\n\t\tif (rel.onDelete) args.push(namedArg(\"onDelete\", rel.onDelete));\n\t\tif (rel.onUpdate) args.push(namedArg(\"onUpdate\", rel.onUpdate));\n\t\tif (rel.fkName) args.push(namedArg(\"map\", `\"${escapePslString(rel.fkName)}\"`));\n\t\tif (rel.index === false) args.push(namedArg(\"index\", \"false\"));\n\t\telse if (rel.index !== void 0) args.push(namedArg(\"index\", `\"${escapePslString(rel.index)}\"`));\n\t} else if (rel.relationName) args.push(namedArg(\"name\", `\"${escapePslString(rel.relationName)}\"`));\n\tconst attrs = args.length > 0 ? [buildAttribute(\"field\", \"relation\", args)] : [];\n\treturn {\n\t\tkind: \"field\",\n\t\tname: fieldName,\n\t\ttypeName: rel.typeName,\n\t\t...ifDefined(\"typeNamespaceId\", rel.typeNamespaceId),\n\t\t...ifDefined(\"typeContractSpaceId\", rel.typeContractSpaceId),\n\t\toptional: rel.optional,\n\t\tlist: rel.list,\n\t\tattributes: attrs,\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\n//#endregion\n//#region src/core/psl-infer/infer-policy-blocks.ts\n/** Replaces invalid character runs with `_`; prepends `_` when the first character is invalid. */\nfunction sanitizePolicyHead(raw) {\n\tlet head = raw.replace(/[^\\p{L}\\p{N}_-]+/gu, \"_\");\n\tif (!/^[\\p{L}_]/u.test(head)) head = `_${head}`;\n\treturn head;\n}\n/**\n* Builds one `policy_<operation>` block per introspected policy. Every\n* adopted policy is exact-named: a reprinted body never reliably re-hashes to\n* the live suffix, so `@@map` always carries the physical name and the head\n* is only an identifier. A policy granting to a role whose name is not a\n* legal identifier cannot be authored at all — role references have no\n* `@@map` escape — so it is skipped with a note.\n*/\nfunction buildIntrospectedPolicyBlocks(policiesByTable, modelNameMap, reservedHeads = /* @__PURE__ */ new Set()) {\n\tconst all = [];\n\tfor (const [tableName, policies] of policiesByTable) for (const policy of policies) all.push({\n\t\tpolicy,\n\t\ttableName\n\t});\n\tall.sort((a, b) => {\n\t\tif (a.policy.name !== b.policy.name) return a.policy.name < b.policy.name ? -1 : 1;\n\t\tif (a.tableName !== b.tableName) return a.tableName < b.tableName ? -1 : 1;\n\t\treturn a.policy.operation < b.policy.operation ? -1 : a.policy.operation > b.policy.operation ? 1 : 0;\n\t});\n\tconst usedHeads = new Set(reservedHeads);\n\tconst blocks = [];\n\tconst skipNotesByTable = /* @__PURE__ */ new Map();\n\tfor (const { policy, tableName } of all) {\n\t\tconst modelName = modelNameMap.get(tableName);\n\t\tassertDefined(modelName, `buildIntrospectedPolicyBlocks: policy \"${policy.name}\" targets table \"${tableName}\" with no emitted model; tables and policies come from the same introspection walk`);\n\t\tconst skipNote = (reason) => {\n\t\t\tconst notes = skipNotesByTable.get(tableName) ?? [];\n\t\t\tnotes.push(`// prisma: skipped policy \"${policy.name}\": ${reason}`);\n\t\t\tskipNotesByTable.set(tableName, notes);\n\t\t};\n\t\tconst badRole = policy.roles.find((role) => !isPslIdentifier(role));\n\t\tif (badRole !== void 0) {\n\t\t\tskipNote(`role \"${badRole}\" is not a valid PSL identifier and role references cannot be escaped`);\n\t\t\tcontinue;\n\t\t}\n\t\tif (!sqlTextsReadBack([policy.using, policy.withCheck])) {\n\t\t\tskipNote(SQL_DOES_NOT_READ_BACK);\n\t\t\tcontinue;\n\t\t}\n\t\tlet head = sanitizePolicyHead(parseWireName(policy.name)?.prefix ?? policy.name);\n\t\tif (usedHeads.has(head)) {\n\t\t\tlet n = 2;\n\t\t\twhile (usedHeads.has(`${head}_${n}`)) n += 1;\n\t\t\thead = `${head}_${n}`;\n\t\t}\n\t\tusedHeads.add(head);\n\t\tblocks.push({\n\t\t\tkind: \"policy\",\n\t\t\tkeyword: POLICY_BLOCK_KEYWORDS[policy.operation],\n\t\t\tname: head,\n\t\t\tparameters: {\n\t\t\t\ttarget: {\n\t\t\t\t\texpression: modelName,\n\t\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t\t},\n\t\t\t\troles: {\n\t\t\t\t\texpression: `[${policy.roles.join(\", \")}]`,\n\t\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t\t},\n\t\t\t\t...policy.using !== void 0 ? { using: {\n\t\t\t\t\texpression: printSqlExpressionLiteral(policy.using),\n\t\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t\t} } : {},\n\t\t\t\t...policy.withCheck !== void 0 ? { withCheck: {\n\t\t\t\t\texpression: printSqlExpressionLiteral(policy.withCheck),\n\t\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t\t} } : {},\n\t\t\t\t...policy.permissive ? {} : { permissive: {\n\t\t\t\t\texpression: \"false\",\n\t\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t\t} }\n\t\t\t},\n\t\t\tblockAttributes: [{\n\t\t\t\tname: \"map\",\n\t\t\t\targs: [{\n\t\t\t\t\tkind: \"positional\",\n\t\t\t\t\tvalue: `\"${escapePslString(policy.name)}\"`,\n\t\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t\t}],\n\t\t\t\tspan: SYNTHETIC_SPAN\n\t\t\t}],\n\t\t\tspan: SYNTHETIC_SPAN\n\t\t});\n\t}\n\treturn {\n\t\tblocks,\n\t\tskipNotesByTable\n\t};\n}\n//#endregion\n//#region src/core/psl-infer/json-exact-numbers.ts\nconst DECIMAL_PARTS_PATTERN = /^(-?)(\\d+)(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/;\n/** A numeral's value as `<sign><digits>e<exponent>`, with no leading or trailing zero digits. */\nfunction decimalValue(numeral) {\n\tconst parts = DECIMAL_PARTS_PATTERN.exec(numeral);\n\tif (parts === null) return void 0;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\", exponent = \"0\"] = parts;\n\tconst digits = `${whole}${fraction}`.replace(/^0+/, \"\");\n\tif (digits === \"\") return \"0\";\n\tconst significant = digits.replace(/0+$/, \"\");\n\treturn `${sign}${significant}e${Number(exponent) - fraction.length + digits.length - significant.length}`;\n}\nfunction keepsJsonNumber(value, source) {\n\tif (!Number.isFinite(value) || source === void 0) return false;\n\tconst written = decimalValue(source);\n\treturn written !== void 0 && written === decimalValue(String(value));\n}\n/**\n* Whether every number in the JSON text keeps its value once read into a JavaScript number. Postgres keeps every digit of a json number, and the JSON codecs read one into a JavaScript number, so a document holding `12345678901234567890` or `1e400` would print back as another document. `1.0` reads as `1`, the same value. Text that is not JSON is left to the codec.\n*/\nfunction jsonKeepsEveryNumber(text) {\n\tlet exact = true;\n\tconst reviver = (_key, value, context) => {\n\t\tif (typeof value === \"number\" && !keepsJsonNumber(value, context?.source)) exact = false;\n\t\treturn value;\n\t};\n\ttry {\n\t\tJSON.parse(text, reviver);\n\t} catch {\n\t\treturn true;\n\t}\n\treturn exact;\n}\n//#endregion\n//#region src/core/psl-infer/infer-read-defaults.ts\n/**\n* How `contract infer` reads the defaults the database reports: with the codec of the type constructor it prints for the column (`fromWire` of the literal's body, then `toDataTypeValue`), as `db verify` reads them with the contract column's codec. `contract infer` has no contract, so the constructor it prints stands in for one.\n*/\n/** For tables whose columns carry no default to read, such as a many-to-many junction table. */\nconst noInferredDefaults = () => void 0;\nfunction key(tableName, columnName) {\n\treturn JSON.stringify([tableName, columnName]);\n}\n/**\n* Reads each column's reported default. A function default, SQL NULL and a literal the codec reads are the default; a literal the codec cannot read, or one on a column whose constructor names no codec, is the raw expression as reported.\n*/\nasync function readInferredDefaults(schema, columnTypes, isEnumColumn, context) {\n\tconst read = /* @__PURE__ */ new Map();\n\tfor (const table of Object.values(schema.tables)) for (const column of Object.values(table.columns)) {\n\t\tconst columnDefault = await readColumnDefault(column, () => columnTypes(table.name, column.name), isEnumColumn(column), context);\n\t\tif (columnDefault !== void 0) read.set(key(table.name, column.name), columnDefault);\n\t}\n\treturn (tableName, column) => read.get(key(tableName, column.name));\n}\nasync function readColumnDefault(column, pslType, isEnum, context) {\n\tconst raw = column.default;\n\tif (typeof raw !== \"string\") return isColumnDefault(raw) ? raw : void 0;\n\treturn readDefaultWithCodec(raw, column.many === true, codecOf(pslType, isEnum, context));\n}\n/**\n* Reads one reported default, of a list column when `many`, with `codec`: a function default and SQL NULL as themselves, a literal the codec reads as its stored JSON, and anything else as the raw expression as reported.\n*/\nasync function readDefaultWithCodec(raw, many, codec) {\n\tconst reported = readPostgresDefault(raw, many);\n\tif (reported.kind === \"function\") return reported;\n\tif (reported.kind === \"null\") return {\n\t\tkind: \"literal\",\n\t\tvalue: null\n\t};\n\tconst rawExpression = {\n\t\tkind: \"function\",\n\t\texpression: raw.trim()\n\t};\n\tif (codec === void 0) return rawExpression;\n\tif (reported.literal.kind === \"list\" && reported.literal.elements.includes(null) && holdsNull(codec)) return rawExpression;\n\tif (JSON_TYPES.has(codec.dataType.id) && !bodiesOf(reported.literal).every(jsonBodyIsExact)) return rawExpression;\n\tconst read = await readReportedDefault(codec, reported.literal, raw);\n\treturn \"resolvedDefault\" in read ? read.resolvedDefault : rawExpression;\n}\nconst JSON_TYPES = /* @__PURE__ */ new Set([pgJson.id, pgJsonb.id]);\nfunction bodiesOf(literal) {\n\treturn literal.kind === \"value\" ? [literal.body] : literal.elements;\n}\nfunction jsonBodyIsExact(body) {\n\treturn typeof body !== \"string\" || jsonKeepsEveryNumber(body);\n}\n/**\n* Whether the codec's type has a value null, as a JSON type does. A list element that is SQL NULL would then print as that value, which reads back as something else, so such a list keeps its raw expression.\n*/\nfunction holdsNull(codec) {\n\ttry {\n\t\tcodec.dataType.fromContract(null, {});\n\t\treturn true;\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn false;\n\t}\n}\nfunction codecOf(pslType, isEnum, context) {\n\ttry {\n\t\tconst ref = inferredCodecRef(context, isEnum ? { path: [] } : pslType(), isEnum);\n\t\treturn ref === void 0 ? void 0 : codecForRef(context.codecLookup, ref);\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n//#endregion\n//#region src/core/psl-infer/postgres-default-mapping.ts\nfunction createPostgresDefaultMapping() {\n\tconst codecLookup = createPostgresBuiltinCodecLookup();\n\treturn { dataTypes: {\n\t\tentries: postgresDataTypeEntries(),\n\t\tlookup: createPostgresBuiltinDataTypeLookup(),\n\t\tdataTypeOfCodec: (codecId) => codecLookup.descriptorFor(codecId)?.dataType\n\t} };\n}\n//#endregion\n//#region src/core/psl-infer/infer-psl-contract.ts\n/**\n* Infers a PSL AST (for `printPsl`) from an introspected Postgres schema tree.\n*\n* Target-owned inference: it walks the `PostgresDatabaseSchemaNode` tree and\n* owns the Postgres dialect knowledge — native enums and the default map.\n* It reads each reported default with the codec of the type constructor it prints for the column (`readInferredDefaults`). A column's type is the SQL family's: the constructor marked\n* `inferred` for the data type that claims the type the database reported.\n* Relation inference, name transforms, and generic default mapping are\n* shape-neutral utilities imported from the SQL family as well.\n*\n* The tree's tables (across its namespaces — `contract infer` introspects a\n* single live namespace) are gathered into the model set and emitted in one\n* bucket, alongside native-enum and RLS policy blocks. That bucket is named\n* after the introspected schema when the content needs a `namespace { … }`\n* wrap, and is the flat `UNSPECIFIED_PSL_NAMESPACE_ID` bucket otherwise. This\n* entry point emits nothing else, so its output is always exactly one bucket\n* and byte-identical to the prior flat inference. {@link buildPslDocumentAst}\n* can emit a second, always-flat bucket for content that must stay top-level\n* even under a wrap; no caller asks for one yet.\n*\n* `describedContracts` — the stack's extension packs' already-assembled\n* contracts, each paired with its space id — is consulted while gathering\n* tables: a table whose coordinate `(schemaName, 'table', tableName)` one of\n* those contracts already declares is omitted, before the duplicate-name\n* check below and before relation inference, so it cannot spuriously\n* collide with an app table and never contributes a bare relation field. A\n* surviving table's foreign key into an omitted, pack-owned table is not\n* dropped: {@link resolveForeignKeys} rewrites it into a relation qualified\n* with the pack's space id (`<spaceId>:<namespaceId>.<Model>`) instead.\n*/\nasync function inferPostgresPslContract(tree, context, describedContracts) {\n\tconst namespaces = Object.values(tree.namespaces);\n\tconst owners = describedContractOwners(describedContracts ?? []);\n\tconst enumDefinitions = /* @__PURE__ */ new Map();\n\tconst enumNamespaceNames = /* @__PURE__ */ new Set();\n\tfor (const namespace of namespaces) for (const { typeName, members } of namespace.nativeEnums) {\n\t\tif (owners.get(coordinateKey({\n\t\t\tnamespaceId: namespace.schemaName,\n\t\t\tentityKind: \"native_enum\",\n\t\t\tentityName: typeName\n\t\t})) !== void 0) continue;\n\t\tenumDefinitions.set(typeName, members);\n\t\tenumNamespaceNames.add(namespace.schemaName);\n\t}\n\tconst tables = {};\n\tconst introspectedTables = [];\n\tconst tableNamespaceNames = /* @__PURE__ */ new Set();\n\tconst rlsEnabledTables = /* @__PURE__ */ new Set();\n\tconst policiesByTable = /* @__PURE__ */ new Map();\n\tfor (const namespace of namespaces) for (const [tableName, table] of Object.entries(namespace.tables)) {\n\t\tif (owners.has(coordinateKey({\n\t\t\tnamespaceId: namespace.schemaName,\n\t\t\tentityKind: \"table\",\n\t\t\tentityName: tableName\n\t\t}))) continue;\n\t\tif (tables[tableName] !== void 0) throw postgresError(\"CONTRACT.INFER_UNSUPPORTED\", `contract infer: duplicate table name \"${tableName}\" across schemas is not yet supported (single-namespace PSL inference emits one flat bucket; multi-namespace \\`namespace { … }\\` output is a later slice).`, { meta: { tableName } });\n\t\tfor (const column of Object.values(table.columns)) {\n\t\t\tconst reported = column.reportedType;\n\t\t\tconst owningSpaceId = reported?.kind === \"enum\" && reported.schema !== void 0 && reported.name !== void 0 ? owners.get(coordinateKey({\n\t\t\t\tnamespaceId: reported.schema,\n\t\t\t\tentityKind: \"native_enum\",\n\t\t\t\tentityName: reported.name\n\t\t\t}))?.spaceId : void 0;\n\t\t\tif (owningSpaceId !== void 0) throw postgresError(\"CONTRACT.INFER_UNSUPPORTED\", `contract infer: column \"${tableName}\".\"${column.name}\" is typed by native enum type \"${column.typeText}\", which extension pack space \"${owningSpaceId}\" already describes. A cross-space enum-typed column has no authorable PSL form yet; describe the table in that pack's contract or retype the column before re-running contract infer.`, { meta: {\n\t\t\t\ttableName,\n\t\t\t\tcolumnName: column.name\n\t\t\t} });\n\t\t}\n\t\ttables[tableName] = new SqlTableIR(table);\n\t\tintrospectedTables.push({\n\t\t\tschemaName: namespace.schemaName,\n\t\t\ttableName,\n\t\t\tcolumns: Object.values(table.columns)\n\t\t});\n\t\ttableNamespaceNames.add(namespace.schemaName);\n\t\tif (table.rlsEnabled) rlsEnabledTables.add(tableName);\n\t\tif (table.policies.length > 0) policiesByTable.set(tableName, table.policies);\n\t}\n\tlet wrapNamespaceName;\n\tif (enumDefinitions.size > 0 || policiesByTable.size > 0) {\n\t\tconst contentNamespaces = /* @__PURE__ */ new Set([...enumNamespaceNames, ...tableNamespaceNames]);\n\t\tif (contentNamespaces.size > 1) throw postgresError(\"CONTRACT.INFER_UNSUPPORTED\", `contract infer: adopting native enums or RLS policies with content across multiple schemas is not yet supported (single-namespace PSL inference emits one \\`namespace { … }\\` block; multi-namespace output is a later slice). Schemas: ${[...contentNamespaces].sort().join(\", \")}.`, { meta: { schemas: [...contentNamespaces].sort() } });\n\t\twrapNamespaceName = [...contentNamespaces][0];\n\t}\n\tconst { tables: resolvedTables, extraRelationsByTable, crossSpaceFieldNamesByTable, danglingForeignKeysByTable } = resolveForeignKeys(tables, owners);\n\tconst schemaIR = new SqlSchemaIR({ tables: resolvedTables });\n\tconst enumInfo = { definitions: enumDefinitions };\n\tconst isEnumColumn = (column) => adoptedEnumTypeName(column, enumInfo.definitions, wrapNamespaceName) !== void 0;\n\tconst columnTypes = inferColumnTypes({\n\t\ttables: introspectedTables,\n\t\tconstructors: inferredTypeConstructors({\n\t\t\tauthoringTypes: context.authoringContributions.type,\n\t\t\tcodecLookup: context.codecLookup,\n\t\t\tdataTypeLookup: context.dataTypes.lookup\n\t\t}),\n\t\tdataTypes: context.dataTypes,\n\t\tisEnumColumn\n\t});\n\treturn buildPslDocumentAst(schemaIR, {\n\t\tcolumnTypes,\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tdefaultOf: await readInferredDefaults(schemaIR, columnTypes, isEnumColumn, context),\n\t\tcolumnDefaults: inferredColumnDefaults(context),\n\t\t...enumDefinitions.size > 0 ? { enumInfo } : {}\n\t}, {\n\t\textraRelationsByTable,\n\t\tcrossSpaceFieldNamesByTable,\n\t\tdanglingForeignKeysByTable\n\t}, wrapNamespaceName, {\n\t\trlsEnabledTables,\n\t\tpoliciesByTable\n\t});\n}\n/**\n* Builds the PSL document for one introspected schema.\n*\n* `namespaceName` wraps the output in `namespace <name> { … }`; omit it for\n* flat output. `topLevelExtensionBlocks` are declarations that must stay\n* top-level even when a wrap applies, such as a recovered domain enum — a\n* family `enum` inside a namespace is a hard diagnostic. They land in their\n* own always-flat bucket when a wrap applies, and in the single flat bucket\n* when none does; either way they print unwrapped.\n*\n* Their names are reserved before the policy blocks are built, so a policy\n* renames itself out of the way. Against the rest of the top-level scope — the\n* models, the native enums, PSL's scalar type names, and the other blocks in\n* the list — a clash throws instead: a block's name is its contract key\n* (`entries.valueSet[name]`, with no `@@map` escape), so it cannot be rewritten\n* here.\n*/\nfunction buildPslDocumentAst(schemaIR, options, foreignKeyExtras, namespaceName, rlsExtras, topLevelExtensionBlocks = []) {\n\tconst { columnTypes, defaultMapping, defaultOf } = options;\n\tconst { extraRelationsByTable, crossSpaceFieldNamesByTable, danglingForeignKeysByTable } = foreignKeyExtras;\n\tconst modelNames = buildTopLevelNameMap(Object.keys(schemaIR.tables), toModelName, \"model\", \"table\");\n\tconst modelNameMap = new Map([...modelNames].map(([tableName, result]) => [tableName, result.name]));\n\tconst { enumNameMap: bareEnumNameMap, enumBlocks } = buildNativeEnumBlocks(options.enumInfo?.definitions ?? /* @__PURE__ */ new Map(), modelNames);\n\tconst enumNameOf = (column) => {\n\t\tconst typeName = adoptedEnumTypeName(column, bareEnumNameMap, namespaceName);\n\t\treturn typeName === void 0 ? void 0 : bareEnumNameMap.get(typeName);\n\t};\n\tconst fieldNamesByTable = new Map([...crossSpaceFieldNamesByTable, ...buildFieldNamesByTable(schemaIR.tables)]);\n\tconst { relationsByTable } = inferRelations(schemaIR.tables, modelNameMap);\n\tconst policyEmission = buildIntrospectedPolicyBlocks(rlsExtras?.policiesByTable ?? /* @__PURE__ */ new Map(), modelNameMap, /* @__PURE__ */ new Set([\n\t\t...modelNameMap.values(),\n\t\t...bareEnumNameMap.values(),\n\t\t...topLevelExtensionBlocks.map((block) => block.name)\n\t]));\n\tconst claimedTopLevelNames = /* @__PURE__ */ new Set([\n\t\t...PSL_SCALAR_TYPE_NAMES,\n\t\t...modelNameMap.values(),\n\t\t...bareEnumNameMap.values()\n\t]);\n\tfor (const block of topLevelExtensionBlocks) {\n\t\tif (claimedTopLevelNames.has(block.name)) throw postgresError(\"CONTRACT.NAME_DUPLICATE\", `contract infer: recovered ${block.keyword} \"${block.name}\" collides with a model, a native enum, a PSL scalar type, or another recovered declaration of the same name. Rename the recovered declaration, or exclude it.`, { meta: {\n\t\t\tkind: block.keyword,\n\t\t\tname: block.name\n\t\t} });\n\t\tclaimedTopLevelNames.add(block.name);\n\t}\n\tconst models = [];\n\tfor (const table of Object.values(schemaIR.tables)) models.push(buildModel(table, columnTypes, enumNameOf, fieldNamesByTable, defaultMapping, defaultOf, options.columnDefaults, [...relationsByTable.get(table.name) ?? [], ...extraRelationsByTable.get(table.name) ?? []], danglingForeignKeysByTable.get(table.name) ?? [], rlsExtras?.rlsEnabledTables.has(table.name) ?? false, policyEmission.skipNotesByTable.get(table.name) ?? []));\n\tconst sortedModels = topologicalSort(models, schemaIR.tables, modelNameMap);\n\tconst separateTopLevelBucket = namespaceName !== void 0 && namespaceName !== UNSPECIFIED_PSL_NAMESPACE_ID && topLevelExtensionBlocks.length > 0;\n\tconst namespaces = [];\n\tif (separateTopLevelBucket) namespaces.push(makePslNamespace({\n\t\tkind: \"namespace\",\n\t\tname: UNSPECIFIED_PSL_NAMESPACE_ID,\n\t\tentries: makePslNamespaceEntries([], [], topLevelExtensionBlocks),\n\t\tspan: SYNTHETIC_SPAN\n\t}));\n\tnamespaces.push(makePslNamespace({\n\t\tkind: \"namespace\",\n\t\tname: namespaceName ?? UNSPECIFIED_PSL_NAMESPACE_ID,\n\t\tentries: makePslNamespaceEntries(sortedModels, [], [\n\t\t\t...separateTopLevelBucket ? [] : topLevelExtensionBlocks,\n\t\t\t...enumBlocks,\n\t\t\t...policyEmission.blocks\n\t\t]),\n\t\tspan: SYNTHETIC_SPAN\n\t}));\n\treturn {\n\t\tkind: \"document\",\n\t\tsourceId: \"<sql-schema-ir>\",\n\t\tnamespaces,\n\t\tspan: SYNTHETIC_SPAN\n\t};\n}\n//#endregion\nexport { buildCheckAttribute as a, buildModelConstraintAttribute as c, SYNTHETIC_SPAN as d, buildAttribute as f, positionalArg as g, parseDefaultAttributeString as h, noInferredDefaults as i, buildNativeEnumBlock as l, namedArg as m, inferPostgresPslContract as n, buildFullTextIndexAttribute as o, buildMapAttribute as p, createPostgresDefaultMapping as r, buildIndexAttribute as s, buildPslDocumentAst as t, noColumnDefaults as u };\n\n//# sourceMappingURL=infer-psl-contract-DnTNOWZT.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,iBAAiB;CACtB,OAAO;EACN,QAAQ;EACR,MAAM;EACN,QAAQ;CACT;CACA,KAAK;EACJ,QAAQ;EACR,MAAM;EACN,QAAQ;CACT;AACD;AACA,SAAS,oCAAoC,MAAM,gBAAgB;CAClE,IAAI,mBAAmB,KAAK,GAAG,OAAO,eAAe,SAAS,MAAM,CAAC,CAAC;CACtE,OAAO,eAAe,SAAS,MAAM,CAAC,SAAS,OAAO,IAAI,gBAAgB,cAAc,EAAE,EAAE,CAAC,CAAC;AAC/F;AACA,SAAS,4BAA4B,eAAe;CACnD,OAAO,eAAe,SAAS,WAAW,CAAC,cAAc,cAAc,QAAQ,eAAe,EAAE,CAAC,CAAC,QAAQ,OAAO,EAAE,CAAC,CAAC,CAAC;AACvH;AACA,SAAS,kBAAkB,QAAQ,SAAS;CAC3C,OAAO,eAAe,QAAQ,OAAO,CAAC,cAAc,IAAI,gBAAgB,OAAO,EAAE,EAAE,CAAC,CAAC;AACtF;AACA,SAAS,eAAe,QAAQ,MAAM,MAAM;CAC3C,OAAO;EACN,MAAM;EACN;EACA;EACA;EACA,MAAM;CACP;AACD;AACA,SAAS,cAAc,OAAO;CAC7B,OAAO;EACN,MAAM;EACN;EACA,MAAM;CACP;AACD;AACA,SAAS,SAAS,MAAM,OAAO;CAC9B,OAAO;EACN,MAAM;EACN;EACA;EACA,MAAM;CACP;AACD;;;;AAMA,SAAS,iBAAiB,SAAS,SAAS,QAAQ;CACnD,IAAI,QAAQ,OAAO,EAAE,SAAS,iBAAiB;CAC/C,MAAM,aAAa,4BAA4B,QAAQ,wBAAwB,QAAQ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