@agent-ix/quoin 0.15.1 → 0.19.2
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 +15 -6
- package/dist/advisor/advise.d.ts +14 -1
- package/dist/advisor/advise.d.ts.map +1 -1
- package/dist/advisor/methods.d.ts +11 -1
- package/dist/advisor/methods.d.ts.map +1 -1
- package/dist/{advisor-D35K3_iI.js → advisor-a9axb4Jl.js} +21 -8
- package/dist/assurance/graph.d.ts +79 -0
- package/dist/assurance/graph.d.ts.map +1 -0
- package/dist/assurance/index.d.ts +9 -0
- package/dist/assurance/index.d.ts.map +1 -0
- package/dist/assurance/render.d.ts +3 -0
- package/dist/assurance/render.d.ts.map +1 -0
- package/dist/auditor/audit.d.ts +37 -5
- package/dist/auditor/audit.d.ts.map +1 -1
- package/dist/auditor/combinatorial.d.ts +53 -0
- package/dist/auditor/combinatorial.d.ts.map +1 -0
- package/dist/auditor/index.d.ts +1 -1
- package/dist/auditor/index.d.ts.map +1 -1
- package/dist/auditor-W2jFinr6.js +188 -0
- package/dist/{base-CtpwIg4M.js → base-BE20w0jY.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/combinatorial-Cq01XfhV.js +80 -0
- package/dist/commands/advise.d.ts +16 -0
- package/dist/commands/advise.d.ts.map +1 -0
- package/dist/commands/advise.js +164 -0
- package/dist/commands/assurance.d.ts +14 -0
- package/dist/commands/assurance.d.ts.map +1 -0
- package/dist/commands/assurance.js +179 -0
- 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/completeness.d.ts +16 -0
- package/dist/commands/completeness.d.ts.map +1 -0
- package/dist/commands/completeness.js +49 -0
- package/dist/commands/config/doctor.js +1 -1
- package/dist/commands/config/edit.js +1 -1
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/evidence/affirm.d.ts.map +1 -1
- package/dist/commands/evidence/affirm.js +36 -50
- package/dist/commands/evidence/audit.d.ts +11 -0
- package/dist/commands/evidence/audit.d.ts.map +1 -1
- package/dist/commands/evidence/audit.js +60 -154
- package/dist/commands/evidence/baseline.d.ts +14 -0
- package/dist/commands/evidence/baseline.d.ts.map +1 -0
- package/dist/commands/evidence/baseline.js +79 -0
- package/dist/commands/evidence/gc.js +2 -2
- package/dist/commands/evidence/index.d.ts.map +1 -1
- package/dist/commands/evidence/index.js +4 -2
- package/dist/commands/evidence/record.d.ts +3 -0
- package/dist/commands/evidence/record.d.ts.map +1 -1
- package/dist/commands/evidence/record.js +97 -53
- package/dist/commands/matrix.js +1 -1
- 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/review.js +1 -1
- package/dist/commands/to-plan.js +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/write.js +3 -3
- package/dist/completeness/assess.d.ts +82 -0
- package/dist/completeness/assess.d.ts.map +1 -0
- package/dist/completeness/bundle.d.ts +52 -0
- package/dist/completeness/bundle.d.ts.map +1 -0
- package/dist/completeness/declarations.d.ts +46 -0
- package/dist/completeness/declarations.d.ts.map +1 -0
- package/dist/completeness/index.d.ts +11 -0
- package/dist/completeness/index.d.ts.map +1 -0
- package/dist/completeness/run.d.ts +35 -0
- package/dist/completeness/run.d.ts.map +1 -0
- package/dist/completeness-BeqcskAI.js +228 -0
- package/dist/evidence/adapters/agent-eval.d.ts +26 -0
- package/dist/evidence/adapters/agent-eval.d.ts.map +1 -0
- package/dist/evidence/adapters/audit-script.d.ts +25 -0
- package/dist/evidence/adapters/audit-script.d.ts.map +1 -0
- package/dist/evidence/adapters/cargo-mutants.d.ts +3 -0
- package/dist/evidence/adapters/cargo-mutants.d.ts.map +1 -0
- package/dist/evidence/adapters/junit.d.ts +17 -0
- package/dist/evidence/adapters/junit.d.ts.map +1 -0
- package/dist/evidence/adapters/registry.d.ts +63 -0
- package/dist/evidence/adapters/registry.d.ts.map +1 -0
- package/dist/evidence/adapters/sarif.d.ts +35 -0
- package/dist/evidence/adapters/sarif.d.ts.map +1 -0
- package/dist/evidence/adapters/sbom.d.ts +35 -0
- package/dist/evidence/adapters/sbom.d.ts.map +1 -0
- package/dist/evidence/adapters/types.d.ts +55 -0
- package/dist/evidence/adapters/types.d.ts.map +1 -0
- package/dist/evidence/index.d.ts +11 -1
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/evidence/record.d.ts +6 -0
- package/dist/evidence/record.d.ts.map +1 -1
- package/dist/evidence/store.d.ts +124 -8
- package/dist/evidence/store.d.ts.map +1 -1
- package/dist/evidence/types.d.ts +110 -5
- package/dist/evidence/types.d.ts.map +1 -1
- package/dist/evidence-FRF9RN77.js +595 -0
- package/dist/{flow-command-BSMqxass.js → flow-command-BrzzKBo9.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/{modules-Ckfaq5p4.js → modules-_FQTZ3gx.js} +2 -2
- package/dist/{plugins-CLuXx2Jr.js → plugins-Q1MtCIE5.js} +1 -1
- package/dist/quire/contract.d.ts +1 -1
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/exec.d.ts +44 -0
- package/dist/quire/exec.d.ts.map +1 -0
- package/dist/quire/index.d.ts +1 -0
- package/dist/quire/index.d.ts.map +1 -1
- package/dist/{quire-MbMdffPh.js → quire-Dis3ky5t.js} +316 -262
- package/dist/{version-By2YFRZQ.js → version-D0l3nDPZ.js} +1 -1
- package/dist/{write-8JJ8Dumo.js → write-CMA6BDUq.js} +1 -1
- package/package.json +2 -1
- package/skills/spec-evidence-analysis/SKILL.md +27 -11
- package/skills/spec-fuzz/SKILL.md +94 -0
- package/skills/spec-fuzz/assets/templates/atheris.py.md +74 -0
- package/skills/spec-fuzz/assets/templates/cargo-fuzz.rs.md +83 -0
- package/skills/spec-fuzz/assets/templates/fast-check.ts.md +76 -0
- package/skills/spec-fuzz/references/step-0-scope-and-harness.md +51 -0
- package/skills/spec-fuzz/references/step-1-select-obligations.md +47 -0
- package/skills/spec-fuzz/references/step-2-ground-entry-point.md +55 -0
- package/skills/spec-fuzz/references/step-3-emit-targets.md +65 -0
- package/skills/spec-fuzz/references/step-4-report.md +56 -0
- package/dist/evidence-BvUyw-Yv.js +0 -171
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import { readFileSync as e } from "node:fs";
|
|
2
2
|
import { dirname as t, join as n } from "node:path";
|
|
3
3
|
import { fileURLToPath as r } from "node:url";
|
|
4
|
+
import { execFileSync as i } from "node:child_process";
|
|
4
5
|
import "node:crypto";
|
|
5
6
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var
|
|
7
|
+
var a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, l = (e, t, n) => () => {
|
|
7
8
|
if (n) throw n[0];
|
|
8
9
|
try {
|
|
9
10
|
return e && (t = e(e = 0)), t;
|
|
10
11
|
} catch (e) {
|
|
11
12
|
throw n = [e], e;
|
|
12
13
|
}
|
|
13
|
-
},
|
|
14
|
+
}, u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), d = (e, t) => {
|
|
14
15
|
let n = {};
|
|
15
|
-
for (var r in e)
|
|
16
|
+
for (var r in e) a(n, r, {
|
|
16
17
|
get: e[r],
|
|
17
18
|
enumerable: !0
|
|
18
19
|
});
|
|
19
|
-
return t ||
|
|
20
|
-
},
|
|
21
|
-
if (t && typeof t == "object" || typeof t == "function") for (var
|
|
20
|
+
return t || a(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
21
|
+
}, f = (e, t, n, r) => {
|
|
22
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = s(t), l = 0, u = i.length, d; l < u; l++) d = i[l], !c.call(e, d) && d !== n && a(e, d, {
|
|
22
23
|
get: ((e) => t[e]).bind(null, d),
|
|
23
|
-
enumerable: !(r =
|
|
24
|
+
enumerable: !(r = o(t, d)) || r.enumerable
|
|
24
25
|
});
|
|
25
26
|
return e;
|
|
26
|
-
},
|
|
27
|
-
sourceTag: "v0.
|
|
27
|
+
}, p = (e) => c.call(e, "module.exports") ? e["module.exports"] : f(a({}, "__esModule", { value: !0 }), e), m = {
|
|
28
|
+
sourceTag: "v0.33.0",
|
|
28
29
|
contractVersion: "v1",
|
|
29
30
|
minimumCli: "0.21.0",
|
|
30
31
|
hashes: {
|
|
31
32
|
"coverage-v1.schema.json": "bcc79e194a2f6c1a60d5345cf4f7947913fe0fe7dcde3f31989b9d9b8cecdbc3",
|
|
32
33
|
"properties-v1.schema.json": "d81f1ec85abdecd1f1664ded15e081f9aecb6c0f054d6b332b71e904cf826292"
|
|
33
34
|
}
|
|
34
|
-
},
|
|
35
|
-
function
|
|
36
|
-
return n(
|
|
35
|
+
}, h = t(r(import.meta.url));
|
|
36
|
+
function g(e) {
|
|
37
|
+
return n(h, "schemas", e);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
return JSON.parse(e(
|
|
39
|
+
function _(t) {
|
|
40
|
+
return JSON.parse(e(g(t), "utf8"));
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function v(e) {
|
|
42
43
|
let t = /(\d+)\.(\d+)\.(\d+)/.exec(e);
|
|
43
44
|
return t ? t[0] : null;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function y(e, t) {
|
|
46
47
|
let n = e.split(".").map((e) => Number.parseInt(e, 10)), r = t.split(".").map((e) => Number.parseInt(e, 10));
|
|
47
48
|
for (let e = 0; e < 3; e += 1) {
|
|
48
49
|
let t = (n[e] ?? 0) - (r[e] ?? 0);
|
|
@@ -50,14 +51,14 @@ function v(e, t) {
|
|
|
50
51
|
}
|
|
51
52
|
return 0;
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
let t = e ?
|
|
54
|
+
function b(e) {
|
|
55
|
+
let t = e ? v(e) : null, n = m.minimumCli;
|
|
55
56
|
return t === null ? {
|
|
56
57
|
kind: "version-premise",
|
|
57
58
|
found: null,
|
|
58
59
|
required: n,
|
|
59
60
|
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.`
|
|
60
|
-
} :
|
|
61
|
+
} : y(t, n) < 0 ? {
|
|
61
62
|
kind: "version-premise",
|
|
62
63
|
found: t,
|
|
63
64
|
required: n,
|
|
@@ -66,7 +67,7 @@ function y(e) {
|
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
69
|
//#region node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
69
|
-
var
|
|
70
|
+
var x = /* @__PURE__ */ u(((e) => {
|
|
70
71
|
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;
|
|
71
72
|
var t = class {};
|
|
72
73
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -171,9 +172,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
171
172
|
return new r(e.toString());
|
|
172
173
|
}
|
|
173
174
|
e.regexpCode = g;
|
|
174
|
-
})),
|
|
175
|
+
})), S = /* @__PURE__ */ u(((e) => {
|
|
175
176
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
176
|
-
var t =
|
|
177
|
+
var t = x(), n = class extends Error {
|
|
177
178
|
constructor(e) {
|
|
178
179
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
179
180
|
}
|
|
@@ -282,9 +283,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
282
283
|
return c;
|
|
283
284
|
}
|
|
284
285
|
};
|
|
285
|
-
})),
|
|
286
|
+
})), C = /* @__PURE__ */ u(((e) => {
|
|
286
287
|
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;
|
|
287
|
-
var t =
|
|
288
|
+
var t = x(), n = S(), r = x();
|
|
288
289
|
Object.defineProperty(e, "_", {
|
|
289
290
|
enumerable: !0,
|
|
290
291
|
get: function() {
|
|
@@ -326,7 +327,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
326
327
|
return r.Name;
|
|
327
328
|
}
|
|
328
329
|
});
|
|
329
|
-
var i =
|
|
330
|
+
var i = S();
|
|
330
331
|
Object.defineProperty(e, "Scope", {
|
|
331
332
|
enumerable: !0,
|
|
332
333
|
get: function() {
|
|
@@ -516,7 +517,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
516
517
|
get names() {
|
|
517
518
|
return k(super.names, this.iteration.names);
|
|
518
519
|
}
|
|
519
|
-
},
|
|
520
|
+
}, b = class extends v {
|
|
520
521
|
constructor(e, t, n, r) {
|
|
521
522
|
super(), this.varKind = e, this.name = t, this.from = n, this.to = r;
|
|
522
523
|
}
|
|
@@ -665,7 +666,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
665
666
|
}
|
|
666
667
|
forRange(e, t, r, i, a = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
|
|
667
668
|
let o = this._scope.toName(e);
|
|
668
|
-
return this._for(new
|
|
669
|
+
return this._for(new b(a, o, t, r), () => i(o));
|
|
669
670
|
}
|
|
670
671
|
forOf(e, r, i, a = n.varKinds.const) {
|
|
671
672
|
let o = this._scope.toName(e);
|
|
@@ -797,9 +798,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
797
798
|
function z(e) {
|
|
798
799
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
799
800
|
}
|
|
800
|
-
})),
|
|
801
|
+
})), w = /* @__PURE__ */ u(((e) => {
|
|
801
802
|
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;
|
|
802
|
-
var t =
|
|
803
|
+
var t = C(), n = x();
|
|
803
804
|
function r(e) {
|
|
804
805
|
let t = {};
|
|
805
806
|
for (let n of e) t[n] = !0;
|
|
@@ -814,7 +815,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
814
815
|
let { opts: n, self: r } = e;
|
|
815
816
|
if (!n.strictSchema || typeof t == "boolean") return;
|
|
816
817
|
let i = r.RULES.keywords;
|
|
817
|
-
for (let n in t) i[n] ||
|
|
818
|
+
for (let n in t) i[n] || S(e, `unknown keyword: "${n}"`);
|
|
818
819
|
}
|
|
819
820
|
e.checkUnknownRules = a;
|
|
820
821
|
function o(e, t) {
|
|
@@ -907,24 +908,24 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
907
908
|
(function(e) {
|
|
908
909
|
e[e.Num = 0] = "Num", e[e.Str = 1] = "Str";
|
|
909
910
|
})(y || (e.Type = y = {}));
|
|
910
|
-
function
|
|
911
|
+
function b(e, n, r) {
|
|
911
912
|
if (e instanceof t.Name) {
|
|
912
913
|
let i = n === y.Num;
|
|
913
914
|
return r ? i ? (0, t._)`"[" + ${e} + "]"` : (0, t._)`"['" + ${e} + "']"` : i ? (0, t._)`"/" + ${e}` : (0, t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
|
|
914
915
|
}
|
|
915
916
|
return r ? (0, t.getProperty)(e).toString() : "/" + d(e);
|
|
916
917
|
}
|
|
917
|
-
e.getErrorPath =
|
|
918
|
-
function
|
|
918
|
+
e.getErrorPath = b;
|
|
919
|
+
function S(e, t, n = e.opts.strictSchema) {
|
|
919
920
|
if (n) {
|
|
920
921
|
if (t = `strict mode: ${t}`, n === !0) throw Error(t);
|
|
921
922
|
e.self.logger.warn(t);
|
|
922
923
|
}
|
|
923
924
|
}
|
|
924
|
-
e.checkStrictMode =
|
|
925
|
-
})),
|
|
925
|
+
e.checkStrictMode = S;
|
|
926
|
+
})), T = /* @__PURE__ */ u(((e) => {
|
|
926
927
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
927
|
-
var t =
|
|
928
|
+
var t = C();
|
|
928
929
|
e.default = {
|
|
929
930
|
data: new t.Name("data"),
|
|
930
931
|
valCxt: new t.Name("valCxt"),
|
|
@@ -943,9 +944,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
943
944
|
jsonLen: new t.Name("jsonLen"),
|
|
944
945
|
jsonPart: new t.Name("jsonPart")
|
|
945
946
|
};
|
|
946
|
-
})),
|
|
947
|
+
})), E = /* @__PURE__ */ u(((e) => {
|
|
947
948
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
948
|
-
var t =
|
|
949
|
+
var t = C(), n = w(), r = T();
|
|
949
950
|
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)` };
|
|
950
951
|
function i(n, r = e.keywordError, i, a) {
|
|
951
952
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -1007,9 +1008,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1007
1008
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
1008
1009
|
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]);
|
|
1009
1010
|
}
|
|
1010
|
-
})),
|
|
1011
|
+
})), D = /* @__PURE__ */ u(((e) => {
|
|
1011
1012
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
1012
|
-
var t =
|
|
1013
|
+
var t = E(), n = C(), r = T(), i = { message: "boolean schema is false" };
|
|
1013
1014
|
function a(e) {
|
|
1014
1015
|
let { gen: t, schema: i, validateName: a } = e;
|
|
1015
1016
|
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));
|
|
@@ -1033,7 +1034,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1033
1034
|
};
|
|
1034
1035
|
(0, t.reportError)(o, i, void 0, n);
|
|
1035
1036
|
}
|
|
1036
|
-
})),
|
|
1037
|
+
})), O = /* @__PURE__ */ u(((e) => {
|
|
1037
1038
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
1038
1039
|
var t = /* @__PURE__ */ new Set([
|
|
1039
1040
|
"string",
|
|
@@ -1087,7 +1088,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1087
1088
|
};
|
|
1088
1089
|
}
|
|
1089
1090
|
e.getRules = r;
|
|
1090
|
-
})),
|
|
1091
|
+
})), k = /* @__PURE__ */ u(((e) => {
|
|
1091
1092
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
1092
1093
|
function t({ schema: e, self: t }, r) {
|
|
1093
1094
|
let i = t.RULES.types[r];
|
|
@@ -1102,9 +1103,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1102
1103
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
1103
1104
|
}
|
|
1104
1105
|
e.shouldUseRule = r;
|
|
1105
|
-
})),
|
|
1106
|
+
})), A = /* @__PURE__ */ u(((e) => {
|
|
1106
1107
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
1107
|
-
var t =
|
|
1108
|
+
var t = O(), n = k(), r = E(), i = C(), a = w(), o;
|
|
1108
1109
|
(function(e) {
|
|
1109
1110
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
1110
1111
|
})(o || (e.DataType = o = {}));
|
|
@@ -1239,9 +1240,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1239
1240
|
it: e
|
|
1240
1241
|
};
|
|
1241
1242
|
}
|
|
1242
|
-
})),
|
|
1243
|
+
})), j = /* @__PURE__ */ u(((e) => {
|
|
1243
1244
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
1244
|
-
var t =
|
|
1245
|
+
var t = C(), n = w();
|
|
1245
1246
|
function r(e, t) {
|
|
1246
1247
|
let { properties: n, items: r } = e.schema;
|
|
1247
1248
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -1259,9 +1260,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1259
1260
|
let u = (0, t._)`${l} === undefined`;
|
|
1260
1261
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
1261
1262
|
}
|
|
1262
|
-
})),
|
|
1263
|
+
})), M = /* @__PURE__ */ u(((e) => {
|
|
1263
1264
|
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;
|
|
1264
|
-
var t =
|
|
1265
|
+
var t = C(), n = w(), r = T(), i = w();
|
|
1265
1266
|
function a(e, n) {
|
|
1266
1267
|
let { gen: r, data: i, it: a } = e;
|
|
1267
1268
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -1363,9 +1364,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1363
1364
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
1364
1365
|
}
|
|
1365
1366
|
e.validateUnion = v;
|
|
1366
|
-
})),
|
|
1367
|
+
})), N = /* @__PURE__ */ u(((e) => {
|
|
1367
1368
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
1368
|
-
var t =
|
|
1369
|
+
var t = C(), n = T(), r = M(), i = E();
|
|
1369
1370
|
function a(e, n) {
|
|
1370
1371
|
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);
|
|
1371
1372
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -1444,9 +1445,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1444
1445
|
}
|
|
1445
1446
|
}
|
|
1446
1447
|
e.validateKeywordUsage = f;
|
|
1447
|
-
})),
|
|
1448
|
+
})), P = /* @__PURE__ */ u(((e) => {
|
|
1448
1449
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
1449
|
-
var t =
|
|
1450
|
+
var t = C(), n = w();
|
|
1450
1451
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
1451
1452
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
1452
1453
|
if (r !== void 0) {
|
|
@@ -1490,7 +1491,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1490
1491
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
1491
1492
|
}
|
|
1492
1493
|
e.extendSubschemaMode = a;
|
|
1493
|
-
})),
|
|
1494
|
+
})), F = /* @__PURE__ */ u(((e, t) => {
|
|
1494
1495
|
t.exports = function e(t, n) {
|
|
1495
1496
|
if (t === n) return !0;
|
|
1496
1497
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -1514,7 +1515,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1514
1515
|
}
|
|
1515
1516
|
return t !== t && n !== n;
|
|
1516
1517
|
};
|
|
1517
|
-
})),
|
|
1518
|
+
})), I = /* @__PURE__ */ u(((e, t) => {
|
|
1518
1519
|
var n = t.exports = function(e, t, n) {
|
|
1519
1520
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
1520
1521
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -1577,9 +1578,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1577
1578
|
function i(e) {
|
|
1578
1579
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1579
1580
|
}
|
|
1580
|
-
})),
|
|
1581
|
+
})), L = /* @__PURE__ */ u(((e) => {
|
|
1581
1582
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
1582
|
-
var t =
|
|
1583
|
+
var t = w(), n = F(), r = I(), i = /* @__PURE__ */ new Set([
|
|
1583
1584
|
"type",
|
|
1584
1585
|
"format",
|
|
1585
1586
|
"pattern",
|
|
@@ -1668,11 +1669,11 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1668
1669
|
}
|
|
1669
1670
|
}
|
|
1670
1671
|
e.getSchemaRefs = h;
|
|
1671
|
-
})),
|
|
1672
|
+
})), R = /* @__PURE__ */ u(((e) => {
|
|
1672
1673
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
1673
|
-
var t =
|
|
1674
|
+
var t = D(), n = A(), r = k(), i = A(), a = j(), o = N(), s = P(), c = C(), l = T(), u = L(), d = w(), f = E();
|
|
1674
1675
|
function p(e) {
|
|
1675
|
-
if (
|
|
1676
|
+
if (S(e) && (M(e), x(e))) {
|
|
1676
1677
|
_(e);
|
|
1677
1678
|
return;
|
|
1678
1679
|
}
|
|
@@ -1697,7 +1698,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1697
1698
|
function _(e) {
|
|
1698
1699
|
let { schema: t, opts: n, gen: r } = e;
|
|
1699
1700
|
m(e, () => {
|
|
1700
|
-
n.$comment && t.$comment && V(e), R(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && v(e), F(e),
|
|
1701
|
+
n.$comment && t.$comment && V(e), R(e), r.let(l.default.vErrors, null), r.let(l.default.errors, 0), n.unevaluated && v(e), F(e), ee(e);
|
|
1701
1702
|
});
|
|
1702
1703
|
}
|
|
1703
1704
|
function v(e) {
|
|
@@ -1709,8 +1710,8 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1709
1710
|
return n && (t.code.source || t.code.process) ? (0, c._)`/*# sourceURL=${n} */` : c.nil;
|
|
1710
1711
|
}
|
|
1711
1712
|
function b(e, n) {
|
|
1712
|
-
if (
|
|
1713
|
-
|
|
1713
|
+
if (S(e) && (M(e), x(e))) {
|
|
1714
|
+
O(e, n);
|
|
1714
1715
|
return;
|
|
1715
1716
|
}
|
|
1716
1717
|
(0, t.boolOrEmptySchema)(e, n);
|
|
@@ -1720,24 +1721,24 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1720
1721
|
for (let n in e) if (t.RULES.all[n]) return !0;
|
|
1721
1722
|
return !1;
|
|
1722
1723
|
}
|
|
1723
|
-
function
|
|
1724
|
+
function S(e) {
|
|
1724
1725
|
return typeof e.schema != "boolean";
|
|
1725
1726
|
}
|
|
1726
|
-
function
|
|
1727
|
+
function O(e, t) {
|
|
1727
1728
|
let { schema: n, gen: r, opts: i } = e;
|
|
1728
1729
|
i.$comment && n.$comment && V(e), z(e), B(e);
|
|
1729
1730
|
let a = r.const("_errs", l.default.errors);
|
|
1730
1731
|
F(e, a), r.var(t, (0, c._)`${a} === ${l.default.errors}`);
|
|
1731
1732
|
}
|
|
1732
|
-
function
|
|
1733
|
-
(0, d.checkUnknownRules)(e),
|
|
1733
|
+
function M(e) {
|
|
1734
|
+
(0, d.checkUnknownRules)(e), I(e);
|
|
1734
1735
|
}
|
|
1735
1736
|
function F(e, t) {
|
|
1736
|
-
if (e.opts.jtd) return
|
|
1737
|
+
if (e.opts.jtd) return U(e, [], !1, t);
|
|
1737
1738
|
let r = (0, n.getSchemaTypes)(e.schema);
|
|
1738
|
-
|
|
1739
|
+
U(e, r, !(0, n.coerceAndCheckDataType)(e, r), t);
|
|
1739
1740
|
}
|
|
1740
|
-
function
|
|
1741
|
+
function I(e) {
|
|
1741
1742
|
let { schema: t, errSchemaPath: n, opts: r, self: i } = e;
|
|
1742
1743
|
t.$ref && r.ignoreKeywordsWithRef && (0, d.schemaHasRulesButRef)(t, i.RULES) && i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
|
|
1743
1744
|
}
|
|
@@ -1760,37 +1761,37 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1760
1761
|
e.code((0, c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`);
|
|
1761
1762
|
}
|
|
1762
1763
|
}
|
|
1763
|
-
function
|
|
1764
|
+
function ee(e) {
|
|
1764
1765
|
let { gen: t, schemaEnv: n, validateName: r, ValidationError: i, opts: a } = e;
|
|
1765
|
-
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 &&
|
|
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 && H(e), t.return((0, c._)`${l.default.errors} === 0`));
|
|
1766
1767
|
}
|
|
1767
|
-
function
|
|
1768
|
+
function H({ gen: e, evaluated: t, props: n, items: r }) {
|
|
1768
1769
|
n instanceof c.Name && e.assign((0, c._)`${t}.props`, n), r instanceof c.Name && e.assign((0, c._)`${t}.items`, r);
|
|
1769
1770
|
}
|
|
1770
|
-
function
|
|
1771
|
+
function U(e, t, n, a) {
|
|
1771
1772
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
1772
1773
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
1773
1774
|
o.block(() => X(e, "$ref", h.all.$ref.definition));
|
|
1774
1775
|
return;
|
|
1775
1776
|
}
|
|
1776
|
-
p.jtd ||
|
|
1777
|
+
p.jtd || G(e, t), o.block(() => {
|
|
1777
1778
|
for (let e of h.rules) g(e);
|
|
1778
1779
|
g(h.post);
|
|
1779
1780
|
});
|
|
1780
1781
|
function g(d) {
|
|
1781
|
-
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)),
|
|
1782
|
+
(0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), W(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : W(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
|
|
1782
1783
|
}
|
|
1783
1784
|
}
|
|
1784
|
-
function
|
|
1785
|
+
function W(e, t) {
|
|
1785
1786
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
1786
1787
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
1787
1788
|
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && X(e, n.keyword, n.definition, t.type);
|
|
1788
1789
|
});
|
|
1789
1790
|
}
|
|
1790
|
-
function
|
|
1791
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
1791
|
+
function G(e, t) {
|
|
1792
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (K(e, t), e.opts.allowUnionTypes || te(e, t), ne(e, e.dataTypes));
|
|
1792
1793
|
}
|
|
1793
|
-
function
|
|
1794
|
+
function K(e, t) {
|
|
1794
1795
|
if (t.length) {
|
|
1795
1796
|
if (!e.dataTypes.length) {
|
|
1796
1797
|
e.dataTypes = t;
|
|
@@ -1831,7 +1832,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1831
1832
|
}
|
|
1832
1833
|
var Y = class {
|
|
1833
1834
|
constructor(e, t, n) {
|
|
1834
|
-
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",
|
|
1835
|
+
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", Q(this.$data, e));
|
|
1835
1836
|
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)}`);
|
|
1836
1837
|
("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
|
|
1837
1838
|
}
|
|
@@ -1934,15 +1935,15 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1934
1935
|
let i = new Y(e, n, t);
|
|
1935
1936
|
"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);
|
|
1936
1937
|
}
|
|
1937
|
-
var
|
|
1938
|
-
function
|
|
1938
|
+
var Z = /^\/(?:[^~]|~0|~1)*$/, ae = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
1939
|
+
function Q(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
1939
1940
|
let i, a;
|
|
1940
1941
|
if (e === "") return l.default.rootData;
|
|
1941
1942
|
if (e[0] === "/") {
|
|
1942
|
-
if (!
|
|
1943
|
+
if (!Z.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
1943
1944
|
i = e, a = l.default.rootData;
|
|
1944
1945
|
} else {
|
|
1945
|
-
let o =
|
|
1946
|
+
let o = ae.exec(e);
|
|
1946
1947
|
if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
1947
1948
|
let s = +o[1];
|
|
1948
1949
|
if (i = o[2], i === "#") {
|
|
@@ -1959,24 +1960,24 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
1959
1960
|
return `Cannot access ${e} ${n} levels up, current level is ${t}`;
|
|
1960
1961
|
}
|
|
1961
1962
|
}
|
|
1962
|
-
e.getData =
|
|
1963
|
-
})),
|
|
1963
|
+
e.getData = Q;
|
|
1964
|
+
})), z = /* @__PURE__ */ u(((e) => {
|
|
1964
1965
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
1965
1966
|
constructor(e) {
|
|
1966
1967
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
1967
1968
|
}
|
|
1968
1969
|
};
|
|
1969
|
-
})),
|
|
1970
|
+
})), B = /* @__PURE__ */ u(((e) => {
|
|
1970
1971
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1971
|
-
var t =
|
|
1972
|
+
var t = L();
|
|
1972
1973
|
e.default = class extends Error {
|
|
1973
1974
|
constructor(e, n, r, i) {
|
|
1974
1975
|
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));
|
|
1975
1976
|
}
|
|
1976
1977
|
};
|
|
1977
|
-
})),
|
|
1978
|
+
})), V = /* @__PURE__ */ u(((e) => {
|
|
1978
1979
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
1979
|
-
var t =
|
|
1980
|
+
var t = C(), n = z(), r = T(), i = L(), a = w(), o = R(), s = class {
|
|
1980
1981
|
constructor(e) {
|
|
1981
1982
|
this.refs = {}, this.dynamicAnchors = {};
|
|
1982
1983
|
let t;
|
|
@@ -2135,19 +2136,19 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2135
2136
|
baseId: t
|
|
2136
2137
|
}), o.schema !== o.root.schema) return o;
|
|
2137
2138
|
}
|
|
2138
|
-
})),
|
|
2139
|
+
})), ee = /* @__PURE__ */ d({
|
|
2139
2140
|
$id: () => H,
|
|
2140
2141
|
additionalProperties: () => !1,
|
|
2141
|
-
default: () =>
|
|
2142
|
+
default: () => te,
|
|
2142
2143
|
description: () => U,
|
|
2143
2144
|
properties: () => K,
|
|
2144
2145
|
required: () => G,
|
|
2145
2146
|
type: () => W
|
|
2146
|
-
}), H, U, W, G, K,
|
|
2147
|
+
}), H, U, W, G, K, te, ne = l((() => {
|
|
2147
2148
|
H = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", U = "Meta-schema for $data reference (JSON AnySchema extension proposal)", W = "object", G = ["$data"], K = { $data: {
|
|
2148
2149
|
type: "string",
|
|
2149
2150
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
2150
|
-
} },
|
|
2151
|
+
} }, te = {
|
|
2151
2152
|
$id: H,
|
|
2152
2153
|
description: U,
|
|
2153
2154
|
type: W,
|
|
@@ -2155,7 +2156,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2155
2156
|
properties: K,
|
|
2156
2157
|
additionalProperties: !1
|
|
2157
2158
|
};
|
|
2158
|
-
})),
|
|
2159
|
+
})), re = /* @__PURE__ */ u(((e, t) => {
|
|
2159
2160
|
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);
|
|
2160
2161
|
function s(e) {
|
|
2161
2162
|
let t = "", n = 0, r = 0;
|
|
@@ -2372,8 +2373,8 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2372
2373
|
normalizeIPv6: f,
|
|
2373
2374
|
stringArrayToHexStripped: s
|
|
2374
2375
|
};
|
|
2375
|
-
})),
|
|
2376
|
-
var { isUUID: n } =
|
|
2376
|
+
})), q = /* @__PURE__ */ u(((e, t) => {
|
|
2377
|
+
var { isUUID: n } = re(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
2377
2378
|
"http",
|
|
2378
2379
|
"https",
|
|
2379
2380
|
"ws",
|
|
@@ -2478,8 +2479,8 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2478
2479
|
isValidSchemeName: a,
|
|
2479
2480
|
getSchemeHandler: y
|
|
2480
2481
|
};
|
|
2481
|
-
})),
|
|
2482
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
2482
|
+
})), ie = /* @__PURE__ */ u(((e, t) => {
|
|
2483
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = re(), { SCHEMES: d, getSchemeHandler: f } = q();
|
|
2483
2484
|
function p(e, t) {
|
|
2484
2485
|
return typeof e == "string" ? e = w(e, t) : typeof e == "object" && (e = C(_(e, t), t)), e;
|
|
2485
2486
|
}
|
|
@@ -2602,20 +2603,20 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2602
2603
|
parse: C
|
|
2603
2604
|
};
|
|
2604
2605
|
t.exports = D, t.exports.default = D, t.exports.fastUri = D;
|
|
2605
|
-
})),
|
|
2606
|
+
})), J = /* @__PURE__ */ u(((e) => {
|
|
2606
2607
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2607
|
-
var t =
|
|
2608
|
+
var t = ie();
|
|
2608
2609
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
2609
|
-
})),
|
|
2610
|
+
})), Y = /* @__PURE__ */ u(((e) => {
|
|
2610
2611
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
2611
|
-
var t =
|
|
2612
|
+
var t = R();
|
|
2612
2613
|
Object.defineProperty(e, "KeywordCxt", {
|
|
2613
2614
|
enumerable: !0,
|
|
2614
2615
|
get: function() {
|
|
2615
2616
|
return t.KeywordCxt;
|
|
2616
2617
|
}
|
|
2617
2618
|
});
|
|
2618
|
-
var n =
|
|
2619
|
+
var n = C();
|
|
2619
2620
|
Object.defineProperty(e, "_", {
|
|
2620
2621
|
enumerable: !0,
|
|
2621
2622
|
get: function() {
|
|
@@ -2647,7 +2648,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2647
2648
|
return n.CodeGen;
|
|
2648
2649
|
}
|
|
2649
2650
|
});
|
|
2650
|
-
var r =
|
|
2651
|
+
var r = z(), i = B(), a = O(), o = V(), s = C(), c = L(), l = A(), u = w(), d = (ne(), p(ee).default), f = J(), m = (e, t) => new RegExp(e, t);
|
|
2651
2652
|
m.code = "new RegExp";
|
|
2652
2653
|
var h = [
|
|
2653
2654
|
"removeAdditional",
|
|
@@ -2689,7 +2690,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2689
2690
|
unicode: "\"minLength\"/\"maxLength\" account for unicode characters by default."
|
|
2690
2691
|
}, y = 200;
|
|
2691
2692
|
function b(e) {
|
|
2692
|
-
let t = e.strict, n = e.code?.optimize, r = n === !0 || n === void 0 ? 1 : n || 0, i = e.code?.regExp ?? m, a = e.uriResolver ??
|
|
2693
|
+
let t = e.strict, n = e.code?.optimize, r = n === !0 || n === void 0 ? 1 : n || 0, i = e.code?.regExp ?? m, a = e.uriResolver ?? f.default;
|
|
2693
2694
|
return {
|
|
2694
2695
|
strictSchema: e.strictSchema ?? t ?? !0,
|
|
2695
2696
|
strictNumbers: e.strictNumbers ?? t ?? !0,
|
|
@@ -2732,7 +2733,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2732
2733
|
lines: n
|
|
2733
2734
|
}), this.logger = N(e.logger);
|
|
2734
2735
|
let r = e.validateFormats;
|
|
2735
|
-
e.validateFormats = !1, this.RULES = (0, a.getRules)(),
|
|
2736
|
+
e.validateFormats = !1, this.RULES = (0, a.getRules)(), S.call(this, _, e, "NOT SUPPORTED"), S.call(this, v, e, "DEPRECATED", "warn"), this._metaOpts = j.call(this), e.formats && D.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), e.keywords && k.call(this, e.keywords), typeof e.meta == "object" && this.addMetaSchema(e.meta), E.call(this), e.validateFormats = r;
|
|
2736
2737
|
}
|
|
2737
2738
|
_addVocabularies() {
|
|
2738
2739
|
this.addKeyword("$async");
|
|
@@ -2862,14 +2863,14 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2862
2863
|
else if (typeof e == "object" && t === void 0) {
|
|
2863
2864
|
if (t = e, n = t.keyword, Array.isArray(n) && !n.length) throw Error("addKeywords: keyword must be string or non-empty array");
|
|
2864
2865
|
} else throw Error("invalid addKeywords parameters");
|
|
2865
|
-
if (F.call(this, n, t), !t) return (0, u.eachItem)(n, (e) =>
|
|
2866
|
-
|
|
2866
|
+
if (F.call(this, n, t), !t) return (0, u.eachItem)(n, (e) => I.call(this, e)), this;
|
|
2867
|
+
U.call(this, t);
|
|
2867
2868
|
let r = {
|
|
2868
2869
|
...t,
|
|
2869
2870
|
type: (0, l.getJSONTypes)(t.type),
|
|
2870
2871
|
schemaType: (0, l.getJSONTypes)(t.schemaType)
|
|
2871
2872
|
};
|
|
2872
|
-
return (0, u.eachItem)(n, r.type.length === 0 ? (e) =>
|
|
2873
|
+
return (0, u.eachItem)(n, r.type.length === 0 ? (e) => I.call(this, e, r) : (e) => r.type.forEach((t) => I.call(this, e, r, t))), this;
|
|
2873
2874
|
}
|
|
2874
2875
|
getKeyword(e) {
|
|
2875
2876
|
let t = this.RULES.all[e];
|
|
@@ -2900,7 +2901,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2900
2901
|
let t = n[e];
|
|
2901
2902
|
if (typeof t != "object") continue;
|
|
2902
2903
|
let { $data: r } = t.definition, a = i[e];
|
|
2903
|
-
r && a && (i[e] =
|
|
2904
|
+
r && a && (i[e] = G(a));
|
|
2904
2905
|
}
|
|
2905
2906
|
}
|
|
2906
2907
|
return e;
|
|
@@ -2947,7 +2948,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2947
2948
|
}
|
|
2948
2949
|
};
|
|
2949
2950
|
x.ValidationError = r.default, x.MissingRefError = i.default, e.default = x;
|
|
2950
|
-
function
|
|
2951
|
+
function S(e, t, n, r = "error") {
|
|
2951
2952
|
for (let i in e) {
|
|
2952
2953
|
let a = i;
|
|
2953
2954
|
a in t && this.logger[r](`${n}: option ${i}. ${e[a]}`);
|
|
@@ -2961,13 +2962,13 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
2961
2962
|
if (e) if (Array.isArray(e)) this.addSchema(e);
|
|
2962
2963
|
else for (let t in e) this.addSchema(e[t], t);
|
|
2963
2964
|
}
|
|
2964
|
-
function
|
|
2965
|
+
function D() {
|
|
2965
2966
|
for (let e in this.opts.formats) {
|
|
2966
2967
|
let t = this.opts.formats[e];
|
|
2967
2968
|
t && this.addFormat(e, t);
|
|
2968
2969
|
}
|
|
2969
2970
|
}
|
|
2970
|
-
function
|
|
2971
|
+
function k(e) {
|
|
2971
2972
|
if (Array.isArray(e)) {
|
|
2972
2973
|
this.addVocabulary(e);
|
|
2973
2974
|
return;
|
|
@@ -3002,7 +3003,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3002
3003
|
if (!P.test(e)) throw Error(`Keyword ${e} has invalid name`);
|
|
3003
3004
|
}), t && t.$data && !("code" in t || "validate" in t)) throw Error("$data keyword must have \"code\" or \"validate\" function");
|
|
3004
3005
|
}
|
|
3005
|
-
function
|
|
3006
|
+
function I(e, t, n) {
|
|
3006
3007
|
var r;
|
|
3007
3008
|
let i = t?.post;
|
|
3008
3009
|
if (n && i) throw Error("keyword with \"post\" flag cannot have \"type\"");
|
|
@@ -3019,30 +3020,30 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3019
3020
|
schemaType: (0, l.getJSONTypes)(t.schemaType)
|
|
3020
3021
|
}
|
|
3021
3022
|
};
|
|
3022
|
-
t.before ?
|
|
3023
|
+
t.before ? H.call(this, o, s, t.before) : o.rules.push(s), a.all[e] = s, (r = t.implements) == null || r.forEach((e) => this.addKeyword(e));
|
|
3023
3024
|
}
|
|
3024
|
-
function
|
|
3025
|
+
function H(e, t, n) {
|
|
3025
3026
|
let r = e.rules.findIndex((e) => e.keyword === n);
|
|
3026
3027
|
r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`));
|
|
3027
3028
|
}
|
|
3028
|
-
function
|
|
3029
|
+
function U(e) {
|
|
3029
3030
|
let { metaSchema: t } = e;
|
|
3030
|
-
t !== void 0 && (e.$data && this.opts.$data && (t =
|
|
3031
|
+
t !== void 0 && (e.$data && this.opts.$data && (t = G(t)), e.validateSchema = this.compile(t, !0));
|
|
3031
3032
|
}
|
|
3032
|
-
var
|
|
3033
|
-
function
|
|
3034
|
-
return { anyOf: [e,
|
|
3033
|
+
var W = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
|
3034
|
+
function G(e) {
|
|
3035
|
+
return { anyOf: [e, W] };
|
|
3035
3036
|
}
|
|
3036
|
-
})),
|
|
3037
|
+
})), X = /* @__PURE__ */ u(((e) => {
|
|
3037
3038
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
3038
3039
|
keyword: "id",
|
|
3039
3040
|
code() {
|
|
3040
3041
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
3041
3042
|
}
|
|
3042
3043
|
};
|
|
3043
|
-
})),
|
|
3044
|
+
})), Z = /* @__PURE__ */ u(((e) => {
|
|
3044
3045
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
3045
|
-
var t =
|
|
3046
|
+
var t = B(), n = M(), r = C(), i = T(), a = V(), o = w(), s = {
|
|
3046
3047
|
keyword: "$ref",
|
|
3047
3048
|
schemaType: "string",
|
|
3048
3049
|
code(e) {
|
|
@@ -3115,9 +3116,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3115
3116
|
}
|
|
3116
3117
|
}
|
|
3117
3118
|
e.callRef = l, e.default = s;
|
|
3118
|
-
})), ae = /* @__PURE__ */
|
|
3119
|
+
})), ae = /* @__PURE__ */ u(((e) => {
|
|
3119
3120
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3120
|
-
var t =
|
|
3121
|
+
var t = X(), n = Z();
|
|
3121
3122
|
e.default = [
|
|
3122
3123
|
"$schema",
|
|
3123
3124
|
"$id",
|
|
@@ -3128,9 +3129,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3128
3129
|
t.default,
|
|
3129
3130
|
n.default
|
|
3130
3131
|
];
|
|
3131
|
-
})),
|
|
3132
|
+
})), Q = /* @__PURE__ */ u(((e) => {
|
|
3132
3133
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3133
|
-
var t =
|
|
3134
|
+
var t = C(), n = t.operators, r = {
|
|
3134
3135
|
maximum: {
|
|
3135
3136
|
okStr: "<=",
|
|
3136
3137
|
ok: n.LTE,
|
|
@@ -3166,9 +3167,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3166
3167
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
3167
3168
|
}
|
|
3168
3169
|
};
|
|
3169
|
-
})),
|
|
3170
|
+
})), oe = /* @__PURE__ */ u(((e) => {
|
|
3170
3171
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3171
|
-
var t =
|
|
3172
|
+
var t = C();
|
|
3172
3173
|
e.default = {
|
|
3173
3174
|
keyword: "multipleOf",
|
|
3174
3175
|
type: "number",
|
|
@@ -3183,7 +3184,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3183
3184
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
3184
3185
|
}
|
|
3185
3186
|
};
|
|
3186
|
-
})), se = /* @__PURE__ */
|
|
3187
|
+
})), se = /* @__PURE__ */ u(((e) => {
|
|
3187
3188
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3188
3189
|
function t(e) {
|
|
3189
3190
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -3191,9 +3192,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3191
3192
|
return n;
|
|
3192
3193
|
}
|
|
3193
3194
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
3194
|
-
})), ce = /* @__PURE__ */
|
|
3195
|
+
})), ce = /* @__PURE__ */ u(((e) => {
|
|
3195
3196
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3196
|
-
var t =
|
|
3197
|
+
var t = C(), n = w(), r = se();
|
|
3197
3198
|
e.default = {
|
|
3198
3199
|
keyword: ["maxLength", "minLength"],
|
|
3199
3200
|
type: "string",
|
|
@@ -3211,9 +3212,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3211
3212
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
3212
3213
|
}
|
|
3213
3214
|
};
|
|
3214
|
-
})), le = /* @__PURE__ */
|
|
3215
|
+
})), le = /* @__PURE__ */ u(((e) => {
|
|
3215
3216
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3216
|
-
var t =
|
|
3217
|
+
var t = M(), n = w(), r = C();
|
|
3217
3218
|
e.default = {
|
|
3218
3219
|
keyword: "pattern",
|
|
3219
3220
|
type: "string",
|
|
@@ -3234,9 +3235,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3234
3235
|
}
|
|
3235
3236
|
}
|
|
3236
3237
|
};
|
|
3237
|
-
})), ue = /* @__PURE__ */
|
|
3238
|
+
})), ue = /* @__PURE__ */ u(((e) => {
|
|
3238
3239
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3239
|
-
var t =
|
|
3240
|
+
var t = C();
|
|
3240
3241
|
e.default = {
|
|
3241
3242
|
keyword: ["maxProperties", "minProperties"],
|
|
3242
3243
|
type: "object",
|
|
@@ -3254,9 +3255,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3254
3255
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
3255
3256
|
}
|
|
3256
3257
|
};
|
|
3257
|
-
})), de = /* @__PURE__ */
|
|
3258
|
+
})), de = /* @__PURE__ */ u(((e) => {
|
|
3258
3259
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3259
|
-
var t =
|
|
3260
|
+
var t = M(), n = C(), r = w();
|
|
3260
3261
|
e.default = {
|
|
3261
3262
|
keyword: "required",
|
|
3262
3263
|
type: "object",
|
|
@@ -3302,9 +3303,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3302
3303
|
}
|
|
3303
3304
|
}
|
|
3304
3305
|
};
|
|
3305
|
-
})), fe = /* @__PURE__ */
|
|
3306
|
+
})), fe = /* @__PURE__ */ u(((e) => {
|
|
3306
3307
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3307
|
-
var t =
|
|
3308
|
+
var t = C();
|
|
3308
3309
|
e.default = {
|
|
3309
3310
|
keyword: ["maxItems", "minItems"],
|
|
3310
3311
|
type: "array",
|
|
@@ -3322,13 +3323,13 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3322
3323
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
3323
3324
|
}
|
|
3324
3325
|
};
|
|
3325
|
-
})), pe = /* @__PURE__ */
|
|
3326
|
+
})), pe = /* @__PURE__ */ u(((e) => {
|
|
3326
3327
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3327
|
-
var t =
|
|
3328
|
+
var t = F();
|
|
3328
3329
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
3329
|
-
})), me = /* @__PURE__ */
|
|
3330
|
+
})), me = /* @__PURE__ */ u(((e) => {
|
|
3330
3331
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3331
|
-
var t =
|
|
3332
|
+
var t = A(), n = C(), r = w(), i = pe();
|
|
3332
3333
|
e.default = {
|
|
3333
3334
|
keyword: "uniqueItems",
|
|
3334
3335
|
type: "array",
|
|
@@ -3369,9 +3370,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3369
3370
|
}
|
|
3370
3371
|
}
|
|
3371
3372
|
};
|
|
3372
|
-
})), he = /* @__PURE__ */
|
|
3373
|
+
})), he = /* @__PURE__ */ u(((e) => {
|
|
3373
3374
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3374
|
-
var t =
|
|
3375
|
+
var t = C(), n = w(), r = pe();
|
|
3375
3376
|
e.default = {
|
|
3376
3377
|
keyword: "const",
|
|
3377
3378
|
$data: !0,
|
|
@@ -3384,9 +3385,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3384
3385
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
3385
3386
|
}
|
|
3386
3387
|
};
|
|
3387
|
-
})), ge = /* @__PURE__ */
|
|
3388
|
+
})), ge = /* @__PURE__ */ u(((e) => {
|
|
3388
3389
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3389
|
-
var t =
|
|
3390
|
+
var t = C(), n = w(), r = pe();
|
|
3390
3391
|
e.default = {
|
|
3391
3392
|
keyword: "enum",
|
|
3392
3393
|
schemaType: "array",
|
|
@@ -3416,9 +3417,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3416
3417
|
}
|
|
3417
3418
|
}
|
|
3418
3419
|
};
|
|
3419
|
-
})), _e = /* @__PURE__ */
|
|
3420
|
+
})), _e = /* @__PURE__ */ u(((e) => {
|
|
3420
3421
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3421
|
-
var t =
|
|
3422
|
+
var t = Q(), n = oe(), r = ce(), i = le(), a = ue(), o = de(), s = fe(), c = me(), l = he(), u = ge();
|
|
3422
3423
|
e.default = [
|
|
3423
3424
|
t.default,
|
|
3424
3425
|
n.default,
|
|
@@ -3439,9 +3440,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3439
3440
|
l.default,
|
|
3440
3441
|
u.default
|
|
3441
3442
|
];
|
|
3442
|
-
})), ve = /* @__PURE__ */
|
|
3443
|
+
})), ve = /* @__PURE__ */ u(((e) => {
|
|
3443
3444
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
3444
|
-
var t =
|
|
3445
|
+
var t = C(), n = w(), r = {
|
|
3445
3446
|
keyword: "additionalItems",
|
|
3446
3447
|
type: "array",
|
|
3447
3448
|
schemaType: ["boolean", "object"],
|
|
@@ -3479,9 +3480,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3479
3480
|
}
|
|
3480
3481
|
}
|
|
3481
3482
|
e.validateAdditionalItems = i, e.default = r;
|
|
3482
|
-
})), ye = /* @__PURE__ */
|
|
3483
|
+
})), ye = /* @__PURE__ */ u(((e) => {
|
|
3483
3484
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
3484
|
-
var t =
|
|
3485
|
+
var t = C(), n = w(), r = M(), i = {
|
|
3485
3486
|
keyword: "items",
|
|
3486
3487
|
type: "array",
|
|
3487
3488
|
schemaType: [
|
|
@@ -3516,7 +3517,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3516
3517
|
}
|
|
3517
3518
|
}
|
|
3518
3519
|
e.validateTuple = a, e.default = i;
|
|
3519
|
-
})), be = /* @__PURE__ */
|
|
3520
|
+
})), be = /* @__PURE__ */ u(((e) => {
|
|
3520
3521
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3521
3522
|
var t = ye();
|
|
3522
3523
|
e.default = {
|
|
@@ -3526,9 +3527,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3526
3527
|
before: "uniqueItems",
|
|
3527
3528
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
3528
3529
|
};
|
|
3529
|
-
})), xe = /* @__PURE__ */
|
|
3530
|
+
})), xe = /* @__PURE__ */ u(((e) => {
|
|
3530
3531
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3531
|
-
var t =
|
|
3532
|
+
var t = C(), n = w(), r = M(), i = ve();
|
|
3532
3533
|
e.default = {
|
|
3533
3534
|
keyword: "items",
|
|
3534
3535
|
type: "array",
|
|
@@ -3543,9 +3544,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3543
3544
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
3544
3545
|
}
|
|
3545
3546
|
};
|
|
3546
|
-
})), Se = /* @__PURE__ */
|
|
3547
|
+
})), Se = /* @__PURE__ */ u(((e) => {
|
|
3547
3548
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3548
|
-
var t =
|
|
3549
|
+
var t = C(), n = w();
|
|
3549
3550
|
e.default = {
|
|
3550
3551
|
keyword: "contains",
|
|
3551
3552
|
type: "array",
|
|
@@ -3598,9 +3599,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3598
3599
|
}
|
|
3599
3600
|
}
|
|
3600
3601
|
};
|
|
3601
|
-
})), Ce = /* @__PURE__ */
|
|
3602
|
+
})), Ce = /* @__PURE__ */ u(((e) => {
|
|
3602
3603
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
3603
|
-
var t =
|
|
3604
|
+
var t = C(), n = w(), r = M();
|
|
3604
3605
|
e.error = {
|
|
3605
3606
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
3606
3607
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -3659,9 +3660,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3659
3660
|
}, () => i.var(c, !0)), e.ok(c));
|
|
3660
3661
|
}
|
|
3661
3662
|
e.validateSchemaDeps = s, e.default = i;
|
|
3662
|
-
})), we = /* @__PURE__ */
|
|
3663
|
+
})), we = /* @__PURE__ */ u(((e) => {
|
|
3663
3664
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3664
|
-
var t =
|
|
3665
|
+
var t = C(), n = w();
|
|
3665
3666
|
e.default = {
|
|
3666
3667
|
keyword: "propertyNames",
|
|
3667
3668
|
type: "object",
|
|
@@ -3687,9 +3688,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3687
3688
|
}), e.ok(s);
|
|
3688
3689
|
}
|
|
3689
3690
|
};
|
|
3690
|
-
})), Te = /* @__PURE__ */
|
|
3691
|
+
})), Te = /* @__PURE__ */ u(((e) => {
|
|
3691
3692
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3692
|
-
var t =
|
|
3693
|
+
var t = M(), n = C(), r = T(), i = w();
|
|
3693
3694
|
e.default = {
|
|
3694
3695
|
keyword: "additionalProperties",
|
|
3695
3696
|
type: ["object"],
|
|
@@ -3754,9 +3755,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3754
3755
|
}
|
|
3755
3756
|
}
|
|
3756
3757
|
};
|
|
3757
|
-
})), Ee = /* @__PURE__ */
|
|
3758
|
+
})), Ee = /* @__PURE__ */ u(((e) => {
|
|
3758
3759
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3759
|
-
var t =
|
|
3760
|
+
var t = R(), n = M(), r = w(), i = Te();
|
|
3760
3761
|
e.default = {
|
|
3761
3762
|
keyword: "properties",
|
|
3762
3763
|
type: "object",
|
|
@@ -3783,9 +3784,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3783
3784
|
}
|
|
3784
3785
|
}
|
|
3785
3786
|
};
|
|
3786
|
-
})), De = /* @__PURE__ */
|
|
3787
|
+
})), De = /* @__PURE__ */ u(((e) => {
|
|
3787
3788
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3788
|
-
var t =
|
|
3789
|
+
var t = M(), n = C(), r = w(), i = w();
|
|
3789
3790
|
e.default = {
|
|
3790
3791
|
keyword: "patternProperties",
|
|
3791
3792
|
type: "object",
|
|
@@ -3818,9 +3819,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3818
3819
|
}
|
|
3819
3820
|
}
|
|
3820
3821
|
};
|
|
3821
|
-
})), Oe = /* @__PURE__ */
|
|
3822
|
+
})), Oe = /* @__PURE__ */ u(((e) => {
|
|
3822
3823
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3823
|
-
var t =
|
|
3824
|
+
var t = w();
|
|
3824
3825
|
e.default = {
|
|
3825
3826
|
keyword: "not",
|
|
3826
3827
|
schemaType: ["object", "boolean"],
|
|
@@ -3841,17 +3842,17 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3841
3842
|
},
|
|
3842
3843
|
error: { message: "must NOT be valid" }
|
|
3843
3844
|
};
|
|
3844
|
-
})), ke = /* @__PURE__ */
|
|
3845
|
+
})), ke = /* @__PURE__ */ u(((e) => {
|
|
3845
3846
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
3846
3847
|
keyword: "anyOf",
|
|
3847
3848
|
schemaType: "array",
|
|
3848
3849
|
trackErrors: !0,
|
|
3849
|
-
code:
|
|
3850
|
+
code: M().validateUnion,
|
|
3850
3851
|
error: { message: "must match a schema in anyOf" }
|
|
3851
3852
|
};
|
|
3852
|
-
})), Ae = /* @__PURE__ */
|
|
3853
|
+
})), Ae = /* @__PURE__ */ u(((e) => {
|
|
3853
3854
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3854
|
-
var t =
|
|
3855
|
+
var t = C(), n = w();
|
|
3855
3856
|
e.default = {
|
|
3856
3857
|
keyword: "oneOf",
|
|
3857
3858
|
schemaType: "array",
|
|
@@ -3881,9 +3882,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3881
3882
|
}
|
|
3882
3883
|
}
|
|
3883
3884
|
};
|
|
3884
|
-
})), je = /* @__PURE__ */
|
|
3885
|
+
})), je = /* @__PURE__ */ u(((e) => {
|
|
3885
3886
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3886
|
-
var t =
|
|
3887
|
+
var t = w();
|
|
3887
3888
|
e.default = {
|
|
3888
3889
|
keyword: "allOf",
|
|
3889
3890
|
schemaType: "array",
|
|
@@ -3902,9 +3903,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3902
3903
|
});
|
|
3903
3904
|
}
|
|
3904
3905
|
};
|
|
3905
|
-
})), Me = /* @__PURE__ */
|
|
3906
|
+
})), Me = /* @__PURE__ */ u(((e) => {
|
|
3906
3907
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3907
|
-
var t =
|
|
3908
|
+
var t = C(), n = w(), r = {
|
|
3908
3909
|
keyword: "if",
|
|
3909
3910
|
schemaType: ["object", "boolean"],
|
|
3910
3911
|
trackErrors: !0,
|
|
@@ -3945,9 +3946,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3945
3946
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
3946
3947
|
}
|
|
3947
3948
|
e.default = r;
|
|
3948
|
-
})), Ne = /* @__PURE__ */
|
|
3949
|
+
})), Ne = /* @__PURE__ */ u(((e) => {
|
|
3949
3950
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3950
|
-
var t =
|
|
3951
|
+
var t = w();
|
|
3951
3952
|
e.default = {
|
|
3952
3953
|
keyword: ["then", "else"],
|
|
3953
3954
|
schemaType: ["object", "boolean"],
|
|
@@ -3955,7 +3956,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3955
3956
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
3956
3957
|
}
|
|
3957
3958
|
};
|
|
3958
|
-
})), Pe = /* @__PURE__ */
|
|
3959
|
+
})), Pe = /* @__PURE__ */ u(((e) => {
|
|
3959
3960
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3960
3961
|
var t = ve(), n = be(), r = ye(), i = xe(), a = Se(), o = Ce(), s = we(), c = Te(), l = Ee(), u = De(), d = Oe(), f = ke(), p = Ae(), m = je(), h = Me(), g = Ne();
|
|
3961
3962
|
function _(e = !1) {
|
|
@@ -3975,9 +3976,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
3975
3976
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
3976
3977
|
}
|
|
3977
3978
|
e.default = _;
|
|
3978
|
-
})), Fe = /* @__PURE__ */
|
|
3979
|
+
})), Fe = /* @__PURE__ */ u(((e) => {
|
|
3979
3980
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicAnchor = void 0;
|
|
3980
|
-
var t =
|
|
3981
|
+
var t = C(), n = T(), r = V(), i = Z(), a = {
|
|
3981
3982
|
keyword: "$dynamicAnchor",
|
|
3982
3983
|
schemaType: "string",
|
|
3983
3984
|
code: (e) => o(e, e.schema)
|
|
@@ -4001,9 +4002,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4001
4002
|
return r.compileSchema.call(a, d), (0, i.getValidate)(e, d);
|
|
4002
4003
|
}
|
|
4003
4004
|
e.default = a;
|
|
4004
|
-
})), Ie = /* @__PURE__ */
|
|
4005
|
+
})), Ie = /* @__PURE__ */ u(((e) => {
|
|
4005
4006
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicRef = void 0;
|
|
4006
|
-
var t =
|
|
4007
|
+
var t = C(), n = T(), r = Z(), i = {
|
|
4007
4008
|
keyword: "$dynamicRef",
|
|
4008
4009
|
schemaType: "string",
|
|
4009
4010
|
code: (e) => a(e, e.schema)
|
|
@@ -4030,9 +4031,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4030
4031
|
}
|
|
4031
4032
|
}
|
|
4032
4033
|
e.dynamicRef = a, e.default = i;
|
|
4033
|
-
})), Le = /* @__PURE__ */
|
|
4034
|
+
})), Le = /* @__PURE__ */ u(((e) => {
|
|
4034
4035
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4035
|
-
var t = Fe(), n =
|
|
4036
|
+
var t = Fe(), n = w();
|
|
4036
4037
|
e.default = {
|
|
4037
4038
|
keyword: "$recursiveAnchor",
|
|
4038
4039
|
schemaType: "boolean",
|
|
@@ -4040,7 +4041,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4040
4041
|
e.schema ? (0, t.dynamicAnchor)(e, "") : (0, n.checkStrictMode)(e.it, "$recursiveAnchor: false is ignored");
|
|
4041
4042
|
}
|
|
4042
4043
|
};
|
|
4043
|
-
})), Re = /* @__PURE__ */
|
|
4044
|
+
})), Re = /* @__PURE__ */ u(((e) => {
|
|
4044
4045
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4045
4046
|
var t = Ie();
|
|
4046
4047
|
e.default = {
|
|
@@ -4048,7 +4049,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4048
4049
|
schemaType: "string",
|
|
4049
4050
|
code: (e) => (0, t.dynamicRef)(e, e.schema)
|
|
4050
4051
|
};
|
|
4051
|
-
})), ze = /* @__PURE__ */
|
|
4052
|
+
})), ze = /* @__PURE__ */ u(((e) => {
|
|
4052
4053
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4053
4054
|
var t = Fe(), n = Ie(), r = Le(), i = Re();
|
|
4054
4055
|
e.default = [
|
|
@@ -4057,7 +4058,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4057
4058
|
r.default,
|
|
4058
4059
|
i.default
|
|
4059
4060
|
];
|
|
4060
|
-
})), Be = /* @__PURE__ */
|
|
4061
|
+
})), Be = /* @__PURE__ */ u(((e) => {
|
|
4061
4062
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4062
4063
|
var t = Ce();
|
|
4063
4064
|
e.default = {
|
|
@@ -4067,7 +4068,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4067
4068
|
error: t.error,
|
|
4068
4069
|
code: (e) => (0, t.validatePropertyDeps)(e)
|
|
4069
4070
|
};
|
|
4070
|
-
})), Ve = /* @__PURE__ */
|
|
4071
|
+
})), Ve = /* @__PURE__ */ u(((e) => {
|
|
4071
4072
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4072
4073
|
var t = Ce();
|
|
4073
4074
|
e.default = {
|
|
@@ -4076,9 +4077,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4076
4077
|
schemaType: "object",
|
|
4077
4078
|
code: (e) => (0, t.validateSchemaDeps)(e)
|
|
4078
4079
|
};
|
|
4079
|
-
})), He = /* @__PURE__ */
|
|
4080
|
+
})), He = /* @__PURE__ */ u(((e) => {
|
|
4080
4081
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4081
|
-
var t =
|
|
4082
|
+
var t = w();
|
|
4082
4083
|
e.default = {
|
|
4083
4084
|
keyword: ["maxContains", "minContains"],
|
|
4084
4085
|
type: "array",
|
|
@@ -4087,7 +4088,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4087
4088
|
n.contains === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "contains" is ignored`);
|
|
4088
4089
|
}
|
|
4089
4090
|
};
|
|
4090
|
-
})), Ue = /* @__PURE__ */
|
|
4091
|
+
})), Ue = /* @__PURE__ */ u(((e) => {
|
|
4091
4092
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4092
4093
|
var t = Be(), n = Ve(), r = He();
|
|
4093
4094
|
e.default = [
|
|
@@ -4095,9 +4096,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4095
4096
|
n.default,
|
|
4096
4097
|
r.default
|
|
4097
4098
|
];
|
|
4098
|
-
})), We = /* @__PURE__ */
|
|
4099
|
+
})), We = /* @__PURE__ */ u(((e) => {
|
|
4099
4100
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4100
|
-
var t =
|
|
4101
|
+
var t = C(), n = w(), r = T();
|
|
4101
4102
|
e.default = {
|
|
4102
4103
|
keyword: "unevaluatedProperties",
|
|
4103
4104
|
type: "object",
|
|
@@ -4137,9 +4138,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4137
4138
|
}
|
|
4138
4139
|
}
|
|
4139
4140
|
};
|
|
4140
|
-
})), Ge = /* @__PURE__ */
|
|
4141
|
+
})), Ge = /* @__PURE__ */ u(((e) => {
|
|
4141
4142
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4142
|
-
var t =
|
|
4143
|
+
var t = C(), n = w();
|
|
4143
4144
|
e.default = {
|
|
4144
4145
|
keyword: "unevaluatedItems",
|
|
4145
4146
|
type: "array",
|
|
@@ -4169,13 +4170,13 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4169
4170
|
}
|
|
4170
4171
|
}
|
|
4171
4172
|
};
|
|
4172
|
-
})), Ke = /* @__PURE__ */
|
|
4173
|
+
})), Ke = /* @__PURE__ */ u(((e) => {
|
|
4173
4174
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4174
4175
|
var t = We(), n = Ge();
|
|
4175
4176
|
e.default = [t.default, n.default];
|
|
4176
|
-
})), qe = /* @__PURE__ */
|
|
4177
|
+
})), qe = /* @__PURE__ */ u(((e) => {
|
|
4177
4178
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4178
|
-
var t =
|
|
4179
|
+
var t = C();
|
|
4179
4180
|
e.default = {
|
|
4180
4181
|
keyword: "format",
|
|
4181
4182
|
type: ["number", "string"],
|
|
@@ -4248,9 +4249,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4248
4249
|
}
|
|
4249
4250
|
}
|
|
4250
4251
|
};
|
|
4251
|
-
})), Je = /* @__PURE__ */
|
|
4252
|
+
})), Je = /* @__PURE__ */ u(((e) => {
|
|
4252
4253
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [qe().default];
|
|
4253
|
-
})), Ye = /* @__PURE__ */
|
|
4254
|
+
})), Ye = /* @__PURE__ */ u(((e) => {
|
|
4254
4255
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
4255
4256
|
"title",
|
|
4256
4257
|
"description",
|
|
@@ -4264,7 +4265,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4264
4265
|
"contentEncoding",
|
|
4265
4266
|
"contentSchema"
|
|
4266
4267
|
];
|
|
4267
|
-
})), Xe = /* @__PURE__ */
|
|
4268
|
+
})), Xe = /* @__PURE__ */ u(((e) => {
|
|
4268
4269
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4269
4270
|
var t = ae(), n = _e(), r = Pe(), i = ze(), a = Ue(), o = Ke(), s = Je(), c = Ye();
|
|
4270
4271
|
e.default = [
|
|
@@ -4278,15 +4279,15 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4278
4279
|
a.default,
|
|
4279
4280
|
o.default
|
|
4280
4281
|
];
|
|
4281
|
-
})), Ze = /* @__PURE__ */
|
|
4282
|
+
})), Ze = /* @__PURE__ */ u(((e) => {
|
|
4282
4283
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
4283
4284
|
var t;
|
|
4284
4285
|
(function(e) {
|
|
4285
4286
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
4286
4287
|
})(t || (e.DiscrError = t = {}));
|
|
4287
|
-
})), Qe = /* @__PURE__ */
|
|
4288
|
+
})), Qe = /* @__PURE__ */ u(((e) => {
|
|
4288
4289
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4289
|
-
var t =
|
|
4290
|
+
var t = C(), n = Ze(), r = V(), i = B(), a = w();
|
|
4290
4291
|
e.default = {
|
|
4291
4292
|
keyword: "discriminator",
|
|
4292
4293
|
type: "object",
|
|
@@ -4354,7 +4355,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4354
4355
|
}
|
|
4355
4356
|
}
|
|
4356
4357
|
};
|
|
4357
|
-
})), $e = /* @__PURE__ */
|
|
4358
|
+
})), $e = /* @__PURE__ */ d({
|
|
4358
4359
|
$comment: () => st,
|
|
4359
4360
|
$dynamicAnchor: () => rt,
|
|
4360
4361
|
$id: () => tt,
|
|
@@ -4365,7 +4366,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4365
4366
|
properties: () => ct,
|
|
4366
4367
|
title: () => it,
|
|
4367
4368
|
type: () => ot
|
|
4368
|
-
}), et, tt, nt, rt, it, at, ot, st, ct, lt, ut =
|
|
4369
|
+
}), et, tt, nt, rt, it, at, ot, st, ct, lt, ut = l((() => {
|
|
4369
4370
|
et = "https://json-schema.org/draft/2020-12/schema", tt = "https://json-schema.org/draft/2020-12/schema", nt = {
|
|
4370
4371
|
"https://json-schema.org/draft/2020-12/vocab/core": !0,
|
|
4371
4372
|
"https://json-schema.org/draft/2020-12/vocab/applicator": !0,
|
|
@@ -4418,7 +4419,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4418
4419
|
$comment: st,
|
|
4419
4420
|
properties: ct
|
|
4420
4421
|
};
|
|
4421
|
-
})), dt = /* @__PURE__ */
|
|
4422
|
+
})), dt = /* @__PURE__ */ d({
|
|
4422
4423
|
$defs: () => yt,
|
|
4423
4424
|
$dynamicAnchor: () => ht,
|
|
4424
4425
|
$id: () => pt,
|
|
@@ -4428,7 +4429,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4428
4429
|
properties: () => vt,
|
|
4429
4430
|
title: () => gt,
|
|
4430
4431
|
type: () => _t
|
|
4431
|
-
}), ft, pt, mt, ht, gt, _t, vt, yt, bt, xt =
|
|
4432
|
+
}), ft, pt, mt, ht, gt, _t, vt, yt, bt, xt = l((() => {
|
|
4432
4433
|
ft = "https://json-schema.org/draft/2020-12/schema", pt = "https://json-schema.org/draft/2020-12/meta/applicator", mt = { "https://json-schema.org/draft/2020-12/vocab/applicator": !0 }, ht = "meta", gt = "Applicator vocabulary meta-schema", _t = ["object", "boolean"], vt = {
|
|
4433
4434
|
prefixItems: { $ref: "#/$defs/schemaArray" },
|
|
4434
4435
|
items: { $dynamicRef: "#meta" },
|
|
@@ -4472,7 +4473,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4472
4473
|
properties: vt,
|
|
4473
4474
|
$defs: yt
|
|
4474
4475
|
};
|
|
4475
|
-
})), St = /* @__PURE__ */
|
|
4476
|
+
})), St = /* @__PURE__ */ d({
|
|
4476
4477
|
$dynamicAnchor: () => Et,
|
|
4477
4478
|
$id: () => wt,
|
|
4478
4479
|
$schema: () => Ct,
|
|
@@ -4481,7 +4482,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4481
4482
|
properties: () => kt,
|
|
4482
4483
|
title: () => Dt,
|
|
4483
4484
|
type: () => Ot
|
|
4484
|
-
}), Ct, wt, Tt, Et, Dt, Ot, kt, At, jt =
|
|
4485
|
+
}), Ct, wt, Tt, Et, Dt, Ot, kt, At, jt = l((() => {
|
|
4485
4486
|
Ct = "https://json-schema.org/draft/2020-12/schema", wt = "https://json-schema.org/draft/2020-12/meta/unevaluated", Tt = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, Et = "meta", Dt = "Unevaluated applicator vocabulary meta-schema", Ot = ["object", "boolean"], kt = {
|
|
4486
4487
|
unevaluatedItems: { $dynamicRef: "#meta" },
|
|
4487
4488
|
unevaluatedProperties: { $dynamicRef: "#meta" }
|
|
@@ -4494,7 +4495,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4494
4495
|
type: Ot,
|
|
4495
4496
|
properties: kt
|
|
4496
4497
|
};
|
|
4497
|
-
})), Mt = /* @__PURE__ */
|
|
4498
|
+
})), Mt = /* @__PURE__ */ d({
|
|
4498
4499
|
$dynamicAnchor: () => It,
|
|
4499
4500
|
$id: () => Pt,
|
|
4500
4501
|
$schema: () => Nt,
|
|
@@ -4503,7 +4504,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4503
4504
|
properties: () => zt,
|
|
4504
4505
|
title: () => Lt,
|
|
4505
4506
|
type: () => Rt
|
|
4506
|
-
}), Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt =
|
|
4507
|
+
}), Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt = l((() => {
|
|
4507
4508
|
Nt = "https://json-schema.org/draft/2020-12/schema", Pt = "https://json-schema.org/draft/2020-12/meta/content", Ft = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, It = "meta", Lt = "Content vocabulary meta-schema", Rt = ["object", "boolean"], zt = {
|
|
4508
4509
|
contentEncoding: { type: "string" },
|
|
4509
4510
|
contentMediaType: { type: "string" },
|
|
@@ -4517,7 +4518,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4517
4518
|
type: Rt,
|
|
4518
4519
|
properties: zt
|
|
4519
4520
|
};
|
|
4520
|
-
})), Ht = /* @__PURE__ */
|
|
4521
|
+
})), Ht = /* @__PURE__ */ d({
|
|
4521
4522
|
$defs: () => Xt,
|
|
4522
4523
|
$dynamicAnchor: () => Kt,
|
|
4523
4524
|
$id: () => Wt,
|
|
@@ -4527,7 +4528,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4527
4528
|
properties: () => Yt,
|
|
4528
4529
|
title: () => qt,
|
|
4529
4530
|
type: () => Jt
|
|
4530
|
-
}), Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt =
|
|
4531
|
+
}), Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt = l((() => {
|
|
4531
4532
|
Ut = "https://json-schema.org/draft/2020-12/schema", Wt = "https://json-schema.org/draft/2020-12/meta/core", Gt = { "https://json-schema.org/draft/2020-12/vocab/core": !0 }, Kt = "meta", qt = "Core vocabulary meta-schema", Jt = ["object", "boolean"], Yt = {
|
|
4532
4533
|
$id: {
|
|
4533
4534
|
$ref: "#/$defs/uriReferenceString",
|
|
@@ -4572,7 +4573,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4572
4573
|
properties: Yt,
|
|
4573
4574
|
$defs: Xt
|
|
4574
4575
|
};
|
|
4575
|
-
})), $t = /* @__PURE__ */
|
|
4576
|
+
})), $t = /* @__PURE__ */ d({
|
|
4576
4577
|
$dynamicAnchor: () => rn,
|
|
4577
4578
|
$id: () => tn,
|
|
4578
4579
|
$schema: () => en,
|
|
@@ -4581,7 +4582,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4581
4582
|
properties: () => sn,
|
|
4582
4583
|
title: () => an,
|
|
4583
4584
|
type: () => on
|
|
4584
|
-
}), en, tn, nn, rn, an, on, sn, cn, ln =
|
|
4585
|
+
}), en, tn, nn, rn, an, on, sn, cn, ln = l((() => {
|
|
4585
4586
|
en = "https://json-schema.org/draft/2020-12/schema", tn = "https://json-schema.org/draft/2020-12/meta/format-annotation", nn = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, rn = "meta", an = "Format vocabulary meta-schema for annotation results", on = ["object", "boolean"], sn = { format: { type: "string" } }, cn = {
|
|
4586
4587
|
$schema: en,
|
|
4587
4588
|
$id: tn,
|
|
@@ -4591,17 +4592,17 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4591
4592
|
type: on,
|
|
4592
4593
|
properties: sn
|
|
4593
4594
|
};
|
|
4594
|
-
})), un = /* @__PURE__ */
|
|
4595
|
-
$dynamicAnchor: () =>
|
|
4595
|
+
})), un = /* @__PURE__ */ d({
|
|
4596
|
+
$dynamicAnchor: () => mn,
|
|
4596
4597
|
$id: () => fn,
|
|
4597
4598
|
$schema: () => dn,
|
|
4598
|
-
$vocabulary: () =>
|
|
4599
|
+
$vocabulary: () => pn,
|
|
4599
4600
|
default: () => _n,
|
|
4600
4601
|
properties: () => gn,
|
|
4601
|
-
title: () =>
|
|
4602
|
+
title: () => $,
|
|
4602
4603
|
type: () => hn
|
|
4603
|
-
}), dn, fn,
|
|
4604
|
-
dn = "https://json-schema.org/draft/2020-12/schema", fn = "https://json-schema.org/draft/2020-12/meta/meta-data",
|
|
4604
|
+
}), dn, fn, pn, mn, $, hn, gn, _n, vn = l((() => {
|
|
4605
|
+
dn = "https://json-schema.org/draft/2020-12/schema", fn = "https://json-schema.org/draft/2020-12/meta/meta-data", pn = { "https://json-schema.org/draft/2020-12/vocab/meta-data": !0 }, mn = "meta", $ = "Meta-data vocabulary meta-schema", hn = ["object", "boolean"], gn = {
|
|
4605
4606
|
title: { type: "string" },
|
|
4606
4607
|
description: { type: "string" },
|
|
4607
4608
|
default: !0,
|
|
@@ -4624,23 +4625,23 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4624
4625
|
}, _n = {
|
|
4625
4626
|
$schema: dn,
|
|
4626
4627
|
$id: fn,
|
|
4627
|
-
$vocabulary:
|
|
4628
|
-
$dynamicAnchor:
|
|
4629
|
-
title:
|
|
4628
|
+
$vocabulary: pn,
|
|
4629
|
+
$dynamicAnchor: mn,
|
|
4630
|
+
title: $,
|
|
4630
4631
|
type: hn,
|
|
4631
4632
|
properties: gn
|
|
4632
4633
|
};
|
|
4633
|
-
})), yn = /* @__PURE__ */
|
|
4634
|
-
$defs: () =>
|
|
4634
|
+
})), yn = /* @__PURE__ */ d({
|
|
4635
|
+
$defs: () => Dn,
|
|
4635
4636
|
$dynamicAnchor: () => Cn,
|
|
4636
4637
|
$id: () => xn,
|
|
4637
4638
|
$schema: () => bn,
|
|
4638
4639
|
$vocabulary: () => Sn,
|
|
4639
|
-
default: () =>
|
|
4640
|
+
default: () => On,
|
|
4640
4641
|
properties: () => En,
|
|
4641
4642
|
title: () => wn,
|
|
4642
4643
|
type: () => Tn
|
|
4643
|
-
}), bn, xn, Sn, Cn, wn, Tn, En,
|
|
4644
|
+
}), bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn = l((() => {
|
|
4644
4645
|
bn = "https://json-schema.org/draft/2020-12/schema", xn = "https://json-schema.org/draft/2020-12/meta/validation", Sn = { "https://json-schema.org/draft/2020-12/vocab/validation": !0 }, Cn = "meta", wn = "Validation vocabulary meta-schema", Tn = ["object", "boolean"], En = {
|
|
4645
4646
|
type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, {
|
|
4646
4647
|
type: "array",
|
|
@@ -4685,7 +4686,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4685
4686
|
type: "object",
|
|
4686
4687
|
additionalProperties: { $ref: "#/$defs/stringArray" }
|
|
4687
4688
|
}
|
|
4688
|
-
},
|
|
4689
|
+
}, Dn = {
|
|
4689
4690
|
nonNegativeInteger: {
|
|
4690
4691
|
type: "integer",
|
|
4691
4692
|
minimum: 0
|
|
@@ -4709,7 +4710,7 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4709
4710
|
uniqueItems: !0,
|
|
4710
4711
|
default: []
|
|
4711
4712
|
}
|
|
4712
|
-
},
|
|
4713
|
+
}, On = {
|
|
4713
4714
|
$schema: bn,
|
|
4714
4715
|
$id: xn,
|
|
4715
4716
|
$vocabulary: Sn,
|
|
@@ -4717,11 +4718,11 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4717
4718
|
title: wn,
|
|
4718
4719
|
type: Tn,
|
|
4719
4720
|
properties: En,
|
|
4720
|
-
$defs:
|
|
4721
|
+
$defs: Dn
|
|
4721
4722
|
};
|
|
4722
|
-
})),
|
|
4723
|
+
})), An = /* @__PURE__ */ u(((e) => {
|
|
4723
4724
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4724
|
-
var t = (ut(),
|
|
4725
|
+
var t = (ut(), p($e).default), n = (xt(), p(dt).default), r = (jt(), p(St).default), i = (Vt(), p(Mt).default), a = (Qt(), p(Ht).default), o = (ln(), p($t).default), s = (vn(), p(un).default), c = (kn(), p(yn).default), l = ["/properties"];
|
|
4725
4726
|
function u(e) {
|
|
4726
4727
|
return [
|
|
4727
4728
|
t,
|
|
@@ -4738,9 +4739,9 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4738
4739
|
}
|
|
4739
4740
|
}
|
|
4740
4741
|
e.default = u;
|
|
4741
|
-
})),
|
|
4742
|
+
})), jn = (/* @__PURE__ */ u(((e, t) => {
|
|
4742
4743
|
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;
|
|
4743
|
-
var n =
|
|
4744
|
+
var n = Y(), r = Xe(), i = Qe(), a = An(), o = "https://json-schema.org/draft/2020-12/schema", s = class extends n.default {
|
|
4744
4745
|
constructor(e = {}) {
|
|
4745
4746
|
super({
|
|
4746
4747
|
...e,
|
|
@@ -4762,14 +4763,14 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4762
4763
|
}
|
|
4763
4764
|
};
|
|
4764
4765
|
e.Ajv2020 = s, t.exports = e = s, t.exports.Ajv2020 = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
4765
|
-
var c =
|
|
4766
|
+
var c = R();
|
|
4766
4767
|
Object.defineProperty(e, "KeywordCxt", {
|
|
4767
4768
|
enumerable: !0,
|
|
4768
4769
|
get: function() {
|
|
4769
4770
|
return c.KeywordCxt;
|
|
4770
4771
|
}
|
|
4771
4772
|
});
|
|
4772
|
-
var l =
|
|
4773
|
+
var l = C();
|
|
4773
4774
|
Object.defineProperty(e, "_", {
|
|
4774
4775
|
enumerable: !0,
|
|
4775
4776
|
get: function() {
|
|
@@ -4801,40 +4802,40 @@ var b = /* @__PURE__ */ l(((e) => {
|
|
|
4801
4802
|
return l.CodeGen;
|
|
4802
4803
|
}
|
|
4803
4804
|
});
|
|
4804
|
-
var u =
|
|
4805
|
+
var u = z();
|
|
4805
4806
|
Object.defineProperty(e, "ValidationError", {
|
|
4806
4807
|
enumerable: !0,
|
|
4807
4808
|
get: function() {
|
|
4808
4809
|
return u.default;
|
|
4809
4810
|
}
|
|
4810
4811
|
});
|
|
4811
|
-
var d =
|
|
4812
|
+
var d = B();
|
|
4812
4813
|
Object.defineProperty(e, "MissingRefError", {
|
|
4813
4814
|
enumerable: !0,
|
|
4814
4815
|
get: function() {
|
|
4815
4816
|
return d.default;
|
|
4816
4817
|
}
|
|
4817
4818
|
});
|
|
4818
|
-
})))(),
|
|
4819
|
-
function
|
|
4820
|
-
let t =
|
|
4819
|
+
})))(), Mn = /* @__PURE__ */ new Map();
|
|
4820
|
+
function Nn(e) {
|
|
4821
|
+
let t = Mn.get(e);
|
|
4821
4822
|
if (t) return t;
|
|
4822
|
-
let n = new
|
|
4823
|
+
let n = new jn.Ajv2020({
|
|
4823
4824
|
allErrors: !0,
|
|
4824
4825
|
strict: !1
|
|
4825
|
-
}).compile(
|
|
4826
|
-
return
|
|
4826
|
+
}).compile(_(e));
|
|
4827
|
+
return Mn.set(e, n), n;
|
|
4827
4828
|
}
|
|
4828
|
-
function
|
|
4829
|
+
function Pn(e) {
|
|
4829
4830
|
return (e ?? []).map((e) => `${e.instancePath === "" ? "<root>" : e.instancePath}: ${e.message ?? "invalid"}`);
|
|
4830
4831
|
}
|
|
4831
|
-
function
|
|
4832
|
-
let n =
|
|
4832
|
+
function Fn(e, t) {
|
|
4833
|
+
let n = Nn(e);
|
|
4833
4834
|
if (n(t)) return {
|
|
4834
4835
|
ok: !0,
|
|
4835
4836
|
value: t
|
|
4836
4837
|
};
|
|
4837
|
-
let r =
|
|
4838
|
+
let r = Pn(n.errors);
|
|
4838
4839
|
return {
|
|
4839
4840
|
ok: !1,
|
|
4840
4841
|
error: {
|
|
@@ -4845,13 +4846,19 @@ function Pn(e, t) {
|
|
|
4845
4846
|
}
|
|
4846
4847
|
};
|
|
4847
4848
|
}
|
|
4848
|
-
function Fn(e) {
|
|
4849
|
-
return Pn("coverage-v1.schema.json", e);
|
|
4850
|
-
}
|
|
4851
4849
|
function In(e) {
|
|
4852
|
-
return
|
|
4850
|
+
return Fn("coverage-v1.schema.json", e);
|
|
4851
|
+
}
|
|
4852
|
+
function Ln(e) {
|
|
4853
|
+
return Fn("properties-v1.schema.json", e);
|
|
4854
|
+
}
|
|
4855
|
+
function Rn(e) {
|
|
4856
|
+
return Bn(e, "coverage-v1.schema.json", In);
|
|
4853
4857
|
}
|
|
4854
|
-
function
|
|
4858
|
+
function zn(e) {
|
|
4859
|
+
return Bn(e, "properties-v1.schema.json", Ln);
|
|
4860
|
+
}
|
|
4861
|
+
function Bn(e, t, n) {
|
|
4855
4862
|
let r;
|
|
4856
4863
|
try {
|
|
4857
4864
|
r = JSON.parse(e);
|
|
@@ -4869,4 +4876,51 @@ function Ln(e, t, n) {
|
|
|
4869
4876
|
return n(r);
|
|
4870
4877
|
}
|
|
4871
4878
|
//#endregion
|
|
4872
|
-
|
|
4879
|
+
//#region src/quire/exec.ts
|
|
4880
|
+
function Vn(e) {
|
|
4881
|
+
try {
|
|
4882
|
+
return i("quire", e, {
|
|
4883
|
+
encoding: "utf8",
|
|
4884
|
+
stdio: [
|
|
4885
|
+
"ignore",
|
|
4886
|
+
"pipe",
|
|
4887
|
+
"pipe"
|
|
4888
|
+
]
|
|
4889
|
+
});
|
|
4890
|
+
} catch (t) {
|
|
4891
|
+
let n = t, r = String(n.stderr ?? "").trim();
|
|
4892
|
+
throw Error(`quire ${e.join(" ")} exited ${n.status ?? "abnormally"}` + (r ? `:\n${r}` : " with no diagnostic on stderr."));
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
function Hn(e) {
|
|
4896
|
+
try {
|
|
4897
|
+
return {
|
|
4898
|
+
stdout: i("quire", e, {
|
|
4899
|
+
encoding: "utf8",
|
|
4900
|
+
stdio: [
|
|
4901
|
+
"ignore",
|
|
4902
|
+
"pipe",
|
|
4903
|
+
"pipe"
|
|
4904
|
+
]
|
|
4905
|
+
}),
|
|
4906
|
+
stderr: "",
|
|
4907
|
+
ok: !0
|
|
4908
|
+
};
|
|
4909
|
+
} catch (e) {
|
|
4910
|
+
let t = e;
|
|
4911
|
+
return {
|
|
4912
|
+
stdout: String(t.stdout ?? ""),
|
|
4913
|
+
stderr: String(t.stderr ?? "").trim(),
|
|
4914
|
+
ok: !1
|
|
4915
|
+
};
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4918
|
+
function Un() {
|
|
4919
|
+
try {
|
|
4920
|
+
return i("quire", ["--version"], { encoding: "utf8" });
|
|
4921
|
+
} catch {
|
|
4922
|
+
return null;
|
|
4923
|
+
}
|
|
4924
|
+
}
|
|
4925
|
+
//#endregion
|
|
4926
|
+
export { zn as a, Rn as i, Vn as n, b as o, Hn as r, Un as t };
|