@agent-ix/quoin 0.21.9 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/default-modules.yaml +18 -2
- package/dist/{advisor-BiKhR9Yp.js → advisor-B0rESCx1.js} +1 -1
- package/dist/auditor/audit.d.ts +23 -18
- package/dist/auditor/audit.d.ts.map +1 -1
- package/dist/auditor/index.d.ts +2 -1
- package/dist/auditor/index.d.ts.map +1 -1
- package/dist/{auditor-ww0MC62a.js → auditor-Dd3i9Aqx.js} +82 -65
- package/dist/{base-W7vrLi5E.js → base-gAClyCNd.js} +1 -1
- package/dist/change-assurance/attestations.d.ts +7 -0
- package/dist/change-assurance/attestations.d.ts.map +1 -0
- package/dist/change-assurance/index.d.ts +14 -0
- package/dist/change-assurance/index.d.ts.map +1 -0
- package/dist/change-assurance/integrity.d.ts +11 -0
- package/dist/change-assurance/integrity.d.ts.map +1 -0
- package/dist/change-assurance/records.d.ts +22 -0
- package/dist/change-assurance/records.d.ts.map +1 -0
- package/dist/change-assurance/schema-assets.d.ts +8 -0
- package/dist/change-assurance/schema-assets.d.ts.map +1 -0
- package/dist/change-assurance/store.d.ts +18 -0
- package/dist/change-assurance/store.d.ts.map +1 -0
- package/dist/change-assurance/types.d.ts +180 -0
- package/dist/change-assurance/types.d.ts.map +1 -0
- package/dist/change-assurance/verify.d.ts +4 -0
- package/dist/change-assurance/verify.d.ts.map +1 -0
- package/dist/change-assurance-CyKLPeKa.js +1236 -0
- package/dist/cli.js +1 -1
- package/dist/commands/advise.js +27 -26
- package/dist/commands/assurance.d.ts.map +1 -1
- package/dist/commands/assurance.js +84 -61
- package/dist/commands/catalog/list.js +2 -2
- package/dist/commands/catalog/methods.js +3 -3
- package/dist/commands/catalog/show.js +2 -2
- package/dist/commands/catalog/validate.js +2 -2
- package/dist/commands/change-assurance/common.d.ts +37 -0
- package/dist/commands/change-assurance/common.d.ts.map +1 -0
- package/dist/commands/change-assurance/index.d.ts +8 -0
- package/dist/commands/change-assurance/index.d.ts.map +1 -0
- package/dist/commands/change-assurance/index.js +12 -0
- package/dist/commands/change-assurance/intake.d.ts +15 -0
- package/dist/commands/change-assurance/intake.d.ts.map +1 -0
- package/dist/commands/change-assurance/intake.js +53 -0
- package/dist/commands/change-assurance/receipt.d.ts +21 -0
- package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
- package/dist/commands/change-assurance/receipt.js +99 -0
- package/dist/commands/change-assurance/recover.d.ts +13 -0
- package/dist/commands/change-assurance/recover.d.ts.map +1 -0
- package/dist/commands/change-assurance/recover.js +29 -0
- package/dist/commands/change-assurance/schema.d.ts +13 -0
- package/dist/commands/change-assurance/schema.d.ts.map +1 -0
- package/dist/commands/change-assurance/schema.js +40 -0
- package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
- package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
- package/dist/commands/change-assurance/seal-attestation.js +58 -0
- package/dist/commands/change-assurance/seal-record.d.ts +14 -0
- package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
- package/dist/commands/change-assurance/seal-record.js +53 -0
- package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
- package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
- package/dist/commands/change-assurance/verify-receipt.js +41 -0
- package/dist/commands/completeness.js +2 -2
- package/dist/commands/config/doctor.d.ts.map +1 -1
- package/dist/commands/config/doctor.js +3 -3
- package/dist/commands/config/edit.d.ts.map +1 -1
- package/dist/commands/config/edit.js +3 -3
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/evidence/affirm.js +17 -16
- package/dist/commands/evidence/audit.d.ts.map +1 -1
- package/dist/commands/evidence/audit.js +55 -43
- package/dist/commands/evidence/baseline.d.ts.map +1 -1
- package/dist/commands/evidence/baseline.js +50 -40
- package/dist/commands/evidence/gc.js +3 -2
- package/dist/commands/evidence/index.js +1 -1
- package/dist/commands/evidence/inspect-mocks.d.ts +16 -0
- package/dist/commands/evidence/inspect-mocks.d.ts.map +1 -0
- package/dist/commands/evidence/inspect-mocks.js +49 -0
- package/dist/commands/evidence/record.d.ts +1 -0
- package/dist/commands/evidence/record.d.ts.map +1 -1
- package/dist/commands/evidence/record.js +48 -33
- package/dist/commands/graph/change-impact.d.ts +16 -0
- package/dist/commands/graph/change-impact.d.ts.map +1 -0
- package/dist/commands/graph/change-impact.js +29 -0
- package/dist/commands/graph/churn.d.ts +14 -0
- package/dist/commands/graph/churn.d.ts.map +1 -0
- package/dist/commands/graph/churn.js +15 -0
- package/dist/commands/graph/common.d.ts +16 -0
- package/dist/commands/graph/common.d.ts.map +1 -0
- package/dist/commands/graph/fan-out.d.ts +14 -0
- package/dist/commands/graph/fan-out.d.ts.map +1 -0
- package/dist/commands/graph/fan-out.js +15 -0
- package/dist/commands/graph/index.d.ts +8 -0
- package/dist/commands/graph/index.d.ts.map +1 -0
- package/dist/commands/graph/index.js +12 -0
- package/dist/commands/matrix.js +1 -1
- package/dist/commands/measurement/index.d.ts +7 -0
- package/dist/commands/measurement/index.d.ts.map +1 -0
- package/dist/commands/measurement/index.js +11 -0
- package/dist/commands/measurement/intervention.d.ts +11 -0
- package/dist/commands/measurement/intervention.d.ts.map +1 -0
- package/dist/commands/measurement/intervention.js +31 -0
- package/dist/commands/measurement/operational-release.d.ts +11 -0
- package/dist/commands/measurement/operational-release.d.ts.map +1 -0
- package/dist/commands/measurement/operational-release.js +31 -0
- package/dist/commands/measurement/record.d.ts +10 -0
- package/dist/commands/measurement/record.d.ts.map +1 -0
- package/dist/commands/measurement/record.js +36 -0
- package/dist/commands/module/ensure-defaults.js +3 -3
- package/dist/commands/module/install.js +2 -2
- package/dist/commands/module/list.js +2 -2
- package/dist/commands/module/remove.js +2 -2
- package/dist/commands/report.d.ts +19 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/report.js +96 -0
- package/dist/commands/review.js +1 -1
- package/dist/commands/to-plan.js +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/validate.d.ts +13 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +123 -0
- package/dist/commands/write.js +3 -3
- package/dist/common-B1ZJ8CSO.js +36 -0
- package/dist/common-DTrmnvL-.js +35 -0
- package/dist/{completeness-BQDxME0a.js → completeness-BzBuNq6w.js} +1 -1
- package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
- package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
- package/dist/evidence/adapters/differential-report.d.ts +18 -0
- package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
- package/dist/evidence/adapters/registry.d.ts.map +1 -1
- package/dist/evidence/adapters/types.d.ts +31 -0
- package/dist/evidence/adapters/types.d.ts.map +1 -1
- package/dist/evidence/index.d.ts +7 -3
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/evidence/mock-inspection.d.ts +16 -0
- package/dist/evidence/mock-inspection.d.ts.map +1 -0
- package/dist/evidence/store.d.ts +11 -1
- package/dist/evidence/store.d.ts.map +1 -1
- package/dist/evidence/types.d.ts +31 -0
- package/dist/evidence/types.d.ts.map +1 -1
- package/dist/evidence-OyqpqHLS.js +614 -0
- package/dist/{flow-command-C_dUJNm-.js → flow-command-CCRTE5Oe.js} +7 -7
- package/dist/graph-analysis/analysis.d.ts +106 -0
- package/dist/graph-analysis/analysis.d.ts.map +1 -0
- package/dist/graph-analysis/index.d.ts +6 -0
- package/dist/graph-analysis/index.d.ts.map +1 -0
- package/dist/graph-analysis/input.d.ts +33 -0
- package/dist/graph-analysis/input.d.ts.map +1 -0
- package/dist/graph-analysis/load.d.ts +21 -0
- package/dist/graph-analysis/load.d.ts.map +1 -0
- package/dist/graph-analysis/render.d.ts +4 -0
- package/dist/graph-analysis/render.d.ts.map +1 -0
- package/dist/graph-analysis-IWaoJJSN.js +657 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -8
- package/dist/measurement/agent-eval-intervention.d.ts +6 -0
- package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
- package/dist/measurement/atomic-file.d.ts +5 -0
- package/dist/measurement/atomic-file.d.ts.map +1 -0
- package/dist/measurement/compare.d.ts +4 -0
- package/dist/measurement/compare.d.ts.map +1 -0
- package/dist/measurement/date-time.d.ts +3 -0
- package/dist/measurement/date-time.d.ts.map +1 -0
- package/dist/measurement/github-release-operational.d.ts +7 -0
- package/dist/measurement/github-release-operational.d.ts.map +1 -0
- package/dist/measurement/graph-adapters.d.ts +304 -0
- package/dist/measurement/graph-adapters.d.ts.map +1 -0
- package/dist/measurement/graph-portfolio-load.d.ts +3 -0
- package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
- package/dist/measurement/graph-portfolio.d.ts +158 -0
- package/dist/measurement/graph-portfolio.d.ts.map +1 -0
- package/dist/measurement/index.d.ts +22 -0
- package/dist/measurement/index.d.ts.map +1 -0
- package/dist/measurement/intervention-report.d.ts +24 -0
- package/dist/measurement/intervention-report.d.ts.map +1 -0
- package/dist/measurement/intervention-schema.d.ts +144 -0
- package/dist/measurement/intervention-schema.d.ts.map +1 -0
- package/dist/measurement/intervention-types.d.ts +105 -0
- package/dist/measurement/intervention-types.d.ts.map +1 -0
- package/dist/measurement/intervention.d.ts +16 -0
- package/dist/measurement/intervention.d.ts.map +1 -0
- package/dist/measurement/operational-report.d.ts +17 -0
- package/dist/measurement/operational-report.d.ts.map +1 -0
- package/dist/measurement/operational-schema.d.ts +461 -0
- package/dist/measurement/operational-schema.d.ts.map +1 -0
- package/dist/measurement/operational-types.d.ts +121 -0
- package/dist/measurement/operational-types.d.ts.map +1 -0
- package/dist/measurement/operational.d.ts +13 -0
- package/dist/measurement/operational.d.ts.map +1 -0
- package/dist/measurement/plans.d.ts +6 -0
- package/dist/measurement/plans.d.ts.map +1 -0
- package/dist/measurement/portfolio.d.ts +54 -0
- package/dist/measurement/portfolio.d.ts.map +1 -0
- package/dist/measurement/profiles.d.ts +9 -0
- package/dist/measurement/profiles.d.ts.map +1 -0
- package/dist/measurement/report.d.ts +48 -0
- package/dist/measurement/report.d.ts.map +1 -0
- package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
- package/dist/measurement/store.d.ts +14 -0
- package/dist/measurement/store.d.ts.map +1 -0
- package/dist/measurement/types.d.ts +85 -0
- package/dist/measurement/types.d.ts.map +1 -0
- package/dist/measurement/validate.d.ts +9 -0
- package/dist/measurement/validate.d.ts.map +1 -0
- package/dist/measurement-j8sDSqx5.js +2980 -0
- package/dist/{modules-Cn9Htfp0.js → modules-DDQkKC4l.js} +2 -2
- package/dist/{plugins-Byi1bWLD.js → plugins-CHpYhpEI.js} +1 -1
- package/dist/quire/assurance.d.ts +109 -0
- package/dist/quire/assurance.d.ts.map +1 -0
- package/dist/quire/contract.d.ts +12 -12
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/exec.d.ts +10 -0
- package/dist/quire/exec.d.ts.map +1 -1
- package/dist/quire/index.d.ts +4 -3
- package/dist/quire/index.d.ts.map +1 -1
- package/dist/quire/types.d.ts +119 -1
- package/dist/quire/types.d.ts.map +1 -1
- package/dist/quire/validate.d.ts +5 -0
- package/dist/quire/validate.d.ts.map +1 -1
- package/dist/{quire-UzoK3Azf.js → quire-BsVj1xIR.js} +533 -499
- package/dist/schema-assets-HZWo_iFN.js +233 -0
- package/dist/schemas/assurance-v1.schema.json +225 -0
- package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
- package/dist/schemas/coverage-v1.schema.json +919 -105
- package/dist/schemas/operational-evidence-v1.schema.json +381 -0
- package/dist/schemas/proof-attestation-v1.schema.json +96 -0
- package/dist/schemas/properties-v1.schema.json +25 -0
- package/dist/schemas/verification-receipt-v1.schema.json +208 -0
- package/dist/validators/gates.d.ts +18 -0
- package/dist/validators/gates.d.ts.map +1 -0
- package/dist/validators/index.d.ts +2 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/{version-BMXhyIie.js → version-CMxMIh5g.js} +1 -1
- package/dist/{write-BDxILTLC.js → write-CGTI0dRO.js} +1 -1
- package/package.json +26 -16
- package/skills/assurance-status-report/SKILL.md +135 -0
- package/skills/assurance-status-report/references/report-contract.md +110 -0
- package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
- package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
- package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
- package/skills/spec-architecture-evaluation/SKILL.md +30 -0
- package/skills/spec-fuzz/SKILL.md +7 -6
- package/dist/evidence-BA5vyZJk.js +0 -603
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import { fileURLToPath as e } from "node:url";
|
|
2
|
-
import {
|
|
3
|
-
import { dirname as
|
|
4
|
-
import {
|
|
5
|
-
import "node:
|
|
2
|
+
import { accessSync as t, constants as n, readFileSync as r, realpathSync as i } from "node:fs";
|
|
3
|
+
import { delimiter as a, dirname as o, isAbsolute as s, join as c } from "node:path";
|
|
4
|
+
import { createHash as l } from "node:crypto";
|
|
5
|
+
import { execFileSync as u } from "node:child_process";
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
|
-
var
|
|
7
|
+
var d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, m = Object.prototype.hasOwnProperty, h = (e, t, n) => () => {
|
|
8
8
|
if (n) throw n[0];
|
|
9
9
|
try {
|
|
10
10
|
return e && (t = e(e = 0)), t;
|
|
11
11
|
} catch (e) {
|
|
12
12
|
throw n = [e], e;
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, g = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), _ = (e, t) => {
|
|
15
15
|
let n = {};
|
|
16
|
-
for (var r in e)
|
|
16
|
+
for (var r in e) d(n, r, {
|
|
17
17
|
get: e[r],
|
|
18
18
|
enumerable: !0
|
|
19
19
|
});
|
|
20
|
-
return t ||
|
|
21
|
-
},
|
|
22
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
23
|
-
get: ((e) => t[e]).bind(null,
|
|
24
|
-
enumerable: !(r =
|
|
20
|
+
return t || d(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
21
|
+
}, v = (e, t, n, r) => {
|
|
22
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = p(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !m.call(e, s) && s !== n && d(e, s, {
|
|
23
|
+
get: ((e) => t[e]).bind(null, s),
|
|
24
|
+
enumerable: !(r = f(t, s)) || r.enumerable
|
|
25
25
|
});
|
|
26
26
|
return e;
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, y = (e) => m.call(e, "module.exports") ? e["module.exports"] : v(d({}, "__esModule", { value: !0 }), e), b = {
|
|
28
|
+
sourceRevision: "e3352a0644abcfd5f0ebad348bc7aca235925ecc",
|
|
29
29
|
contractVersion: "v1",
|
|
30
30
|
minimumCli: "0.21.0",
|
|
31
31
|
hashes: {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"assurance-v1.schema.json": "441e1b8324fe64e234a007216b11867ec937ac4779fcebcdd84b30fa064367e5",
|
|
33
|
+
"coverage-v1.schema.json": "f0cdbb9457ca7ca76b642c11fd5b6f41273909c894458c31f58c9c50fdbcdb38",
|
|
34
|
+
"properties-v1.schema.json": "cc687773c35b3e71e82fc336e887ecc688a28b03e970e349b2921b8624e4d11c"
|
|
34
35
|
}
|
|
35
|
-
},
|
|
36
|
-
function
|
|
37
|
-
return
|
|
36
|
+
}, x = o(e(import.meta.url));
|
|
37
|
+
function S(e) {
|
|
38
|
+
return c(x, "schemas", e);
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
-
return JSON.parse(
|
|
40
|
+
function C(e) {
|
|
41
|
+
return JSON.parse(r(S(e), "utf8"));
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function w(e) {
|
|
43
44
|
let t = /(\d+)\.(\d+)\.(\d+)/.exec(e);
|
|
44
45
|
return t ? t[0] : null;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function T(e, t) {
|
|
47
48
|
let n = e.split(".").map((e) => Number.parseInt(e, 10)), r = t.split(".").map((e) => Number.parseInt(e, 10));
|
|
48
49
|
for (let e = 0; e < 3; e += 1) {
|
|
49
50
|
let t = (n[e] ?? 0) - (r[e] ?? 0);
|
|
@@ -51,14 +52,14 @@ function y(e, t) {
|
|
|
51
52
|
}
|
|
52
53
|
return 0;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
let t = e ?
|
|
55
|
+
function E(e) {
|
|
56
|
+
let t = e ? w(e) : null, n = b.minimumCli;
|
|
56
57
|
return t === null ? {
|
|
57
58
|
kind: "version-premise",
|
|
58
59
|
found: null,
|
|
59
60
|
required: n,
|
|
60
61
|
message: `could not determine the quire CLI version (expected >= ${n}). Install or update quire-cli: the JSON contract quoin reads is only emitted from ${n} onward.`
|
|
61
|
-
} :
|
|
62
|
+
} : T(t, n) < 0 ? {
|
|
62
63
|
kind: "version-premise",
|
|
63
64
|
found: t,
|
|
64
65
|
required: n,
|
|
@@ -67,7 +68,7 @@ function b(e) {
|
|
|
67
68
|
}
|
|
68
69
|
//#endregion
|
|
69
70
|
//#region node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
70
|
-
var
|
|
71
|
+
var D = /* @__PURE__ */ g(((e) => {
|
|
71
72
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
72
73
|
var t = class {};
|
|
73
74
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -172,9 +173,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
172
173
|
return new r(e.toString());
|
|
173
174
|
}
|
|
174
175
|
e.regexpCode = g;
|
|
175
|
-
})),
|
|
176
|
+
})), O = /* @__PURE__ */ g(((e) => {
|
|
176
177
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
177
|
-
var t =
|
|
178
|
+
var t = D(), n = class extends Error {
|
|
178
179
|
constructor(e) {
|
|
179
180
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
180
181
|
}
|
|
@@ -283,9 +284,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
283
284
|
return c;
|
|
284
285
|
}
|
|
285
286
|
};
|
|
286
|
-
})),
|
|
287
|
+
})), k = /* @__PURE__ */ g(((e) => {
|
|
287
288
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
288
|
-
var t =
|
|
289
|
+
var t = D(), n = O(), r = D();
|
|
289
290
|
Object.defineProperty(e, "_", {
|
|
290
291
|
enumerable: !0,
|
|
291
292
|
get: function() {
|
|
@@ -327,7 +328,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
327
328
|
return r.Name;
|
|
328
329
|
}
|
|
329
330
|
});
|
|
330
|
-
var i =
|
|
331
|
+
var i = O();
|
|
331
332
|
Object.defineProperty(e, "Scope", {
|
|
332
333
|
enumerable: !0,
|
|
333
334
|
get: function() {
|
|
@@ -528,7 +529,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
528
529
|
get names() {
|
|
529
530
|
return A(A(super.names, this.from), this.to);
|
|
530
531
|
}
|
|
531
|
-
},
|
|
532
|
+
}, x = class extends v {
|
|
532
533
|
constructor(e, t, n, r) {
|
|
533
534
|
super(), this.loop = e, this.varKind = t, this.name = n, this.iterable = r;
|
|
534
535
|
}
|
|
@@ -541,7 +542,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
541
542
|
get names() {
|
|
542
543
|
return k(super.names, this.iterable.names);
|
|
543
544
|
}
|
|
544
|
-
},
|
|
545
|
+
}, S = class extends m {
|
|
545
546
|
constructor(e, t, n) {
|
|
546
547
|
super(), this.name = e, this.args = t, this.async = n;
|
|
547
548
|
}
|
|
@@ -549,14 +550,14 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
549
550
|
return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(e);
|
|
550
551
|
}
|
|
551
552
|
};
|
|
552
|
-
|
|
553
|
-
var
|
|
553
|
+
S.kind = "func";
|
|
554
|
+
var C = class extends p {
|
|
554
555
|
render(e) {
|
|
555
556
|
return "return " + super.render(e);
|
|
556
557
|
}
|
|
557
558
|
};
|
|
558
|
-
|
|
559
|
-
var
|
|
559
|
+
C.kind = "return";
|
|
560
|
+
var w = class extends m {
|
|
560
561
|
render(e) {
|
|
561
562
|
let t = "try" + super.render(e);
|
|
562
563
|
return this.catch && (t += this.catch.render(e)), this.finally && (t += this.finally.render(e)), t;
|
|
@@ -573,7 +574,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
573
574
|
let e = super.names;
|
|
574
575
|
return this.catch && k(e, this.catch.names), this.finally && k(e, this.finally.names), e;
|
|
575
576
|
}
|
|
576
|
-
},
|
|
577
|
+
}, T = class extends m {
|
|
577
578
|
constructor(e) {
|
|
578
579
|
super(), this.error = e;
|
|
579
580
|
}
|
|
@@ -581,13 +582,13 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
581
582
|
return `catch(${this.error})` + super.render(e);
|
|
582
583
|
}
|
|
583
584
|
};
|
|
584
|
-
|
|
585
|
-
var
|
|
585
|
+
T.kind = "catch";
|
|
586
|
+
var E = class extends m {
|
|
586
587
|
render(e) {
|
|
587
588
|
return "finally" + super.render(e);
|
|
588
589
|
}
|
|
589
590
|
};
|
|
590
|
-
|
|
591
|
+
E.kind = "finally", e.CodeGen = class {
|
|
591
592
|
constructor(e, t = {}) {
|
|
592
593
|
this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = {
|
|
593
594
|
...t,
|
|
@@ -676,12 +677,12 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
676
677
|
this.var(o, (0, t._)`${e}[${n}]`), i(o);
|
|
677
678
|
});
|
|
678
679
|
}
|
|
679
|
-
return this._for(new
|
|
680
|
+
return this._for(new x("of", a, o, r), () => i(o));
|
|
680
681
|
}
|
|
681
682
|
forIn(e, r, i, a = this.opts.es5 ? n.varKinds.var : n.varKinds.const) {
|
|
682
683
|
if (this.opts.ownProperties) return this.forOf(e, (0, t._)`Object.keys(${r})`, i);
|
|
683
684
|
let o = this._scope.toName(e);
|
|
684
|
-
return this._for(new
|
|
685
|
+
return this._for(new x("in", a, o, r), () => i(o));
|
|
685
686
|
}
|
|
686
687
|
endFor() {
|
|
687
688
|
return this._endBlockNode(v);
|
|
@@ -693,18 +694,18 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
693
694
|
return this._leafNode(new u(e));
|
|
694
695
|
}
|
|
695
696
|
return(e) {
|
|
696
|
-
let t = new
|
|
697
|
+
let t = new C();
|
|
697
698
|
if (this._blockNode(t), this.code(e), t.nodes.length !== 1) throw Error("CodeGen: \"return\" should have one node");
|
|
698
|
-
return this._endBlockNode(
|
|
699
|
+
return this._endBlockNode(C);
|
|
699
700
|
}
|
|
700
701
|
try(e, t, n) {
|
|
701
702
|
if (!t && !n) throw Error("CodeGen: \"try\" without \"catch\" and \"finally\"");
|
|
702
|
-
let r = new
|
|
703
|
+
let r = new w();
|
|
703
704
|
if (this._blockNode(r), this.code(e), t) {
|
|
704
705
|
let e = this.name("e");
|
|
705
|
-
this._currNode = r.catch = new
|
|
706
|
+
this._currNode = r.catch = new T(e), t(e);
|
|
706
707
|
}
|
|
707
|
-
return n && (this._currNode = r.finally = new
|
|
708
|
+
return n && (this._currNode = r.finally = new E(), this.code(n)), this._endBlockNode(T, E);
|
|
708
709
|
}
|
|
709
710
|
throw(e) {
|
|
710
711
|
return this._leafNode(new d(e));
|
|
@@ -720,10 +721,10 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
720
721
|
return this._nodes.length = t, this;
|
|
721
722
|
}
|
|
722
723
|
func(e, n = t.nil, r, i) {
|
|
723
|
-
return this._blockNode(new
|
|
724
|
+
return this._blockNode(new S(e, n, r)), i && this.code(i).endFunc(), this;
|
|
724
725
|
}
|
|
725
726
|
endFunc() {
|
|
726
|
-
return this._endBlockNode(
|
|
727
|
+
return this._endBlockNode(S);
|
|
727
728
|
}
|
|
728
729
|
optimize(e = 1) {
|
|
729
730
|
for (; e-- > 0;) this._root.optimizeNodes(), this._root.optimizeNames(this._root.names, this._constants);
|
|
@@ -779,28 +780,28 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
779
780
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
780
781
|
}
|
|
781
782
|
function N(e) {
|
|
782
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
783
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${R(e)}`;
|
|
783
784
|
}
|
|
784
785
|
e.not = N;
|
|
785
|
-
var P =
|
|
786
|
+
var P = L(e.operators.AND);
|
|
786
787
|
function F(...e) {
|
|
787
788
|
return e.reduce(P);
|
|
788
789
|
}
|
|
789
790
|
e.and = F;
|
|
790
|
-
var I =
|
|
791
|
-
function
|
|
791
|
+
var I = L(e.operators.OR);
|
|
792
|
+
function ee(...e) {
|
|
792
793
|
return e.reduce(I);
|
|
793
794
|
}
|
|
794
|
-
e.or =
|
|
795
|
-
function
|
|
796
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${
|
|
795
|
+
e.or = ee;
|
|
796
|
+
function L(e) {
|
|
797
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${R(n)} ${e} ${R(r)}`;
|
|
797
798
|
}
|
|
798
|
-
function
|
|
799
|
+
function R(e) {
|
|
799
800
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
800
801
|
}
|
|
801
|
-
})),
|
|
802
|
+
})), A = /* @__PURE__ */ g(((e) => {
|
|
802
803
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
803
|
-
var t =
|
|
804
|
+
var t = k(), n = D();
|
|
804
805
|
function r(e) {
|
|
805
806
|
let t = {};
|
|
806
807
|
for (let n of e) t[n] = !0;
|
|
@@ -815,7 +816,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
815
816
|
let { opts: n, self: r } = e;
|
|
816
817
|
if (!n.strictSchema || typeof t == "boolean") return;
|
|
817
818
|
let i = r.RULES.keywords;
|
|
818
|
-
for (let n in t) i[n] ||
|
|
819
|
+
for (let n in t) i[n] || x(e, `unknown keyword: "${n}"`);
|
|
819
820
|
}
|
|
820
821
|
e.checkUnknownRules = a;
|
|
821
822
|
function o(e, t) {
|
|
@@ -916,16 +917,16 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
916
917
|
return r ? (0, t.getProperty)(e).toString() : "/" + d(e);
|
|
917
918
|
}
|
|
918
919
|
e.getErrorPath = b;
|
|
919
|
-
function
|
|
920
|
+
function x(e, t, n = e.opts.strictSchema) {
|
|
920
921
|
if (n) {
|
|
921
922
|
if (t = `strict mode: ${t}`, n === !0) throw Error(t);
|
|
922
923
|
e.self.logger.warn(t);
|
|
923
924
|
}
|
|
924
925
|
}
|
|
925
|
-
e.checkStrictMode =
|
|
926
|
-
})),
|
|
926
|
+
e.checkStrictMode = x;
|
|
927
|
+
})), j = /* @__PURE__ */ g(((e) => {
|
|
927
928
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
928
|
-
var t =
|
|
929
|
+
var t = k();
|
|
929
930
|
e.default = {
|
|
930
931
|
data: new t.Name("data"),
|
|
931
932
|
valCxt: new t.Name("valCxt"),
|
|
@@ -944,9 +945,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
944
945
|
jsonLen: new t.Name("jsonLen"),
|
|
945
946
|
jsonPart: new t.Name("jsonPart")
|
|
946
947
|
};
|
|
947
|
-
})),
|
|
948
|
+
})), M = /* @__PURE__ */ g(((e) => {
|
|
948
949
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
949
|
-
var t =
|
|
950
|
+
var t = k(), n = A(), r = j();
|
|
950
951
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
951
952
|
function i(n, r = e.keywordError, i, a) {
|
|
952
953
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -1008,9 +1009,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1008
1009
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
1009
1010
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
1010
1011
|
}
|
|
1011
|
-
})),
|
|
1012
|
+
})), N = /* @__PURE__ */ g(((e) => {
|
|
1012
1013
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
1013
|
-
var t =
|
|
1014
|
+
var t = M(), n = k(), r = j(), i = { message: "boolean schema is false" };
|
|
1014
1015
|
function a(e) {
|
|
1015
1016
|
let { gen: t, schema: i, validateName: a } = e;
|
|
1016
1017
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -1034,7 +1035,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1034
1035
|
};
|
|
1035
1036
|
(0, t.reportError)(o, i, void 0, n);
|
|
1036
1037
|
}
|
|
1037
|
-
})),
|
|
1038
|
+
})), P = /* @__PURE__ */ g(((e) => {
|
|
1038
1039
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
1039
1040
|
var t = /* @__PURE__ */ new Set([
|
|
1040
1041
|
"string",
|
|
@@ -1088,7 +1089,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1088
1089
|
};
|
|
1089
1090
|
}
|
|
1090
1091
|
e.getRules = r;
|
|
1091
|
-
})),
|
|
1092
|
+
})), F = /* @__PURE__ */ g(((e) => {
|
|
1092
1093
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
1093
1094
|
function t({ schema: e, self: t }, r) {
|
|
1094
1095
|
let i = t.RULES.types[r];
|
|
@@ -1103,9 +1104,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1103
1104
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
1104
1105
|
}
|
|
1105
1106
|
e.shouldUseRule = r;
|
|
1106
|
-
})),
|
|
1107
|
+
})), I = /* @__PURE__ */ g(((e) => {
|
|
1107
1108
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
1108
|
-
var t =
|
|
1109
|
+
var t = P(), n = F(), r = M(), i = k(), a = A(), o;
|
|
1109
1110
|
(function(e) {
|
|
1110
1111
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
1111
1112
|
})(o || (e.DataType = o = {}));
|
|
@@ -1240,9 +1241,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1240
1241
|
it: e
|
|
1241
1242
|
};
|
|
1242
1243
|
}
|
|
1243
|
-
})),
|
|
1244
|
+
})), ee = /* @__PURE__ */ g(((e) => {
|
|
1244
1245
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
1245
|
-
var t =
|
|
1246
|
+
var t = k(), n = A();
|
|
1246
1247
|
function r(e, t) {
|
|
1247
1248
|
let { properties: n, items: r } = e.schema;
|
|
1248
1249
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -1260,9 +1261,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1260
1261
|
let u = (0, t._)`${l} === undefined`;
|
|
1261
1262
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
1262
1263
|
}
|
|
1263
|
-
})),
|
|
1264
|
+
})), L = /* @__PURE__ */ g(((e) => {
|
|
1264
1265
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
1265
|
-
var t =
|
|
1266
|
+
var t = k(), n = A(), r = j(), i = A();
|
|
1266
1267
|
function a(e, n) {
|
|
1267
1268
|
let { gen: r, data: i, it: a } = e;
|
|
1268
1269
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -1364,9 +1365,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1364
1365
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
1365
1366
|
}
|
|
1366
1367
|
e.validateUnion = v;
|
|
1367
|
-
})),
|
|
1368
|
+
})), R = /* @__PURE__ */ g(((e) => {
|
|
1368
1369
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
1369
|
-
var t =
|
|
1370
|
+
var t = k(), n = j(), r = L(), i = M();
|
|
1370
1371
|
function a(e, n) {
|
|
1371
1372
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
1372
1373
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -1445,9 +1446,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1445
1446
|
}
|
|
1446
1447
|
}
|
|
1447
1448
|
e.validateKeywordUsage = f;
|
|
1448
|
-
})),
|
|
1449
|
+
})), z = /* @__PURE__ */ g(((e) => {
|
|
1449
1450
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
1450
|
-
var t =
|
|
1451
|
+
var t = k(), n = A();
|
|
1451
1452
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
1452
1453
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
1453
1454
|
if (r !== void 0) {
|
|
@@ -1491,7 +1492,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1491
1492
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
1492
1493
|
}
|
|
1493
1494
|
e.extendSubschemaMode = a;
|
|
1494
|
-
})),
|
|
1495
|
+
})), te = /* @__PURE__ */ g(((e, t) => {
|
|
1495
1496
|
t.exports = function e(t, n) {
|
|
1496
1497
|
if (t === n) return !0;
|
|
1497
1498
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -1515,7 +1516,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1515
1516
|
}
|
|
1516
1517
|
return t !== t && n !== n;
|
|
1517
1518
|
};
|
|
1518
|
-
})),
|
|
1519
|
+
})), ne = /* @__PURE__ */ g(((e, t) => {
|
|
1519
1520
|
var n = t.exports = function(e, t, n) {
|
|
1520
1521
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
1521
1522
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -1578,9 +1579,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1578
1579
|
function i(e) {
|
|
1579
1580
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1580
1581
|
}
|
|
1581
|
-
})),
|
|
1582
|
+
})), B = /* @__PURE__ */ g(((e) => {
|
|
1582
1583
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
1583
|
-
var t =
|
|
1584
|
+
var t = A(), n = te(), r = ne(), i = /* @__PURE__ */ new Set([
|
|
1584
1585
|
"type",
|
|
1585
1586
|
"format",
|
|
1586
1587
|
"pattern",
|
|
@@ -1669,11 +1670,11 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1669
1670
|
}
|
|
1670
1671
|
}
|
|
1671
1672
|
e.getSchemaRefs = h;
|
|
1672
|
-
})),
|
|
1673
|
+
})), V = /* @__PURE__ */ g(((e) => {
|
|
1673
1674
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
1674
|
-
var t =
|
|
1675
|
+
var t = N(), n = I(), r = F(), i = I(), a = ee(), o = R(), s = z(), c = k(), l = j(), u = B(), d = A(), f = M();
|
|
1675
1676
|
function p(e) {
|
|
1676
|
-
if (S(e) && (
|
|
1677
|
+
if (S(e) && (w(e), x(e))) {
|
|
1677
1678
|
_(e);
|
|
1678
1679
|
return;
|
|
1679
1680
|
}
|
|
@@ -1698,7 +1699,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1698
1699
|
function _(e) {
|
|
1699
1700
|
let { schema: t, opts: n, gen: r } = e;
|
|
1700
1701
|
m(e, () => {
|
|
1701
|
-
n.$comment && t.$comment &&
|
|
1702
|
+
n.$comment && t.$comment && L(e), D(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && v(e), T(e), te(e);
|
|
1702
1703
|
});
|
|
1703
1704
|
}
|
|
1704
1705
|
function v(e) {
|
|
@@ -1710,8 +1711,8 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1710
1711
|
return n && (t.code.source || t.code.process) ? (0, c._)`/*# sourceURL=${n} */` : c.nil;
|
|
1711
1712
|
}
|
|
1712
1713
|
function b(e, n) {
|
|
1713
|
-
if (S(e) && (
|
|
1714
|
-
|
|
1714
|
+
if (S(e) && (w(e), x(e))) {
|
|
1715
|
+
C(e, n);
|
|
1715
1716
|
return;
|
|
1716
1717
|
}
|
|
1717
1718
|
(0, t.boolOrEmptySchema)(e, n);
|
|
@@ -1724,36 +1725,36 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1724
1725
|
function S(e) {
|
|
1725
1726
|
return typeof e.schema != "boolean";
|
|
1726
1727
|
}
|
|
1727
|
-
function
|
|
1728
|
+
function C(e, t) {
|
|
1728
1729
|
let { schema: n, gen: r, opts: i } = e;
|
|
1729
|
-
i.$comment && n.$comment &&
|
|
1730
|
+
i.$comment && n.$comment && L(e), O(e), P(e);
|
|
1730
1731
|
let a = r.const("_errs", l.default.errors);
|
|
1731
|
-
|
|
1732
|
+
T(e, a), r.var(t, (0, c._)`${a} === ${l.default.errors}`);
|
|
1732
1733
|
}
|
|
1733
|
-
function
|
|
1734
|
-
(0, d.checkUnknownRules)(e),
|
|
1734
|
+
function w(e) {
|
|
1735
|
+
(0, d.checkUnknownRules)(e), E(e);
|
|
1735
1736
|
}
|
|
1736
|
-
function
|
|
1737
|
-
if (e.opts.jtd) return
|
|
1737
|
+
function T(e, t) {
|
|
1738
|
+
if (e.opts.jtd) return V(e, [], !1, t);
|
|
1738
1739
|
let r = (0, n.getSchemaTypes)(e.schema);
|
|
1739
|
-
|
|
1740
|
+
V(e, r, !(0, n.coerceAndCheckDataType)(e, r), t);
|
|
1740
1741
|
}
|
|
1741
|
-
function
|
|
1742
|
+
function E(e) {
|
|
1742
1743
|
let { schema: t, errSchemaPath: n, opts: r, self: i } = e;
|
|
1743
1744
|
t.$ref && r.ignoreKeywordsWithRef && (0, d.schemaHasRulesButRef)(t, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
|
|
1744
1745
|
}
|
|
1745
|
-
function
|
|
1746
|
+
function D(e) {
|
|
1746
1747
|
let { schema: t, opts: n } = e;
|
|
1747
1748
|
t.default !== void 0 && n.useDefaults && n.strictSchema && (0, d.checkStrictMode)(e, "default is ignored in the schema root");
|
|
1748
1749
|
}
|
|
1749
|
-
function
|
|
1750
|
+
function O(e) {
|
|
1750
1751
|
let t = e.schema[e.opts.schemaId];
|
|
1751
1752
|
t && (e.baseId = (0, u.resolveUrl)(e.opts.uriResolver, e.baseId, t));
|
|
1752
1753
|
}
|
|
1753
|
-
function
|
|
1754
|
+
function P(e) {
|
|
1754
1755
|
if (e.schema.$async && !e.schemaEnv.$async) throw Error("async schema in sync schema");
|
|
1755
1756
|
}
|
|
1756
|
-
function
|
|
1757
|
+
function L({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: i }) {
|
|
1757
1758
|
let a = n.$comment;
|
|
1758
1759
|
if (i.$comment === !0) e.code((0, c._)`${l.default.self}.logger.log(${a})`);
|
|
1759
1760
|
else if (typeof i.$comment == "function") {
|
|
@@ -1761,76 +1762,76 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1761
1762
|
e.code((0, c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`);
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
1764
|
-
function
|
|
1765
|
+
function te(e) {
|
|
1765
1766
|
let { gen: t, schemaEnv: n, validateName: r, ValidationError: i, opts: a } = e;
|
|
1766
|
-
n.$async ? t.if((0, c._)`${l.default.errors} === 0`, () => t.return(l.default.data), () => t.throw((0, c._)`new ${i}(${l.default.vErrors})`)) : (t.assign((0, c._)`${r}.errors`, l.default.vErrors), a.unevaluated &&
|
|
1767
|
+
n.$async ? t.if((0, c._)`${l.default.errors} === 0`, () => t.return(l.default.data), () => t.throw((0, c._)`new ${i}(${l.default.vErrors})`)) : (t.assign((0, c._)`${r}.errors`, l.default.vErrors), a.unevaluated && ne(e), t.return((0, c._)`${l.default.errors} === 0`));
|
|
1767
1768
|
}
|
|
1768
|
-
function
|
|
1769
|
+
function ne({ gen: e, evaluated: t, props: n, items: r }) {
|
|
1769
1770
|
n instanceof c.Name && e.assign((0, c._)`${t}.props`, n), r instanceof c.Name && e.assign((0, c._)`${t}.items`, r);
|
|
1770
1771
|
}
|
|
1771
|
-
function
|
|
1772
|
+
function V(e, t, n, a) {
|
|
1772
1773
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
1773
1774
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
1774
|
-
o.block(() =>
|
|
1775
|
+
o.block(() => Z(e, "$ref", h.all.$ref.definition));
|
|
1775
1776
|
return;
|
|
1776
1777
|
}
|
|
1777
|
-
p.jtd ||
|
|
1778
|
+
p.jtd || U(e, t), o.block(() => {
|
|
1778
1779
|
for (let e of h.rules) g(e);
|
|
1779
1780
|
g(h.post);
|
|
1780
1781
|
});
|
|
1781
1782
|
function g(d) {
|
|
1782
|
-
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)),
|
|
1783
|
+
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), H(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : H(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
|
|
1783
1784
|
}
|
|
1784
1785
|
}
|
|
1785
|
-
function
|
|
1786
|
+
function H(e, t) {
|
|
1786
1787
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
1787
1788
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
1788
|
-
for (let n of t.rules) (0, r.shouldUseRule)(i, n) &&
|
|
1789
|
+
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && Z(e, n.keyword, n.definition, t.type);
|
|
1789
1790
|
});
|
|
1790
1791
|
}
|
|
1791
|
-
function
|
|
1792
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
1792
|
+
function U(e, t) {
|
|
1793
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (W(e, t), e.opts.allowUnionTypes || re(e, t), G(e, e.dataTypes));
|
|
1793
1794
|
}
|
|
1794
|
-
function
|
|
1795
|
+
function W(e, t) {
|
|
1795
1796
|
if (t.length) {
|
|
1796
1797
|
if (!e.dataTypes.length) {
|
|
1797
1798
|
e.dataTypes = t;
|
|
1798
1799
|
return;
|
|
1799
1800
|
}
|
|
1800
1801
|
t.forEach((t) => {
|
|
1801
|
-
q(e.dataTypes, t) ||
|
|
1802
|
-
}),
|
|
1802
|
+
q(e.dataTypes, t) || Y(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
1803
|
+
}), J(e, t);
|
|
1803
1804
|
}
|
|
1804
1805
|
}
|
|
1805
|
-
function
|
|
1806
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
1806
|
+
function re(e, t) {
|
|
1807
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && Y(e, "use allowUnionTypes to allow union type keyword");
|
|
1807
1808
|
}
|
|
1808
|
-
function
|
|
1809
|
+
function G(e, t) {
|
|
1809
1810
|
let n = e.self.RULES.all;
|
|
1810
1811
|
for (let i in n) {
|
|
1811
1812
|
let a = n[i];
|
|
1812
1813
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
1813
1814
|
let { type: n } = a.definition;
|
|
1814
|
-
n.length && !n.some((e) =>
|
|
1815
|
+
n.length && !n.some((e) => K(t, e)) && Y(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
1815
1816
|
}
|
|
1816
1817
|
}
|
|
1817
1818
|
}
|
|
1818
|
-
function
|
|
1819
|
+
function K(e, t) {
|
|
1819
1820
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
1820
1821
|
}
|
|
1821
1822
|
function q(e, t) {
|
|
1822
1823
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
1823
1824
|
}
|
|
1824
|
-
function
|
|
1825
|
+
function J(e, t) {
|
|
1825
1826
|
let n = [];
|
|
1826
1827
|
for (let r of e.dataTypes) q(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
1827
1828
|
e.dataTypes = n;
|
|
1828
1829
|
}
|
|
1829
|
-
function
|
|
1830
|
+
function Y(e, t) {
|
|
1830
1831
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
1831
1832
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
1832
1833
|
}
|
|
1833
|
-
var
|
|
1834
|
+
var X = class {
|
|
1834
1835
|
constructor(e, t, n) {
|
|
1835
1836
|
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", oe(this.$data, e));
|
|
1836
1837
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
|
|
@@ -1930,17 +1931,17 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1930
1931
|
if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
|
|
1931
1932
|
}
|
|
1932
1933
|
};
|
|
1933
|
-
e.KeywordCxt =
|
|
1934
|
-
function
|
|
1935
|
-
let i = new
|
|
1934
|
+
e.KeywordCxt = X;
|
|
1935
|
+
function Z(e, t, n, r) {
|
|
1936
|
+
let i = new X(e, n, t);
|
|
1936
1937
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
|
|
1937
1938
|
}
|
|
1938
|
-
var
|
|
1939
|
+
var ie = /^\/(?:[^~]|~0|~1)*$/, ae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
1939
1940
|
function oe(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
1940
1941
|
let i, a;
|
|
1941
1942
|
if (e === "") return l.default.rootData;
|
|
1942
1943
|
if (e[0] === "/") {
|
|
1943
|
-
if (!
|
|
1944
|
+
if (!ie.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
1944
1945
|
i = e, a = l.default.rootData;
|
|
1945
1946
|
} else {
|
|
1946
1947
|
let o = ae.exec(e);
|
|
@@ -1961,23 +1962,23 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
1961
1962
|
}
|
|
1962
1963
|
}
|
|
1963
1964
|
e.getData = oe;
|
|
1964
|
-
})),
|
|
1965
|
+
})), H = /* @__PURE__ */ g(((e) => {
|
|
1965
1966
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
1966
1967
|
constructor(e) {
|
|
1967
1968
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
1968
1969
|
}
|
|
1969
1970
|
};
|
|
1970
|
-
})),
|
|
1971
|
+
})), U = /* @__PURE__ */ g(((e) => {
|
|
1971
1972
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1972
|
-
var t =
|
|
1973
|
+
var t = B();
|
|
1973
1974
|
e.default = class extends Error {
|
|
1974
1975
|
constructor(e, n, r, i) {
|
|
1975
1976
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
1976
1977
|
}
|
|
1977
1978
|
};
|
|
1978
|
-
})),
|
|
1979
|
+
})), W = /* @__PURE__ */ g(((e) => {
|
|
1979
1980
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
1980
|
-
var t =
|
|
1981
|
+
var t = k(), n = H(), r = j(), i = B(), a = A(), o = V(), s = class {
|
|
1981
1982
|
constructor(e) {
|
|
1982
1983
|
this.refs = {}, this.dynamicAnchors = {};
|
|
1983
1984
|
let t;
|
|
@@ -2136,27 +2137,27 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2136
2137
|
baseId: t
|
|
2137
2138
|
}), o.schema !== o.root.schema) return o;
|
|
2138
2139
|
}
|
|
2139
|
-
})),
|
|
2140
|
-
$id: () =>
|
|
2140
|
+
})), re = /* @__PURE__ */ _({
|
|
2141
|
+
$id: () => G,
|
|
2141
2142
|
additionalProperties: () => !1,
|
|
2142
|
-
default: () =>
|
|
2143
|
-
description: () =>
|
|
2144
|
-
properties: () =>
|
|
2145
|
-
required: () =>
|
|
2146
|
-
type: () =>
|
|
2147
|
-
}),
|
|
2148
|
-
|
|
2143
|
+
default: () => X,
|
|
2144
|
+
description: () => K,
|
|
2145
|
+
properties: () => Y,
|
|
2146
|
+
required: () => J,
|
|
2147
|
+
type: () => q
|
|
2148
|
+
}), G, K, q, J, Y, X, Z = h((() => {
|
|
2149
|
+
G = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", K = "Meta-schema for $data reference (JSON AnySchema extension proposal)", q = "object", J = ["$data"], Y = { $data: {
|
|
2149
2150
|
type: "string",
|
|
2150
2151
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
2151
|
-
} },
|
|
2152
|
-
$id:
|
|
2153
|
-
description:
|
|
2154
|
-
type:
|
|
2155
|
-
required:
|
|
2156
|
-
properties:
|
|
2152
|
+
} }, X = {
|
|
2153
|
+
$id: G,
|
|
2154
|
+
description: K,
|
|
2155
|
+
type: q,
|
|
2156
|
+
required: J,
|
|
2157
|
+
properties: Y,
|
|
2157
2158
|
additionalProperties: !1
|
|
2158
2159
|
};
|
|
2159
|
-
})),
|
|
2160
|
+
})), ie = /* @__PURE__ */ g(((e, t) => {
|
|
2160
2161
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
2161
2162
|
function s(e) {
|
|
2162
2163
|
let t = "", n = 0, r = 0;
|
|
@@ -2373,8 +2374,8 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2373
2374
|
normalizeIPv6: f,
|
|
2374
2375
|
stringArrayToHexStripped: s
|
|
2375
2376
|
};
|
|
2376
|
-
})),
|
|
2377
|
-
var { isUUID: n } =
|
|
2377
|
+
})), ae = /* @__PURE__ */ g(((e, t) => {
|
|
2378
|
+
var { isUUID: n } = ie(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
2378
2379
|
"http",
|
|
2379
2380
|
"https",
|
|
2380
2381
|
"ws",
|
|
@@ -2479,8 +2480,8 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2479
2480
|
isValidSchemeName: a,
|
|
2480
2481
|
getSchemeHandler: y
|
|
2481
2482
|
};
|
|
2482
|
-
})),
|
|
2483
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
2483
|
+
})), oe = /* @__PURE__ */ g(((e, t) => {
|
|
2484
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = ie(), { SCHEMES: d, getSchemeHandler: f } = ae();
|
|
2484
2485
|
function p(e, t) {
|
|
2485
2486
|
return typeof e == "string" ? e = w(e, t) : typeof e == "object" && (e = C(_(e, t), t)), e;
|
|
2486
2487
|
}
|
|
@@ -2603,20 +2604,20 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2603
2604
|
parse: C
|
|
2604
2605
|
};
|
|
2605
2606
|
t.exports = D, t.exports.default = D, t.exports.fastUri = D;
|
|
2606
|
-
})),
|
|
2607
|
+
})), se = /* @__PURE__ */ g(((e) => {
|
|
2607
2608
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2608
|
-
var t =
|
|
2609
|
+
var t = oe();
|
|
2609
2610
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
2610
|
-
})),
|
|
2611
|
+
})), ce = /* @__PURE__ */ g(((e) => {
|
|
2611
2612
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
2612
|
-
var t =
|
|
2613
|
+
var t = V();
|
|
2613
2614
|
Object.defineProperty(e, "KeywordCxt", {
|
|
2614
2615
|
enumerable: !0,
|
|
2615
2616
|
get: function() {
|
|
2616
2617
|
return t.KeywordCxt;
|
|
2617
2618
|
}
|
|
2618
2619
|
});
|
|
2619
|
-
var n =
|
|
2620
|
+
var n = k();
|
|
2620
2621
|
Object.defineProperty(e, "_", {
|
|
2621
2622
|
enumerable: !0,
|
|
2622
2623
|
get: function() {
|
|
@@ -2648,13 +2649,13 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2648
2649
|
return n.CodeGen;
|
|
2649
2650
|
}
|
|
2650
2651
|
});
|
|
2651
|
-
var r =
|
|
2652
|
-
|
|
2653
|
-
var
|
|
2652
|
+
var r = H(), i = U(), a = P(), o = W(), s = k(), c = B(), l = I(), u = A(), d = (Z(), y(re).default), f = se(), p = (e, t) => new RegExp(e, t);
|
|
2653
|
+
p.code = "new RegExp";
|
|
2654
|
+
var m = [
|
|
2654
2655
|
"removeAdditional",
|
|
2655
2656
|
"useDefaults",
|
|
2656
2657
|
"coerceTypes"
|
|
2657
|
-
],
|
|
2658
|
+
], h = /* @__PURE__ */ new Set([
|
|
2658
2659
|
"validate",
|
|
2659
2660
|
"serialize",
|
|
2660
2661
|
"parse",
|
|
@@ -2668,7 +2669,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2668
2669
|
"func",
|
|
2669
2670
|
"obj",
|
|
2670
2671
|
"Error"
|
|
2671
|
-
]),
|
|
2672
|
+
]), g = {
|
|
2672
2673
|
errorDataPath: "",
|
|
2673
2674
|
format: "`validateFormats: false` can be used instead.",
|
|
2674
2675
|
nullable: "\"nullable\" keyword is supported by default.",
|
|
@@ -2684,13 +2685,13 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2684
2685
|
cache: "Map is used as cache, schema object as key.",
|
|
2685
2686
|
serialize: "Map is used as cache, schema object as key.",
|
|
2686
2687
|
ajvErrors: "It is default now."
|
|
2687
|
-
},
|
|
2688
|
+
}, _ = {
|
|
2688
2689
|
ignoreKeywordsWithRef: "",
|
|
2689
2690
|
jsPropertySyntax: "",
|
|
2690
2691
|
unicode: "\"minLength\"/\"maxLength\" account for unicode characters by default."
|
|
2691
|
-
},
|
|
2692
|
+
}, v = 200;
|
|
2692
2693
|
function b(e) {
|
|
2693
|
-
let t = e.strict, n = e.code?.optimize, r = n === !0 || n === void 0 ? 1 : n || 0, i = e.code?.regExp ??
|
|
2694
|
+
let t = e.strict, n = e.code?.optimize, r = n === !0 || n === void 0 ? 1 : n || 0, i = e.code?.regExp ?? p, a = e.uriResolver ?? f.default;
|
|
2694
2695
|
return {
|
|
2695
2696
|
strictSchema: e.strictSchema ?? t ?? !0,
|
|
2696
2697
|
strictNumbers: e.strictNumbers ?? t ?? !0,
|
|
@@ -2705,8 +2706,8 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2705
2706
|
optimize: r,
|
|
2706
2707
|
regExp: i
|
|
2707
2708
|
},
|
|
2708
|
-
loopRequired: e.loopRequired ??
|
|
2709
|
-
loopEnum: e.loopEnum ??
|
|
2709
|
+
loopRequired: e.loopRequired ?? v,
|
|
2710
|
+
loopEnum: e.loopEnum ?? v,
|
|
2710
2711
|
meta: e.meta ?? !0,
|
|
2711
2712
|
messages: e.messages ?? !0,
|
|
2712
2713
|
inlineRefs: e.inlineRefs ?? !0,
|
|
@@ -2728,12 +2729,12 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2728
2729
|
let { es5: t, lines: n } = this.opts.code;
|
|
2729
2730
|
this.scope = new s.ValueScope({
|
|
2730
2731
|
scope: {},
|
|
2731
|
-
prefixes:
|
|
2732
|
+
prefixes: h,
|
|
2732
2733
|
es5: t,
|
|
2733
2734
|
lines: n
|
|
2734
|
-
}), this.logger =
|
|
2735
|
+
}), this.logger = j(e.logger);
|
|
2735
2736
|
let r = e.validateFormats;
|
|
2736
|
-
e.validateFormats = !1, this.RULES = (0, a.getRules)(), S.call(this,
|
|
2737
|
+
e.validateFormats = !1, this.RULES = (0, a.getRules)(), S.call(this, g, e, "NOT SUPPORTED"), S.call(this, _, e, "DEPRECATED", "warn"), this._metaOpts = D.call(this), e.formats && T.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), e.keywords && E.call(this, e.keywords), typeof e.meta == "object" && this.addMetaSchema(e.meta), w.call(this), e.validateFormats = r;
|
|
2737
2738
|
}
|
|
2738
2739
|
_addVocabularies() {
|
|
2739
2740
|
this.addKeyword("$async");
|
|
@@ -2825,7 +2826,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2825
2826
|
}
|
|
2826
2827
|
getSchema(e) {
|
|
2827
2828
|
let t;
|
|
2828
|
-
for (; typeof (t =
|
|
2829
|
+
for (; typeof (t = C.call(this, e)) == "string";) e = t;
|
|
2829
2830
|
if (t === void 0) {
|
|
2830
2831
|
let { schemaId: n } = this.opts, r = new o.SchemaEnv({
|
|
2831
2832
|
schema: {},
|
|
@@ -2841,7 +2842,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2841
2842
|
switch (typeof e) {
|
|
2842
2843
|
case "undefined": return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
|
|
2843
2844
|
case "string": {
|
|
2844
|
-
let t =
|
|
2845
|
+
let t = C.call(this, e);
|
|
2845
2846
|
return typeof t == "object" && this._cache.delete(t.schema), delete this.schemas[e], delete this.refs[e], this;
|
|
2846
2847
|
}
|
|
2847
2848
|
case "object": {
|
|
@@ -2863,14 +2864,14 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2863
2864
|
else if (typeof e == "object" && t === void 0) {
|
|
2864
2865
|
if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
|
|
2865
2866
|
} else throw Error("invalid addKeywords parameters");
|
|
2866
|
-
if (
|
|
2867
|
-
|
|
2867
|
+
if (N.call(this, n, t), !t) return (0, u.eachItem)(n, (e) => F.call(this, e)), this;
|
|
2868
|
+
L.call(this, t);
|
|
2868
2869
|
let r = {
|
|
2869
2870
|
...t,
|
|
2870
2871
|
type: (0, l.getJSONTypes)(t.type),
|
|
2871
2872
|
schemaType: (0, l.getJSONTypes)(t.schemaType)
|
|
2872
2873
|
};
|
|
2873
|
-
return (0, u.eachItem)(n, r.type.length === 0 ? (e) =>
|
|
2874
|
+
return (0, u.eachItem)(n, r.type.length === 0 ? (e) => F.call(this, e, r) : (e) => r.type.forEach((t) => F.call(this, e, r, t))), this;
|
|
2874
2875
|
}
|
|
2875
2876
|
getKeyword(e) {
|
|
2876
2877
|
let t = this.RULES.all[e];
|
|
@@ -2901,7 +2902,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2901
2902
|
let t = n[e];
|
|
2902
2903
|
if (typeof t != "object") continue;
|
|
2903
2904
|
let { $data: r } = t.definition, a = i[e];
|
|
2904
|
-
r && a && (i[e] =
|
|
2905
|
+
r && a && (i[e] = z(a));
|
|
2905
2906
|
}
|
|
2906
2907
|
}
|
|
2907
2908
|
return e;
|
|
@@ -2954,21 +2955,21 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2954
2955
|
a in t && this.logger[r](`${n}: option ${i}. ${e[a]}`);
|
|
2955
2956
|
}
|
|
2956
2957
|
}
|
|
2957
|
-
function
|
|
2958
|
+
function C(e) {
|
|
2958
2959
|
return e = (0, c.normalizeId)(e), this.schemas[e] || this.refs[e];
|
|
2959
2960
|
}
|
|
2960
|
-
function
|
|
2961
|
+
function w() {
|
|
2961
2962
|
let e = this.opts.schemas;
|
|
2962
2963
|
if (e) if (Array.isArray(e)) this.addSchema(e);
|
|
2963
2964
|
else for (let t in e) this.addSchema(e[t], t);
|
|
2964
2965
|
}
|
|
2965
|
-
function
|
|
2966
|
+
function T() {
|
|
2966
2967
|
for (let e in this.opts.formats) {
|
|
2967
2968
|
let t = this.opts.formats[e];
|
|
2968
2969
|
t && this.addFormat(e, t);
|
|
2969
2970
|
}
|
|
2970
2971
|
}
|
|
2971
|
-
function
|
|
2972
|
+
function E(e) {
|
|
2972
2973
|
if (Array.isArray(e)) {
|
|
2973
2974
|
this.addVocabulary(e);
|
|
2974
2975
|
return;
|
|
@@ -2979,31 +2980,31 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
2979
2980
|
n.keyword ||= t, this.addKeyword(n);
|
|
2980
2981
|
}
|
|
2981
2982
|
}
|
|
2982
|
-
function
|
|
2983
|
+
function D() {
|
|
2983
2984
|
let e = { ...this.opts };
|
|
2984
|
-
for (let t of
|
|
2985
|
+
for (let t of m) delete e[t];
|
|
2985
2986
|
return e;
|
|
2986
2987
|
}
|
|
2987
|
-
var
|
|
2988
|
+
var O = {
|
|
2988
2989
|
log() {},
|
|
2989
2990
|
warn() {},
|
|
2990
2991
|
error() {}
|
|
2991
2992
|
};
|
|
2992
|
-
function
|
|
2993
|
-
if (e === !1) return
|
|
2993
|
+
function j(e) {
|
|
2994
|
+
if (e === !1) return O;
|
|
2994
2995
|
if (e === void 0) return console;
|
|
2995
2996
|
if (e.log && e.warn && e.error) return e;
|
|
2996
2997
|
throw Error("logger must implement log, warn and error methods");
|
|
2997
2998
|
}
|
|
2998
|
-
var
|
|
2999
|
-
function
|
|
2999
|
+
var M = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
3000
|
+
function N(e, t) {
|
|
3000
3001
|
let { RULES: n } = this;
|
|
3001
3002
|
if ((0, u.eachItem)(e, (e) => {
|
|
3002
3003
|
if (n.keywords[e]) throw Error(`Keyword ${e} is already defined`);
|
|
3003
|
-
if (!
|
|
3004
|
+
if (!M.test(e)) throw Error(`Keyword ${e} has invalid name`);
|
|
3004
3005
|
}), t && t.$data && !("code" in t || "validate" in t)) throw Error("$data keyword must have \"code\" or \"validate\" function");
|
|
3005
3006
|
}
|
|
3006
|
-
function
|
|
3007
|
+
function F(e, t, n) {
|
|
3007
3008
|
var r;
|
|
3008
3009
|
let i = t?.post;
|
|
3009
3010
|
if (n && i) throw Error("keyword with \"post\" flag cannot have \"type\"");
|
|
@@ -3020,30 +3021,30 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3020
3021
|
schemaType: (0, l.getJSONTypes)(t.schemaType)
|
|
3021
3022
|
}
|
|
3022
3023
|
};
|
|
3023
|
-
t.before ?
|
|
3024
|
+
t.before ? ee.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
|
|
3024
3025
|
}
|
|
3025
|
-
function
|
|
3026
|
+
function ee(e, t, n) {
|
|
3026
3027
|
let r = e.rules.findIndex((e) => e.keyword === n);
|
|
3027
3028
|
r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
|
|
3028
3029
|
}
|
|
3029
|
-
function
|
|
3030
|
+
function L(e) {
|
|
3030
3031
|
let { metaSchema: t } = e;
|
|
3031
|
-
t !== void 0 && (e.$data && this.opts.$data && (t =
|
|
3032
|
+
t !== void 0 && (e.$data && this.opts.$data && (t = z(t)), e.validateSchema = this.compile(t, !0));
|
|
3032
3033
|
}
|
|
3033
|
-
var
|
|
3034
|
-
function
|
|
3035
|
-
return { anyOf: [e,
|
|
3034
|
+
var R = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
|
3035
|
+
function z(e) {
|
|
3036
|
+
return { anyOf: [e, R] };
|
|
3036
3037
|
}
|
|
3037
|
-
})),
|
|
3038
|
+
})), le = /* @__PURE__ */ g(((e) => {
|
|
3038
3039
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
3039
3040
|
keyword: "id",
|
|
3040
3041
|
code() {
|
|
3041
3042
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
3042
3043
|
}
|
|
3043
3044
|
};
|
|
3044
|
-
})),
|
|
3045
|
+
})), ue = /* @__PURE__ */ g(((e) => {
|
|
3045
3046
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
3046
|
-
var t =
|
|
3047
|
+
var t = U(), n = L(), r = k(), i = j(), a = W(), o = A(), s = {
|
|
3047
3048
|
keyword: "$ref",
|
|
3048
3049
|
schemaType: "string",
|
|
3049
3050
|
code(e) {
|
|
@@ -3116,9 +3117,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3116
3117
|
}
|
|
3117
3118
|
}
|
|
3118
3119
|
e.callRef = l, e.default = s;
|
|
3119
|
-
})),
|
|
3120
|
+
})), de = /* @__PURE__ */ g(((e) => {
|
|
3120
3121
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3121
|
-
var t =
|
|
3122
|
+
var t = le(), n = ue();
|
|
3122
3123
|
e.default = [
|
|
3123
3124
|
"$schema",
|
|
3124
3125
|
"$id",
|
|
@@ -3129,9 +3130,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3129
3130
|
t.default,
|
|
3130
3131
|
n.default
|
|
3131
3132
|
];
|
|
3132
|
-
})),
|
|
3133
|
+
})), fe = /* @__PURE__ */ g(((e) => {
|
|
3133
3134
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3134
|
-
var t =
|
|
3135
|
+
var t = k(), n = t.operators, r = {
|
|
3135
3136
|
maximum: {
|
|
3136
3137
|
okStr: "<=",
|
|
3137
3138
|
ok: n.LTE,
|
|
@@ -3167,9 +3168,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3167
3168
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
3168
3169
|
}
|
|
3169
3170
|
};
|
|
3170
|
-
})),
|
|
3171
|
+
})), pe = /* @__PURE__ */ g(((e) => {
|
|
3171
3172
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3172
|
-
var t =
|
|
3173
|
+
var t = k();
|
|
3173
3174
|
e.default = {
|
|
3174
3175
|
keyword: "multipleOf",
|
|
3175
3176
|
type: "number",
|
|
@@ -3184,7 +3185,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3184
3185
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
3185
3186
|
}
|
|
3186
3187
|
};
|
|
3187
|
-
})),
|
|
3188
|
+
})), me = /* @__PURE__ */ g(((e) => {
|
|
3188
3189
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3189
3190
|
function t(e) {
|
|
3190
3191
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -3192,9 +3193,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3192
3193
|
return n;
|
|
3193
3194
|
}
|
|
3194
3195
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
3195
|
-
})),
|
|
3196
|
+
})), he = /* @__PURE__ */ g(((e) => {
|
|
3196
3197
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3197
|
-
var t =
|
|
3198
|
+
var t = k(), n = A(), r = me();
|
|
3198
3199
|
e.default = {
|
|
3199
3200
|
keyword: ["maxLength", "minLength"],
|
|
3200
3201
|
type: "string",
|
|
@@ -3212,9 +3213,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3212
3213
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
3213
3214
|
}
|
|
3214
3215
|
};
|
|
3215
|
-
})),
|
|
3216
|
+
})), ge = /* @__PURE__ */ g(((e) => {
|
|
3216
3217
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3217
|
-
var t =
|
|
3218
|
+
var t = L(), n = A(), r = k();
|
|
3218
3219
|
e.default = {
|
|
3219
3220
|
keyword: "pattern",
|
|
3220
3221
|
type: "string",
|
|
@@ -3235,9 +3236,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3235
3236
|
}
|
|
3236
3237
|
}
|
|
3237
3238
|
};
|
|
3238
|
-
})),
|
|
3239
|
+
})), _e = /* @__PURE__ */ g(((e) => {
|
|
3239
3240
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3240
|
-
var t =
|
|
3241
|
+
var t = k();
|
|
3241
3242
|
e.default = {
|
|
3242
3243
|
keyword: ["maxProperties", "minProperties"],
|
|
3243
3244
|
type: "object",
|
|
@@ -3255,9 +3256,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3255
3256
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
3256
3257
|
}
|
|
3257
3258
|
};
|
|
3258
|
-
})),
|
|
3259
|
+
})), ve = /* @__PURE__ */ g(((e) => {
|
|
3259
3260
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3260
|
-
var t =
|
|
3261
|
+
var t = L(), n = k(), r = A();
|
|
3261
3262
|
e.default = {
|
|
3262
3263
|
keyword: "required",
|
|
3263
3264
|
type: "object",
|
|
@@ -3303,9 +3304,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3303
3304
|
}
|
|
3304
3305
|
}
|
|
3305
3306
|
};
|
|
3306
|
-
})),
|
|
3307
|
+
})), ye = /* @__PURE__ */ g(((e) => {
|
|
3307
3308
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3308
|
-
var t =
|
|
3309
|
+
var t = k();
|
|
3309
3310
|
e.default = {
|
|
3310
3311
|
keyword: ["maxItems", "minItems"],
|
|
3311
3312
|
type: "array",
|
|
@@ -3323,13 +3324,13 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3323
3324
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
3324
3325
|
}
|
|
3325
3326
|
};
|
|
3326
|
-
})),
|
|
3327
|
+
})), be = /* @__PURE__ */ g(((e) => {
|
|
3327
3328
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3328
|
-
var t =
|
|
3329
|
+
var t = te();
|
|
3329
3330
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
3330
|
-
})),
|
|
3331
|
+
})), xe = /* @__PURE__ */ g(((e) => {
|
|
3331
3332
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3332
|
-
var t =
|
|
3333
|
+
var t = I(), n = k(), r = A(), i = be();
|
|
3333
3334
|
e.default = {
|
|
3334
3335
|
keyword: "uniqueItems",
|
|
3335
3336
|
type: "array",
|
|
@@ -3370,9 +3371,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3370
3371
|
}
|
|
3371
3372
|
}
|
|
3372
3373
|
};
|
|
3373
|
-
})),
|
|
3374
|
+
})), Se = /* @__PURE__ */ g(((e) => {
|
|
3374
3375
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3375
|
-
var t =
|
|
3376
|
+
var t = k(), n = A(), r = be();
|
|
3376
3377
|
e.default = {
|
|
3377
3378
|
keyword: "const",
|
|
3378
3379
|
$data: !0,
|
|
@@ -3385,9 +3386,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3385
3386
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
3386
3387
|
}
|
|
3387
3388
|
};
|
|
3388
|
-
})),
|
|
3389
|
+
})), Ce = /* @__PURE__ */ g(((e) => {
|
|
3389
3390
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3390
|
-
var t =
|
|
3391
|
+
var t = k(), n = A(), r = be();
|
|
3391
3392
|
e.default = {
|
|
3392
3393
|
keyword: "enum",
|
|
3393
3394
|
schemaType: "array",
|
|
@@ -3417,9 +3418,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3417
3418
|
}
|
|
3418
3419
|
}
|
|
3419
3420
|
};
|
|
3420
|
-
})),
|
|
3421
|
+
})), we = /* @__PURE__ */ g(((e) => {
|
|
3421
3422
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3422
|
-
var t =
|
|
3423
|
+
var t = fe(), n = pe(), r = he(), i = ge(), a = _e(), o = ve(), s = ye(), c = xe(), l = Se(), u = Ce();
|
|
3423
3424
|
e.default = [
|
|
3424
3425
|
t.default,
|
|
3425
3426
|
n.default,
|
|
@@ -3440,9 +3441,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3440
3441
|
l.default,
|
|
3441
3442
|
u.default
|
|
3442
3443
|
];
|
|
3443
|
-
})),
|
|
3444
|
+
})), Te = /* @__PURE__ */ g(((e) => {
|
|
3444
3445
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
3445
|
-
var t =
|
|
3446
|
+
var t = k(), n = A(), r = {
|
|
3446
3447
|
keyword: "additionalItems",
|
|
3447
3448
|
type: "array",
|
|
3448
3449
|
schemaType: ["boolean", "object"],
|
|
@@ -3480,9 +3481,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3480
3481
|
}
|
|
3481
3482
|
}
|
|
3482
3483
|
e.validateAdditionalItems = i, e.default = r;
|
|
3483
|
-
})),
|
|
3484
|
+
})), Ee = /* @__PURE__ */ g(((e) => {
|
|
3484
3485
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
3485
|
-
var t =
|
|
3486
|
+
var t = k(), n = A(), r = L(), i = {
|
|
3486
3487
|
keyword: "items",
|
|
3487
3488
|
type: "array",
|
|
3488
3489
|
schemaType: [
|
|
@@ -3517,9 +3518,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3517
3518
|
}
|
|
3518
3519
|
}
|
|
3519
3520
|
e.validateTuple = a, e.default = i;
|
|
3520
|
-
})),
|
|
3521
|
+
})), De = /* @__PURE__ */ g(((e) => {
|
|
3521
3522
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3522
|
-
var t =
|
|
3523
|
+
var t = Ee();
|
|
3523
3524
|
e.default = {
|
|
3524
3525
|
keyword: "prefixItems",
|
|
3525
3526
|
type: "array",
|
|
@@ -3527,9 +3528,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3527
3528
|
before: "uniqueItems",
|
|
3528
3529
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
3529
3530
|
};
|
|
3530
|
-
})),
|
|
3531
|
+
})), Oe = /* @__PURE__ */ g(((e) => {
|
|
3531
3532
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3532
|
-
var t =
|
|
3533
|
+
var t = k(), n = A(), r = L(), i = Te();
|
|
3533
3534
|
e.default = {
|
|
3534
3535
|
keyword: "items",
|
|
3535
3536
|
type: "array",
|
|
@@ -3544,9 +3545,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3544
3545
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
3545
3546
|
}
|
|
3546
3547
|
};
|
|
3547
|
-
})),
|
|
3548
|
+
})), ke = /* @__PURE__ */ g(((e) => {
|
|
3548
3549
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3549
|
-
var t =
|
|
3550
|
+
var t = k(), n = A();
|
|
3550
3551
|
e.default = {
|
|
3551
3552
|
keyword: "contains",
|
|
3552
3553
|
type: "array",
|
|
@@ -3599,9 +3600,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3599
3600
|
}
|
|
3600
3601
|
}
|
|
3601
3602
|
};
|
|
3602
|
-
})),
|
|
3603
|
+
})), Ae = /* @__PURE__ */ g(((e) => {
|
|
3603
3604
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
3604
|
-
var t =
|
|
3605
|
+
var t = k(), n = A(), r = L();
|
|
3605
3606
|
e.error = {
|
|
3606
3607
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
3607
3608
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -3660,9 +3661,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3660
3661
|
}, () => i.var(c, !0)), e.ok(c));
|
|
3661
3662
|
}
|
|
3662
3663
|
e.validateSchemaDeps = s, e.default = i;
|
|
3663
|
-
})),
|
|
3664
|
+
})), je = /* @__PURE__ */ g(((e) => {
|
|
3664
3665
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3665
|
-
var t =
|
|
3666
|
+
var t = k(), n = A();
|
|
3666
3667
|
e.default = {
|
|
3667
3668
|
keyword: "propertyNames",
|
|
3668
3669
|
type: "object",
|
|
@@ -3688,9 +3689,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3688
3689
|
}), e.ok(s);
|
|
3689
3690
|
}
|
|
3690
3691
|
};
|
|
3691
|
-
})),
|
|
3692
|
+
})), Me = /* @__PURE__ */ g(((e) => {
|
|
3692
3693
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3693
|
-
var t =
|
|
3694
|
+
var t = L(), n = k(), r = j(), i = A();
|
|
3694
3695
|
e.default = {
|
|
3695
3696
|
keyword: "additionalProperties",
|
|
3696
3697
|
type: ["object"],
|
|
@@ -3755,9 +3756,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3755
3756
|
}
|
|
3756
3757
|
}
|
|
3757
3758
|
};
|
|
3758
|
-
})),
|
|
3759
|
+
})), Ne = /* @__PURE__ */ g(((e) => {
|
|
3759
3760
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3760
|
-
var t =
|
|
3761
|
+
var t = V(), n = L(), r = A(), i = Me();
|
|
3761
3762
|
e.default = {
|
|
3762
3763
|
keyword: "properties",
|
|
3763
3764
|
type: "object",
|
|
@@ -3784,9 +3785,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3784
3785
|
}
|
|
3785
3786
|
}
|
|
3786
3787
|
};
|
|
3787
|
-
})),
|
|
3788
|
+
})), Pe = /* @__PURE__ */ g(((e) => {
|
|
3788
3789
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3789
|
-
var t =
|
|
3790
|
+
var t = L(), n = k(), r = A(), i = A();
|
|
3790
3791
|
e.default = {
|
|
3791
3792
|
keyword: "patternProperties",
|
|
3792
3793
|
type: "object",
|
|
@@ -3819,9 +3820,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3819
3820
|
}
|
|
3820
3821
|
}
|
|
3821
3822
|
};
|
|
3822
|
-
})),
|
|
3823
|
+
})), Fe = /* @__PURE__ */ g(((e) => {
|
|
3823
3824
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3824
|
-
var t =
|
|
3825
|
+
var t = A();
|
|
3825
3826
|
e.default = {
|
|
3826
3827
|
keyword: "not",
|
|
3827
3828
|
schemaType: ["object", "boolean"],
|
|
@@ -3842,17 +3843,17 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3842
3843
|
},
|
|
3843
3844
|
error: { message: "must NOT be valid" }
|
|
3844
3845
|
};
|
|
3845
|
-
})),
|
|
3846
|
+
})), Ie = /* @__PURE__ */ g(((e) => {
|
|
3846
3847
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
3847
3848
|
keyword: "anyOf",
|
|
3848
3849
|
schemaType: "array",
|
|
3849
3850
|
trackErrors: !0,
|
|
3850
|
-
code:
|
|
3851
|
+
code: L().validateUnion,
|
|
3851
3852
|
error: { message: "must match a schema in anyOf" }
|
|
3852
3853
|
};
|
|
3853
|
-
})),
|
|
3854
|
+
})), Le = /* @__PURE__ */ g(((e) => {
|
|
3854
3855
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3855
|
-
var t =
|
|
3856
|
+
var t = k(), n = A();
|
|
3856
3857
|
e.default = {
|
|
3857
3858
|
keyword: "oneOf",
|
|
3858
3859
|
schemaType: "array",
|
|
@@ -3882,9 +3883,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3882
3883
|
}
|
|
3883
3884
|
}
|
|
3884
3885
|
};
|
|
3885
|
-
})),
|
|
3886
|
+
})), Re = /* @__PURE__ */ g(((e) => {
|
|
3886
3887
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3887
|
-
var t =
|
|
3888
|
+
var t = A();
|
|
3888
3889
|
e.default = {
|
|
3889
3890
|
keyword: "allOf",
|
|
3890
3891
|
schemaType: "array",
|
|
@@ -3903,9 +3904,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3903
3904
|
});
|
|
3904
3905
|
}
|
|
3905
3906
|
};
|
|
3906
|
-
})),
|
|
3907
|
+
})), ze = /* @__PURE__ */ g(((e) => {
|
|
3907
3908
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3908
|
-
var t =
|
|
3909
|
+
var t = k(), n = A(), r = {
|
|
3909
3910
|
keyword: "if",
|
|
3910
3911
|
schemaType: ["object", "boolean"],
|
|
3911
3912
|
trackErrors: !0,
|
|
@@ -3946,9 +3947,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3946
3947
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
3947
3948
|
}
|
|
3948
3949
|
e.default = r;
|
|
3949
|
-
})),
|
|
3950
|
+
})), Be = /* @__PURE__ */ g(((e) => {
|
|
3950
3951
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3951
|
-
var t =
|
|
3952
|
+
var t = A();
|
|
3952
3953
|
e.default = {
|
|
3953
3954
|
keyword: ["then", "else"],
|
|
3954
3955
|
schemaType: ["object", "boolean"],
|
|
@@ -3956,9 +3957,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3956
3957
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
3957
3958
|
}
|
|
3958
3959
|
};
|
|
3959
|
-
})),
|
|
3960
|
+
})), Ve = /* @__PURE__ */ g(((e) => {
|
|
3960
3961
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3961
|
-
var t =
|
|
3962
|
+
var t = Te(), n = De(), r = Ee(), i = Oe(), a = ke(), o = Ae(), s = je(), c = Me(), l = Ne(), u = Pe(), d = Fe(), f = Ie(), p = Le(), m = Re(), h = ze(), g = Be();
|
|
3962
3963
|
function _(e = !1) {
|
|
3963
3964
|
let _ = [
|
|
3964
3965
|
d.default,
|
|
@@ -3976,9 +3977,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
3976
3977
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
3977
3978
|
}
|
|
3978
3979
|
e.default = _;
|
|
3979
|
-
})),
|
|
3980
|
+
})), He = /* @__PURE__ */ g(((e) => {
|
|
3980
3981
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicAnchor = void 0;
|
|
3981
|
-
var t =
|
|
3982
|
+
var t = k(), n = j(), r = W(), i = ue(), a = {
|
|
3982
3983
|
keyword: "$dynamicAnchor",
|
|
3983
3984
|
schemaType: "string",
|
|
3984
3985
|
code: (e) => o(e, e.schema)
|
|
@@ -4002,9 +4003,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4002
4003
|
return r.compileSchema.call(a, d), (0, i.getValidate)(e, d);
|
|
4003
4004
|
}
|
|
4004
4005
|
e.default = a;
|
|
4005
|
-
})),
|
|
4006
|
+
})), Ue = /* @__PURE__ */ g(((e) => {
|
|
4006
4007
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicRef = void 0;
|
|
4007
|
-
var t =
|
|
4008
|
+
var t = k(), n = j(), r = ue(), i = {
|
|
4008
4009
|
keyword: "$dynamicRef",
|
|
4009
4010
|
schemaType: "string",
|
|
4010
4011
|
code: (e) => a(e, e.schema)
|
|
@@ -4031,9 +4032,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4031
4032
|
}
|
|
4032
4033
|
}
|
|
4033
4034
|
e.dynamicRef = a, e.default = i;
|
|
4034
|
-
})),
|
|
4035
|
+
})), We = /* @__PURE__ */ g(((e) => {
|
|
4035
4036
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4036
|
-
var t =
|
|
4037
|
+
var t = He(), n = A();
|
|
4037
4038
|
e.default = {
|
|
4038
4039
|
keyword: "$recursiveAnchor",
|
|
4039
4040
|
schemaType: "boolean",
|
|
@@ -4041,26 +4042,26 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4041
4042
|
e.schema ? (0, t.dynamicAnchor)(e, "") : (0, n.checkStrictMode)(e.it, "$recursiveAnchor: false is ignored");
|
|
4042
4043
|
}
|
|
4043
4044
|
};
|
|
4044
|
-
})),
|
|
4045
|
+
})), Ge = /* @__PURE__ */ g(((e) => {
|
|
4045
4046
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4046
|
-
var t =
|
|
4047
|
+
var t = Ue();
|
|
4047
4048
|
e.default = {
|
|
4048
4049
|
keyword: "$recursiveRef",
|
|
4049
4050
|
schemaType: "string",
|
|
4050
4051
|
code: (e) => (0, t.dynamicRef)(e, e.schema)
|
|
4051
4052
|
};
|
|
4052
|
-
})),
|
|
4053
|
+
})), Ke = /* @__PURE__ */ g(((e) => {
|
|
4053
4054
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4054
|
-
var t =
|
|
4055
|
+
var t = He(), n = Ue(), r = We(), i = Ge();
|
|
4055
4056
|
e.default = [
|
|
4056
4057
|
t.default,
|
|
4057
4058
|
n.default,
|
|
4058
4059
|
r.default,
|
|
4059
4060
|
i.default
|
|
4060
4061
|
];
|
|
4061
|
-
})),
|
|
4062
|
+
})), qe = /* @__PURE__ */ g(((e) => {
|
|
4062
4063
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4063
|
-
var t =
|
|
4064
|
+
var t = Ae();
|
|
4064
4065
|
e.default = {
|
|
4065
4066
|
keyword: "dependentRequired",
|
|
4066
4067
|
type: "object",
|
|
@@ -4068,18 +4069,18 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4068
4069
|
error: t.error,
|
|
4069
4070
|
code: (e) => (0, t.validatePropertyDeps)(e)
|
|
4070
4071
|
};
|
|
4071
|
-
})),
|
|
4072
|
+
})), Je = /* @__PURE__ */ g(((e) => {
|
|
4072
4073
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4073
|
-
var t =
|
|
4074
|
+
var t = Ae();
|
|
4074
4075
|
e.default = {
|
|
4075
4076
|
keyword: "dependentSchemas",
|
|
4076
4077
|
type: "object",
|
|
4077
4078
|
schemaType: "object",
|
|
4078
4079
|
code: (e) => (0, t.validateSchemaDeps)(e)
|
|
4079
4080
|
};
|
|
4080
|
-
})),
|
|
4081
|
+
})), Ye = /* @__PURE__ */ g(((e) => {
|
|
4081
4082
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4082
|
-
var t =
|
|
4083
|
+
var t = A();
|
|
4083
4084
|
e.default = {
|
|
4084
4085
|
keyword: ["maxContains", "minContains"],
|
|
4085
4086
|
type: "array",
|
|
@@ -4088,17 +4089,17 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4088
4089
|
n.contains === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "contains" is ignored`);
|
|
4089
4090
|
}
|
|
4090
4091
|
};
|
|
4091
|
-
})),
|
|
4092
|
+
})), Xe = /* @__PURE__ */ g(((e) => {
|
|
4092
4093
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4093
|
-
var t =
|
|
4094
|
+
var t = qe(), n = Je(), r = Ye();
|
|
4094
4095
|
e.default = [
|
|
4095
4096
|
t.default,
|
|
4096
4097
|
n.default,
|
|
4097
4098
|
r.default
|
|
4098
4099
|
];
|
|
4099
|
-
})),
|
|
4100
|
+
})), Ze = /* @__PURE__ */ g(((e) => {
|
|
4100
4101
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4101
|
-
var t =
|
|
4102
|
+
var t = k(), n = A(), r = j();
|
|
4102
4103
|
e.default = {
|
|
4103
4104
|
keyword: "unevaluatedProperties",
|
|
4104
4105
|
type: "object",
|
|
@@ -4138,9 +4139,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4138
4139
|
}
|
|
4139
4140
|
}
|
|
4140
4141
|
};
|
|
4141
|
-
})),
|
|
4142
|
+
})), Qe = /* @__PURE__ */ g(((e) => {
|
|
4142
4143
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4143
|
-
var t =
|
|
4144
|
+
var t = k(), n = A();
|
|
4144
4145
|
e.default = {
|
|
4145
4146
|
keyword: "unevaluatedItems",
|
|
4146
4147
|
type: "array",
|
|
@@ -4170,13 +4171,13 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4170
4171
|
}
|
|
4171
4172
|
}
|
|
4172
4173
|
};
|
|
4173
|
-
})),
|
|
4174
|
+
})), $e = /* @__PURE__ */ g(((e) => {
|
|
4174
4175
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4175
|
-
var t =
|
|
4176
|
+
var t = Ze(), n = Qe();
|
|
4176
4177
|
e.default = [t.default, n.default];
|
|
4177
|
-
})),
|
|
4178
|
+
})), et = /* @__PURE__ */ g(((e) => {
|
|
4178
4179
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4179
|
-
var t =
|
|
4180
|
+
var t = k();
|
|
4180
4181
|
e.default = {
|
|
4181
4182
|
keyword: "format",
|
|
4182
4183
|
type: ["number", "string"],
|
|
@@ -4249,9 +4250,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4249
4250
|
}
|
|
4250
4251
|
}
|
|
4251
4252
|
};
|
|
4252
|
-
})),
|
|
4253
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
4254
|
-
})),
|
|
4253
|
+
})), tt = /* @__PURE__ */ g(((e) => {
|
|
4254
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [et().default];
|
|
4255
|
+
})), nt = /* @__PURE__ */ g(((e) => {
|
|
4255
4256
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
4256
4257
|
"title",
|
|
4257
4258
|
"description",
|
|
@@ -4265,9 +4266,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4265
4266
|
"contentEncoding",
|
|
4266
4267
|
"contentSchema"
|
|
4267
4268
|
];
|
|
4268
|
-
})),
|
|
4269
|
+
})), rt = /* @__PURE__ */ g(((e) => {
|
|
4269
4270
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4270
|
-
var t =
|
|
4271
|
+
var t = de(), n = we(), r = Ve(), i = Ke(), a = Xe(), o = $e(), s = tt(), c = nt();
|
|
4271
4272
|
e.default = [
|
|
4272
4273
|
i.default,
|
|
4273
4274
|
t.default,
|
|
@@ -4279,15 +4280,15 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4279
4280
|
a.default,
|
|
4280
4281
|
o.default
|
|
4281
4282
|
];
|
|
4282
|
-
})),
|
|
4283
|
+
})), it = /* @__PURE__ */ g(((e) => {
|
|
4283
4284
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
4284
4285
|
var t;
|
|
4285
4286
|
(function(e) {
|
|
4286
4287
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
4287
4288
|
})(t || (e.DiscrError = t = {}));
|
|
4288
|
-
})),
|
|
4289
|
+
})), at = /* @__PURE__ */ g(((e) => {
|
|
4289
4290
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4290
|
-
var t =
|
|
4291
|
+
var t = k(), n = it(), r = W(), i = U(), a = A();
|
|
4291
4292
|
e.default = {
|
|
4292
4293
|
keyword: "discriminator",
|
|
4293
4294
|
type: "object",
|
|
@@ -4355,19 +4356,19 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4355
4356
|
}
|
|
4356
4357
|
}
|
|
4357
4358
|
};
|
|
4358
|
-
})),
|
|
4359
|
-
$comment: () =>
|
|
4360
|
-
$dynamicAnchor: () =>
|
|
4361
|
-
$id: () =>
|
|
4362
|
-
$schema: () =>
|
|
4363
|
-
$vocabulary: () =>
|
|
4364
|
-
allOf: () =>
|
|
4365
|
-
default: () =>
|
|
4366
|
-
properties: () =>
|
|
4367
|
-
title: () =>
|
|
4368
|
-
type: () =>
|
|
4369
|
-
}),
|
|
4370
|
-
|
|
4359
|
+
})), ot = /* @__PURE__ */ _({
|
|
4360
|
+
$comment: () => mt,
|
|
4361
|
+
$dynamicAnchor: () => ut,
|
|
4362
|
+
$id: () => ct,
|
|
4363
|
+
$schema: () => st,
|
|
4364
|
+
$vocabulary: () => lt,
|
|
4365
|
+
allOf: () => ft,
|
|
4366
|
+
default: () => gt,
|
|
4367
|
+
properties: () => ht,
|
|
4368
|
+
title: () => dt,
|
|
4369
|
+
type: () => pt
|
|
4370
|
+
}), st, ct, lt, ut, dt, ft, pt, mt, ht, gt, _t = h((() => {
|
|
4371
|
+
st = "https://json-schema.org/draft/2020-12/schema", ct = "https://json-schema.org/draft/2020-12/schema", lt = {
|
|
4371
4372
|
"https://json-schema.org/draft/2020-12/vocab/core": !0,
|
|
4372
4373
|
"https://json-schema.org/draft/2020-12/vocab/applicator": !0,
|
|
4373
4374
|
"https://json-schema.org/draft/2020-12/vocab/unevaluated": !0,
|
|
@@ -4375,7 +4376,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4375
4376
|
"https://json-schema.org/draft/2020-12/vocab/meta-data": !0,
|
|
4376
4377
|
"https://json-schema.org/draft/2020-12/vocab/format-annotation": !0,
|
|
4377
4378
|
"https://json-schema.org/draft/2020-12/vocab/content": !0
|
|
4378
|
-
},
|
|
4379
|
+
}, ut = "meta", dt = "Core and Validation specifications meta-schema", ft = [
|
|
4379
4380
|
{ $ref: "meta/core" },
|
|
4380
4381
|
{ $ref: "meta/applicator" },
|
|
4381
4382
|
{ $ref: "meta/unevaluated" },
|
|
@@ -4383,7 +4384,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4383
4384
|
{ $ref: "meta/meta-data" },
|
|
4384
4385
|
{ $ref: "meta/format-annotation" },
|
|
4385
4386
|
{ $ref: "meta/content" }
|
|
4386
|
-
],
|
|
4387
|
+
], pt = ["object", "boolean"], mt = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", ht = {
|
|
4387
4388
|
definitions: {
|
|
4388
4389
|
$comment: "\"definitions\" has been replaced by \"$defs\".",
|
|
4389
4390
|
type: "object",
|
|
@@ -4408,29 +4409,29 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4408
4409
|
$ref: "meta/core#/$defs/uriReferenceString",
|
|
4409
4410
|
deprecated: !0
|
|
4410
4411
|
}
|
|
4411
|
-
},
|
|
4412
|
-
$schema:
|
|
4413
|
-
$id:
|
|
4414
|
-
$vocabulary:
|
|
4415
|
-
$dynamicAnchor:
|
|
4416
|
-
title:
|
|
4417
|
-
allOf:
|
|
4418
|
-
type:
|
|
4419
|
-
$comment:
|
|
4420
|
-
properties:
|
|
4412
|
+
}, gt = {
|
|
4413
|
+
$schema: st,
|
|
4414
|
+
$id: ct,
|
|
4415
|
+
$vocabulary: lt,
|
|
4416
|
+
$dynamicAnchor: ut,
|
|
4417
|
+
title: dt,
|
|
4418
|
+
allOf: ft,
|
|
4419
|
+
type: pt,
|
|
4420
|
+
$comment: mt,
|
|
4421
|
+
properties: ht
|
|
4421
4422
|
};
|
|
4422
|
-
})),
|
|
4423
|
-
$defs: () =>
|
|
4424
|
-
$dynamicAnchor: () =>
|
|
4425
|
-
$id: () =>
|
|
4426
|
-
$schema: () =>
|
|
4427
|
-
$vocabulary: () =>
|
|
4428
|
-
default: () =>
|
|
4429
|
-
properties: () =>
|
|
4430
|
-
title: () =>
|
|
4431
|
-
type: () =>
|
|
4432
|
-
}),
|
|
4433
|
-
|
|
4423
|
+
})), vt = /* @__PURE__ */ _({
|
|
4424
|
+
$defs: () => Et,
|
|
4425
|
+
$dynamicAnchor: () => St,
|
|
4426
|
+
$id: () => bt,
|
|
4427
|
+
$schema: () => yt,
|
|
4428
|
+
$vocabulary: () => xt,
|
|
4429
|
+
default: () => Dt,
|
|
4430
|
+
properties: () => Tt,
|
|
4431
|
+
title: () => Ct,
|
|
4432
|
+
type: () => wt
|
|
4433
|
+
}), yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot = h((() => {
|
|
4434
|
+
yt = "https://json-schema.org/draft/2020-12/schema", bt = "https://json-schema.org/draft/2020-12/meta/applicator", xt = { "https://json-schema.org/draft/2020-12/vocab/applicator": !0 }, St = "meta", Ct = "Applicator vocabulary meta-schema", wt = ["object", "boolean"], Tt = {
|
|
4434
4435
|
prefixItems: { $ref: "#/$defs/schemaArray" },
|
|
4435
4436
|
items: { $dynamicRef: "#meta" },
|
|
4436
4437
|
contains: { $dynamicRef: "#meta" },
|
|
@@ -4459,77 +4460,77 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4459
4460
|
anyOf: { $ref: "#/$defs/schemaArray" },
|
|
4460
4461
|
oneOf: { $ref: "#/$defs/schemaArray" },
|
|
4461
4462
|
not: { $dynamicRef: "#meta" }
|
|
4462
|
-
},
|
|
4463
|
+
}, Et = { schemaArray: {
|
|
4463
4464
|
type: "array",
|
|
4464
4465
|
minItems: 1,
|
|
4465
4466
|
items: { $dynamicRef: "#meta" }
|
|
4466
|
-
} },
|
|
4467
|
-
$schema:
|
|
4468
|
-
$id:
|
|
4469
|
-
$vocabulary:
|
|
4470
|
-
$dynamicAnchor:
|
|
4471
|
-
title:
|
|
4472
|
-
type:
|
|
4473
|
-
properties:
|
|
4474
|
-
$defs:
|
|
4467
|
+
} }, Dt = {
|
|
4468
|
+
$schema: yt,
|
|
4469
|
+
$id: bt,
|
|
4470
|
+
$vocabulary: xt,
|
|
4471
|
+
$dynamicAnchor: St,
|
|
4472
|
+
title: Ct,
|
|
4473
|
+
type: wt,
|
|
4474
|
+
properties: Tt,
|
|
4475
|
+
$defs: Et
|
|
4475
4476
|
};
|
|
4476
|
-
})),
|
|
4477
|
-
$dynamicAnchor: () =>
|
|
4478
|
-
$id: () =>
|
|
4479
|
-
$schema: () =>
|
|
4480
|
-
$vocabulary: () =>
|
|
4481
|
-
default: () =>
|
|
4482
|
-
properties: () =>
|
|
4483
|
-
title: () =>
|
|
4484
|
-
type: () =>
|
|
4485
|
-
}),
|
|
4486
|
-
|
|
4477
|
+
})), kt = /* @__PURE__ */ _({
|
|
4478
|
+
$dynamicAnchor: () => Nt,
|
|
4479
|
+
$id: () => jt,
|
|
4480
|
+
$schema: () => At,
|
|
4481
|
+
$vocabulary: () => Mt,
|
|
4482
|
+
default: () => Lt,
|
|
4483
|
+
properties: () => It,
|
|
4484
|
+
title: () => Pt,
|
|
4485
|
+
type: () => Ft
|
|
4486
|
+
}), At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt = h((() => {
|
|
4487
|
+
At = "https://json-schema.org/draft/2020-12/schema", jt = "https://json-schema.org/draft/2020-12/meta/unevaluated", Mt = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, Nt = "meta", Pt = "Unevaluated applicator vocabulary meta-schema", Ft = ["object", "boolean"], It = {
|
|
4487
4488
|
unevaluatedItems: { $dynamicRef: "#meta" },
|
|
4488
4489
|
unevaluatedProperties: { $dynamicRef: "#meta" }
|
|
4489
|
-
},
|
|
4490
|
-
$schema:
|
|
4491
|
-
$id:
|
|
4492
|
-
$vocabulary:
|
|
4493
|
-
$dynamicAnchor:
|
|
4494
|
-
title:
|
|
4495
|
-
type:
|
|
4496
|
-
properties:
|
|
4490
|
+
}, Lt = {
|
|
4491
|
+
$schema: At,
|
|
4492
|
+
$id: jt,
|
|
4493
|
+
$vocabulary: Mt,
|
|
4494
|
+
$dynamicAnchor: Nt,
|
|
4495
|
+
title: Pt,
|
|
4496
|
+
type: Ft,
|
|
4497
|
+
properties: It
|
|
4497
4498
|
};
|
|
4498
|
-
})),
|
|
4499
|
-
$dynamicAnchor: () =>
|
|
4500
|
-
$id: () =>
|
|
4501
|
-
$schema: () =>
|
|
4502
|
-
$vocabulary: () =>
|
|
4503
|
-
default: () =>
|
|
4504
|
-
properties: () =>
|
|
4505
|
-
title: () =>
|
|
4506
|
-
type: () =>
|
|
4507
|
-
}),
|
|
4508
|
-
|
|
4499
|
+
})), zt = /* @__PURE__ */ _({
|
|
4500
|
+
$dynamicAnchor: () => Ut,
|
|
4501
|
+
$id: () => Vt,
|
|
4502
|
+
$schema: () => Bt,
|
|
4503
|
+
$vocabulary: () => Ht,
|
|
4504
|
+
default: () => qt,
|
|
4505
|
+
properties: () => Kt,
|
|
4506
|
+
title: () => Wt,
|
|
4507
|
+
type: () => Gt
|
|
4508
|
+
}), Bt, Vt, Ht, Ut, Wt, Gt, Kt, qt, Jt = h((() => {
|
|
4509
|
+
Bt = "https://json-schema.org/draft/2020-12/schema", Vt = "https://json-schema.org/draft/2020-12/meta/content", Ht = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, Ut = "meta", Wt = "Content vocabulary meta-schema", Gt = ["object", "boolean"], Kt = {
|
|
4509
4510
|
contentEncoding: { type: "string" },
|
|
4510
4511
|
contentMediaType: { type: "string" },
|
|
4511
4512
|
contentSchema: { $dynamicRef: "#meta" }
|
|
4512
|
-
},
|
|
4513
|
-
$schema:
|
|
4514
|
-
$id:
|
|
4515
|
-
$vocabulary:
|
|
4516
|
-
$dynamicAnchor:
|
|
4517
|
-
title:
|
|
4518
|
-
type:
|
|
4519
|
-
properties:
|
|
4513
|
+
}, qt = {
|
|
4514
|
+
$schema: Bt,
|
|
4515
|
+
$id: Vt,
|
|
4516
|
+
$vocabulary: Ht,
|
|
4517
|
+
$dynamicAnchor: Ut,
|
|
4518
|
+
title: Wt,
|
|
4519
|
+
type: Gt,
|
|
4520
|
+
properties: Kt
|
|
4520
4521
|
};
|
|
4521
|
-
})),
|
|
4522
|
-
$defs: () =>
|
|
4523
|
-
$dynamicAnchor: () =>
|
|
4524
|
-
$id: () =>
|
|
4525
|
-
$schema: () =>
|
|
4526
|
-
$vocabulary: () =>
|
|
4527
|
-
default: () =>
|
|
4528
|
-
properties: () =>
|
|
4529
|
-
title: () =>
|
|
4530
|
-
type: () =>
|
|
4531
|
-
}),
|
|
4532
|
-
|
|
4522
|
+
})), Yt = /* @__PURE__ */ _({
|
|
4523
|
+
$defs: () => rn,
|
|
4524
|
+
$dynamicAnchor: () => $t,
|
|
4525
|
+
$id: () => Zt,
|
|
4526
|
+
$schema: () => Xt,
|
|
4527
|
+
$vocabulary: () => Qt,
|
|
4528
|
+
default: () => an,
|
|
4529
|
+
properties: () => nn,
|
|
4530
|
+
title: () => en,
|
|
4531
|
+
type: () => tn
|
|
4532
|
+
}), Xt, Zt, Qt, $t, en, tn, nn, rn, an, on = h((() => {
|
|
4533
|
+
Xt = "https://json-schema.org/draft/2020-12/schema", Zt = "https://json-schema.org/draft/2020-12/meta/core", Qt = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, $t = "meta", en = "Core vocabulary meta-schema", tn = ["object", "boolean"], nn = {
|
|
4533
4534
|
$id: {
|
|
4534
4535
|
$ref: "#/$defs/uriReferenceString",
|
|
4535
4536
|
$comment: "Non-empty fragments not allowed.",
|
|
@@ -4550,7 +4551,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4550
4551
|
type: "object",
|
|
4551
4552
|
additionalProperties: { $dynamicRef: "#meta" }
|
|
4552
4553
|
}
|
|
4553
|
-
},
|
|
4554
|
+
}, rn = {
|
|
4554
4555
|
anchorString: {
|
|
4555
4556
|
type: "string",
|
|
4556
4557
|
pattern: "^[A-Za-z_][-A-Za-z0-9._]*$"
|
|
@@ -4563,46 +4564,46 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4563
4564
|
type: "string",
|
|
4564
4565
|
format: "uri-reference"
|
|
4565
4566
|
}
|
|
4566
|
-
},
|
|
4567
|
-
$schema:
|
|
4568
|
-
$id:
|
|
4569
|
-
$vocabulary:
|
|
4570
|
-
$dynamicAnchor:
|
|
4571
|
-
title:
|
|
4572
|
-
type:
|
|
4573
|
-
properties:
|
|
4574
|
-
$defs:
|
|
4567
|
+
}, an = {
|
|
4568
|
+
$schema: Xt,
|
|
4569
|
+
$id: Zt,
|
|
4570
|
+
$vocabulary: Qt,
|
|
4571
|
+
$dynamicAnchor: $t,
|
|
4572
|
+
title: en,
|
|
4573
|
+
type: tn,
|
|
4574
|
+
properties: nn,
|
|
4575
|
+
$defs: rn
|
|
4575
4576
|
};
|
|
4576
|
-
})),
|
|
4577
|
-
$dynamicAnchor: () =>
|
|
4578
|
-
$id: () =>
|
|
4579
|
-
$schema: () =>
|
|
4580
|
-
$vocabulary: () =>
|
|
4581
|
-
default: () =>
|
|
4582
|
-
properties: () =>
|
|
4583
|
-
title: () =>
|
|
4584
|
-
type: () =>
|
|
4585
|
-
}),
|
|
4586
|
-
|
|
4587
|
-
$schema:
|
|
4588
|
-
$id:
|
|
4589
|
-
$vocabulary:
|
|
4590
|
-
$dynamicAnchor:
|
|
4591
|
-
title:
|
|
4592
|
-
type:
|
|
4593
|
-
properties:
|
|
4577
|
+
})), sn = /* @__PURE__ */ _({
|
|
4578
|
+
$dynamicAnchor: () => dn,
|
|
4579
|
+
$id: () => ln,
|
|
4580
|
+
$schema: () => cn,
|
|
4581
|
+
$vocabulary: () => un,
|
|
4582
|
+
default: () => hn,
|
|
4583
|
+
properties: () => mn,
|
|
4584
|
+
title: () => fn,
|
|
4585
|
+
type: () => pn
|
|
4586
|
+
}), cn, ln, un, dn, fn, pn, mn, hn, gn = h((() => {
|
|
4587
|
+
cn = "https://json-schema.org/draft/2020-12/schema", ln = "https://json-schema.org/draft/2020-12/meta/format-annotation", un = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, dn = "meta", fn = "Format vocabulary meta-schema for annotation results", pn = ["object", "boolean"], mn = { format: { type: "string" } }, hn = {
|
|
4588
|
+
$schema: cn,
|
|
4589
|
+
$id: ln,
|
|
4590
|
+
$vocabulary: un,
|
|
4591
|
+
$dynamicAnchor: dn,
|
|
4592
|
+
title: fn,
|
|
4593
|
+
type: pn,
|
|
4594
|
+
properties: mn
|
|
4594
4595
|
};
|
|
4595
|
-
})),
|
|
4596
|
-
$dynamicAnchor: () =>
|
|
4597
|
-
$id: () =>
|
|
4598
|
-
$schema: () =>
|
|
4599
|
-
$vocabulary: () =>
|
|
4600
|
-
default: () =>
|
|
4601
|
-
properties: () =>
|
|
4602
|
-
title: () =>
|
|
4603
|
-
type: () =>
|
|
4604
|
-
}),
|
|
4605
|
-
|
|
4596
|
+
})), _n = /* @__PURE__ */ _({
|
|
4597
|
+
$dynamicAnchor: () => xn,
|
|
4598
|
+
$id: () => yn,
|
|
4599
|
+
$schema: () => vn,
|
|
4600
|
+
$vocabulary: () => bn,
|
|
4601
|
+
default: () => Tn,
|
|
4602
|
+
properties: () => wn,
|
|
4603
|
+
title: () => Sn,
|
|
4604
|
+
type: () => Cn
|
|
4605
|
+
}), vn, yn, bn, xn, Sn, Cn, wn, Tn, En = h((() => {
|
|
4606
|
+
vn = "https://json-schema.org/draft/2020-12/schema", yn = "https://json-schema.org/draft/2020-12/meta/meta-data", bn = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, xn = "meta", Sn = "Meta-data vocabulary meta-schema", Cn = ["object", "boolean"], wn = {
|
|
4606
4607
|
title: { type: "string" },
|
|
4607
4608
|
description: { type: "string" },
|
|
4608
4609
|
default: !0,
|
|
@@ -4622,27 +4623,27 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4622
4623
|
type: "array",
|
|
4623
4624
|
items: !0
|
|
4624
4625
|
}
|
|
4625
|
-
},
|
|
4626
|
-
$schema:
|
|
4627
|
-
$id:
|
|
4628
|
-
$vocabulary:
|
|
4629
|
-
$dynamicAnchor:
|
|
4630
|
-
title:
|
|
4631
|
-
type:
|
|
4632
|
-
properties:
|
|
4626
|
+
}, Tn = {
|
|
4627
|
+
$schema: vn,
|
|
4628
|
+
$id: yn,
|
|
4629
|
+
$vocabulary: bn,
|
|
4630
|
+
$dynamicAnchor: xn,
|
|
4631
|
+
title: Sn,
|
|
4632
|
+
type: Cn,
|
|
4633
|
+
properties: wn
|
|
4633
4634
|
};
|
|
4634
|
-
})),
|
|
4635
|
-
$defs: () =>
|
|
4636
|
-
$dynamicAnchor: () =>
|
|
4637
|
-
$id: () =>
|
|
4638
|
-
$schema: () =>
|
|
4639
|
-
$vocabulary: () =>
|
|
4640
|
-
default: () =>
|
|
4641
|
-
properties: () =>
|
|
4642
|
-
title: () =>
|
|
4643
|
-
type: () =>
|
|
4644
|
-
}),
|
|
4645
|
-
|
|
4635
|
+
})), Dn = /* @__PURE__ */ _({
|
|
4636
|
+
$defs: () => Pn,
|
|
4637
|
+
$dynamicAnchor: () => An,
|
|
4638
|
+
$id: () => kn,
|
|
4639
|
+
$schema: () => On,
|
|
4640
|
+
$vocabulary: () => Q,
|
|
4641
|
+
default: () => Fn,
|
|
4642
|
+
properties: () => Nn,
|
|
4643
|
+
title: () => jn,
|
|
4644
|
+
type: () => Mn
|
|
4645
|
+
}), On, kn, Q, An, jn, Mn, Nn, Pn, Fn, In = h((() => {
|
|
4646
|
+
On = "https://json-schema.org/draft/2020-12/schema", kn = "https://json-schema.org/draft/2020-12/meta/validation", Q = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, An = "meta", jn = "Validation vocabulary meta-schema", Mn = ["object", "boolean"], Nn = {
|
|
4646
4647
|
type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, {
|
|
4647
4648
|
type: "array",
|
|
4648
4649
|
items: { $ref: "#/$defs/simpleTypes" },
|
|
@@ -4686,7 +4687,7 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4686
4687
|
type: "object",
|
|
4687
4688
|
additionalProperties: { $ref: "#/$defs/stringArray" }
|
|
4688
4689
|
}
|
|
4689
|
-
},
|
|
4690
|
+
}, Pn = {
|
|
4690
4691
|
nonNegativeInteger: {
|
|
4691
4692
|
type: "integer",
|
|
4692
4693
|
minimum: 0
|
|
@@ -4710,19 +4711,19 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4710
4711
|
uniqueItems: !0,
|
|
4711
4712
|
default: []
|
|
4712
4713
|
}
|
|
4713
|
-
},
|
|
4714
|
-
$schema:
|
|
4715
|
-
$id:
|
|
4716
|
-
$vocabulary:
|
|
4717
|
-
$dynamicAnchor:
|
|
4718
|
-
title:
|
|
4719
|
-
type:
|
|
4720
|
-
properties:
|
|
4721
|
-
$defs:
|
|
4714
|
+
}, Fn = {
|
|
4715
|
+
$schema: On,
|
|
4716
|
+
$id: kn,
|
|
4717
|
+
$vocabulary: Q,
|
|
4718
|
+
$dynamicAnchor: An,
|
|
4719
|
+
title: jn,
|
|
4720
|
+
type: Mn,
|
|
4721
|
+
properties: Nn,
|
|
4722
|
+
$defs: Pn
|
|
4722
4723
|
};
|
|
4723
|
-
})),
|
|
4724
|
+
})), Ln = /* @__PURE__ */ g(((e) => {
|
|
4724
4725
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4725
|
-
var t = (
|
|
4726
|
+
var t = (_t(), y(ot).default), n = (Ot(), y(vt).default), r = (Rt(), y(kt).default), i = (Jt(), y(zt).default), a = (on(), y(Yt).default), o = (gn(), y(sn).default), s = (En(), y(_n).default), c = (In(), y(Dn).default), l = ["/properties"];
|
|
4726
4727
|
function u(e) {
|
|
4727
4728
|
return [
|
|
4728
4729
|
t,
|
|
@@ -4739,9 +4740,9 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4739
4740
|
}
|
|
4740
4741
|
}
|
|
4741
4742
|
e.default = u;
|
|
4742
|
-
})),
|
|
4743
|
+
})), Rn = /* @__PURE__ */ g(((e, t) => {
|
|
4743
4744
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv2020 = void 0;
|
|
4744
|
-
var n =
|
|
4745
|
+
var n = ce(), r = rt(), i = at(), a = Ln(), o = "https://json-schema.org/draft/2020-12/schema", s = class extends n.default {
|
|
4745
4746
|
constructor(e = {}) {
|
|
4746
4747
|
super({
|
|
4747
4748
|
...e,
|
|
@@ -4763,14 +4764,14 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4763
4764
|
}
|
|
4764
4765
|
};
|
|
4765
4766
|
e.Ajv2020 = s, t.exports = e = s, t.exports.Ajv2020 = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
4766
|
-
var c =
|
|
4767
|
+
var c = V();
|
|
4767
4768
|
Object.defineProperty(e, "KeywordCxt", {
|
|
4768
4769
|
enumerable: !0,
|
|
4769
4770
|
get: function() {
|
|
4770
4771
|
return c.KeywordCxt;
|
|
4771
4772
|
}
|
|
4772
4773
|
});
|
|
4773
|
-
var l =
|
|
4774
|
+
var l = k();
|
|
4774
4775
|
Object.defineProperty(e, "_", {
|
|
4775
4776
|
enumerable: !0,
|
|
4776
4777
|
get: function() {
|
|
@@ -4802,40 +4803,40 @@ var x = /* @__PURE__ */ u(((e) => {
|
|
|
4802
4803
|
return l.CodeGen;
|
|
4803
4804
|
}
|
|
4804
4805
|
});
|
|
4805
|
-
var u =
|
|
4806
|
+
var u = H();
|
|
4806
4807
|
Object.defineProperty(e, "ValidationError", {
|
|
4807
4808
|
enumerable: !0,
|
|
4808
4809
|
get: function() {
|
|
4809
4810
|
return u.default;
|
|
4810
4811
|
}
|
|
4811
4812
|
});
|
|
4812
|
-
var d =
|
|
4813
|
+
var d = U();
|
|
4813
4814
|
Object.defineProperty(e, "MissingRefError", {
|
|
4814
4815
|
enumerable: !0,
|
|
4815
4816
|
get: function() {
|
|
4816
4817
|
return d.default;
|
|
4817
4818
|
}
|
|
4818
4819
|
});
|
|
4819
|
-
}))
|
|
4820
|
-
function
|
|
4821
|
-
let t =
|
|
4820
|
+
})), zn = Rn(), Bn = /* @__PURE__ */ new Map();
|
|
4821
|
+
function Vn(e) {
|
|
4822
|
+
let t = Bn.get(e);
|
|
4822
4823
|
if (t) return t;
|
|
4823
|
-
let n = new
|
|
4824
|
+
let n = new zn.Ajv2020({
|
|
4824
4825
|
allErrors: !0,
|
|
4825
4826
|
strict: !1
|
|
4826
|
-
}).compile(
|
|
4827
|
-
return
|
|
4827
|
+
}).compile(C(e));
|
|
4828
|
+
return Bn.set(e, n), n;
|
|
4828
4829
|
}
|
|
4829
|
-
function
|
|
4830
|
+
function Hn(e) {
|
|
4830
4831
|
return (e ?? []).map((e) => `${e.instancePath === "" ? "<root>" : e.instancePath}: ${e.message ?? "invalid"}`);
|
|
4831
4832
|
}
|
|
4832
|
-
function
|
|
4833
|
-
let n =
|
|
4833
|
+
function Un(e, t) {
|
|
4834
|
+
let n = Vn(e);
|
|
4834
4835
|
if (n(t)) return {
|
|
4835
4836
|
ok: !0,
|
|
4836
4837
|
value: t
|
|
4837
4838
|
};
|
|
4838
|
-
let r =
|
|
4839
|
+
let r = Hn(n.errors);
|
|
4839
4840
|
return {
|
|
4840
4841
|
ok: !1,
|
|
4841
4842
|
error: {
|
|
@@ -4846,19 +4847,25 @@ function In(e, t) {
|
|
|
4846
4847
|
}
|
|
4847
4848
|
};
|
|
4848
4849
|
}
|
|
4849
|
-
function
|
|
4850
|
-
return
|
|
4850
|
+
function Wn(e) {
|
|
4851
|
+
return Un("coverage-v1.schema.json", e);
|
|
4852
|
+
}
|
|
4853
|
+
function Gn(e) {
|
|
4854
|
+
return Un("properties-v1.schema.json", e);
|
|
4855
|
+
}
|
|
4856
|
+
function Kn(e) {
|
|
4857
|
+
return Un("assurance-v1.schema.json", e);
|
|
4851
4858
|
}
|
|
4852
|
-
function
|
|
4853
|
-
return
|
|
4859
|
+
function qn(e) {
|
|
4860
|
+
return Xn(e, "coverage-v1.schema.json", Wn);
|
|
4854
4861
|
}
|
|
4855
|
-
function
|
|
4856
|
-
return
|
|
4862
|
+
function Jn(e) {
|
|
4863
|
+
return Xn(e, "properties-v1.schema.json", Gn);
|
|
4857
4864
|
}
|
|
4858
|
-
function
|
|
4859
|
-
return
|
|
4865
|
+
function Yn(e) {
|
|
4866
|
+
return Xn(e, "assurance-v1.schema.json", Kn);
|
|
4860
4867
|
}
|
|
4861
|
-
function
|
|
4868
|
+
function Xn(e, t, n) {
|
|
4862
4869
|
let r;
|
|
4863
4870
|
try {
|
|
4864
4871
|
r = JSON.parse(e);
|
|
@@ -4878,9 +4885,36 @@ function Vn(e, t, n) {
|
|
|
4878
4885
|
//#endregion
|
|
4879
4886
|
//#region src/quire/exec.ts
|
|
4880
4887
|
var $ = 67108864;
|
|
4881
|
-
function
|
|
4888
|
+
function Zn() {
|
|
4889
|
+
let e = process.env.QUOIN_QUIRE, t = e ? Qn(e) : $n("quire"), n = process.env.QUOIN_EXPECTED_QUIRE_SHA256;
|
|
4890
|
+
if (n) {
|
|
4891
|
+
if (!/^sha256:[0-9a-f]{64}$/.test(n)) throw Error("QUOIN_EXPECTED_QUIRE_SHA256 must be a full lowercase sha256 digest");
|
|
4892
|
+
let e = `sha256:${l("sha256").update(r(t)).digest("hex")}`;
|
|
4893
|
+
if (e !== n) throw Error(`quire executable digest mismatch: expected ${n}, observed ${e} at ${t}`);
|
|
4894
|
+
}
|
|
4895
|
+
return t;
|
|
4896
|
+
}
|
|
4897
|
+
function Qn(e) {
|
|
4898
|
+
if (!s(e)) throw Error(`QUOIN_QUIRE must be an absolute path, got ${e}`);
|
|
4899
|
+
try {
|
|
4900
|
+
return t(e, n.X_OK), i(e);
|
|
4901
|
+
} catch {
|
|
4902
|
+
throw Error(`QUOIN_QUIRE is not an executable file: ${e}`);
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4905
|
+
function $n(e) {
|
|
4906
|
+
let r = process.platform === "win32" ? (process.env.PATHEXT ?? ".EXE;.CMD;.BAT").split(";") : [""];
|
|
4907
|
+
for (let o of (process.env.PATH ?? "").split(a)) if (o) for (let a of r) {
|
|
4908
|
+
let r = c(o, `${e}${a}`);
|
|
4909
|
+
try {
|
|
4910
|
+
return t(r, n.X_OK), i(r);
|
|
4911
|
+
} catch {}
|
|
4912
|
+
}
|
|
4913
|
+
throw Object.assign(/* @__PURE__ */ Error(`${e} is not executable on PATH`), { code: "ENOENT" });
|
|
4914
|
+
}
|
|
4915
|
+
function er(e) {
|
|
4882
4916
|
try {
|
|
4883
|
-
return
|
|
4917
|
+
return u(Zn(), e, {
|
|
4884
4918
|
encoding: "utf8",
|
|
4885
4919
|
stdio: [
|
|
4886
4920
|
"ignore",
|
|
@@ -4896,10 +4930,10 @@ function Hn(e) {
|
|
|
4896
4930
|
throw Error(`quire ${e.join(" ")} exited ${n.status}` + (r ? `:\n${r}` : " with no diagnostic on stderr."));
|
|
4897
4931
|
}
|
|
4898
4932
|
}
|
|
4899
|
-
function
|
|
4933
|
+
function tr(e) {
|
|
4900
4934
|
try {
|
|
4901
4935
|
return {
|
|
4902
|
-
stdout:
|
|
4936
|
+
stdout: u(Zn(), e, {
|
|
4903
4937
|
encoding: "utf8",
|
|
4904
4938
|
stdio: [
|
|
4905
4939
|
"ignore",
|
|
@@ -4920,9 +4954,9 @@ function Un(e) {
|
|
|
4920
4954
|
};
|
|
4921
4955
|
}
|
|
4922
4956
|
}
|
|
4923
|
-
function
|
|
4957
|
+
function nr() {
|
|
4924
4958
|
try {
|
|
4925
|
-
return
|
|
4959
|
+
return u(Zn(), ["--version"], {
|
|
4926
4960
|
encoding: "utf8",
|
|
4927
4961
|
maxBuffer: $
|
|
4928
4962
|
});
|
|
@@ -4931,4 +4965,4 @@ function Wn() {
|
|
|
4931
4965
|
}
|
|
4932
4966
|
}
|
|
4933
4967
|
//#endregion
|
|
4934
|
-
export {
|
|
4968
|
+
export { qn as a, Rn as c, Yn as i, E as l, er as n, Jn as o, tr as r, Kn as s, nr as t };
|