// Single responsibility: the ONE predicate naming a string Postgres cannot store as written — the // rule every string-backed validator (`t.string` and its kin, a `t.record` key, `t.json()`) shares, // so the three can never disagree about which input reaches the row write. const NUL = '\u0000'; /** A lone UTF-16 surrogate. `String#isWellFormed` is ES2024 and the lib is ES2023. */ const LONE_SURROGATE = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?