{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.cgTMlN5F/b1/node-rjsf_5.12.1+~5.0.1-2_arm64.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.cgTMlN5F/b2/node-rjsf_5.12.1+~5.0.1-2_arm64.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,2 +1,2 @@\n \n- a8c6bebdd890420654e6efcba9420eb5 350076 javascript optional node-rjsf_5.12.1+~5.0.1-2_all.deb\n+ 36411cb643b106de5914bceb941212a0 350592 javascript optional node-rjsf_5.12.1+~5.0.1-2_all.deb\n"}, {"source1": "node-rjsf_5.12.1+~5.0.1-2_all.deb", "source2": "node-rjsf_5.12.1+~5.0.1-2_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2023-12-18 07:52:01.000000 debian-binary\n -rw-r--r-- 0 0 0 7604 2023-12-18 07:52:01.000000 control.tar.xz\n--rw-r--r-- 0 0 0 342280 2023-12-18 07:52:01.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 342796 2023-12-18 07:52:01.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -375,26 +375,26 @@\n -rw-r--r-- 0 root (0) root (0) 54805 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/types.ts\n -rw-r--r-- 0 root (0) root (0) 930 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/unwrapErrorHandler.ts\n -rw-r--r-- 0 root (0) root (0) 1063 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/utcToLocal.ts\n -rw-r--r-- 0 root (0) root (0) 1468 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/validationDataMerge.ts\n -rw-r--r-- 0 root (0) root (0) 1968 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/utils/src/withIdRefPrefix.ts\n drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/\n drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/\n--rw-r--r-- 0 root (0) root (0) 1366916 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js\n+-rw-r--r-- 0 root (0) root (0) 1366591 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js\n drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/\n -rw-r--r-- 0 root (0) root (0) 1490 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/createAjvInstance.d.ts\n -rw-r--r-- 0 root (0) root (0) 644 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/customizeValidator.d.ts\n -rw-r--r-- 0 root (0) root (0) 299 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/index.d.ts\n -rw-r--r-- 0 root (0) root (0) 598 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/types.d.ts\n -rw-r--r-- 0 root (0) root (0) 3716 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/dist/lib/validator.d.ts\n drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/\n -rw-r--r-- 0 root (0) root (0) 1490 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/createAjvInstance.d.ts\n -rw-r--r-- 0 root (0) root (0) 644 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/customizeValidator.d.ts\n -rw-r--r-- 0 root (0) root (0) 299 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.d.ts\n--rw-r--r-- 0 root (0) root (0) 1366812 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.js\n+-rw-r--r-- 0 root (0) root (0) 1366487 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.js\n -rw-r--r-- 0 root (0) root (0) 598 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/types.d.ts\n -rw-r--r-- 0 root (0) root (0) 3716 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/lib/validator.d.ts\n -rw-r--r-- 0 root (0) root (0) 2408 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/package.json\n -rw-r--r-- 0 root (0) root (0) 1217 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/pkgjs-lock.json\n drwxr-xr-x 0 root (0) root (0) 0 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/\n -rw-r--r-- 0 root (0) root (0) 2476 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/createAjvInstance.ts\n -rw-r--r-- 0 root (0) root (0) 748 2023-12-18 07:52:01.000000 ./usr/share/nodejs/@rjsf/validator-ajv6/src/customizeValidator.ts\n"}, {"source1": "./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js", "source2": "./usr/share/nodejs/@rjsf/validator-ajv6/dist/index.js", "unified_diff": null, "details": [{"source1": "js-beautify {}", "source2": "js-beautify {}", "unified_diff": "@@ -33859,204 +33859,197 @@\n \n var errors = {};\n \n var codegen = {};\n \n var code$1 = {};\n \n-var hasRequiredCode$1;\n-\n-function requireCode$1() {\n- if (hasRequiredCode$1) return code$1;\n- hasRequiredCode$1 = 1;\n- (function(exports) {\n- Object.defineProperty(exports, \"__esModule\", {\n- value: true\n- });\n- exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;\n- class _CodeOrName {}\n- exports._CodeOrName = _CodeOrName;\n- exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\n- class Name extends _CodeOrName {\n- constructor(s) {\n- super();\n- if (!exports.IDENTIFIER.test(s))\n- throw new Error(\"CodeGen: name must be a valid identifier\");\n- this.str = s;\n- }\n- toString() {\n- return this.str;\n- }\n- emptyStr() {\n+(function(exports) {\n+ Object.defineProperty(exports, \"__esModule\", {\n+ value: true\n+ });\n+ exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;\n+ class _CodeOrName {}\n+ exports._CodeOrName = _CodeOrName;\n+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\n+ class Name extends _CodeOrName {\n+ constructor(s) {\n+ super();\n+ if (!exports.IDENTIFIER.test(s))\n+ throw new Error(\"CodeGen: name must be a valid identifier\");\n+ this.str = s;\n+ }\n+ toString() {\n+ return this.str;\n+ }\n+ emptyStr() {\n+ return false;\n+ }\n+ get names() {\n+ return {\n+ [this.str]: 1\n+ };\n+ }\n+ }\n+ exports.Name = Name;\n+ class _Code extends _CodeOrName {\n+ constructor(code) {\n+ super();\n+ this._items = typeof code === \"string\" ? [code] : code;\n+ }\n+ toString() {\n+ return this.str;\n+ }\n+ emptyStr() {\n+ if (this._items.length > 1)\n return false;\n- }\n- get names() {\n- return {\n- [this.str]: 1\n- };\n- }\n+ const item = this._items[0];\n+ return item === \"\" || item === '\"\"';\n }\n- exports.Name = Name;\n- class _Code extends _CodeOrName {\n- constructor(code) {\n- super();\n- this._items = typeof code === \"string\" ? [code] : code;\n- }\n- toString() {\n- return this.str;\n- }\n- emptyStr() {\n- if (this._items.length > 1)\n- return false;\n- const item = this._items[0];\n- return item === \"\" || item === '\"\"';\n- }\n- get str() {\n- var _a;\n- return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, \"\")));\n- }\n- get names() {\n- var _a;\n- return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => {\n- if (c instanceof Name)\n- names[c.str] = (names[c.str] || 0) + 1;\n- return names;\n- }, {})));\n- }\n- }\n- exports._Code = _Code;\n- exports.nil = new _Code(\"\");\n-\n- function _(strs, ...args) {\n- const code = [strs[0]];\n- let i = 0;\n- while (i < args.length) {\n- addCodeArg(code, args[i]);\n- code.push(strs[++i]);\n- }\n- return new _Code(code);\n- }\n- exports._ = _;\n- const plus = new _Code(\"+\");\n-\n- function str(strs, ...args) {\n- const expr = [safeStringify(strs[0])];\n- let i = 0;\n- while (i < args.length) {\n- expr.push(plus);\n- addCodeArg(expr, args[i]);\n- expr.push(plus, safeStringify(strs[++i]));\n- }\n- optimize(expr);\n- return new _Code(expr);\n- }\n- exports.str = str;\n-\n- function addCodeArg(code, arg) {\n- if (arg instanceof _Code)\n- code.push(...arg._items);\n- else if (arg instanceof Name)\n- code.push(arg);\n- else\n- code.push(interpolate(arg));\n- }\n- exports.addCodeArg = addCodeArg;\n-\n- function optimize(expr) {\n- let i = 1;\n- while (i < expr.length - 1) {\n- if (expr[i] === plus) {\n- const res = mergeExprItems(expr[i - 1], expr[i + 1]);\n- if (res !== undefined) {\n- expr.splice(i - 1, 3, res);\n- continue;\n- }\n- expr[i++] = \"+\";\n+ get str() {\n+ var _a;\n+ return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, \"\")));\n+ }\n+ get names() {\n+ var _a;\n+ return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => {\n+ if (c instanceof Name)\n+ names[c.str] = (names[c.str] || 0) + 1;\n+ return names;\n+ }, {})));\n+ }\n+ }\n+ exports._Code = _Code;\n+ exports.nil = new _Code(\"\");\n+\n+ function _(strs, ...args) {\n+ const code = [strs[0]];\n+ let i = 0;\n+ while (i < args.length) {\n+ addCodeArg(code, args[i]);\n+ code.push(strs[++i]);\n+ }\n+ return new _Code(code);\n+ }\n+ exports._ = _;\n+ const plus = new _Code(\"+\");\n+\n+ function str(strs, ...args) {\n+ const expr = [safeStringify(strs[0])];\n+ let i = 0;\n+ while (i < args.length) {\n+ expr.push(plus);\n+ addCodeArg(expr, args[i]);\n+ expr.push(plus, safeStringify(strs[++i]));\n+ }\n+ optimize(expr);\n+ return new _Code(expr);\n+ }\n+ exports.str = str;\n+\n+ function addCodeArg(code, arg) {\n+ if (arg instanceof _Code)\n+ code.push(...arg._items);\n+ else if (arg instanceof Name)\n+ code.push(arg);\n+ else\n+ code.push(interpolate(arg));\n+ }\n+ exports.addCodeArg = addCodeArg;\n+\n+ function optimize(expr) {\n+ let i = 1;\n+ while (i < expr.length - 1) {\n+ if (expr[i] === plus) {\n+ const res = mergeExprItems(expr[i - 1], expr[i + 1]);\n+ if (res !== undefined) {\n+ expr.splice(i - 1, 3, res);\n+ continue;\n }\n- i++;\n+ expr[i++] = \"+\";\n }\n+ i++;\n }\n+ }\n \n- function mergeExprItems(a, b) {\n- if (b === '\"\"')\n- return a;\n- if (a === '\"\"')\n- return b;\n- if (typeof a == \"string\") {\n- if (b instanceof Name || a[a.length - 1] !== '\"')\n- return;\n- if (typeof b != \"string\")\n- return `${a.slice(0, -1)}${b}\"`;\n- if (b[0] === '\"')\n- return a.slice(0, -1) + b.slice(1);\n+ function mergeExprItems(a, b) {\n+ if (b === '\"\"')\n+ return a;\n+ if (a === '\"\"')\n+ return b;\n+ if (typeof a == \"string\") {\n+ if (b instanceof Name || a[a.length - 1] !== '\"')\n return;\n- }\n- if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name))\n- return `\"${a}${b.slice(1)}`;\n+ if (typeof b != \"string\")\n+ return `${a.slice(0, -1)}${b}\"`;\n+ if (b[0] === '\"')\n+ return a.slice(0, -1) + b.slice(1);\n return;\n }\n+ if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name))\n+ return `\"${a}${b.slice(1)}`;\n+ return;\n+ }\n \n- function strConcat(c1, c2) {\n- return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;\n- }\n- exports.strConcat = strConcat;\n- // TODO do not allow arrays here\n- function interpolate(x) {\n- return typeof x == \"number\" || typeof x == \"boolean\" || x === null ?\n- x :\n- safeStringify(Array.isArray(x) ? x.join(\",\") : x);\n- }\n+ function strConcat(c1, c2) {\n+ return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;\n+ }\n+ exports.strConcat = strConcat;\n+ // TODO do not allow arrays here\n+ function interpolate(x) {\n+ return typeof x == \"number\" || typeof x == \"boolean\" || x === null ?\n+ x :\n+ safeStringify(Array.isArray(x) ? x.join(\",\") : x);\n+ }\n \n- function stringify(x) {\n- return new _Code(safeStringify(x));\n- }\n- exports.stringify = stringify;\n+ function stringify(x) {\n+ return new _Code(safeStringify(x));\n+ }\n+ exports.stringify = stringify;\n \n- function safeStringify(x) {\n- return JSON.stringify(x)\n- .replace(/\\u2028/g, \"\\\\u2028\")\n- .replace(/\\u2029/g, \"\\\\u2029\");\n- }\n- exports.safeStringify = safeStringify;\n+ function safeStringify(x) {\n+ return JSON.stringify(x)\n+ .replace(/\\u2028/g, \"\\\\u2028\")\n+ .replace(/\\u2029/g, \"\\\\u2029\");\n+ }\n+ exports.safeStringify = safeStringify;\n \n- function getProperty(key) {\n- return typeof key == \"string\" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;\n- }\n- exports.getProperty = getProperty;\n- //Does best effort to format the name properly\n- function getEsmExportName(key) {\n- if (typeof key == \"string\" && exports.IDENTIFIER.test(key)) {\n- return new _Code(`${key}`);\n- }\n- throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);\n+ function getProperty(key) {\n+ return typeof key == \"string\" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;\n+ }\n+ exports.getProperty = getProperty;\n+ //Does best effort to format the name properly\n+ function getEsmExportName(key) {\n+ if (typeof key == \"string\" && exports.IDENTIFIER.test(key)) {\n+ return new _Code(`${key}`);\n }\n- exports.getEsmExportName = getEsmExportName;\n+ throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);\n+ }\n+ exports.getEsmExportName = getEsmExportName;\n \n- function regexpCode(rx) {\n- return new _Code(rx.toString());\n- }\n- exports.regexpCode = regexpCode;\n+ function regexpCode(rx) {\n+ return new _Code(rx.toString());\n+ }\n+ exports.regexpCode = regexpCode;\n \n- }(code$1));\n- return code$1;\n-}\n+}(code$1));\n \n var scope = {};\n \n var hasRequiredScope;\n \n function requireScope() {\n if (hasRequiredScope) return scope;\n hasRequiredScope = 1;\n (function(exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;\n- const code_1 = requireCode$1();\n+ const code_1 = code$1;\n class ValueError extends Error {\n constructor(name) {\n super(`CodeGen: \"code\" for ${name} not defined`);\n this.value = name.value;\n }\n }\n var UsedValueState;\n@@ -34216,17 +34209,17 @@\n if (hasRequiredCodegen) return codegen;\n hasRequiredCodegen = 1;\n (function(exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;\n- const code_1 = requireCode$1();\n+ const code_1 = code$1;\n const scope_1 = requireScope();\n- var code_2 = requireCode$1();\n+ var code_2 = code$1;\n Object.defineProperty(exports, \"_\", {\n enumerable: true,\n get: function() {\n return code_2._;\n }\n });\n Object.defineProperty(exports, \"str\", {\n@@ -35016,15 +35009,15 @@\n \n (function(exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\n const codegen_1 = requireCodegen();\n- const code_1 = requireCode$1();\n+ const code_1 = code$1;\n // TODO refactor to use Set\n function toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n }\n"}]}, {"source1": "./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.js", "source2": "./usr/share/nodejs/@rjsf/validator-ajv6/lib/index.js", "unified_diff": null, "details": [{"source1": "js-beautify {}", "source2": "js-beautify {}", "unified_diff": "@@ -33853,204 +33853,197 @@\n \n var errors = {};\n \n var codegen = {};\n \n var code$1 = {};\n \n-var hasRequiredCode$1;\n-\n-function requireCode$1() {\n- if (hasRequiredCode$1) return code$1;\n- hasRequiredCode$1 = 1;\n- (function(exports) {\n- Object.defineProperty(exports, \"__esModule\", {\n- value: true\n- });\n- exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;\n- class _CodeOrName {}\n- exports._CodeOrName = _CodeOrName;\n- exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\n- class Name extends _CodeOrName {\n- constructor(s) {\n- super();\n- if (!exports.IDENTIFIER.test(s))\n- throw new Error(\"CodeGen: name must be a valid identifier\");\n- this.str = s;\n- }\n- toString() {\n- return this.str;\n- }\n- emptyStr() {\n+(function(exports) {\n+ Object.defineProperty(exports, \"__esModule\", {\n+ value: true\n+ });\n+ exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;\n+ class _CodeOrName {}\n+ exports._CodeOrName = _CodeOrName;\n+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;\n+ class Name extends _CodeOrName {\n+ constructor(s) {\n+ super();\n+ if (!exports.IDENTIFIER.test(s))\n+ throw new Error(\"CodeGen: name must be a valid identifier\");\n+ this.str = s;\n+ }\n+ toString() {\n+ return this.str;\n+ }\n+ emptyStr() {\n+ return false;\n+ }\n+ get names() {\n+ return {\n+ [this.str]: 1\n+ };\n+ }\n+ }\n+ exports.Name = Name;\n+ class _Code extends _CodeOrName {\n+ constructor(code) {\n+ super();\n+ this._items = typeof code === \"string\" ? [code] : code;\n+ }\n+ toString() {\n+ return this.str;\n+ }\n+ emptyStr() {\n+ if (this._items.length > 1)\n return false;\n- }\n- get names() {\n- return {\n- [this.str]: 1\n- };\n- }\n+ const item = this._items[0];\n+ return item === \"\" || item === '\"\"';\n }\n- exports.Name = Name;\n- class _Code extends _CodeOrName {\n- constructor(code) {\n- super();\n- this._items = typeof code === \"string\" ? [code] : code;\n- }\n- toString() {\n- return this.str;\n- }\n- emptyStr() {\n- if (this._items.length > 1)\n- return false;\n- const item = this._items[0];\n- return item === \"\" || item === '\"\"';\n- }\n- get str() {\n- var _a;\n- return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, \"\")));\n- }\n- get names() {\n- var _a;\n- return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => {\n- if (c instanceof Name)\n- names[c.str] = (names[c.str] || 0) + 1;\n- return names;\n- }, {})));\n- }\n- }\n- exports._Code = _Code;\n- exports.nil = new _Code(\"\");\n-\n- function _(strs, ...args) {\n- const code = [strs[0]];\n- let i = 0;\n- while (i < args.length) {\n- addCodeArg(code, args[i]);\n- code.push(strs[++i]);\n- }\n- return new _Code(code);\n- }\n- exports._ = _;\n- const plus = new _Code(\"+\");\n-\n- function str(strs, ...args) {\n- const expr = [safeStringify(strs[0])];\n- let i = 0;\n- while (i < args.length) {\n- expr.push(plus);\n- addCodeArg(expr, args[i]);\n- expr.push(plus, safeStringify(strs[++i]));\n- }\n- optimize(expr);\n- return new _Code(expr);\n- }\n- exports.str = str;\n-\n- function addCodeArg(code, arg) {\n- if (arg instanceof _Code)\n- code.push(...arg._items);\n- else if (arg instanceof Name)\n- code.push(arg);\n- else\n- code.push(interpolate(arg));\n- }\n- exports.addCodeArg = addCodeArg;\n-\n- function optimize(expr) {\n- let i = 1;\n- while (i < expr.length - 1) {\n- if (expr[i] === plus) {\n- const res = mergeExprItems(expr[i - 1], expr[i + 1]);\n- if (res !== undefined) {\n- expr.splice(i - 1, 3, res);\n- continue;\n- }\n- expr[i++] = \"+\";\n+ get str() {\n+ var _a;\n+ return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, \"\")));\n+ }\n+ get names() {\n+ var _a;\n+ return ((_a = this._names) !== null && _a !== void 0 ? _a : (this._names = this._items.reduce((names, c) => {\n+ if (c instanceof Name)\n+ names[c.str] = (names[c.str] || 0) + 1;\n+ return names;\n+ }, {})));\n+ }\n+ }\n+ exports._Code = _Code;\n+ exports.nil = new _Code(\"\");\n+\n+ function _(strs, ...args) {\n+ const code = [strs[0]];\n+ let i = 0;\n+ while (i < args.length) {\n+ addCodeArg(code, args[i]);\n+ code.push(strs[++i]);\n+ }\n+ return new _Code(code);\n+ }\n+ exports._ = _;\n+ const plus = new _Code(\"+\");\n+\n+ function str(strs, ...args) {\n+ const expr = [safeStringify(strs[0])];\n+ let i = 0;\n+ while (i < args.length) {\n+ expr.push(plus);\n+ addCodeArg(expr, args[i]);\n+ expr.push(plus, safeStringify(strs[++i]));\n+ }\n+ optimize(expr);\n+ return new _Code(expr);\n+ }\n+ exports.str = str;\n+\n+ function addCodeArg(code, arg) {\n+ if (arg instanceof _Code)\n+ code.push(...arg._items);\n+ else if (arg instanceof Name)\n+ code.push(arg);\n+ else\n+ code.push(interpolate(arg));\n+ }\n+ exports.addCodeArg = addCodeArg;\n+\n+ function optimize(expr) {\n+ let i = 1;\n+ while (i < expr.length - 1) {\n+ if (expr[i] === plus) {\n+ const res = mergeExprItems(expr[i - 1], expr[i + 1]);\n+ if (res !== undefined) {\n+ expr.splice(i - 1, 3, res);\n+ continue;\n }\n- i++;\n+ expr[i++] = \"+\";\n }\n+ i++;\n }\n+ }\n \n- function mergeExprItems(a, b) {\n- if (b === '\"\"')\n- return a;\n- if (a === '\"\"')\n- return b;\n- if (typeof a == \"string\") {\n- if (b instanceof Name || a[a.length - 1] !== '\"')\n- return;\n- if (typeof b != \"string\")\n- return `${a.slice(0, -1)}${b}\"`;\n- if (b[0] === '\"')\n- return a.slice(0, -1) + b.slice(1);\n+ function mergeExprItems(a, b) {\n+ if (b === '\"\"')\n+ return a;\n+ if (a === '\"\"')\n+ return b;\n+ if (typeof a == \"string\") {\n+ if (b instanceof Name || a[a.length - 1] !== '\"')\n return;\n- }\n- if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name))\n- return `\"${a}${b.slice(1)}`;\n+ if (typeof b != \"string\")\n+ return `${a.slice(0, -1)}${b}\"`;\n+ if (b[0] === '\"')\n+ return a.slice(0, -1) + b.slice(1);\n return;\n }\n+ if (typeof b == \"string\" && b[0] === '\"' && !(a instanceof Name))\n+ return `\"${a}${b.slice(1)}`;\n+ return;\n+ }\n \n- function strConcat(c1, c2) {\n- return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;\n- }\n- exports.strConcat = strConcat;\n- // TODO do not allow arrays here\n- function interpolate(x) {\n- return typeof x == \"number\" || typeof x == \"boolean\" || x === null ?\n- x :\n- safeStringify(Array.isArray(x) ? x.join(\",\") : x);\n- }\n+ function strConcat(c1, c2) {\n+ return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;\n+ }\n+ exports.strConcat = strConcat;\n+ // TODO do not allow arrays here\n+ function interpolate(x) {\n+ return typeof x == \"number\" || typeof x == \"boolean\" || x === null ?\n+ x :\n+ safeStringify(Array.isArray(x) ? x.join(\",\") : x);\n+ }\n \n- function stringify(x) {\n- return new _Code(safeStringify(x));\n- }\n- exports.stringify = stringify;\n+ function stringify(x) {\n+ return new _Code(safeStringify(x));\n+ }\n+ exports.stringify = stringify;\n \n- function safeStringify(x) {\n- return JSON.stringify(x)\n- .replace(/\\u2028/g, \"\\\\u2028\")\n- .replace(/\\u2029/g, \"\\\\u2029\");\n- }\n- exports.safeStringify = safeStringify;\n+ function safeStringify(x) {\n+ return JSON.stringify(x)\n+ .replace(/\\u2028/g, \"\\\\u2028\")\n+ .replace(/\\u2029/g, \"\\\\u2029\");\n+ }\n+ exports.safeStringify = safeStringify;\n \n- function getProperty(key) {\n- return typeof key == \"string\" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;\n- }\n- exports.getProperty = getProperty;\n- //Does best effort to format the name properly\n- function getEsmExportName(key) {\n- if (typeof key == \"string\" && exports.IDENTIFIER.test(key)) {\n- return new _Code(`${key}`);\n- }\n- throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);\n+ function getProperty(key) {\n+ return typeof key == \"string\" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;\n+ }\n+ exports.getProperty = getProperty;\n+ //Does best effort to format the name properly\n+ function getEsmExportName(key) {\n+ if (typeof key == \"string\" && exports.IDENTIFIER.test(key)) {\n+ return new _Code(`${key}`);\n }\n- exports.getEsmExportName = getEsmExportName;\n+ throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);\n+ }\n+ exports.getEsmExportName = getEsmExportName;\n \n- function regexpCode(rx) {\n- return new _Code(rx.toString());\n- }\n- exports.regexpCode = regexpCode;\n+ function regexpCode(rx) {\n+ return new _Code(rx.toString());\n+ }\n+ exports.regexpCode = regexpCode;\n \n- }(code$1));\n- return code$1;\n-}\n+}(code$1));\n \n var scope = {};\n \n var hasRequiredScope;\n \n function requireScope() {\n if (hasRequiredScope) return scope;\n hasRequiredScope = 1;\n (function(exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;\n- const code_1 = requireCode$1();\n+ const code_1 = code$1;\n class ValueError extends Error {\n constructor(name) {\n super(`CodeGen: \"code\" for ${name} not defined`);\n this.value = name.value;\n }\n }\n var UsedValueState;\n@@ -34210,17 +34203,17 @@\n if (hasRequiredCodegen) return codegen;\n hasRequiredCodegen = 1;\n (function(exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;\n- const code_1 = requireCode$1();\n+ const code_1 = code$1;\n const scope_1 = requireScope();\n- var code_2 = requireCode$1();\n+ var code_2 = code$1;\n Object.defineProperty(exports, \"_\", {\n enumerable: true,\n get: function() {\n return code_2._;\n }\n });\n Object.defineProperty(exports, \"str\", {\n@@ -35010,15 +35003,15 @@\n \n (function(exports) {\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;\n const codegen_1 = requireCodegen();\n- const code_1 = requireCode$1();\n+ const code_1 = code$1;\n // TODO refactor to use Set\n function toHash(arr) {\n const hash = {};\n for (const item of arr)\n hash[item] = true;\n return hash;\n }\n"}]}]}]}]}]}