@ambita/design-system 4.0.2-951.0 → 4.0.2-971.0
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/dist/ds.js +2 -2
- package/dist/ds.js.map +1 -1
- package/dist/ds.mjs +181 -181
- package/dist/ds.mjs.map +1 -1
- package/dist/ds.umd.js +11 -11
- package/dist/ds.umd.js.map +1 -1
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/ds.mjs
CHANGED
|
@@ -1468,7 +1468,7 @@ function yy(e, t, r, n, a, s) {
|
|
|
1468
1468
|
])) : de("", !0)
|
|
1469
1469
|
], 10, fy);
|
|
1470
1470
|
}
|
|
1471
|
-
const Iz = /* @__PURE__ */ te(dy, [["render", yy], ["__scopeId", "data-v-
|
|
1471
|
+
const Iz = /* @__PURE__ */ te(dy, [["render", yy], ["__scopeId", "data-v-2626d293"]]), gy = X({
|
|
1472
1472
|
name: "aux-textarea",
|
|
1473
1473
|
props: {
|
|
1474
1474
|
modelValue: {
|
|
@@ -6561,7 +6561,7 @@ function Q4(e, t) {
|
|
|
6561
6561
|
return rh(t).filter((r) => !(0, Si.alwaysValidSchema)(e, t[r]));
|
|
6562
6562
|
}
|
|
6563
6563
|
le.schemaProperties = Q4;
|
|
6564
|
-
function
|
|
6564
|
+
function e3({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath: a, errorPath: s }, it: o }, i, l, c) {
|
|
6565
6565
|
const d = c ? (0, Ce._)`${e}, ${t}, ${n}${a}` : t, h = [
|
|
6566
6566
|
[lr.default.instancePath, (0, Ce.strConcat)(lr.default.instancePath, s)],
|
|
6567
6567
|
[lr.default.parentData, o.parentData],
|
|
@@ -6572,18 +6572,18 @@ function eM({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath:
|
|
|
6572
6572
|
const g = (0, Ce._)`${d}, ${r.object(...h)}`;
|
|
6573
6573
|
return l !== Ce.nil ? (0, Ce._)`${i}.call(${l}, ${g})` : (0, Ce._)`${i}(${g})`;
|
|
6574
6574
|
}
|
|
6575
|
-
le.callValidateCode =
|
|
6576
|
-
const
|
|
6577
|
-
function
|
|
6575
|
+
le.callValidateCode = e3;
|
|
6576
|
+
const t3 = (0, Ce._)`new RegExp`;
|
|
6577
|
+
function r3({ gen: e, it: { opts: t } }, r) {
|
|
6578
6578
|
const n = t.unicodeRegExp ? "u" : "", { regExp: a } = t.code, s = a(r, n);
|
|
6579
6579
|
return e.scopeValue("pattern", {
|
|
6580
6580
|
key: s.toString(),
|
|
6581
6581
|
ref: s,
|
|
6582
|
-
code: (0, Ce._)`${a.code === "new RegExp" ?
|
|
6582
|
+
code: (0, Ce._)`${a.code === "new RegExp" ? t3 : (0, J4.useFunc)(e, a)}(${r}, ${n})`
|
|
6583
6583
|
});
|
|
6584
6584
|
}
|
|
6585
|
-
le.usePattern =
|
|
6586
|
-
function
|
|
6585
|
+
le.usePattern = r3;
|
|
6586
|
+
function n3(e) {
|
|
6587
6587
|
const { gen: t, data: r, keyword: n, it: a } = e, s = t.name("valid");
|
|
6588
6588
|
if (a.allErrors) {
|
|
6589
6589
|
const i = t.let("valid", !0);
|
|
@@ -6601,8 +6601,8 @@ function nM(e) {
|
|
|
6601
6601
|
});
|
|
6602
6602
|
}
|
|
6603
6603
|
}
|
|
6604
|
-
le.validateArray =
|
|
6605
|
-
function
|
|
6604
|
+
le.validateArray = n3;
|
|
6605
|
+
function a3(e) {
|
|
6606
6606
|
const { gen: t, schema: r, keyword: n, it: a } = e;
|
|
6607
6607
|
if (!Array.isArray(r))
|
|
6608
6608
|
throw new Error("ajv implementation error");
|
|
@@ -6618,11 +6618,11 @@ function aM(e) {
|
|
|
6618
6618
|
t.assign(o, (0, Ce._)`${o} || ${i}`), e.mergeValidEvaluated(d, i) || t.if((0, Ce.not)(o));
|
|
6619
6619
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
6620
6620
|
}
|
|
6621
|
-
le.validateUnion =
|
|
6621
|
+
le.validateUnion = a3;
|
|
6622
6622
|
Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
6623
6623
|
zt.validateKeywordUsage = zt.validSchemaType = zt.funcKeywordCode = zt.macroKeywordCode = void 0;
|
|
6624
|
-
const Qe = fe, Cr = Ht,
|
|
6625
|
-
function
|
|
6624
|
+
const Qe = fe, Cr = Ht, s3 = le, o3 = oa;
|
|
6625
|
+
function i3(e, t) {
|
|
6626
6626
|
const { gen: r, keyword: n, schema: a, parentSchema: s, it: o } = e, i = t.macro.call(o.self, a, s, o), l = nh(r, n, i);
|
|
6627
6627
|
o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
|
|
6628
6628
|
const c = r.name("valid");
|
|
@@ -6634,11 +6634,11 @@ function iM(e, t) {
|
|
|
6634
6634
|
compositeRule: !0
|
|
6635
6635
|
}, c), e.pass(c, () => e.error(!0));
|
|
6636
6636
|
}
|
|
6637
|
-
zt.macroKeywordCode =
|
|
6638
|
-
function
|
|
6637
|
+
zt.macroKeywordCode = i3;
|
|
6638
|
+
function u3(e, t) {
|
|
6639
6639
|
var r;
|
|
6640
6640
|
const { gen: n, keyword: a, schema: s, parentSchema: o, $data: i, it: l } = e;
|
|
6641
|
-
|
|
6641
|
+
c3(l, t);
|
|
6642
6642
|
const c = !i && t.compile ? t.compile.call(l.self, s, o, l) : t.validate, d = nh(n, a, c), h = n.let("valid");
|
|
6643
6643
|
e.block$data(h, g), e.ok((r = t.valid) !== null && r !== void 0 ? r : h);
|
|
6644
6644
|
function g() {
|
|
@@ -6646,7 +6646,7 @@ function uM(e, t) {
|
|
|
6646
6646
|
b(), t.modifying && ud(e), m(() => e.error());
|
|
6647
6647
|
else {
|
|
6648
6648
|
const p = t.async ? E() : $();
|
|
6649
|
-
t.modifying && ud(e), m(() =>
|
|
6649
|
+
t.modifying && ud(e), m(() => l3(e, p));
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
6652
6652
|
function E() {
|
|
@@ -6659,25 +6659,25 @@ function uM(e, t) {
|
|
|
6659
6659
|
}
|
|
6660
6660
|
function b(p = t.async ? (0, Qe._)`await ` : Qe.nil) {
|
|
6661
6661
|
const v = l.opts.passContext ? Cr.default.this : Cr.default.self, w = !("compile" in t && !i || t.schema === !1);
|
|
6662
|
-
n.assign(h, (0, Qe._)`${p}${(0,
|
|
6662
|
+
n.assign(h, (0, Qe._)`${p}${(0, s3.callValidateCode)(e, d, v, w)}`, t.modifying);
|
|
6663
6663
|
}
|
|
6664
6664
|
function m(p) {
|
|
6665
6665
|
var v;
|
|
6666
6666
|
n.if((0, Qe.not)((v = t.valid) !== null && v !== void 0 ? v : h), p);
|
|
6667
6667
|
}
|
|
6668
6668
|
}
|
|
6669
|
-
zt.funcKeywordCode =
|
|
6669
|
+
zt.funcKeywordCode = u3;
|
|
6670
6670
|
function ud(e) {
|
|
6671
6671
|
const { gen: t, data: r, it: n } = e;
|
|
6672
6672
|
t.if(n.parentData, () => t.assign(r, (0, Qe._)`${n.parentData}[${n.parentDataProperty}]`));
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function l3(e, t) {
|
|
6675
6675
|
const { gen: r } = e;
|
|
6676
6676
|
r.if((0, Qe._)`Array.isArray(${t})`, () => {
|
|
6677
|
-
r.assign(Cr.default.vErrors, (0, Qe._)`${Cr.default.vErrors} === null ? ${t} : ${Cr.default.vErrors}.concat(${t})`).assign(Cr.default.errors, (0, Qe._)`${Cr.default.vErrors}.length`), (0,
|
|
6677
|
+
r.assign(Cr.default.vErrors, (0, Qe._)`${Cr.default.vErrors} === null ? ${t} : ${Cr.default.vErrors}.concat(${t})`).assign(Cr.default.errors, (0, Qe._)`${Cr.default.vErrors}.length`), (0, o3.extendErrors)(e);
|
|
6678
6678
|
}, () => e.error());
|
|
6679
6679
|
}
|
|
6680
|
-
function
|
|
6680
|
+
function c3({ schemaEnv: e }, t) {
|
|
6681
6681
|
if (t.async && !e.$async)
|
|
6682
6682
|
throw new Error("async keyword in sync schema");
|
|
6683
6683
|
}
|
|
@@ -6686,11 +6686,11 @@ function nh(e, t, r) {
|
|
|
6686
6686
|
throw new Error(`keyword "${t}" failed to compile`);
|
|
6687
6687
|
return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0, Qe.stringify)(r) });
|
|
6688
6688
|
}
|
|
6689
|
-
function
|
|
6689
|
+
function d3(e, t, r = !1) {
|
|
6690
6690
|
return !t.length || t.some((n) => n === "array" ? Array.isArray(e) : n === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == n || r && typeof e > "u");
|
|
6691
6691
|
}
|
|
6692
|
-
zt.validSchemaType =
|
|
6693
|
-
function
|
|
6692
|
+
zt.validSchemaType = d3;
|
|
6693
|
+
function f3({ schema: e, opts: t, self: r, errSchemaPath: n }, a, s) {
|
|
6694
6694
|
if (Array.isArray(a.keyword) ? !a.keyword.includes(s) : a.keyword !== s)
|
|
6695
6695
|
throw new Error("ajv implementation error");
|
|
6696
6696
|
const o = a.dependencies;
|
|
@@ -6704,12 +6704,12 @@ function fM({ schema: e, opts: t, self: r, errSchemaPath: n }, a, s) {
|
|
|
6704
6704
|
throw new Error(l);
|
|
6705
6705
|
}
|
|
6706
6706
|
}
|
|
6707
|
-
zt.validateKeywordUsage =
|
|
6707
|
+
zt.validateKeywordUsage = f3;
|
|
6708
6708
|
var $r = {};
|
|
6709
6709
|
Object.defineProperty($r, "__esModule", { value: !0 });
|
|
6710
6710
|
$r.extendSubschemaMode = $r.extendSubschemaData = $r.getSubschema = void 0;
|
|
6711
6711
|
const Ut = fe, ah = $e;
|
|
6712
|
-
function
|
|
6712
|
+
function p3(e, { keyword: t, schemaProp: r, schema: n, schemaPath: a, errSchemaPath: s, topSchemaRef: o }) {
|
|
6713
6713
|
if (t !== void 0 && n !== void 0)
|
|
6714
6714
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
6715
6715
|
if (t !== void 0) {
|
|
@@ -6736,8 +6736,8 @@ function pM(e, { keyword: t, schemaProp: r, schema: n, schemaPath: a, errSchemaP
|
|
|
6736
6736
|
}
|
|
6737
6737
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
6738
6738
|
}
|
|
6739
|
-
$r.getSubschema =
|
|
6740
|
-
function
|
|
6739
|
+
$r.getSubschema = p3;
|
|
6740
|
+
function h3(e, t, { dataProp: r, dataPropType: n, data: a, dataTypes: s, propertyName: o }) {
|
|
6741
6741
|
if (a !== void 0 && r !== void 0)
|
|
6742
6742
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
6743
6743
|
const { gen: i } = t;
|
|
@@ -6754,11 +6754,11 @@ function hM(e, t, { dataProp: r, dataPropType: n, data: a, dataTypes: s, propert
|
|
|
6754
6754
|
e.data = c, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = /* @__PURE__ */ new Set(), e.parentData = t.data, e.dataNames = [...t.dataNames, c];
|
|
6755
6755
|
}
|
|
6756
6756
|
}
|
|
6757
|
-
$r.extendSubschemaData =
|
|
6758
|
-
function
|
|
6757
|
+
$r.extendSubschemaData = h3;
|
|
6758
|
+
function m3(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: n, createErrors: a, allErrors: s }) {
|
|
6759
6759
|
n !== void 0 && (e.compositeRule = n), a !== void 0 && (e.createErrors = a), s !== void 0 && (e.allErrors = s), e.jtdDiscriminator = t, e.jtdMetadata = r;
|
|
6760
6760
|
}
|
|
6761
|
-
$r.extendSubschemaMode =
|
|
6761
|
+
$r.extendSubschemaMode = m3;
|
|
6762
6762
|
var Ge = {}, js = function e(t, r) {
|
|
6763
6763
|
if (t === r)
|
|
6764
6764
|
return !0;
|
|
@@ -6793,14 +6793,14 @@ var Ge = {}, js = function e(t, r) {
|
|
|
6793
6793
|
return !0;
|
|
6794
6794
|
}
|
|
6795
6795
|
return t !== t && r !== r;
|
|
6796
|
-
}, No = {}, $
|
|
6796
|
+
}, No = {}, $3 = {
|
|
6797
6797
|
get exports() {
|
|
6798
6798
|
return No;
|
|
6799
6799
|
},
|
|
6800
6800
|
set exports(e) {
|
|
6801
6801
|
No = e;
|
|
6802
6802
|
}
|
|
6803
|
-
}, pr = $
|
|
6803
|
+
}, pr = $3.exports = function(e, t, r) {
|
|
6804
6804
|
typeof t == "function" && (r = t, t = {}), r = t.cb || r;
|
|
6805
6805
|
var n = typeof r == "function" ? r : r.pre || function() {
|
|
6806
6806
|
}, a = r.post || function() {
|
|
@@ -6863,19 +6863,19 @@ function Fa(e, t, r, n, a, s, o, i, l, c) {
|
|
|
6863
6863
|
} else if (d in pr.propsKeywords) {
|
|
6864
6864
|
if (h && typeof h == "object")
|
|
6865
6865
|
for (var E in h)
|
|
6866
|
-
Fa(e, t, r, h[E], a + "/" + d + "/" +
|
|
6866
|
+
Fa(e, t, r, h[E], a + "/" + d + "/" + v3(E), s, a, d, n, E);
|
|
6867
6867
|
} else
|
|
6868
6868
|
(d in pr.keywords || e.allKeys && !(d in pr.skipKeywords)) && Fa(e, t, r, h, a + "/" + d, s, a, d, n);
|
|
6869
6869
|
}
|
|
6870
6870
|
r(n, a, s, o, i, l, c);
|
|
6871
6871
|
}
|
|
6872
6872
|
}
|
|
6873
|
-
function
|
|
6873
|
+
function v3(e) {
|
|
6874
6874
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
6875
6875
|
}
|
|
6876
6876
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
6877
6877
|
Ge.getSchemaRefs = Ge.resolveUrl = Ge.normalizeId = Ge._getFullPath = Ge.getFullPath = Ge.inlineRef = void 0;
|
|
6878
|
-
const
|
|
6878
|
+
const y3 = $e, g3 = js, _3 = No, b3 = /* @__PURE__ */ new Set([
|
|
6879
6879
|
"type",
|
|
6880
6880
|
"format",
|
|
6881
6881
|
"pattern",
|
|
@@ -6893,11 +6893,11 @@ const yM = $e, gM = js, _M = No, bM = /* @__PURE__ */ new Set([
|
|
|
6893
6893
|
"enum",
|
|
6894
6894
|
"const"
|
|
6895
6895
|
]);
|
|
6896
|
-
function
|
|
6896
|
+
function w3(e, t = !0) {
|
|
6897
6897
|
return typeof e == "boolean" ? !0 : t === !0 ? !jo(e) : t ? sh(e) <= t : !1;
|
|
6898
6898
|
}
|
|
6899
|
-
Ge.inlineRef =
|
|
6900
|
-
const
|
|
6899
|
+
Ge.inlineRef = w3;
|
|
6900
|
+
const E3 = /* @__PURE__ */ new Set([
|
|
6901
6901
|
"$ref",
|
|
6902
6902
|
"$recursiveRef",
|
|
6903
6903
|
"$recursiveAnchor",
|
|
@@ -6906,7 +6906,7 @@ const EM = /* @__PURE__ */ new Set([
|
|
|
6906
6906
|
]);
|
|
6907
6907
|
function jo(e) {
|
|
6908
6908
|
for (const t in e) {
|
|
6909
|
-
if (
|
|
6909
|
+
if (E3.has(t))
|
|
6910
6910
|
return !0;
|
|
6911
6911
|
const r = e[t];
|
|
6912
6912
|
if (Array.isArray(r) && r.some(jo) || typeof r == "object" && jo(r))
|
|
@@ -6919,7 +6919,7 @@ function sh(e) {
|
|
|
6919
6919
|
for (const r in e) {
|
|
6920
6920
|
if (r === "$ref")
|
|
6921
6921
|
return 1 / 0;
|
|
6922
|
-
if (t++, !
|
|
6922
|
+
if (t++, !b3.has(r) && (typeof e[r] == "object" && (0, y3.eachItem)(e[r], (n) => t += sh(n)), t === 1 / 0))
|
|
6923
6923
|
return 1 / 0;
|
|
6924
6924
|
}
|
|
6925
6925
|
return t;
|
|
@@ -6934,21 +6934,21 @@ function ih(e, t) {
|
|
|
6934
6934
|
return e.serialize(t).split("#")[0] + "#";
|
|
6935
6935
|
}
|
|
6936
6936
|
Ge._getFullPath = ih;
|
|
6937
|
-
const
|
|
6937
|
+
const S3 = /#\/?$/;
|
|
6938
6938
|
function Yr(e) {
|
|
6939
|
-
return e ? e.replace(
|
|
6939
|
+
return e ? e.replace(S3, "") : "";
|
|
6940
6940
|
}
|
|
6941
6941
|
Ge.normalizeId = Yr;
|
|
6942
|
-
function
|
|
6942
|
+
function A3(e, t, r) {
|
|
6943
6943
|
return r = Yr(r), e.resolve(t, r);
|
|
6944
6944
|
}
|
|
6945
|
-
Ge.resolveUrl =
|
|
6946
|
-
const
|
|
6947
|
-
function
|
|
6945
|
+
Ge.resolveUrl = A3;
|
|
6946
|
+
const P3 = /^[a-z_][-a-z0-9._]*$/i;
|
|
6947
|
+
function O3(e, t) {
|
|
6948
6948
|
if (typeof e == "boolean")
|
|
6949
6949
|
return {};
|
|
6950
6950
|
const { schemaId: r, uriResolver: n } = this.opts, a = Yr(e[r] || t), s = { "": a }, o = oh(n, a, !1), i = {}, l = /* @__PURE__ */ new Set();
|
|
6951
|
-
return
|
|
6951
|
+
return _3(e, { allKeys: !0 }, (h, g, E, $) => {
|
|
6952
6952
|
if ($ === void 0)
|
|
6953
6953
|
return;
|
|
6954
6954
|
const b = o + g;
|
|
@@ -6964,54 +6964,54 @@ function OM(e, t) {
|
|
|
6964
6964
|
}
|
|
6965
6965
|
function v(w) {
|
|
6966
6966
|
if (typeof w == "string") {
|
|
6967
|
-
if (!
|
|
6967
|
+
if (!P3.test(w))
|
|
6968
6968
|
throw new Error(`invalid anchor "${w}"`);
|
|
6969
6969
|
p.call(this, `#${w}`);
|
|
6970
6970
|
}
|
|
6971
6971
|
}
|
|
6972
6972
|
}), i;
|
|
6973
6973
|
function c(h, g, E) {
|
|
6974
|
-
if (g !== void 0 && !
|
|
6974
|
+
if (g !== void 0 && !g3(h, g))
|
|
6975
6975
|
throw d(E);
|
|
6976
6976
|
}
|
|
6977
6977
|
function d(h) {
|
|
6978
6978
|
return new Error(`reference "${h}" resolves to more than one schema`);
|
|
6979
6979
|
}
|
|
6980
6980
|
}
|
|
6981
|
-
Ge.getSchemaRefs =
|
|
6981
|
+
Ge.getSchemaRefs = O3;
|
|
6982
6982
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
6983
6983
|
Ct.getData = Ct.KeywordCxt = Ct.validateFunctionCode = void 0;
|
|
6984
|
-
const uh = en, ld = ia, Oi = rr, as = ia,
|
|
6985
|
-
function
|
|
6984
|
+
const uh = en, ld = ia, Oi = rr, as = ia, C3 = Ns, Dn = zt, io = $r, J = fe, re = Ht, T3 = Ge, nr = $e, On = oa;
|
|
6985
|
+
function I3(e) {
|
|
6986
6986
|
if (dh(e) && (fh(e), ch(e))) {
|
|
6987
|
-
|
|
6987
|
+
j3(e);
|
|
6988
6988
|
return;
|
|
6989
6989
|
}
|
|
6990
6990
|
lh(e, () => (0, uh.topBoolOrEmptySchema)(e));
|
|
6991
6991
|
}
|
|
6992
|
-
Ct.validateFunctionCode =
|
|
6992
|
+
Ct.validateFunctionCode = I3;
|
|
6993
6993
|
function lh({ gen: e, validateName: t, schema: r, schemaEnv: n, opts: a }, s) {
|
|
6994
6994
|
a.code.es5 ? e.func(t, (0, J._)`${re.default.data}, ${re.default.valCxt}`, n.$async, () => {
|
|
6995
|
-
e.code((0, J._)`"use strict"; ${cd(r, a)}`),
|
|
6996
|
-
}) : e.func(t, (0, J._)`${re.default.data}, ${
|
|
6995
|
+
e.code((0, J._)`"use strict"; ${cd(r, a)}`), N3(e, a), e.code(s);
|
|
6996
|
+
}) : e.func(t, (0, J._)`${re.default.data}, ${R3(a)}`, n.$async, () => e.code(cd(r, a)).code(s));
|
|
6997
6997
|
}
|
|
6998
|
-
function
|
|
6998
|
+
function R3(e) {
|
|
6999
6999
|
return (0, J._)`{${re.default.instancePath}="", ${re.default.parentData}, ${re.default.parentDataProperty}, ${re.default.rootData}=${re.default.data}${e.dynamicRef ? (0, J._)`, ${re.default.dynamicAnchors}={}` : J.nil}}={}`;
|
|
7000
7000
|
}
|
|
7001
|
-
function
|
|
7001
|
+
function N3(e, t) {
|
|
7002
7002
|
e.if(re.default.valCxt, () => {
|
|
7003
7003
|
e.var(re.default.instancePath, (0, J._)`${re.default.valCxt}.${re.default.instancePath}`), e.var(re.default.parentData, (0, J._)`${re.default.valCxt}.${re.default.parentData}`), e.var(re.default.parentDataProperty, (0, J._)`${re.default.valCxt}.${re.default.parentDataProperty}`), e.var(re.default.rootData, (0, J._)`${re.default.valCxt}.${re.default.rootData}`), t.dynamicRef && e.var(re.default.dynamicAnchors, (0, J._)`${re.default.valCxt}.${re.default.dynamicAnchors}`);
|
|
7004
7004
|
}, () => {
|
|
7005
7005
|
e.var(re.default.instancePath, (0, J._)`""`), e.var(re.default.parentData, (0, J._)`undefined`), e.var(re.default.parentDataProperty, (0, J._)`undefined`), e.var(re.default.rootData, re.default.data), t.dynamicRef && e.var(re.default.dynamicAnchors, (0, J._)`{}`);
|
|
7006
7006
|
});
|
|
7007
7007
|
}
|
|
7008
|
-
function
|
|
7008
|
+
function j3(e) {
|
|
7009
7009
|
const { schema: t, opts: r, gen: n } = e;
|
|
7010
7010
|
lh(e, () => {
|
|
7011
|
-
r.$comment && t.$comment && hh(e),
|
|
7011
|
+
r.$comment && t.$comment && hh(e), F3(e), n.let(re.default.vErrors, null), n.let(re.default.errors, 0), r.unevaluated && D3(e), ph(e), q3(e);
|
|
7012
7012
|
});
|
|
7013
7013
|
}
|
|
7014
|
-
function
|
|
7014
|
+
function D3(e) {
|
|
7015
7015
|
const { gen: t, validateName: r } = e;
|
|
7016
7016
|
e.evaluated = t.const("evaluated", (0, J._)`${r}.evaluated`), t.if((0, J._)`${e.evaluated}.dynamicProps`, () => t.assign((0, J._)`${e.evaluated}.props`, (0, J._)`undefined`)), t.if((0, J._)`${e.evaluated}.dynamicItems`, () => t.assign((0, J._)`${e.evaluated}.items`, (0, J._)`undefined`));
|
|
7017
7017
|
}
|
|
@@ -7019,9 +7019,9 @@ function cd(e, t) {
|
|
|
7019
7019
|
const r = typeof e == "object" && e[t.schemaId];
|
|
7020
7020
|
return r && (t.code.source || t.code.process) ? (0, J._)`/*# sourceURL=${r} */` : J.nil;
|
|
7021
7021
|
}
|
|
7022
|
-
function
|
|
7022
|
+
function k3(e, t) {
|
|
7023
7023
|
if (dh(e) && (fh(e), ch(e))) {
|
|
7024
|
-
|
|
7024
|
+
M3(e, t);
|
|
7025
7025
|
return;
|
|
7026
7026
|
}
|
|
7027
7027
|
(0, uh.boolOrEmptySchema)(e, t);
|
|
@@ -7037,14 +7037,14 @@ function ch({ schema: e, self: t }) {
|
|
|
7037
7037
|
function dh(e) {
|
|
7038
7038
|
return typeof e.schema != "boolean";
|
|
7039
7039
|
}
|
|
7040
|
-
function
|
|
7040
|
+
function M3(e, t) {
|
|
7041
7041
|
const { schema: r, gen: n, opts: a } = e;
|
|
7042
|
-
a.$comment && r.$comment && hh(e),
|
|
7042
|
+
a.$comment && r.$comment && hh(e), V3(e), U3(e);
|
|
7043
7043
|
const s = n.const("_errs", re.default.errors);
|
|
7044
7044
|
ph(e, s), n.var(t, (0, J._)`${s} === ${re.default.errors}`);
|
|
7045
7045
|
}
|
|
7046
7046
|
function fh(e) {
|
|
7047
|
-
(0, nr.checkUnknownRules)(e),
|
|
7047
|
+
(0, nr.checkUnknownRules)(e), L3(e);
|
|
7048
7048
|
}
|
|
7049
7049
|
function ph(e, t) {
|
|
7050
7050
|
if (e.opts.jtd)
|
|
@@ -7052,19 +7052,19 @@ function ph(e, t) {
|
|
|
7052
7052
|
const r = (0, ld.getSchemaTypes)(e.schema), n = (0, ld.coerceAndCheckDataType)(e, r);
|
|
7053
7053
|
dd(e, r, !n, t);
|
|
7054
7054
|
}
|
|
7055
|
-
function
|
|
7055
|
+
function L3(e) {
|
|
7056
7056
|
const { schema: t, errSchemaPath: r, opts: n, self: a } = e;
|
|
7057
7057
|
t.$ref && n.ignoreKeywordsWithRef && (0, nr.schemaHasRulesButRef)(t, a.RULES) && a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
|
|
7058
7058
|
}
|
|
7059
|
-
function
|
|
7059
|
+
function F3(e) {
|
|
7060
7060
|
const { schema: t, opts: r } = e;
|
|
7061
7061
|
t.default !== void 0 && r.useDefaults && r.strictSchema && (0, nr.checkStrictMode)(e, "default is ignored in the schema root");
|
|
7062
7062
|
}
|
|
7063
|
-
function
|
|
7063
|
+
function V3(e) {
|
|
7064
7064
|
const t = e.schema[e.opts.schemaId];
|
|
7065
|
-
t && (e.baseId = (0,
|
|
7065
|
+
t && (e.baseId = (0, T3.resolveUrl)(e.opts.uriResolver, e.baseId, t));
|
|
7066
7066
|
}
|
|
7067
|
-
function
|
|
7067
|
+
function U3(e) {
|
|
7068
7068
|
if (e.schema.$async && !e.schemaEnv.$async)
|
|
7069
7069
|
throw new Error("async schema in sync schema");
|
|
7070
7070
|
}
|
|
@@ -7077,11 +7077,11 @@ function hh({ gen: e, schemaEnv: t, schema: r, errSchemaPath: n, opts: a }) {
|
|
|
7077
7077
|
e.code((0, J._)`${re.default.self}.opts.$comment(${s}, ${o}, ${i}.schema)`);
|
|
7078
7078
|
}
|
|
7079
7079
|
}
|
|
7080
|
-
function
|
|
7080
|
+
function q3(e) {
|
|
7081
7081
|
const { gen: t, schemaEnv: r, validateName: n, ValidationError: a, opts: s } = e;
|
|
7082
|
-
r.$async ? t.if((0, J._)`${re.default.errors} === 0`, () => t.return(re.default.data), () => t.throw((0, J._)`new ${a}(${re.default.vErrors})`)) : (t.assign((0, J._)`${n}.errors`, re.default.vErrors), s.unevaluated &&
|
|
7082
|
+
r.$async ? t.if((0, J._)`${re.default.errors} === 0`, () => t.return(re.default.data), () => t.throw((0, J._)`new ${a}(${re.default.vErrors})`)) : (t.assign((0, J._)`${n}.errors`, re.default.vErrors), s.unevaluated && z3(e), t.return((0, J._)`${re.default.errors} === 0`));
|
|
7083
7083
|
}
|
|
7084
|
-
function
|
|
7084
|
+
function z3({ gen: e, evaluated: t, props: r, items: n }) {
|
|
7085
7085
|
r instanceof J.Name && e.assign((0, J._)`${t}.props`, r), n instanceof J.Name && e.assign((0, J._)`${t}.items`, n);
|
|
7086
7086
|
}
|
|
7087
7087
|
function dd(e, t, r, n) {
|
|
@@ -7090,7 +7090,7 @@ function dd(e, t, r, n) {
|
|
|
7090
7090
|
a.block(() => vh(e, "$ref", d.all.$ref.definition));
|
|
7091
7091
|
return;
|
|
7092
7092
|
}
|
|
7093
|
-
l.jtd ||
|
|
7093
|
+
l.jtd || W3(e, t), a.block(() => {
|
|
7094
7094
|
for (const g of d.rules)
|
|
7095
7095
|
h(g);
|
|
7096
7096
|
h(d.post);
|
|
@@ -7101,15 +7101,15 @@ function dd(e, t, r, n) {
|
|
|
7101
7101
|
}
|
|
7102
7102
|
function fd(e, t) {
|
|
7103
7103
|
const { gen: r, schema: n, opts: { useDefaults: a } } = e;
|
|
7104
|
-
a && (0,
|
|
7104
|
+
a && (0, C3.assignDefaults)(e, t.type), r.block(() => {
|
|
7105
7105
|
for (const s of t.rules)
|
|
7106
7106
|
(0, Oi.shouldUseRule)(n, s) && vh(e, s.keyword, s.definition, t.type);
|
|
7107
7107
|
});
|
|
7108
7108
|
}
|
|
7109
|
-
function
|
|
7110
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
7109
|
+
function W3(e, t) {
|
|
7110
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (B3(e, t), e.opts.allowUnionTypes || K3(e, t), G3(e, e.dataTypes));
|
|
7111
7111
|
}
|
|
7112
|
-
function
|
|
7112
|
+
function B3(e, t) {
|
|
7113
7113
|
if (t.length) {
|
|
7114
7114
|
if (!e.dataTypes.length) {
|
|
7115
7115
|
e.dataTypes = t;
|
|
@@ -7117,29 +7117,29 @@ function BM(e, t) {
|
|
|
7117
7117
|
}
|
|
7118
7118
|
t.forEach((r) => {
|
|
7119
7119
|
mh(e.dataTypes, r) || Ci(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
7120
|
-
}),
|
|
7120
|
+
}), J3(e, t);
|
|
7121
7121
|
}
|
|
7122
7122
|
}
|
|
7123
|
-
function
|
|
7123
|
+
function K3(e, t) {
|
|
7124
7124
|
t.length > 1 && !(t.length === 2 && t.includes("null")) && Ci(e, "use allowUnionTypes to allow union type keyword");
|
|
7125
7125
|
}
|
|
7126
|
-
function
|
|
7126
|
+
function G3(e, t) {
|
|
7127
7127
|
const r = e.self.RULES.all;
|
|
7128
7128
|
for (const n in r) {
|
|
7129
7129
|
const a = r[n];
|
|
7130
7130
|
if (typeof a == "object" && (0, Oi.shouldUseRule)(e.schema, a)) {
|
|
7131
7131
|
const { type: s } = a.definition;
|
|
7132
|
-
s.length && !s.some((o) =>
|
|
7132
|
+
s.length && !s.some((o) => H3(t, o)) && Ci(e, `missing type "${s.join(",")}" for keyword "${n}"`);
|
|
7133
7133
|
}
|
|
7134
7134
|
}
|
|
7135
7135
|
}
|
|
7136
|
-
function
|
|
7136
|
+
function H3(e, t) {
|
|
7137
7137
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
7138
7138
|
}
|
|
7139
7139
|
function mh(e, t) {
|
|
7140
7140
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
7141
7141
|
}
|
|
7142
|
-
function
|
|
7142
|
+
function J3(e, t) {
|
|
7143
7143
|
const r = [];
|
|
7144
7144
|
for (const n of e.dataTypes)
|
|
7145
7145
|
mh(t, n) ? r.push(n) : t.includes("integer") && n === "number" && r.push("integer");
|
|
@@ -7238,7 +7238,7 @@ let $h = class {
|
|
|
7238
7238
|
const n = (0, io.getSubschema)(this.it, t);
|
|
7239
7239
|
(0, io.extendSubschemaData)(n, this.it, t), (0, io.extendSubschemaMode)(n, t);
|
|
7240
7240
|
const a = { ...this.it, ...n, items: void 0, props: void 0 };
|
|
7241
|
-
return
|
|
7241
|
+
return k3(a, r), a;
|
|
7242
7242
|
}
|
|
7243
7243
|
mergeEvaluated(t, r) {
|
|
7244
7244
|
const { it: n, gen: a } = this;
|
|
@@ -7255,17 +7255,17 @@ function vh(e, t, r, n) {
|
|
|
7255
7255
|
const a = new $h(e, r, t);
|
|
7256
7256
|
"code" in r ? r.code(a, n) : a.$data && r.validate ? (0, Dn.funcKeywordCode)(a, r) : "macro" in r ? (0, Dn.macroKeywordCode)(a, r) : (r.compile || r.validate) && (0, Dn.funcKeywordCode)(a, r);
|
|
7257
7257
|
}
|
|
7258
|
-
const
|
|
7258
|
+
const x3 = /^\/(?:[^~]|~0|~1)*$/, Z3 = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
7259
7259
|
function yh(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
|
|
7260
7260
|
let a, s;
|
|
7261
7261
|
if (e === "")
|
|
7262
7262
|
return re.default.rootData;
|
|
7263
7263
|
if (e[0] === "/") {
|
|
7264
|
-
if (!
|
|
7264
|
+
if (!x3.test(e))
|
|
7265
7265
|
throw new Error(`Invalid JSON-pointer: ${e}`);
|
|
7266
7266
|
a = e, s = re.default.rootData;
|
|
7267
7267
|
} else {
|
|
7268
|
-
const c =
|
|
7268
|
+
const c = Z3.exec(e);
|
|
7269
7269
|
if (!c)
|
|
7270
7270
|
throw new Error(`Invalid JSON-pointer: ${e}`);
|
|
7271
7271
|
const d = +c[1];
|
|
@@ -7291,25 +7291,25 @@ function yh(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
|
|
|
7291
7291
|
Ct.getData = yh;
|
|
7292
7292
|
var ua = {};
|
|
7293
7293
|
Object.defineProperty(ua, "__esModule", { value: !0 });
|
|
7294
|
-
let
|
|
7294
|
+
let Y3 = class extends Error {
|
|
7295
7295
|
constructor(t) {
|
|
7296
7296
|
super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
|
|
7297
7297
|
}
|
|
7298
7298
|
};
|
|
7299
|
-
ua.default =
|
|
7299
|
+
ua.default = Y3;
|
|
7300
7300
|
var la = {};
|
|
7301
7301
|
Object.defineProperty(la, "__esModule", { value: !0 });
|
|
7302
7302
|
const uo = Ge;
|
|
7303
|
-
let
|
|
7303
|
+
let X3 = class extends Error {
|
|
7304
7304
|
constructor(t, r, n, a) {
|
|
7305
7305
|
super(a || `can't resolve reference ${n} from id ${r}`), this.missingRef = (0, uo.resolveUrl)(t, r, n), this.missingSchema = (0, uo.normalizeId)((0, uo.getFullPath)(t, this.missingRef));
|
|
7306
7306
|
}
|
|
7307
7307
|
};
|
|
7308
|
-
la.default =
|
|
7308
|
+
la.default = X3;
|
|
7309
7309
|
var it = {};
|
|
7310
7310
|
Object.defineProperty(it, "__esModule", { value: !0 });
|
|
7311
7311
|
it.resolveSchema = it.getCompilingSchema = it.resolveRef = it.compileSchema = it.SchemaEnv = void 0;
|
|
7312
|
-
const wt = fe,
|
|
7312
|
+
const wt = fe, Q3 = ua, Ar = Ht, Pt = Ge, pd = $e, eM = Ct;
|
|
7313
7313
|
let Ds = class {
|
|
7314
7314
|
constructor(t) {
|
|
7315
7315
|
var r;
|
|
@@ -7326,7 +7326,7 @@ function Ti(e) {
|
|
|
7326
7326
|
const r = (0, Pt.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: n, lines: a } = this.opts.code, { ownProperties: s } = this.opts, o = new wt.CodeGen(this.scope, { es5: n, lines: a, ownProperties: s });
|
|
7327
7327
|
let i;
|
|
7328
7328
|
e.$async && (i = o.scopeValue("Error", {
|
|
7329
|
-
ref:
|
|
7329
|
+
ref: Q3.default,
|
|
7330
7330
|
code: (0, wt._)`require("ajv/dist/runtime/validation_error").default`
|
|
7331
7331
|
}));
|
|
7332
7332
|
const l = o.scopeName("validate");
|
|
@@ -7357,7 +7357,7 @@ function Ti(e) {
|
|
|
7357
7357
|
};
|
|
7358
7358
|
let d;
|
|
7359
7359
|
try {
|
|
7360
|
-
this._compilations.add(e), (0,
|
|
7360
|
+
this._compilations.add(e), (0, eM.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
|
|
7361
7361
|
const h = o.toString();
|
|
7362
7362
|
d = `${o.scopeRefs(Ar.default.scope)}return ${h}`, this.opts.code.process && (d = this.opts.code.process(d, e));
|
|
7363
7363
|
const E = new Function(`${Ar.default.self}`, `${Ar.default.scope}`, d)(this, this.scope.get());
|
|
@@ -7378,34 +7378,34 @@ function Ti(e) {
|
|
|
7378
7378
|
}
|
|
7379
7379
|
}
|
|
7380
7380
|
it.compileSchema = Ti;
|
|
7381
|
-
function
|
|
7381
|
+
function tM(e, t, r) {
|
|
7382
7382
|
var n;
|
|
7383
7383
|
r = (0, Pt.resolveUrl)(this.opts.uriResolver, t, r);
|
|
7384
7384
|
const a = e.refs[r];
|
|
7385
7385
|
if (a)
|
|
7386
7386
|
return a;
|
|
7387
|
-
let s =
|
|
7387
|
+
let s = aM.call(this, e, r);
|
|
7388
7388
|
if (s === void 0) {
|
|
7389
7389
|
const o = (n = e.localRefs) === null || n === void 0 ? void 0 : n[r], { schemaId: i } = this.opts;
|
|
7390
7390
|
o && (s = new Ds({ schema: o, schemaId: i, root: e, baseId: t }));
|
|
7391
7391
|
}
|
|
7392
7392
|
if (s !== void 0)
|
|
7393
|
-
return e.refs[r] =
|
|
7393
|
+
return e.refs[r] = rM.call(this, s);
|
|
7394
7394
|
}
|
|
7395
|
-
it.resolveRef =
|
|
7396
|
-
function
|
|
7395
|
+
it.resolveRef = tM;
|
|
7396
|
+
function rM(e) {
|
|
7397
7397
|
return (0, Pt.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Ti.call(this, e);
|
|
7398
7398
|
}
|
|
7399
7399
|
function gh(e) {
|
|
7400
7400
|
for (const t of this._compilations)
|
|
7401
|
-
if (
|
|
7401
|
+
if (nM(t, e))
|
|
7402
7402
|
return t;
|
|
7403
7403
|
}
|
|
7404
7404
|
it.getCompilingSchema = gh;
|
|
7405
|
-
function
|
|
7405
|
+
function nM(e, t) {
|
|
7406
7406
|
return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
|
|
7407
7407
|
}
|
|
7408
|
-
function
|
|
7408
|
+
function aM(e, t) {
|
|
7409
7409
|
let r;
|
|
7410
7410
|
for (; typeof (r = this.refs[t]) == "string"; )
|
|
7411
7411
|
t = r;
|
|
@@ -7430,7 +7430,7 @@ function ks(e, t) {
|
|
|
7430
7430
|
}
|
|
7431
7431
|
}
|
|
7432
7432
|
it.resolveSchema = ks;
|
|
7433
|
-
const
|
|
7433
|
+
const sM = /* @__PURE__ */ new Set([
|
|
7434
7434
|
"properties",
|
|
7435
7435
|
"patternProperties",
|
|
7436
7436
|
"enum",
|
|
@@ -7449,7 +7449,7 @@ function lo(e, { baseId: t, schema: r, root: n }) {
|
|
|
7449
7449
|
return;
|
|
7450
7450
|
r = l;
|
|
7451
7451
|
const c = typeof r == "object" && r[this.opts.schemaId];
|
|
7452
|
-
!
|
|
7452
|
+
!sM.has(i) && c && (t = (0, Pt.resolveUrl)(this.opts.uriResolver, t, c));
|
|
7453
7453
|
}
|
|
7454
7454
|
let s;
|
|
7455
7455
|
if (typeof r != "boolean" && r.$ref && !(0, pd.schemaHasRulesButRef)(r, this.RULES)) {
|
|
@@ -7460,9 +7460,9 @@ function lo(e, { baseId: t, schema: r, root: n }) {
|
|
|
7460
7460
|
if (s = s || new Ds({ schema: r, schemaId: o, root: n, baseId: t }), s.schema !== s.root.schema)
|
|
7461
7461
|
return s;
|
|
7462
7462
|
}
|
|
7463
|
-
const
|
|
7463
|
+
const oM = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", iM = "Meta-schema for $data reference (JSON AnySchema extension proposal)", uM = "object", lM = [
|
|
7464
7464
|
"$data"
|
|
7465
|
-
],
|
|
7465
|
+
], cM = {
|
|
7466
7466
|
$data: {
|
|
7467
7467
|
type: "string",
|
|
7468
7468
|
anyOf: [
|
|
@@ -7474,15 +7474,15 @@ const o3 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
|
|
|
7474
7474
|
}
|
|
7475
7475
|
]
|
|
7476
7476
|
}
|
|
7477
|
-
},
|
|
7478
|
-
$id:
|
|
7479
|
-
description:
|
|
7480
|
-
type:
|
|
7481
|
-
required:
|
|
7482
|
-
properties:
|
|
7483
|
-
additionalProperties:
|
|
7477
|
+
}, dM = !1, fM = {
|
|
7478
|
+
$id: oM,
|
|
7479
|
+
description: iM,
|
|
7480
|
+
type: uM,
|
|
7481
|
+
required: lM,
|
|
7482
|
+
properties: cM,
|
|
7483
|
+
additionalProperties: dM
|
|
7484
7484
|
};
|
|
7485
|
-
var Ii = {}, Gn = {},
|
|
7485
|
+
var Ii = {}, Gn = {}, pM = {
|
|
7486
7486
|
get exports() {
|
|
7487
7487
|
return Gn;
|
|
7488
7488
|
},
|
|
@@ -8042,7 +8042,7 @@ var Ii = {}, Gn = {}, p3 = {
|
|
|
8042
8042
|
};
|
|
8043
8043
|
j[Qt.scheme] = Qt, j[ml.scheme] = ml, j[wn.scheme] = wn, j[vl.scheme] = vl, j[_l.scheme] = _l, j[bl.scheme] = bl, j[wl.scheme] = wl, r.SCHEMES = j, r.pctEncChar = k, r.pctDecChars = z, r.parse = We, r.removeDotSegments = at, r.serialize = qe, r.resolveComponents = Dt, r.resolve = Yt, r.normalize = dt, r.equal = Xt, r.escapeComponent = wr, r.unescapeComponent = Xe, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
8044
8044
|
});
|
|
8045
|
-
})(
|
|
8045
|
+
})(pM, Gn);
|
|
8046
8046
|
Object.defineProperty(Ii, "__esModule", { value: !0 });
|
|
8047
8047
|
const _h = Gn;
|
|
8048
8048
|
_h.code = 'require("ajv/dist/runtime/uri").default';
|
|
@@ -8067,7 +8067,7 @@ Ii.default = _h;
|
|
|
8067
8067
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
8068
8068
|
return r.CodeGen;
|
|
8069
8069
|
} });
|
|
8070
|
-
const n = ua, a = la, s = kr, o = it, i = fe, l = Ge, c = ia, d = $e, h =
|
|
8070
|
+
const n = ua, a = la, s = kr, o = it, i = fe, l = Ge, c = ia, d = $e, h = fM, g = Ii, E = (M, _) => new RegExp(M, _);
|
|
8071
8071
|
E.code = "new RegExp";
|
|
8072
8072
|
const $ = ["removeAdditional", "useDefaults", "coerceTypes"], b = /* @__PURE__ */ new Set([
|
|
8073
8073
|
"validate",
|
|
@@ -8489,17 +8489,17 @@ Ii.default = _h;
|
|
|
8489
8489
|
})(Yp);
|
|
8490
8490
|
var Ri = {}, Ni = {}, ji = {};
|
|
8491
8491
|
Object.defineProperty(ji, "__esModule", { value: !0 });
|
|
8492
|
-
const
|
|
8492
|
+
const hM = {
|
|
8493
8493
|
keyword: "id",
|
|
8494
8494
|
code() {
|
|
8495
8495
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
8496
8496
|
}
|
|
8497
8497
|
};
|
|
8498
|
-
ji.default =
|
|
8498
|
+
ji.default = hM;
|
|
8499
8499
|
var Mr = {};
|
|
8500
8500
|
Object.defineProperty(Mr, "__esModule", { value: !0 });
|
|
8501
8501
|
Mr.callRef = Mr.getValidate = void 0;
|
|
8502
|
-
const
|
|
8502
|
+
const mM = la, hd = le, st = fe, Br = Ht, md = it, Sa = $e, $M = {
|
|
8503
8503
|
keyword: "$ref",
|
|
8504
8504
|
schemaType: "string",
|
|
8505
8505
|
code(e) {
|
|
@@ -8508,7 +8508,7 @@ const m3 = la, hd = le, st = fe, Br = Ht, md = it, Sa = $e, $3 = {
|
|
|
8508
8508
|
return h();
|
|
8509
8509
|
const d = md.resolveRef.call(l, c, a, r);
|
|
8510
8510
|
if (d === void 0)
|
|
8511
|
-
throw new
|
|
8511
|
+
throw new mM.default(n.opts.uriResolver, a, r);
|
|
8512
8512
|
if (d instanceof md.SchemaEnv)
|
|
8513
8513
|
return g(d);
|
|
8514
8514
|
return E(d);
|
|
@@ -8581,19 +8581,19 @@ function Va(e, t, r, n) {
|
|
|
8581
8581
|
}
|
|
8582
8582
|
}
|
|
8583
8583
|
Mr.callRef = Va;
|
|
8584
|
-
Mr.default = $
|
|
8584
|
+
Mr.default = $M;
|
|
8585
8585
|
Object.defineProperty(Ni, "__esModule", { value: !0 });
|
|
8586
|
-
const
|
|
8586
|
+
const vM = ji, yM = Mr, gM = [
|
|
8587
8587
|
"$schema",
|
|
8588
8588
|
"$id",
|
|
8589
8589
|
"$defs",
|
|
8590
8590
|
"$vocabulary",
|
|
8591
8591
|
{ keyword: "$comment" },
|
|
8592
8592
|
"definitions",
|
|
8593
|
-
|
|
8594
|
-
|
|
8593
|
+
vM.default,
|
|
8594
|
+
yM.default
|
|
8595
8595
|
];
|
|
8596
|
-
Ni.default =
|
|
8596
|
+
Ni.default = gM;
|
|
8597
8597
|
var Di = {}, ki = {};
|
|
8598
8598
|
Object.defineProperty(ki, "__esModule", { value: !0 });
|
|
8599
8599
|
const ss = fe, cr = ss.operators, os = {
|
|
@@ -8601,38 +8601,38 @@ const ss = fe, cr = ss.operators, os = {
|
|
|
8601
8601
|
minimum: { okStr: ">=", ok: cr.GTE, fail: cr.LT },
|
|
8602
8602
|
exclusiveMaximum: { okStr: "<", ok: cr.LT, fail: cr.GTE },
|
|
8603
8603
|
exclusiveMinimum: { okStr: ">", ok: cr.GT, fail: cr.LTE }
|
|
8604
|
-
},
|
|
8604
|
+
}, _M = {
|
|
8605
8605
|
message: ({ keyword: e, schemaCode: t }) => (0, ss.str)`must be ${os[e].okStr} ${t}`,
|
|
8606
8606
|
params: ({ keyword: e, schemaCode: t }) => (0, ss._)`{comparison: ${os[e].okStr}, limit: ${t}}`
|
|
8607
|
-
},
|
|
8607
|
+
}, bM = {
|
|
8608
8608
|
keyword: Object.keys(os),
|
|
8609
8609
|
type: "number",
|
|
8610
8610
|
schemaType: "number",
|
|
8611
8611
|
$data: !0,
|
|
8612
|
-
error:
|
|
8612
|
+
error: _M,
|
|
8613
8613
|
code(e) {
|
|
8614
8614
|
const { keyword: t, data: r, schemaCode: n } = e;
|
|
8615
8615
|
e.fail$data((0, ss._)`${r} ${os[t].fail} ${n} || isNaN(${r})`);
|
|
8616
8616
|
}
|
|
8617
8617
|
};
|
|
8618
|
-
ki.default =
|
|
8618
|
+
ki.default = bM;
|
|
8619
8619
|
var Mi = {};
|
|
8620
8620
|
Object.defineProperty(Mi, "__esModule", { value: !0 });
|
|
8621
|
-
const kn = fe,
|
|
8621
|
+
const kn = fe, wM = {
|
|
8622
8622
|
message: ({ schemaCode: e }) => (0, kn.str)`must be multiple of ${e}`,
|
|
8623
8623
|
params: ({ schemaCode: e }) => (0, kn._)`{multipleOf: ${e}}`
|
|
8624
|
-
},
|
|
8624
|
+
}, EM = {
|
|
8625
8625
|
keyword: "multipleOf",
|
|
8626
8626
|
type: "number",
|
|
8627
8627
|
schemaType: "number",
|
|
8628
8628
|
$data: !0,
|
|
8629
|
-
error:
|
|
8629
|
+
error: wM,
|
|
8630
8630
|
code(e) {
|
|
8631
8631
|
const { gen: t, data: r, schemaCode: n, it: a } = e, s = a.opts.multipleOfPrecision, o = t.let("res"), i = s ? (0, kn._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}` : (0, kn._)`${o} !== parseInt(${o})`;
|
|
8632
8632
|
e.fail$data((0, kn._)`(${n} === 0 || (${o} = ${r}/${n}, ${i}))`);
|
|
8633
8633
|
}
|
|
8634
8634
|
};
|
|
8635
|
-
Mi.default =
|
|
8635
|
+
Mi.default = EM;
|
|
8636
8636
|
var Li = {}, Fi = {};
|
|
8637
8637
|
Object.defineProperty(Fi, "__esModule", { value: !0 });
|
|
8638
8638
|
function wh(e) {
|
|
@@ -8645,72 +8645,72 @@ function wh(e) {
|
|
|
8645
8645
|
Fi.default = wh;
|
|
8646
8646
|
wh.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
8647
8647
|
Object.defineProperty(Li, "__esModule", { value: !0 });
|
|
8648
|
-
const Tr = fe,
|
|
8648
|
+
const Tr = fe, SM = $e, AM = Fi, PM = {
|
|
8649
8649
|
message({ keyword: e, schemaCode: t }) {
|
|
8650
8650
|
const r = e === "maxLength" ? "more" : "fewer";
|
|
8651
8651
|
return (0, Tr.str)`must NOT have ${r} than ${t} characters`;
|
|
8652
8652
|
},
|
|
8653
8653
|
params: ({ schemaCode: e }) => (0, Tr._)`{limit: ${e}}`
|
|
8654
|
-
},
|
|
8654
|
+
}, OM = {
|
|
8655
8655
|
keyword: ["maxLength", "minLength"],
|
|
8656
8656
|
type: "string",
|
|
8657
8657
|
schemaType: "number",
|
|
8658
8658
|
$data: !0,
|
|
8659
|
-
error:
|
|
8659
|
+
error: PM,
|
|
8660
8660
|
code(e) {
|
|
8661
|
-
const { keyword: t, data: r, schemaCode: n, it: a } = e, s = t === "maxLength" ? Tr.operators.GT : Tr.operators.LT, o = a.opts.unicode === !1 ? (0, Tr._)`${r}.length` : (0, Tr._)`${(0,
|
|
8661
|
+
const { keyword: t, data: r, schemaCode: n, it: a } = e, s = t === "maxLength" ? Tr.operators.GT : Tr.operators.LT, o = a.opts.unicode === !1 ? (0, Tr._)`${r}.length` : (0, Tr._)`${(0, SM.useFunc)(e.gen, AM.default)}(${r})`;
|
|
8662
8662
|
e.fail$data((0, Tr._)`${o} ${s} ${n}`);
|
|
8663
8663
|
}
|
|
8664
8664
|
};
|
|
8665
|
-
Li.default =
|
|
8665
|
+
Li.default = OM;
|
|
8666
8666
|
var Vi = {};
|
|
8667
8667
|
Object.defineProperty(Vi, "__esModule", { value: !0 });
|
|
8668
|
-
const
|
|
8668
|
+
const CM = le, is = fe, TM = {
|
|
8669
8669
|
message: ({ schemaCode: e }) => (0, is.str)`must match pattern "${e}"`,
|
|
8670
8670
|
params: ({ schemaCode: e }) => (0, is._)`{pattern: ${e}}`
|
|
8671
|
-
},
|
|
8671
|
+
}, IM = {
|
|
8672
8672
|
keyword: "pattern",
|
|
8673
8673
|
type: "string",
|
|
8674
8674
|
schemaType: "string",
|
|
8675
8675
|
$data: !0,
|
|
8676
|
-
error:
|
|
8676
|
+
error: TM,
|
|
8677
8677
|
code(e) {
|
|
8678
|
-
const { data: t, $data: r, schema: n, schemaCode: a, it: s } = e, o = s.opts.unicodeRegExp ? "u" : "", i = r ? (0, is._)`(new RegExp(${a}, ${o}))` : (0,
|
|
8678
|
+
const { data: t, $data: r, schema: n, schemaCode: a, it: s } = e, o = s.opts.unicodeRegExp ? "u" : "", i = r ? (0, is._)`(new RegExp(${a}, ${o}))` : (0, CM.usePattern)(e, n);
|
|
8679
8679
|
e.fail$data((0, is._)`!${i}.test(${t})`);
|
|
8680
8680
|
}
|
|
8681
8681
|
};
|
|
8682
|
-
Vi.default =
|
|
8682
|
+
Vi.default = IM;
|
|
8683
8683
|
var Ui = {};
|
|
8684
8684
|
Object.defineProperty(Ui, "__esModule", { value: !0 });
|
|
8685
|
-
const Mn = fe,
|
|
8685
|
+
const Mn = fe, RM = {
|
|
8686
8686
|
message({ keyword: e, schemaCode: t }) {
|
|
8687
8687
|
const r = e === "maxProperties" ? "more" : "fewer";
|
|
8688
8688
|
return (0, Mn.str)`must NOT have ${r} than ${t} properties`;
|
|
8689
8689
|
},
|
|
8690
8690
|
params: ({ schemaCode: e }) => (0, Mn._)`{limit: ${e}}`
|
|
8691
|
-
},
|
|
8691
|
+
}, NM = {
|
|
8692
8692
|
keyword: ["maxProperties", "minProperties"],
|
|
8693
8693
|
type: "object",
|
|
8694
8694
|
schemaType: "number",
|
|
8695
8695
|
$data: !0,
|
|
8696
|
-
error:
|
|
8696
|
+
error: RM,
|
|
8697
8697
|
code(e) {
|
|
8698
8698
|
const { keyword: t, data: r, schemaCode: n } = e, a = t === "maxProperties" ? Mn.operators.GT : Mn.operators.LT;
|
|
8699
8699
|
e.fail$data((0, Mn._)`Object.keys(${r}).length ${a} ${n}`);
|
|
8700
8700
|
}
|
|
8701
8701
|
};
|
|
8702
|
-
Ui.default =
|
|
8702
|
+
Ui.default = NM;
|
|
8703
8703
|
var qi = {};
|
|
8704
8704
|
Object.defineProperty(qi, "__esModule", { value: !0 });
|
|
8705
|
-
const Cn = le, Ln = fe,
|
|
8705
|
+
const Cn = le, Ln = fe, jM = $e, DM = {
|
|
8706
8706
|
message: ({ params: { missingProperty: e } }) => (0, Ln.str)`must have required property '${e}'`,
|
|
8707
8707
|
params: ({ params: { missingProperty: e } }) => (0, Ln._)`{missingProperty: ${e}}`
|
|
8708
|
-
},
|
|
8708
|
+
}, kM = {
|
|
8709
8709
|
keyword: "required",
|
|
8710
8710
|
type: "object",
|
|
8711
8711
|
schemaType: "array",
|
|
8712
8712
|
$data: !0,
|
|
8713
|
-
error:
|
|
8713
|
+
error: DM,
|
|
8714
8714
|
code(e) {
|
|
8715
8715
|
const { gen: t, schema: r, schemaCode: n, data: a, $data: s, it: o } = e, { opts: i } = o;
|
|
8716
8716
|
if (!s && r.length === 0)
|
|
@@ -8721,7 +8721,7 @@ const Cn = le, Ln = fe, j3 = $e, D3 = {
|
|
|
8721
8721
|
for (const b of r)
|
|
8722
8722
|
if ((E == null ? void 0 : E[b]) === void 0 && !$.has(b)) {
|
|
8723
8723
|
const m = o.schemaEnv.baseId + o.errSchemaPath, p = `required property "${b}" is not defined at "${m}" (strictRequired)`;
|
|
8724
|
-
(0,
|
|
8724
|
+
(0, jM.checkStrictMode)(o, p, o.opts.strictRequired);
|
|
8725
8725
|
}
|
|
8726
8726
|
}
|
|
8727
8727
|
function c() {
|
|
@@ -8753,42 +8753,42 @@ const Cn = le, Ln = fe, j3 = $e, D3 = {
|
|
|
8753
8753
|
}
|
|
8754
8754
|
}
|
|
8755
8755
|
};
|
|
8756
|
-
qi.default =
|
|
8756
|
+
qi.default = kM;
|
|
8757
8757
|
var zi = {};
|
|
8758
8758
|
Object.defineProperty(zi, "__esModule", { value: !0 });
|
|
8759
|
-
const Fn = fe,
|
|
8759
|
+
const Fn = fe, MM = {
|
|
8760
8760
|
message({ keyword: e, schemaCode: t }) {
|
|
8761
8761
|
const r = e === "maxItems" ? "more" : "fewer";
|
|
8762
8762
|
return (0, Fn.str)`must NOT have ${r} than ${t} items`;
|
|
8763
8763
|
},
|
|
8764
8764
|
params: ({ schemaCode: e }) => (0, Fn._)`{limit: ${e}}`
|
|
8765
|
-
},
|
|
8765
|
+
}, LM = {
|
|
8766
8766
|
keyword: ["maxItems", "minItems"],
|
|
8767
8767
|
type: "array",
|
|
8768
8768
|
schemaType: "number",
|
|
8769
8769
|
$data: !0,
|
|
8770
|
-
error:
|
|
8770
|
+
error: MM,
|
|
8771
8771
|
code(e) {
|
|
8772
8772
|
const { keyword: t, data: r, schemaCode: n } = e, a = t === "maxItems" ? Fn.operators.GT : Fn.operators.LT;
|
|
8773
8773
|
e.fail$data((0, Fn._)`${r}.length ${a} ${n}`);
|
|
8774
8774
|
}
|
|
8775
8775
|
};
|
|
8776
|
-
zi.default =
|
|
8776
|
+
zi.default = LM;
|
|
8777
8777
|
var Wi = {}, ca = {};
|
|
8778
8778
|
Object.defineProperty(ca, "__esModule", { value: !0 });
|
|
8779
8779
|
const Eh = js;
|
|
8780
8780
|
Eh.code = 'require("ajv/dist/runtime/equal").default';
|
|
8781
8781
|
ca.default = Eh;
|
|
8782
8782
|
Object.defineProperty(Wi, "__esModule", { value: !0 });
|
|
8783
|
-
const co = ia, Be = fe,
|
|
8783
|
+
const co = ia, Be = fe, FM = $e, VM = ca, UM = {
|
|
8784
8784
|
message: ({ params: { i: e, j: t } }) => (0, Be.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
|
|
8785
8785
|
params: ({ params: { i: e, j: t } }) => (0, Be._)`{i: ${e}, j: ${t}}`
|
|
8786
|
-
},
|
|
8786
|
+
}, qM = {
|
|
8787
8787
|
keyword: "uniqueItems",
|
|
8788
8788
|
type: "array",
|
|
8789
8789
|
schemaType: "boolean",
|
|
8790
8790
|
$data: !0,
|
|
8791
|
-
error:
|
|
8791
|
+
error: UM,
|
|
8792
8792
|
code(e) {
|
|
8793
8793
|
const { gen: t, data: r, $data: n, schema: a, parentSchema: s, schemaCode: o, it: i } = e;
|
|
8794
8794
|
if (!n && !a)
|
|
@@ -8811,46 +8811,46 @@ const co = ia, Be = fe, F3 = $e, V3 = ca, U3 = {
|
|
|
8811
8811
|
});
|
|
8812
8812
|
}
|
|
8813
8813
|
function E($, b) {
|
|
8814
|
-
const m = (0,
|
|
8814
|
+
const m = (0, FM.useFunc)(t, VM.default), p = t.name("outer");
|
|
8815
8815
|
t.label(p).for((0, Be._)`;${$}--;`, () => t.for((0, Be._)`${b} = ${$}; ${b}--;`, () => t.if((0, Be._)`${m}(${r}[${$}], ${r}[${b}])`, () => {
|
|
8816
8816
|
e.error(), t.assign(l, !1).break(p);
|
|
8817
8817
|
})));
|
|
8818
8818
|
}
|
|
8819
8819
|
}
|
|
8820
8820
|
};
|
|
8821
|
-
Wi.default =
|
|
8821
|
+
Wi.default = qM;
|
|
8822
8822
|
var Bi = {};
|
|
8823
8823
|
Object.defineProperty(Bi, "__esModule", { value: !0 });
|
|
8824
|
-
const Do = fe,
|
|
8824
|
+
const Do = fe, zM = $e, WM = ca, BM = {
|
|
8825
8825
|
message: "must be equal to constant",
|
|
8826
8826
|
params: ({ schemaCode: e }) => (0, Do._)`{allowedValue: ${e}}`
|
|
8827
|
-
},
|
|
8827
|
+
}, KM = {
|
|
8828
8828
|
keyword: "const",
|
|
8829
8829
|
$data: !0,
|
|
8830
|
-
error:
|
|
8830
|
+
error: BM,
|
|
8831
8831
|
code(e) {
|
|
8832
8832
|
const { gen: t, data: r, $data: n, schemaCode: a, schema: s } = e;
|
|
8833
|
-
n || s && typeof s == "object" ? e.fail$data((0, Do._)`!${(0,
|
|
8833
|
+
n || s && typeof s == "object" ? e.fail$data((0, Do._)`!${(0, zM.useFunc)(t, WM.default)}(${r}, ${a})`) : e.fail((0, Do._)`${s} !== ${r}`);
|
|
8834
8834
|
}
|
|
8835
8835
|
};
|
|
8836
|
-
Bi.default =
|
|
8836
|
+
Bi.default = KM;
|
|
8837
8837
|
var Ki = {};
|
|
8838
8838
|
Object.defineProperty(Ki, "__esModule", { value: !0 });
|
|
8839
|
-
const Nn = fe,
|
|
8839
|
+
const Nn = fe, GM = $e, HM = ca, JM = {
|
|
8840
8840
|
message: "must be equal to one of the allowed values",
|
|
8841
8841
|
params: ({ schemaCode: e }) => (0, Nn._)`{allowedValues: ${e}}`
|
|
8842
|
-
},
|
|
8842
|
+
}, xM = {
|
|
8843
8843
|
keyword: "enum",
|
|
8844
8844
|
schemaType: "array",
|
|
8845
8845
|
$data: !0,
|
|
8846
|
-
error:
|
|
8846
|
+
error: JM,
|
|
8847
8847
|
code(e) {
|
|
8848
8848
|
const { gen: t, data: r, $data: n, schema: a, schemaCode: s, it: o } = e;
|
|
8849
8849
|
if (!n && a.length === 0)
|
|
8850
8850
|
throw new Error("enum must have non-empty array");
|
|
8851
8851
|
const i = a.length >= o.opts.loopEnum;
|
|
8852
8852
|
let l;
|
|
8853
|
-
const c = () => l ?? (l = (0,
|
|
8853
|
+
const c = () => l ?? (l = (0, GM.useFunc)(t, HM.default));
|
|
8854
8854
|
let d;
|
|
8855
8855
|
if (i || n)
|
|
8856
8856
|
d = t.let("valid"), e.block$data(d, h);
|
|
@@ -8870,15 +8870,15 @@ const Nn = fe, G3 = $e, H3 = ca, J3 = {
|
|
|
8870
8870
|
}
|
|
8871
8871
|
}
|
|
8872
8872
|
};
|
|
8873
|
-
Ki.default =
|
|
8873
|
+
Ki.default = xM;
|
|
8874
8874
|
Object.defineProperty(Di, "__esModule", { value: !0 });
|
|
8875
|
-
const
|
|
8875
|
+
const ZM = ki, YM = Mi, XM = Li, QM = Vi, e5 = Ui, t5 = qi, r5 = zi, n5 = Wi, a5 = Bi, s5 = Ki, o5 = [
|
|
8876
8876
|
// number
|
|
8877
|
-
|
|
8878
|
-
|
|
8877
|
+
ZM.default,
|
|
8878
|
+
YM.default,
|
|
8879
8879
|
// string
|
|
8880
|
-
|
|
8881
|
-
|
|
8880
|
+
XM.default,
|
|
8881
|
+
QM.default,
|
|
8882
8882
|
// object
|
|
8883
8883
|
e5.default,
|
|
8884
8884
|
t5.default,
|
|
@@ -16179,7 +16179,7 @@ function gz(e, t, r, n, a, s) {
|
|
|
16179
16179
|
be(e.$slots, "default", {}, void 0, !0)
|
|
16180
16180
|
], 2);
|
|
16181
16181
|
}
|
|
16182
|
-
const Kz = /* @__PURE__ */ te(yz, [["render", gz], ["__scopeId", "data-v-
|
|
16182
|
+
const Kz = /* @__PURE__ */ te(yz, [["render", gz], ["__scopeId", "data-v-3db5a7a4"]]), _z = (e, t) => {
|
|
16183
16183
|
const r = t === "decimals" ? 2 : 0;
|
|
16184
16184
|
return new Intl.NumberFormat("nb-NB", {
|
|
16185
16185
|
minimumFractionDigits: r,
|