@tempots/beatui 0.39.0 → 0.41.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/README.md +11 -11
- package/dist/{2019-1S9vgvv2.cjs → 2019-BFDr925O.cjs} +1 -1
- package/dist/{2019-DPD_eCKE.js → 2019-DnG5Y5sm.js} +2 -2
- package/dist/{2020-aLm9VmDL.js → 2020-D0-tZTo7.js} +2 -2
- package/dist/{2020-CGrbEEmD.cjs → 2020-gUs7l1CJ.cjs} +1 -1
- package/dist/{ar-B0vT_MPe.cjs → ar-BLgxAefV.cjs} +1 -1
- package/dist/{ar-CbM09z5P.js → ar-DpQo8C31.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +216 -129
- package/dist/beatui.tailwind.css +216 -129
- package/dist/{de-tK36cL_u.cjs → de-Bv-qs--J.cjs} +1 -1
- package/dist/{de-Dd907tZQ.js → de-D1MQ4wen.js} +1 -1
- package/dist/{es-K35LRZa-.cjs → es-3r8Ko5Dn.cjs} +1 -1
- package/dist/{es-BkJxjMdG.js → es-DwPjonS7.js} +1 -1
- package/dist/{fa-BBikwwku.cjs → fa-Qw6uVZeX.cjs} +1 -1
- package/dist/{fa-DBTUBsw_.js → fa-fxf_lWjh.js} +1 -1
- package/dist/{fr-Fmupo556.js → fr-BDDsMHRZ.js} +1 -1
- package/dist/{fr-DMtXrrnJ.cjs → fr-pVhG9qik.cjs} +1 -1
- package/dist/{he-DkI64oaY.js → he-B4deK_wE.js} +1 -1
- package/dist/{he-on3Ivp8g.cjs → he-D-fvzfe1.cjs} +1 -1
- package/dist/{hi-GdD5MihT.js → hi-CxQT8nRD.js} +1 -1
- package/dist/{hi-CNFV8ITE.cjs → hi-DKgxHzmH.cjs} +1 -1
- package/dist/{index-BK8t6gqu.js → index-Acyxme63.js} +680 -677
- package/dist/{index-e8oQ-k0x.cjs → index-BZ2AX5sk.cjs} +4 -4
- package/dist/{index-BfFlhmAq.js → index-BwEJlbG2.js} +1 -1
- package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
- package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
- package/dist/{index-BkQ7xHgi.js → index-CWq36UAJ.js} +770 -757
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-LUItEwlw.js → index-Clw0AwwJ.js} +1 -1
- package/dist/{index-wdi93sK4.cjs → index-DRDJFYRb.cjs} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/{index-BA93M8Ux.cjs → index-Lj0QS2po.cjs} +1 -1
- package/dist/{index-CPBlySmE.cjs → index-nVVPqgLq.cjs} +12 -12
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2200 -2181
- package/dist/{it-Bpnfd60V.js → it-6QS5PWzQ.js} +1 -1
- package/dist/{it-BDOzBRkQ.cjs → it-Ck0r9TO3.cjs} +1 -1
- package/dist/{ja-SjlGNgs9.js → ja-D2VvVGEN.js} +1 -1
- package/dist/{ja-N-7c7zD7.cjs → ja-D6b9suYB.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-CH69ZNts.js → ko-CP_WopWz.js} +1 -1
- package/dist/{ko-BBeTXIlY.cjs → ko-CzvM2Bjv.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BmSRMdY9.cjs +1 -0
- package/dist/{modal-BD76Rve3.js → modal-DMc-R2VT.js} +234 -209
- package/dist/{nl-DnvMlW8v.js → nl-DZ4dFolZ.js} +1 -1
- package/dist/{nl-C2C9QDH2.cjs → nl-_9vJc8JD.cjs} +1 -1
- package/dist/{notice-CQZseCQs.js → notice-B5Yn_3Ay.js} +205 -195
- package/dist/notice-D3P0lewM.cjs +2 -0
- package/dist/{pl-CBEX2qN1.js → pl-BE81iFSF.js} +1 -1
- package/dist/{pl-sNBCzEUd.cjs → pl-DKcVCojx.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-ByFqFAdQ.js → pt-BcCdXUA2.js} +1 -1
- package/dist/{pt-Bvxg9VEA.cjs → pt-DNVS1_MF.cjs} +1 -1
- package/dist/{ru-6d5JfoDw.js → ru-Bo_jc3s1.js} +1 -1
- package/dist/{ru-CPAdsn4m.cjs → ru-DTn9Rssv.cjs} +1 -1
- package/dist/{toolbar-Cl_TAa3r.js → toolbar-DhD5GmMa.js} +1 -1
- package/dist/{toolbar-Dw2VQD9y.cjs → toolbar-jPGzdJGi.cjs} +1 -1
- package/dist/{tr-IKZtCQQR.cjs → tr-BhTJYHQ3.cjs} +1 -1
- package/dist/{tr-gv4vJfm8.js → tr-CBw3FlOg.js} +1 -1
- package/dist/{translations-DXLmnUiB.js → translations-B0HuWYIz.js} +1 -1
- package/dist/{translations-CK426qyd.cjs → translations-B7_3phoA.cjs} +1 -1
- package/dist/translations-C21osktO.cjs +1 -0
- package/dist/{translations-djDSPqdb.js → translations-D-fMB_IO.js} +212 -183
- package/dist/types/components/form/controller/color-controller.d.ts +1 -1
- package/dist/types/components/form/input/color-input.d.ts +2 -5
- package/dist/types/components/form/input/color-swatch-input.d.ts +9 -0
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-container.d.ts +7 -0
- package/dist/types/components/misc/notification-provider.d.ts +3 -3
- package/dist/types/utils/{color-validation.d.ts → color.d.ts} +13 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/use-animated-toggle.d.ts +17 -4
- package/dist/{ur-Bgq_2yjr.cjs → ur-BjuXyU8Z.cjs} +1 -1
- package/dist/{ur-Bo6bjEBS.js → ur-BsXnPgxd.js} +1 -1
- package/dist/utils-BOEQMy82.js +2512 -0
- package/dist/utils-DH-SYrQg.cjs +1 -0
- package/dist/{vi-BrUQnj-8.cjs → vi-CvsTHMkK.cjs} +1 -1
- package/dist/{vi-xDLJ3TIx.js → vi-D1rLo6MX.js} +1 -1
- package/dist/{zh-BivWxJJh.js → zh-BoLsjdfz.js} +1 -1
- package/dist/{zh-BqH1Cioq.cjs → zh-zh1FJ4Ud.cjs} +1 -1
- package/package.json +4 -3
- package/dist/modal-DQycMZ8_.cjs +0 -1
- package/dist/notice-CFoc4PJe.cjs +0 -2
- package/dist/translations-DJR65Jii.cjs +0 -1
- package/dist/utils-Bsrfm-0d.cjs +0 -1
- package/dist/utils-Bw911Eo4.js +0 -2418
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import { attr as F, Value as ne, Fragment as
|
|
4
|
-
import { T as Ia, a as
|
|
1
|
+
import { a as Pe, S as de, I as Ye, c as Z, M as Zt, P as Ys, E as Zs, b as qr, N as hs, L as Fe, x as Qs, C as ps, i as ea, A as ta, l as ra } from "./notice-B5Yn_3Ay.js";
|
|
2
|
+
import { ah as wr, ai as na, S as sa, N as aa, a as ms, j as ia, t as le, x as De, w as Qt, H as oa, C as ua, W as ca, O as la, Q as fa, v as da, s as ha, r as pa, u as ma, g as Ke, T as ya, D as ga, z as mr, y as va, M as Ze, K as _a, J as ba, I as $a, R as wa, A as Sa, q as Pa, G as Ea, m as ys, V as Oa, L as ja, f as ka } from "./utils-BOEQMy82.js";
|
|
3
|
+
import { attr as F, Value as ne, Fragment as we, WithElement as gs, Empty as vs, html as J, When as Ge, OnDispose as Ee, computedOf as ie, prop as Re, Use as Sr, style as _s, Ensure as bs, aria as Ra, on as xe, MapSignal as Kt, Async as Na } from "@tempots/dom";
|
|
4
|
+
import { T as Ia, a as Pr, I as $s, B as Aa } from "./translations-D-fMB_IO.js";
|
|
5
5
|
import { f as Ca } from "./colors-WfmhQ5e1.js";
|
|
6
6
|
function Ta(e, t) {
|
|
7
7
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -19,12 +19,12 @@ function Ta(e, t) {
|
|
|
19
19
|
}
|
|
20
20
|
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ws(e) {
|
|
23
23
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Qe = { exports: {} }, er = {}, Mr;
|
|
26
26
|
function qa() {
|
|
27
|
-
return
|
|
27
|
+
return Mr || (Mr = 1, function(e) {
|
|
28
28
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
29
29
|
function t(A, V) {
|
|
30
30
|
return { validate: A, compare: V };
|
|
@@ -184,11 +184,11 @@ function qa() {
|
|
|
184
184
|
return !1;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
}(
|
|
187
|
+
}(er)), er;
|
|
188
188
|
}
|
|
189
|
-
var
|
|
190
|
-
function
|
|
191
|
-
return
|
|
189
|
+
var tr = {}, et = { exports: {} }, rr = {}, Oe = {}, Ce = {}, nr = {}, sr = {}, ar = {}, Vr;
|
|
190
|
+
function Dt() {
|
|
191
|
+
return Vr || (Vr = 1, function(e) {
|
|
192
192
|
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;
|
|
193
193
|
class t {
|
|
194
194
|
}
|
|
@@ -307,13 +307,13 @@ function Vt() {
|
|
|
307
307
|
return new n(l.toString());
|
|
308
308
|
}
|
|
309
309
|
e.regexpCode = f;
|
|
310
|
-
}(
|
|
310
|
+
}(ar)), ar;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
function
|
|
314
|
-
return
|
|
312
|
+
var ir = {}, Dr;
|
|
313
|
+
function zr() {
|
|
314
|
+
return Dr || (Dr = 1, function(e) {
|
|
315
315
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
316
|
-
const t =
|
|
316
|
+
const t = Dt();
|
|
317
317
|
class r extends Error {
|
|
318
318
|
constructor(y) {
|
|
319
319
|
super(`CodeGen: "code" for ${y} not defined`), this.value = y.value;
|
|
@@ -430,14 +430,14 @@ function Dr() {
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
e.ValueScope = u;
|
|
433
|
-
}(
|
|
433
|
+
}(ir)), ir;
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var Lr;
|
|
436
436
|
function G() {
|
|
437
|
-
return
|
|
437
|
+
return Lr || (Lr = 1, function(e) {
|
|
438
438
|
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;
|
|
439
|
-
const t =
|
|
440
|
-
var n =
|
|
439
|
+
const t = Dt(), r = zr();
|
|
440
|
+
var n = Dt();
|
|
441
441
|
Object.defineProperty(e, "_", { enumerable: !0, get: function() {
|
|
442
442
|
return n._;
|
|
443
443
|
} }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
|
|
@@ -455,7 +455,7 @@ function G() {
|
|
|
455
455
|
} }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
|
|
456
456
|
return n.Name;
|
|
457
457
|
} });
|
|
458
|
-
var a =
|
|
458
|
+
var a = zr();
|
|
459
459
|
Object.defineProperty(e, "Scope", { enumerable: !0, get: function() {
|
|
460
460
|
return a.Scope;
|
|
461
461
|
} }), Object.defineProperty(e, "ValueScope", { enumerable: !0, get: function() {
|
|
@@ -992,24 +992,24 @@ function G() {
|
|
|
992
992
|
function C(N) {
|
|
993
993
|
return N instanceof t.Name ? N : (0, t._)`(${N})`;
|
|
994
994
|
}
|
|
995
|
-
}(
|
|
995
|
+
}(sr)), sr;
|
|
996
996
|
}
|
|
997
|
-
var
|
|
997
|
+
var H = {}, Fr;
|
|
998
998
|
function ee() {
|
|
999
|
-
if (
|
|
1000
|
-
|
|
1001
|
-
const e = G(), t =
|
|
999
|
+
if (Fr) return H;
|
|
1000
|
+
Fr = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.checkStrictMode = H.getErrorPath = H.Type = H.useFunc = H.setEvaluated = H.evaluatedPropsToName = H.mergeEvaluated = H.eachItem = H.unescapeJsonPointer = H.escapeJsonPointer = H.escapeFragment = H.unescapeFragment = H.schemaRefOrVal = H.schemaHasRulesButRef = H.schemaHasRules = H.checkUnknownRules = H.alwaysValidSchema = H.toHash = void 0;
|
|
1001
|
+
const e = G(), t = Dt();
|
|
1002
1002
|
function r(_) {
|
|
1003
1003
|
const b = {};
|
|
1004
1004
|
for (const E of _)
|
|
1005
1005
|
b[E] = !0;
|
|
1006
1006
|
return b;
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1008
|
+
H.toHash = r;
|
|
1009
1009
|
function n(_, b) {
|
|
1010
1010
|
return typeof b == "boolean" ? b : Object.keys(b).length === 0 ? !0 : (a(_, b), !s(b, _.self.RULES.all));
|
|
1011
1011
|
}
|
|
1012
|
-
|
|
1012
|
+
H.alwaysValidSchema = n;
|
|
1013
1013
|
function a(_, b = _.schema) {
|
|
1014
1014
|
const { opts: E, self: I } = _;
|
|
1015
1015
|
if (!E.strictSchema || typeof b == "boolean")
|
|
@@ -1018,7 +1018,7 @@ function ee() {
|
|
|
1018
1018
|
for (const D in b)
|
|
1019
1019
|
q[D] || m(_, `unknown keyword: "${D}"`);
|
|
1020
1020
|
}
|
|
1021
|
-
|
|
1021
|
+
H.checkUnknownRules = a;
|
|
1022
1022
|
function s(_, b) {
|
|
1023
1023
|
if (typeof _ == "boolean")
|
|
1024
1024
|
return !_;
|
|
@@ -1027,7 +1027,7 @@ function ee() {
|
|
|
1027
1027
|
return !0;
|
|
1028
1028
|
return !1;
|
|
1029
1029
|
}
|
|
1030
|
-
|
|
1030
|
+
H.schemaHasRules = s;
|
|
1031
1031
|
function o(_, b) {
|
|
1032
1032
|
if (typeof _ == "boolean")
|
|
1033
1033
|
return !_;
|
|
@@ -1036,7 +1036,7 @@ function ee() {
|
|
|
1036
1036
|
return !0;
|
|
1037
1037
|
return !1;
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1039
|
+
H.schemaHasRulesButRef = o;
|
|
1040
1040
|
function u({ topSchemaRef: _, schemaPath: b }, E, I, q) {
|
|
1041
1041
|
if (!q) {
|
|
1042
1042
|
if (typeof E == "number" || typeof E == "boolean")
|
|
@@ -1046,23 +1046,23 @@ function ee() {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
return (0, e._)`${_}${b}${(0, e.getProperty)(I)}`;
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1049
|
+
H.schemaRefOrVal = u;
|
|
1050
1050
|
function h(_) {
|
|
1051
1051
|
return v(decodeURIComponent(_));
|
|
1052
1052
|
}
|
|
1053
|
-
|
|
1053
|
+
H.unescapeFragment = h;
|
|
1054
1054
|
function y(_) {
|
|
1055
1055
|
return encodeURIComponent(d(_));
|
|
1056
1056
|
}
|
|
1057
|
-
|
|
1057
|
+
H.escapeFragment = y;
|
|
1058
1058
|
function d(_) {
|
|
1059
1059
|
return typeof _ == "number" ? `${_}` : _.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1060
1060
|
}
|
|
1061
|
-
|
|
1061
|
+
H.escapeJsonPointer = d;
|
|
1062
1062
|
function v(_) {
|
|
1063
1063
|
return _.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1064
1064
|
}
|
|
1065
|
-
|
|
1065
|
+
H.unescapeJsonPointer = v;
|
|
1066
1066
|
function $(_, b) {
|
|
1067
1067
|
if (Array.isArray(_))
|
|
1068
1068
|
for (const E of _)
|
|
@@ -1070,14 +1070,14 @@ function ee() {
|
|
|
1070
1070
|
else
|
|
1071
1071
|
b(_);
|
|
1072
1072
|
}
|
|
1073
|
-
|
|
1073
|
+
H.eachItem = $;
|
|
1074
1074
|
function S({ mergeNames: _, mergeToName: b, mergeValues: E, resultToName: I }) {
|
|
1075
1075
|
return (q, D, A, V) => {
|
|
1076
1076
|
const L = A === void 0 ? D : A instanceof e.Name ? (D instanceof e.Name ? _(q, D, A) : b(q, D, A), A) : D instanceof e.Name ? (b(q, A, D), D) : E(D, A);
|
|
1077
1077
|
return V === e.Name && !(L instanceof e.Name) ? I(q, L) : L;
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
|
-
|
|
1080
|
+
H.mergeEvaluated = {
|
|
1081
1081
|
props: S({
|
|
1082
1082
|
mergeNames: (_, b, E) => _.if((0, e._)`${E} !== true && ${b} !== undefined`, () => {
|
|
1083
1083
|
_.if((0, e._)`${b} === true`, () => _.assign(E, !0), () => _.assign(E, (0, e._)`${E} || {}`).code((0, e._)`Object.assign(${E}, ${b})`));
|
|
@@ -1101,11 +1101,11 @@ function ee() {
|
|
|
1101
1101
|
const E = _.var("props", (0, e._)`{}`);
|
|
1102
1102
|
return b !== void 0 && g(_, E, b), E;
|
|
1103
1103
|
}
|
|
1104
|
-
|
|
1104
|
+
H.evaluatedPropsToName = w;
|
|
1105
1105
|
function g(_, b, E) {
|
|
1106
1106
|
Object.keys(E).forEach((I) => _.assign((0, e._)`${b}${(0, e.getProperty)(I)}`, !0));
|
|
1107
1107
|
}
|
|
1108
|
-
|
|
1108
|
+
H.setEvaluated = g;
|
|
1109
1109
|
const f = {};
|
|
1110
1110
|
function l(_, b) {
|
|
1111
1111
|
return _.scopeValue("func", {
|
|
@@ -1113,11 +1113,11 @@ function ee() {
|
|
|
1113
1113
|
code: f[b.code] || (f[b.code] = new t._Code(b.code))
|
|
1114
1114
|
});
|
|
1115
1115
|
}
|
|
1116
|
-
|
|
1116
|
+
H.useFunc = l;
|
|
1117
1117
|
var i;
|
|
1118
1118
|
(function(_) {
|
|
1119
1119
|
_[_.Num = 0] = "Num", _[_.Str = 1] = "Str";
|
|
1120
|
-
})(i || (
|
|
1120
|
+
})(i || (H.Type = i = {}));
|
|
1121
1121
|
function c(_, b, E) {
|
|
1122
1122
|
if (_ instanceof e.Name) {
|
|
1123
1123
|
const I = b === i.Num;
|
|
@@ -1125,7 +1125,7 @@ function ee() {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
return E ? (0, e.getProperty)(_).toString() : "/" + d(_);
|
|
1127
1127
|
}
|
|
1128
|
-
|
|
1128
|
+
H.getErrorPath = c;
|
|
1129
1129
|
function m(_, b, E = _.opts.strictSchema) {
|
|
1130
1130
|
if (E) {
|
|
1131
1131
|
if (b = `strict mode: ${b}`, E === !0)
|
|
@@ -1133,12 +1133,12 @@ function ee() {
|
|
|
1133
1133
|
_.self.logger.warn(b);
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
|
-
return
|
|
1136
|
+
return H.checkStrictMode = m, H;
|
|
1137
1137
|
}
|
|
1138
|
-
var
|
|
1139
|
-
function
|
|
1140
|
-
if (
|
|
1141
|
-
|
|
1138
|
+
var tt = {}, Ur;
|
|
1139
|
+
function Ae() {
|
|
1140
|
+
if (Ur) return tt;
|
|
1141
|
+
Ur = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
1142
1142
|
const e = G(), t = {
|
|
1143
1143
|
// validation function arguments
|
|
1144
1144
|
data: new e.Name("data"),
|
|
@@ -1168,13 +1168,13 @@ function Ie() {
|
|
|
1168
1168
|
jsonLen: new e.Name("jsonLen"),
|
|
1169
1169
|
jsonPart: new e.Name("jsonPart")
|
|
1170
1170
|
};
|
|
1171
|
-
return
|
|
1171
|
+
return tt.default = t, tt;
|
|
1172
1172
|
}
|
|
1173
|
-
var
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1173
|
+
var Kr;
|
|
1174
|
+
function Bt() {
|
|
1175
|
+
return Kr || (Kr = 1, function(e) {
|
|
1176
1176
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
1177
|
-
const t = G(), r = ee(), n =
|
|
1177
|
+
const t = G(), r = ee(), n = Ae();
|
|
1178
1178
|
e.keywordError = {
|
|
1179
1179
|
message: ({ keyword: f }) => (0, t.str)`must pass "${f}" keyword validation`
|
|
1180
1180
|
}, e.keyword$DataError = {
|
|
@@ -1244,25 +1244,25 @@ function Kt() {
|
|
|
1244
1244
|
const { keyword: m, data: _, schemaValue: b, it: E } = f, { opts: I, propertyName: q, topSchemaRef: D, schemaPath: A } = E;
|
|
1245
1245
|
c.push([d.keyword, m], [d.params, typeof l == "function" ? l(f) : l || (0, t._)`{}`]), I.messages && c.push([d.message, typeof i == "function" ? i(f) : i]), I.verbose && c.push([d.schema, b], [d.parentSchema, (0, t._)`${D}${A}`], [n.default.data, _]), q && c.push([d.propertyName, q]);
|
|
1246
1246
|
}
|
|
1247
|
-
}(
|
|
1247
|
+
}(nr)), nr;
|
|
1248
1248
|
}
|
|
1249
|
-
var
|
|
1249
|
+
var Br;
|
|
1250
1250
|
function Ma() {
|
|
1251
|
-
if (
|
|
1252
|
-
|
|
1253
|
-
const e =
|
|
1251
|
+
if (Br) return Ce;
|
|
1252
|
+
Br = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.boolOrEmptySchema = Ce.topBoolOrEmptySchema = void 0;
|
|
1253
|
+
const e = Bt(), t = G(), r = Ae(), n = {
|
|
1254
1254
|
message: "boolean schema is false"
|
|
1255
1255
|
};
|
|
1256
1256
|
function a(u) {
|
|
1257
1257
|
const { gen: h, schema: y, validateName: d } = u;
|
|
1258
1258
|
y === !1 ? o(u, !1) : typeof y == "object" && y.$async === !0 ? h.return(r.default.data) : (h.assign((0, t._)`${d}.errors`, null), h.return(!0));
|
|
1259
1259
|
}
|
|
1260
|
-
|
|
1260
|
+
Ce.topBoolOrEmptySchema = a;
|
|
1261
1261
|
function s(u, h) {
|
|
1262
1262
|
const { gen: y, schema: d } = u;
|
|
1263
1263
|
d === !1 ? (y.var(h, !1), o(u)) : y.var(h, !0);
|
|
1264
1264
|
}
|
|
1265
|
-
|
|
1265
|
+
Ce.boolOrEmptySchema = s;
|
|
1266
1266
|
function o(u, h) {
|
|
1267
1267
|
const { gen: y, data: d } = u, v = {
|
|
1268
1268
|
gen: y,
|
|
@@ -1276,17 +1276,17 @@ function Ma() {
|
|
|
1276
1276
|
};
|
|
1277
1277
|
(0, e.reportError)(v, n, void 0, h);
|
|
1278
1278
|
}
|
|
1279
|
-
return
|
|
1279
|
+
return Ce;
|
|
1280
1280
|
}
|
|
1281
|
-
var fe = {},
|
|
1282
|
-
function
|
|
1283
|
-
if (
|
|
1284
|
-
|
|
1281
|
+
var fe = {}, Te = {}, Wr;
|
|
1282
|
+
function Ss() {
|
|
1283
|
+
if (Wr) return Te;
|
|
1284
|
+
Wr = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.getRules = Te.isJSONType = void 0;
|
|
1285
1285
|
const e = ["string", "number", "integer", "boolean", "null", "object", "array"], t = new Set(e);
|
|
1286
1286
|
function r(a) {
|
|
1287
1287
|
return typeof a == "string" && t.has(a);
|
|
1288
1288
|
}
|
|
1289
|
-
|
|
1289
|
+
Te.isJSONType = r;
|
|
1290
1290
|
function n() {
|
|
1291
1291
|
const a = {
|
|
1292
1292
|
number: { type: "number", rules: [] },
|
|
@@ -1302,32 +1302,32 @@ function ws() {
|
|
|
1302
1302
|
keywords: {}
|
|
1303
1303
|
};
|
|
1304
1304
|
}
|
|
1305
|
-
return
|
|
1305
|
+
return Te.getRules = n, Te;
|
|
1306
1306
|
}
|
|
1307
|
-
var
|
|
1308
|
-
function
|
|
1309
|
-
if (
|
|
1310
|
-
|
|
1307
|
+
var je = {}, Jr;
|
|
1308
|
+
function Ps() {
|
|
1309
|
+
if (Jr) return je;
|
|
1310
|
+
Jr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.shouldUseRule = je.shouldUseGroup = je.schemaHasRulesForType = void 0;
|
|
1311
1311
|
function e({ schema: n, self: a }, s) {
|
|
1312
1312
|
const o = a.RULES.types[s];
|
|
1313
1313
|
return o && o !== !0 && t(n, o);
|
|
1314
1314
|
}
|
|
1315
|
-
|
|
1315
|
+
je.schemaHasRulesForType = e;
|
|
1316
1316
|
function t(n, a) {
|
|
1317
1317
|
return a.rules.some((s) => r(n, s));
|
|
1318
1318
|
}
|
|
1319
|
-
|
|
1319
|
+
je.shouldUseGroup = t;
|
|
1320
1320
|
function r(n, a) {
|
|
1321
1321
|
var s;
|
|
1322
1322
|
return n[a.keyword] !== void 0 || ((s = a.definition.implements) === null || s === void 0 ? void 0 : s.some((o) => n[o] !== void 0));
|
|
1323
1323
|
}
|
|
1324
|
-
return
|
|
1324
|
+
return je.shouldUseRule = r, je;
|
|
1325
1325
|
}
|
|
1326
1326
|
var Hr;
|
|
1327
|
-
function
|
|
1327
|
+
function zt() {
|
|
1328
1328
|
if (Hr) return fe;
|
|
1329
1329
|
Hr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.reportTypeError = fe.checkDataTypes = fe.checkDataType = fe.coerceAndCheckDataType = fe.getJSONTypes = fe.getSchemaTypes = fe.DataType = void 0;
|
|
1330
|
-
const e =
|
|
1330
|
+
const e = Ss(), t = Ps(), r = Bt(), n = G(), a = ee();
|
|
1331
1331
|
var s;
|
|
1332
1332
|
(function(i) {
|
|
1333
1333
|
i[i.Correct = 0] = "Correct", i[i.Wrong = 1] = "Wrong";
|
|
@@ -1471,10 +1471,10 @@ function Dt() {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
return fe;
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var Be = {}, Gr;
|
|
1475
1475
|
function Va() {
|
|
1476
|
-
if (
|
|
1477
|
-
|
|
1476
|
+
if (Gr) return Be;
|
|
1477
|
+
Gr = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.assignDefaults = void 0;
|
|
1478
1478
|
const e = G(), t = ee();
|
|
1479
1479
|
function r(a, s) {
|
|
1480
1480
|
const { properties: o, items: u } = a.schema;
|
|
@@ -1483,7 +1483,7 @@ function Va() {
|
|
|
1483
1483
|
n(a, h, o[h].default);
|
|
1484
1484
|
else s === "array" && Array.isArray(u) && u.forEach((h, y) => n(a, y, h.default));
|
|
1485
1485
|
}
|
|
1486
|
-
|
|
1486
|
+
Be.assignDefaults = r;
|
|
1487
1487
|
function n(a, s, o) {
|
|
1488
1488
|
const { gen: u, compositeRule: h, data: y, opts: d } = a;
|
|
1489
1489
|
if (o === void 0)
|
|
@@ -1496,13 +1496,13 @@ function Va() {
|
|
|
1496
1496
|
let $ = (0, e._)`${v} === undefined`;
|
|
1497
1497
|
d.useDefaults === "empty" && ($ = (0, e._)`${$} || ${v} === null || ${v} === ""`), u.if($, (0, e._)`${v} = ${(0, e.stringify)(o)}`);
|
|
1498
1498
|
}
|
|
1499
|
-
return
|
|
1499
|
+
return Be;
|
|
1500
1500
|
}
|
|
1501
|
-
var $e = {}, re = {},
|
|
1502
|
-
function
|
|
1503
|
-
if (
|
|
1504
|
-
|
|
1505
|
-
const e = G(), t = ee(), r =
|
|
1501
|
+
var $e = {}, re = {}, xr;
|
|
1502
|
+
function Se() {
|
|
1503
|
+
if (xr) return re;
|
|
1504
|
+
xr = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.validateUnion = re.validateArray = re.usePattern = re.callValidateCode = re.schemaProperties = re.allSchemaProperties = re.noPropertyInData = re.propertyInData = re.isOwnProperty = re.hasPropFunc = re.reportMissingProp = re.checkMissingProp = re.checkReportMissingProp = void 0;
|
|
1505
|
+
const e = G(), t = ee(), r = Ae(), n = ee();
|
|
1506
1506
|
function a(i, c) {
|
|
1507
1507
|
const { gen: m, data: _, it: b } = i;
|
|
1508
1508
|
m.if(d(m, _, c, b.opts.ownProperties), () => {
|
|
@@ -1607,11 +1607,11 @@ function we() {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
return re.validateUnion = l, re;
|
|
1609
1609
|
}
|
|
1610
|
-
var
|
|
1610
|
+
var Xr;
|
|
1611
1611
|
function Da() {
|
|
1612
|
-
if (
|
|
1613
|
-
|
|
1614
|
-
const e = G(), t =
|
|
1612
|
+
if (Xr) return $e;
|
|
1613
|
+
Xr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.validateKeywordUsage = $e.validSchemaType = $e.funcKeywordCode = $e.macroKeywordCode = void 0;
|
|
1614
|
+
const e = G(), t = Ae(), r = Se(), n = Bt();
|
|
1615
1615
|
function a($, S) {
|
|
1616
1616
|
const { gen: w, keyword: g, schema: f, parentSchema: l, it: i } = $, c = S.macro.call(i.self, f, l, i), m = y(w, g, c);
|
|
1617
1617
|
i.opts.validateSchema !== !1 && i.self.validateSchema(c, !0);
|
|
@@ -1696,10 +1696,10 @@ function Da() {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
return $e.validateKeywordUsage = v, $e;
|
|
1698
1698
|
}
|
|
1699
|
-
var
|
|
1699
|
+
var ke = {}, Yr;
|
|
1700
1700
|
function za() {
|
|
1701
|
-
if (
|
|
1702
|
-
|
|
1701
|
+
if (Yr) return ke;
|
|
1702
|
+
Yr = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.extendSubschemaMode = ke.extendSubschemaData = ke.getSubschema = void 0;
|
|
1703
1703
|
const e = G(), t = ee();
|
|
1704
1704
|
function r(s, { keyword: o, schemaProp: u, schema: h, schemaPath: y, errSchemaPath: d, topSchemaRef: v }) {
|
|
1705
1705
|
if (o !== void 0 && h !== void 0)
|
|
@@ -1728,7 +1728,7 @@ function za() {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
1730
1730
|
}
|
|
1731
|
-
|
|
1731
|
+
ke.getSubschema = r;
|
|
1732
1732
|
function n(s, o, { dataProp: u, dataPropType: h, data: y, dataTypes: d, propertyName: v }) {
|
|
1733
1733
|
if (y !== void 0 && u !== void 0)
|
|
1734
1734
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
@@ -1746,15 +1746,15 @@ function za() {
|
|
|
1746
1746
|
s.data = w, s.dataLevel = o.dataLevel + 1, s.dataTypes = [], o.definedProperties = /* @__PURE__ */ new Set(), s.parentData = o.data, s.dataNames = [...o.dataNames, w];
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
|
-
|
|
1749
|
+
ke.extendSubschemaData = n;
|
|
1750
1750
|
function a(s, { jtdDiscriminator: o, jtdMetadata: u, compositeRule: h, createErrors: y, allErrors: d }) {
|
|
1751
1751
|
h !== void 0 && (s.compositeRule = h), y !== void 0 && (s.createErrors = y), d !== void 0 && (s.allErrors = d), s.jtdDiscriminator = o, s.jtdMetadata = u;
|
|
1752
1752
|
}
|
|
1753
|
-
return
|
|
1753
|
+
return ke.extendSubschemaMode = a, ke;
|
|
1754
1754
|
}
|
|
1755
|
-
var he = {},
|
|
1756
|
-
function
|
|
1757
|
-
return
|
|
1755
|
+
var he = {}, or, Zr;
|
|
1756
|
+
function Es() {
|
|
1757
|
+
return Zr || (Zr = 1, or = function e(t, r) {
|
|
1758
1758
|
if (t === r) return !0;
|
|
1759
1759
|
if (t && r && typeof t == "object" && typeof r == "object") {
|
|
1760
1760
|
if (t.constructor !== r.constructor) return !1;
|
|
@@ -1778,13 +1778,13 @@ function Ps() {
|
|
|
1778
1778
|
return !0;
|
|
1779
1779
|
}
|
|
1780
1780
|
return t !== t && r !== r;
|
|
1781
|
-
}),
|
|
1781
|
+
}), or;
|
|
1782
1782
|
}
|
|
1783
|
-
var
|
|
1783
|
+
var ur = { exports: {} }, Qr;
|
|
1784
1784
|
function La() {
|
|
1785
|
-
if (
|
|
1786
|
-
|
|
1787
|
-
var e =
|
|
1785
|
+
if (Qr) return ur.exports;
|
|
1786
|
+
Qr = 1;
|
|
1787
|
+
var e = ur.exports = function(n, a, s) {
|
|
1788
1788
|
typeof a == "function" && (s = a, a = {}), s = a.cb || s;
|
|
1789
1789
|
var o = typeof s == "function" ? s : s.pre || function() {
|
|
1790
1790
|
}, u = s.post || function() {
|
|
@@ -1853,13 +1853,13 @@ function La() {
|
|
|
1853
1853
|
function r(n) {
|
|
1854
1854
|
return n.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1855
1855
|
}
|
|
1856
|
-
return
|
|
1856
|
+
return ur.exports;
|
|
1857
1857
|
}
|
|
1858
|
-
var
|
|
1859
|
-
function
|
|
1860
|
-
if (
|
|
1861
|
-
|
|
1862
|
-
const e = ee(), t =
|
|
1858
|
+
var en;
|
|
1859
|
+
function Wt() {
|
|
1860
|
+
if (en) return he;
|
|
1861
|
+
en = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.getSchemaRefs = he.resolveUrl = he.normalizeId = he._getFullPath = he.getFullPath = he.inlineRef = void 0;
|
|
1862
|
+
const e = ee(), t = Es(), r = La(), n = /* @__PURE__ */ new Set([
|
|
1863
1863
|
"type",
|
|
1864
1864
|
"format",
|
|
1865
1865
|
"pattern",
|
|
@@ -1964,11 +1964,11 @@ function Bt() {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
return he.getSchemaRefs = w, he;
|
|
1966
1966
|
}
|
|
1967
|
-
var
|
|
1968
|
-
function
|
|
1969
|
-
if (
|
|
1970
|
-
|
|
1971
|
-
const e = Ma(), t =
|
|
1967
|
+
var tn;
|
|
1968
|
+
function Jt() {
|
|
1969
|
+
if (tn) return Oe;
|
|
1970
|
+
tn = 1, Object.defineProperty(Oe, "__esModule", { value: !0 }), Oe.getData = Oe.KeywordCxt = Oe.validateFunctionCode = void 0;
|
|
1971
|
+
const e = Ma(), t = zt(), r = Ps(), n = zt(), a = Va(), s = Da(), o = za(), u = G(), h = Ae(), y = Wt(), d = ee(), v = Bt();
|
|
1972
1972
|
function $(O) {
|
|
1973
1973
|
if (_(O) && (E(O), m(O))) {
|
|
1974
1974
|
f(O);
|
|
@@ -1976,7 +1976,7 @@ function Wt() {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
S(O, () => (0, e.topBoolOrEmptySchema)(O));
|
|
1978
1978
|
}
|
|
1979
|
-
|
|
1979
|
+
Oe.validateFunctionCode = $;
|
|
1980
1980
|
function S({ gen: O, validateName: k, schema: T, schemaEnv: z, opts: W }, x) {
|
|
1981
1981
|
W.code.es5 ? O.func(k, (0, u._)`${h.default.data}, ${h.default.valCxt}`, z.$async, () => {
|
|
1982
1982
|
O.code((0, u._)`"use strict"; ${i(T, W)}`), g(O, W), O.code(x);
|
|
@@ -2079,10 +2079,10 @@ function Wt() {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
me.jtd || te(O, k), W.block(() => {
|
|
2081
2081
|
for (const _e of ce.rules)
|
|
2082
|
-
|
|
2083
|
-
|
|
2082
|
+
Ve(_e);
|
|
2083
|
+
Ve(ce.post);
|
|
2084
2084
|
});
|
|
2085
|
-
function
|
|
2085
|
+
function Ve(_e) {
|
|
2086
2086
|
(0, r.shouldUseGroup)(x, _e) && (_e.type ? (W.if((0, n.checkDataType)(_e.type, ue, me.strictNumbers)), ae(O, _e), k.length === 1 && k[0] === _e.type && T && (W.else(), (0, n.reportTypeError)(O)), W.endIf()) : ae(O, _e), be || W.if((0, u._)`${h.default.errors} === ${z || 0}`));
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
@@ -2237,7 +2237,7 @@ function Wt() {
|
|
|
2237
2237
|
return W.if(T, () => this.mergeEvaluated(k, u.Name)), !0;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
|
-
|
|
2240
|
+
Oe.KeywordCxt = R;
|
|
2241
2241
|
function U(O, k, T, z) {
|
|
2242
2242
|
const W = new R(O, T, k);
|
|
2243
2243
|
"code" in T ? T.code(W, z) : W.$data && T.validate ? (0, s.funcKeywordCode)(W, T) : "macro" in T ? (0, s.macroKeywordCode)(W, T) : (T.compile || T.validate) && (0, s.funcKeywordCode)(W, T);
|
|
@@ -2275,36 +2275,36 @@ function Wt() {
|
|
|
2275
2275
|
return `Cannot access ${ye} ${ce} levels up, current level is ${k}`;
|
|
2276
2276
|
}
|
|
2277
2277
|
}
|
|
2278
|
-
return
|
|
2278
|
+
return Oe.getData = X, Oe;
|
|
2279
2279
|
}
|
|
2280
|
-
var
|
|
2281
|
-
function
|
|
2282
|
-
if (
|
|
2283
|
-
|
|
2280
|
+
var rt = {}, rn;
|
|
2281
|
+
function Er() {
|
|
2282
|
+
if (rn) return rt;
|
|
2283
|
+
rn = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
|
|
2284
2284
|
class e extends Error {
|
|
2285
2285
|
constructor(r) {
|
|
2286
2286
|
super("validation failed"), this.errors = r, this.ajv = this.validation = !0;
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
|
-
return
|
|
2289
|
+
return rt.default = e, rt;
|
|
2290
2290
|
}
|
|
2291
|
-
var
|
|
2291
|
+
var nt = {}, nn;
|
|
2292
2292
|
function Ht() {
|
|
2293
|
-
if (
|
|
2294
|
-
|
|
2295
|
-
const e =
|
|
2293
|
+
if (nn) return nt;
|
|
2294
|
+
nn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
|
|
2295
|
+
const e = Wt();
|
|
2296
2296
|
class t extends Error {
|
|
2297
2297
|
constructor(n, a, s, o) {
|
|
2298
2298
|
super(o || `can't resolve reference ${s} from id ${a}`), this.missingRef = (0, e.resolveUrl)(n, a, s), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
return
|
|
2301
|
+
return nt.default = t, nt;
|
|
2302
2302
|
}
|
|
2303
|
-
var ge = {},
|
|
2304
|
-
function
|
|
2305
|
-
if (
|
|
2306
|
-
|
|
2307
|
-
const e = G(), t =
|
|
2303
|
+
var ge = {}, sn;
|
|
2304
|
+
function Or() {
|
|
2305
|
+
if (sn) return ge;
|
|
2306
|
+
sn = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.resolveSchema = ge.getCompilingSchema = ge.resolveRef = ge.compileSchema = ge.SchemaEnv = void 0;
|
|
2307
|
+
const e = G(), t = Er(), r = Ae(), n = Wt(), a = ee(), s = Jt();
|
|
2308
2308
|
class o {
|
|
2309
2309
|
constructor(l) {
|
|
2310
2310
|
var i;
|
|
@@ -2458,17 +2458,17 @@ function Er() {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
return ge;
|
|
2460
2460
|
}
|
|
2461
|
-
const Fa = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Ua = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ka = "object", Ba = ["$data"], Wa = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } },
|
|
2461
|
+
const Fa = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Ua = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ka = "object", Ba = ["$data"], Wa = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Ja = !1, Ha = {
|
|
2462
2462
|
$id: Fa,
|
|
2463
2463
|
description: Ua,
|
|
2464
2464
|
type: Ka,
|
|
2465
2465
|
required: Ba,
|
|
2466
2466
|
properties: Wa,
|
|
2467
|
-
additionalProperties:
|
|
2467
|
+
additionalProperties: Ja
|
|
2468
2468
|
};
|
|
2469
|
-
var
|
|
2469
|
+
var st = {}, We = { exports: {} }, cr, an;
|
|
2470
2470
|
function Ga() {
|
|
2471
|
-
return
|
|
2471
|
+
return an || (an = 1, cr = {
|
|
2472
2472
|
HEX: {
|
|
2473
2473
|
0: 0,
|
|
2474
2474
|
1: 1,
|
|
@@ -2493,12 +2493,12 @@ function Ga() {
|
|
|
2493
2493
|
f: 15,
|
|
2494
2494
|
F: 15
|
|
2495
2495
|
}
|
|
2496
|
-
}),
|
|
2496
|
+
}), cr;
|
|
2497
2497
|
}
|
|
2498
|
-
var
|
|
2498
|
+
var lr, on;
|
|
2499
2499
|
function xa() {
|
|
2500
|
-
if (
|
|
2501
|
-
|
|
2500
|
+
if (on) return lr;
|
|
2501
|
+
on = 1;
|
|
2502
2502
|
const { HEX: e } = Ga(), t = /^(?:(?: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;
|
|
2503
2503
|
function r(g) {
|
|
2504
2504
|
if (u(g, ".") < 3)
|
|
@@ -2621,19 +2621,19 @@ function xa() {
|
|
|
2621
2621
|
}
|
|
2622
2622
|
return (typeof g.port == "number" || typeof g.port == "string") && (f.push(":"), f.push(String(g.port))), f.length ? f.join("") : void 0;
|
|
2623
2623
|
}
|
|
2624
|
-
return
|
|
2624
|
+
return lr = {
|
|
2625
2625
|
recomposeAuthority: w,
|
|
2626
2626
|
normalizeComponentEncoding: S,
|
|
2627
2627
|
removeDotSegments: $,
|
|
2628
2628
|
normalizeIPv4: r,
|
|
2629
2629
|
normalizeIPv6: s,
|
|
2630
2630
|
stringArrayToHexStripped: n
|
|
2631
|
-
},
|
|
2631
|
+
}, lr;
|
|
2632
2632
|
}
|
|
2633
|
-
var
|
|
2633
|
+
var fr, un;
|
|
2634
2634
|
function Xa() {
|
|
2635
|
-
if (
|
|
2636
|
-
|
|
2635
|
+
if (un) return fr;
|
|
2636
|
+
un = 1;
|
|
2637
2637
|
const e = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu, t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
2638
2638
|
function r(i) {
|
|
2639
2639
|
return typeof i.secure == "boolean" ? i.secure : String(i.scheme).toLowerCase() === "wss";
|
|
@@ -2720,12 +2720,12 @@ function Xa() {
|
|
|
2720
2720
|
skipNormalize: !0
|
|
2721
2721
|
}
|
|
2722
2722
|
};
|
|
2723
|
-
return
|
|
2723
|
+
return fr = l, fr;
|
|
2724
2724
|
}
|
|
2725
|
-
var
|
|
2725
|
+
var cn;
|
|
2726
2726
|
function Ya() {
|
|
2727
|
-
if (
|
|
2728
|
-
|
|
2727
|
+
if (cn) return We.exports;
|
|
2728
|
+
cn = 1;
|
|
2729
2729
|
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: a } = xa(), s = Xa();
|
|
2730
2730
|
function o(f, l) {
|
|
2731
2731
|
return typeof f == "string" ? f = d(w(f, l), l) : typeof f == "object" && (f = w(d(f, l), l)), f;
|
|
@@ -2819,20 +2819,20 @@ function Ya() {
|
|
|
2819
2819
|
serialize: d,
|
|
2820
2820
|
parse: w
|
|
2821
2821
|
};
|
|
2822
|
-
return
|
|
2822
|
+
return We.exports = g, We.exports.default = g, We.exports.fastUri = g, We.exports;
|
|
2823
2823
|
}
|
|
2824
|
-
var
|
|
2824
|
+
var ln;
|
|
2825
2825
|
function Za() {
|
|
2826
|
-
if (
|
|
2827
|
-
|
|
2826
|
+
if (ln) return st;
|
|
2827
|
+
ln = 1, Object.defineProperty(st, "__esModule", { value: !0 });
|
|
2828
2828
|
const e = Ya();
|
|
2829
|
-
return e.code = 'require("ajv/dist/runtime/uri").default',
|
|
2829
|
+
return e.code = 'require("ajv/dist/runtime/uri").default', st.default = e, st;
|
|
2830
2830
|
}
|
|
2831
|
-
var
|
|
2831
|
+
var fn;
|
|
2832
2832
|
function Qa() {
|
|
2833
|
-
return
|
|
2833
|
+
return fn || (fn = 1, function(e) {
|
|
2834
2834
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
2835
|
-
var t =
|
|
2835
|
+
var t = Jt();
|
|
2836
2836
|
Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
|
|
2837
2837
|
return t.KeywordCxt;
|
|
2838
2838
|
} });
|
|
@@ -2850,7 +2850,7 @@ function Qa() {
|
|
|
2850
2850
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
2851
2851
|
return r.CodeGen;
|
|
2852
2852
|
} });
|
|
2853
|
-
const n =
|
|
2853
|
+
const n = Er(), a = Ht(), s = Ss(), o = Or(), u = G(), h = Wt(), y = zt(), d = ee(), v = Ha, $ = Za(), S = (M, j) => new RegExp(M, j);
|
|
2854
2854
|
S.code = "new RegExp";
|
|
2855
2855
|
const w = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
2856
2856
|
"validate",
|
|
@@ -2888,15 +2888,15 @@ function Qa() {
|
|
|
2888
2888
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
2889
2889
|
}, i = 200;
|
|
2890
2890
|
function c(M) {
|
|
2891
|
-
var j, C, N, p, P, R, U, K, Y, X, O, k, T, z, W, x, ue, be, me, ye, ce,
|
|
2892
|
-
const
|
|
2891
|
+
var j, C, N, p, P, R, U, K, Y, X, O, k, T, z, W, x, ue, be, me, ye, ce, Ve, _e, xt, Xt;
|
|
2892
|
+
const Ue = M.strict, Yt = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, Cr = Yt === !0 || Yt === void 0 ? 1 : Yt || 0, Tr = (N = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && N !== void 0 ? N : S, Xs = (p = M.uriResolver) !== null && p !== void 0 ? p : $.default;
|
|
2893
2893
|
return {
|
|
2894
|
-
strictSchema: (R = (P = M.strictSchema) !== null && P !== void 0 ? P :
|
|
2895
|
-
strictNumbers: (K = (U = M.strictNumbers) !== null && U !== void 0 ? U :
|
|
2896
|
-
strictTypes: (X = (Y = M.strictTypes) !== null && Y !== void 0 ? Y :
|
|
2897
|
-
strictTuples: (k = (O = M.strictTuples) !== null && O !== void 0 ? O :
|
|
2898
|
-
strictRequired: (z = (T = M.strictRequired) !== null && T !== void 0 ? T :
|
|
2899
|
-
code: M.code ? { ...M.code, optimize:
|
|
2894
|
+
strictSchema: (R = (P = M.strictSchema) !== null && P !== void 0 ? P : Ue) !== null && R !== void 0 ? R : !0,
|
|
2895
|
+
strictNumbers: (K = (U = M.strictNumbers) !== null && U !== void 0 ? U : Ue) !== null && K !== void 0 ? K : !0,
|
|
2896
|
+
strictTypes: (X = (Y = M.strictTypes) !== null && Y !== void 0 ? Y : Ue) !== null && X !== void 0 ? X : "log",
|
|
2897
|
+
strictTuples: (k = (O = M.strictTuples) !== null && O !== void 0 ? O : Ue) !== null && k !== void 0 ? k : "log",
|
|
2898
|
+
strictRequired: (z = (T = M.strictRequired) !== null && T !== void 0 ? T : Ue) !== null && z !== void 0 ? z : !1,
|
|
2899
|
+
code: M.code ? { ...M.code, optimize: Cr, regExp: Tr } : { optimize: Cr, regExp: Tr },
|
|
2900
2900
|
loopRequired: (W = M.loopRequired) !== null && W !== void 0 ? W : i,
|
|
2901
2901
|
loopEnum: (x = M.loopEnum) !== null && x !== void 0 ? x : i,
|
|
2902
2902
|
meta: (ue = M.meta) !== null && ue !== void 0 ? ue : !0,
|
|
@@ -2904,11 +2904,11 @@ function Qa() {
|
|
|
2904
2904
|
inlineRefs: (me = M.inlineRefs) !== null && me !== void 0 ? me : !0,
|
|
2905
2905
|
schemaId: (ye = M.schemaId) !== null && ye !== void 0 ? ye : "$id",
|
|
2906
2906
|
addUsedSchema: (ce = M.addUsedSchema) !== null && ce !== void 0 ? ce : !0,
|
|
2907
|
-
validateSchema: (
|
|
2907
|
+
validateSchema: (Ve = M.validateSchema) !== null && Ve !== void 0 ? Ve : !0,
|
|
2908
2908
|
validateFormats: (_e = M.validateFormats) !== null && _e !== void 0 ? _e : !0,
|
|
2909
|
-
unicodeRegExp: (
|
|
2910
|
-
int32range: (
|
|
2911
|
-
uriResolver:
|
|
2909
|
+
unicodeRegExp: (xt = M.unicodeRegExp) !== null && xt !== void 0 ? xt : !0,
|
|
2910
|
+
int32range: (Xt = M.int32range) !== null && Xt !== void 0 ? Xt : !0,
|
|
2911
|
+
uriResolver: Xs
|
|
2912
2912
|
};
|
|
2913
2913
|
}
|
|
2914
2914
|
class m {
|
|
@@ -3269,25 +3269,25 @@ function Qa() {
|
|
|
3269
3269
|
function ve(M) {
|
|
3270
3270
|
return { anyOf: [M, te] };
|
|
3271
3271
|
}
|
|
3272
|
-
}(
|
|
3272
|
+
}(rr)), rr;
|
|
3273
3273
|
}
|
|
3274
|
-
var
|
|
3274
|
+
var at = {}, it = {}, ot = {}, dn;
|
|
3275
3275
|
function ei() {
|
|
3276
|
-
if (
|
|
3277
|
-
|
|
3276
|
+
if (dn) return ot;
|
|
3277
|
+
dn = 1, Object.defineProperty(ot, "__esModule", { value: !0 });
|
|
3278
3278
|
const e = {
|
|
3279
3279
|
keyword: "id",
|
|
3280
3280
|
code() {
|
|
3281
3281
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
3282
3282
|
}
|
|
3283
3283
|
};
|
|
3284
|
-
return
|
|
3284
|
+
return ot.default = e, ot;
|
|
3285
3285
|
}
|
|
3286
|
-
var
|
|
3286
|
+
var Ie = {}, hn;
|
|
3287
3287
|
function ti() {
|
|
3288
|
-
if (
|
|
3289
|
-
|
|
3290
|
-
const e = Ht(), t =
|
|
3288
|
+
if (hn) return Ie;
|
|
3289
|
+
hn = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.callRef = Ie.getValidate = void 0;
|
|
3290
|
+
const e = Ht(), t = Se(), r = G(), n = Ae(), a = Or(), s = ee(), o = {
|
|
3291
3291
|
keyword: "$ref",
|
|
3292
3292
|
schemaType: "string",
|
|
3293
3293
|
code(y) {
|
|
@@ -3326,7 +3326,7 @@ function ti() {
|
|
|
3326
3326
|
const { gen: v } = y;
|
|
3327
3327
|
return d.validate ? v.scopeValue("validate", { ref: d.validate }) : (0, r._)`${v.scopeValue("wrapper", { ref: d })}.validate`;
|
|
3328
3328
|
}
|
|
3329
|
-
|
|
3329
|
+
Ie.getValidate = u;
|
|
3330
3330
|
function h(y, d, v, $) {
|
|
3331
3331
|
const { gen: S, it: w } = y, { allErrors: g, schemaEnv: f, opts: l } = w, i = l.passContext ? n.default.this : r.nil;
|
|
3332
3332
|
$ ? c() : m();
|
|
@@ -3368,12 +3368,12 @@ function ti() {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
}
|
|
3370
3370
|
}
|
|
3371
|
-
return
|
|
3371
|
+
return Ie.callRef = h, Ie.default = o, Ie;
|
|
3372
3372
|
}
|
|
3373
|
-
var
|
|
3373
|
+
var pn;
|
|
3374
3374
|
function ri() {
|
|
3375
|
-
if (
|
|
3376
|
-
|
|
3375
|
+
if (pn) return it;
|
|
3376
|
+
pn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
|
|
3377
3377
|
const e = ei(), t = ti(), r = [
|
|
3378
3378
|
"$schema",
|
|
3379
3379
|
"$id",
|
|
@@ -3384,12 +3384,12 @@ function ri() {
|
|
|
3384
3384
|
e.default,
|
|
3385
3385
|
t.default
|
|
3386
3386
|
];
|
|
3387
|
-
return
|
|
3387
|
+
return it.default = r, it;
|
|
3388
3388
|
}
|
|
3389
|
-
var
|
|
3389
|
+
var ut = {}, ct = {}, mn;
|
|
3390
3390
|
function ni() {
|
|
3391
|
-
if (
|
|
3392
|
-
|
|
3391
|
+
if (mn) return ct;
|
|
3392
|
+
mn = 1, Object.defineProperty(ct, "__esModule", { value: !0 });
|
|
3393
3393
|
const e = G(), t = e.operators, r = {
|
|
3394
3394
|
maximum: { okStr: "<=", ok: t.LTE, fail: t.GT },
|
|
3395
3395
|
minimum: { okStr: ">=", ok: t.GTE, fail: t.LT },
|
|
@@ -3409,12 +3409,12 @@ function ni() {
|
|
|
3409
3409
|
s.fail$data((0, e._)`${u} ${r[o].fail} ${h} || isNaN(${u})`);
|
|
3410
3410
|
}
|
|
3411
3411
|
};
|
|
3412
|
-
return
|
|
3412
|
+
return ct.default = a, ct;
|
|
3413
3413
|
}
|
|
3414
|
-
var
|
|
3414
|
+
var lt = {}, yn;
|
|
3415
3415
|
function si() {
|
|
3416
|
-
if (
|
|
3417
|
-
|
|
3416
|
+
if (yn) return lt;
|
|
3417
|
+
yn = 1, Object.defineProperty(lt, "__esModule", { value: !0 });
|
|
3418
3418
|
const e = G(), r = {
|
|
3419
3419
|
keyword: "multipleOf",
|
|
3420
3420
|
type: "number",
|
|
@@ -3429,12 +3429,12 @@ function si() {
|
|
|
3429
3429
|
n.fail$data((0, e._)`(${o} === 0 || (${y} = ${s}/${o}, ${d}))`);
|
|
3430
3430
|
}
|
|
3431
3431
|
};
|
|
3432
|
-
return
|
|
3432
|
+
return lt.default = r, lt;
|
|
3433
3433
|
}
|
|
3434
|
-
var
|
|
3434
|
+
var ft = {}, dt = {}, gn;
|
|
3435
3435
|
function ai() {
|
|
3436
|
-
if (
|
|
3437
|
-
|
|
3436
|
+
if (gn) return dt;
|
|
3437
|
+
gn = 1, Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
3438
3438
|
function e(t) {
|
|
3439
3439
|
const r = t.length;
|
|
3440
3440
|
let n = 0, a = 0, s;
|
|
@@ -3442,12 +3442,12 @@ function ai() {
|
|
|
3442
3442
|
n++, s = t.charCodeAt(a++), s >= 55296 && s <= 56319 && a < r && (s = t.charCodeAt(a), (s & 64512) === 56320 && a++);
|
|
3443
3443
|
return n;
|
|
3444
3444
|
}
|
|
3445
|
-
return
|
|
3445
|
+
return dt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', dt;
|
|
3446
3446
|
}
|
|
3447
|
-
var
|
|
3447
|
+
var vn;
|
|
3448
3448
|
function ii() {
|
|
3449
|
-
if (
|
|
3450
|
-
|
|
3449
|
+
if (vn) return ft;
|
|
3450
|
+
vn = 1, Object.defineProperty(ft, "__esModule", { value: !0 });
|
|
3451
3451
|
const e = G(), t = ee(), r = ai(), a = {
|
|
3452
3452
|
keyword: ["maxLength", "minLength"],
|
|
3453
3453
|
type: "string",
|
|
@@ -3465,13 +3465,13 @@ function ii() {
|
|
|
3465
3465
|
s.fail$data((0, e._)`${v} ${d} ${h}`);
|
|
3466
3466
|
}
|
|
3467
3467
|
};
|
|
3468
|
-
return
|
|
3468
|
+
return ft.default = a, ft;
|
|
3469
3469
|
}
|
|
3470
|
-
var
|
|
3470
|
+
var ht = {}, _n;
|
|
3471
3471
|
function oi() {
|
|
3472
|
-
if (
|
|
3473
|
-
|
|
3474
|
-
const e =
|
|
3472
|
+
if (_n) return ht;
|
|
3473
|
+
_n = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
|
|
3474
|
+
const e = Se(), t = G(), n = {
|
|
3475
3475
|
keyword: "pattern",
|
|
3476
3476
|
type: "string",
|
|
3477
3477
|
schemaType: "string",
|
|
@@ -3485,12 +3485,12 @@ function oi() {
|
|
|
3485
3485
|
a.fail$data((0, t._)`!${v}.test(${s})`);
|
|
3486
3486
|
}
|
|
3487
3487
|
};
|
|
3488
|
-
return
|
|
3488
|
+
return ht.default = n, ht;
|
|
3489
3489
|
}
|
|
3490
|
-
var
|
|
3490
|
+
var pt = {}, bn;
|
|
3491
3491
|
function ui() {
|
|
3492
|
-
if (
|
|
3493
|
-
|
|
3492
|
+
if (bn) return pt;
|
|
3493
|
+
bn = 1, Object.defineProperty(pt, "__esModule", { value: !0 });
|
|
3494
3494
|
const e = G(), r = {
|
|
3495
3495
|
keyword: ["maxProperties", "minProperties"],
|
|
3496
3496
|
type: "object",
|
|
@@ -3508,13 +3508,13 @@ function ui() {
|
|
|
3508
3508
|
n.fail$data((0, e._)`Object.keys(${s}).length ${u} ${o}`);
|
|
3509
3509
|
}
|
|
3510
3510
|
};
|
|
3511
|
-
return
|
|
3511
|
+
return pt.default = r, pt;
|
|
3512
3512
|
}
|
|
3513
|
-
var
|
|
3513
|
+
var mt = {}, $n;
|
|
3514
3514
|
function ci() {
|
|
3515
|
-
if (
|
|
3516
|
-
|
|
3517
|
-
const e =
|
|
3515
|
+
if ($n) return mt;
|
|
3516
|
+
$n = 1, Object.defineProperty(mt, "__esModule", { value: !0 });
|
|
3517
|
+
const e = Se(), t = G(), r = ee(), a = {
|
|
3518
3518
|
keyword: "required",
|
|
3519
3519
|
type: "object",
|
|
3520
3520
|
schemaType: "array",
|
|
@@ -3565,12 +3565,12 @@ function ci() {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
}
|
|
3567
3567
|
};
|
|
3568
|
-
return
|
|
3568
|
+
return mt.default = a, mt;
|
|
3569
3569
|
}
|
|
3570
|
-
var
|
|
3570
|
+
var yt = {}, wn;
|
|
3571
3571
|
function li() {
|
|
3572
|
-
if (
|
|
3573
|
-
|
|
3572
|
+
if (wn) return yt;
|
|
3573
|
+
wn = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
|
|
3574
3574
|
const e = G(), r = {
|
|
3575
3575
|
keyword: ["maxItems", "minItems"],
|
|
3576
3576
|
type: "array",
|
|
@@ -3588,20 +3588,20 @@ function li() {
|
|
|
3588
3588
|
n.fail$data((0, e._)`${s}.length ${u} ${o}`);
|
|
3589
3589
|
}
|
|
3590
3590
|
};
|
|
3591
|
-
return
|
|
3591
|
+
return yt.default = r, yt;
|
|
3592
3592
|
}
|
|
3593
|
-
var
|
|
3594
|
-
function
|
|
3595
|
-
if (
|
|
3596
|
-
|
|
3597
|
-
const e =
|
|
3598
|
-
return e.code = 'require("ajv/dist/runtime/equal").default',
|
|
3593
|
+
var gt = {}, vt = {}, Sn;
|
|
3594
|
+
function jr() {
|
|
3595
|
+
if (Sn) return vt;
|
|
3596
|
+
Sn = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
|
|
3597
|
+
const e = Es();
|
|
3598
|
+
return e.code = 'require("ajv/dist/runtime/equal").default', vt.default = e, vt;
|
|
3599
3599
|
}
|
|
3600
|
-
var
|
|
3600
|
+
var Pn;
|
|
3601
3601
|
function fi() {
|
|
3602
|
-
if (
|
|
3603
|
-
|
|
3604
|
-
const e =
|
|
3602
|
+
if (Pn) return gt;
|
|
3603
|
+
Pn = 1, Object.defineProperty(gt, "__esModule", { value: !0 });
|
|
3604
|
+
const e = zt(), t = G(), r = ee(), n = jr(), s = {
|
|
3605
3605
|
keyword: "uniqueItems",
|
|
3606
3606
|
type: "array",
|
|
3607
3607
|
schemaType: "boolean",
|
|
@@ -3639,13 +3639,13 @@ function fi() {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
3641
|
};
|
|
3642
|
-
return
|
|
3642
|
+
return gt.default = s, gt;
|
|
3643
3643
|
}
|
|
3644
|
-
var
|
|
3644
|
+
var _t = {}, En;
|
|
3645
3645
|
function di() {
|
|
3646
|
-
if (
|
|
3647
|
-
|
|
3648
|
-
const e = G(), t = ee(), r =
|
|
3646
|
+
if (En) return _t;
|
|
3647
|
+
En = 1, Object.defineProperty(_t, "__esModule", { value: !0 });
|
|
3648
|
+
const e = G(), t = ee(), r = jr(), a = {
|
|
3649
3649
|
keyword: "const",
|
|
3650
3650
|
$data: !0,
|
|
3651
3651
|
error: {
|
|
@@ -3657,13 +3657,13 @@ function di() {
|
|
|
3657
3657
|
h || d && typeof d == "object" ? s.fail$data((0, e._)`!${(0, t.useFunc)(o, r.default)}(${u}, ${y})`) : s.fail((0, e._)`${d} !== ${u}`);
|
|
3658
3658
|
}
|
|
3659
3659
|
};
|
|
3660
|
-
return
|
|
3660
|
+
return _t.default = a, _t;
|
|
3661
3661
|
}
|
|
3662
|
-
var
|
|
3662
|
+
var bt = {}, On;
|
|
3663
3663
|
function hi() {
|
|
3664
|
-
if (
|
|
3665
|
-
|
|
3666
|
-
const e = G(), t = ee(), r =
|
|
3664
|
+
if (On) return bt;
|
|
3665
|
+
On = 1, Object.defineProperty(bt, "__esModule", { value: !0 });
|
|
3666
|
+
const e = G(), t = ee(), r = jr(), a = {
|
|
3667
3667
|
keyword: "enum",
|
|
3668
3668
|
schemaType: "array",
|
|
3669
3669
|
$data: !0,
|
|
@@ -3697,12 +3697,12 @@ function hi() {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
3699
|
};
|
|
3700
|
-
return
|
|
3700
|
+
return bt.default = a, bt;
|
|
3701
3701
|
}
|
|
3702
|
-
var
|
|
3702
|
+
var jn;
|
|
3703
3703
|
function pi() {
|
|
3704
|
-
if (
|
|
3705
|
-
|
|
3704
|
+
if (jn) return ut;
|
|
3705
|
+
jn = 1, Object.defineProperty(ut, "__esModule", { value: !0 });
|
|
3706
3706
|
const e = ni(), t = si(), r = ii(), n = oi(), a = ui(), s = ci(), o = li(), u = fi(), h = di(), y = hi(), d = [
|
|
3707
3707
|
// number
|
|
3708
3708
|
e.default,
|
|
@@ -3722,12 +3722,12 @@ function pi() {
|
|
|
3722
3722
|
h.default,
|
|
3723
3723
|
y.default
|
|
3724
3724
|
];
|
|
3725
|
-
return
|
|
3725
|
+
return ut.default = d, ut;
|
|
3726
3726
|
}
|
|
3727
|
-
var
|
|
3728
|
-
function
|
|
3729
|
-
if (
|
|
3730
|
-
|
|
3727
|
+
var $t = {}, ze = {}, kn;
|
|
3728
|
+
function Os() {
|
|
3729
|
+
if (kn) return ze;
|
|
3730
|
+
kn = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.validateAdditionalItems = void 0;
|
|
3731
3731
|
const e = G(), t = ee(), n = {
|
|
3732
3732
|
keyword: "additionalItems",
|
|
3733
3733
|
type: "array",
|
|
@@ -3762,13 +3762,13 @@ function Es() {
|
|
|
3762
3762
|
});
|
|
3763
3763
|
}
|
|
3764
3764
|
}
|
|
3765
|
-
return
|
|
3765
|
+
return ze.validateAdditionalItems = a, ze.default = n, ze;
|
|
3766
3766
|
}
|
|
3767
|
-
var
|
|
3768
|
-
function
|
|
3769
|
-
if (
|
|
3770
|
-
|
|
3771
|
-
const e = G(), t = ee(), r =
|
|
3767
|
+
var wt = {}, Le = {}, Rn;
|
|
3768
|
+
function js() {
|
|
3769
|
+
if (Rn) return Le;
|
|
3770
|
+
Rn = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.validateTuple = void 0;
|
|
3771
|
+
const e = G(), t = ee(), r = Se(), n = {
|
|
3772
3772
|
keyword: "items",
|
|
3773
3773
|
type: "array",
|
|
3774
3774
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -3799,26 +3799,26 @@ function Os() {
|
|
|
3799
3799
|
}
|
|
3800
3800
|
}
|
|
3801
3801
|
}
|
|
3802
|
-
return
|
|
3802
|
+
return Le.validateTuple = a, Le.default = n, Le;
|
|
3803
3803
|
}
|
|
3804
|
-
var
|
|
3804
|
+
var Nn;
|
|
3805
3805
|
function mi() {
|
|
3806
|
-
if (
|
|
3807
|
-
|
|
3808
|
-
const e =
|
|
3806
|
+
if (Nn) return wt;
|
|
3807
|
+
Nn = 1, Object.defineProperty(wt, "__esModule", { value: !0 });
|
|
3808
|
+
const e = js(), t = {
|
|
3809
3809
|
keyword: "prefixItems",
|
|
3810
3810
|
type: "array",
|
|
3811
3811
|
schemaType: ["array"],
|
|
3812
3812
|
before: "uniqueItems",
|
|
3813
3813
|
code: (r) => (0, e.validateTuple)(r, "items")
|
|
3814
3814
|
};
|
|
3815
|
-
return
|
|
3815
|
+
return wt.default = t, wt;
|
|
3816
3816
|
}
|
|
3817
|
-
var
|
|
3817
|
+
var St = {}, In;
|
|
3818
3818
|
function yi() {
|
|
3819
|
-
if (
|
|
3820
|
-
|
|
3821
|
-
const e = G(), t = ee(), r =
|
|
3819
|
+
if (In) return St;
|
|
3820
|
+
In = 1, Object.defineProperty(St, "__esModule", { value: !0 });
|
|
3821
|
+
const e = G(), t = ee(), r = Se(), n = Os(), s = {
|
|
3822
3822
|
keyword: "items",
|
|
3823
3823
|
type: "array",
|
|
3824
3824
|
schemaType: ["object", "boolean"],
|
|
@@ -3832,12 +3832,12 @@ function yi() {
|
|
|
3832
3832
|
y.items = !0, !(0, t.alwaysValidSchema)(y, u) && (d ? (0, n.validateAdditionalItems)(o, d) : o.ok((0, r.validateArray)(o)));
|
|
3833
3833
|
}
|
|
3834
3834
|
};
|
|
3835
|
-
return
|
|
3835
|
+
return St.default = s, St;
|
|
3836
3836
|
}
|
|
3837
|
-
var
|
|
3837
|
+
var Pt = {}, An;
|
|
3838
3838
|
function gi() {
|
|
3839
|
-
if (
|
|
3840
|
-
|
|
3839
|
+
if (An) return Pt;
|
|
3840
|
+
An = 1, Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
3841
3841
|
const e = G(), t = ee(), n = {
|
|
3842
3842
|
keyword: "contains",
|
|
3843
3843
|
type: "array",
|
|
@@ -3889,13 +3889,13 @@ function gi() {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
}
|
|
3891
3891
|
};
|
|
3892
|
-
return
|
|
3892
|
+
return Pt.default = n, Pt;
|
|
3893
3893
|
}
|
|
3894
|
-
var
|
|
3894
|
+
var dr = {}, Cn;
|
|
3895
3895
|
function vi() {
|
|
3896
|
-
return
|
|
3896
|
+
return Cn || (Cn = 1, function(e) {
|
|
3897
3897
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
3898
|
-
const t = G(), r = ee(), n =
|
|
3898
|
+
const t = G(), r = ee(), n = Se();
|
|
3899
3899
|
e.error = {
|
|
3900
3900
|
message: ({ params: { property: h, depsCount: y, deps: d } }) => {
|
|
3901
3901
|
const v = y === 1 ? "property" : "properties";
|
|
@@ -3962,12 +3962,12 @@ function vi() {
|
|
|
3962
3962
|
), h.ok(w));
|
|
3963
3963
|
}
|
|
3964
3964
|
e.validateSchemaDeps = u, e.default = a;
|
|
3965
|
-
}(
|
|
3965
|
+
}(dr)), dr;
|
|
3966
3966
|
}
|
|
3967
|
-
var
|
|
3967
|
+
var Et = {}, Tn;
|
|
3968
3968
|
function _i() {
|
|
3969
|
-
if (
|
|
3970
|
-
|
|
3969
|
+
if (Tn) return Et;
|
|
3970
|
+
Tn = 1, Object.defineProperty(Et, "__esModule", { value: !0 });
|
|
3971
3971
|
const e = G(), t = ee(), n = {
|
|
3972
3972
|
keyword: "propertyNames",
|
|
3973
3973
|
type: "object",
|
|
@@ -3994,13 +3994,13 @@ function _i() {
|
|
|
3994
3994
|
}), a.ok(y);
|
|
3995
3995
|
}
|
|
3996
3996
|
};
|
|
3997
|
-
return
|
|
3997
|
+
return Et.default = n, Et;
|
|
3998
3998
|
}
|
|
3999
|
-
var
|
|
4000
|
-
function
|
|
4001
|
-
if (
|
|
4002
|
-
|
|
4003
|
-
const e =
|
|
3999
|
+
var Ot = {}, qn;
|
|
4000
|
+
function ks() {
|
|
4001
|
+
if (qn) return Ot;
|
|
4002
|
+
qn = 1, Object.defineProperty(Ot, "__esModule", { value: !0 });
|
|
4003
|
+
const e = Se(), t = G(), r = Ae(), n = ee(), s = {
|
|
4004
4004
|
keyword: "additionalProperties",
|
|
4005
4005
|
type: ["object"],
|
|
4006
4006
|
schemaType: ["boolean", "object"],
|
|
@@ -4065,13 +4065,13 @@ function js() {
|
|
|
4065
4065
|
}
|
|
4066
4066
|
}
|
|
4067
4067
|
};
|
|
4068
|
-
return
|
|
4068
|
+
return Ot.default = s, Ot;
|
|
4069
4069
|
}
|
|
4070
|
-
var
|
|
4070
|
+
var jt = {}, Mn;
|
|
4071
4071
|
function bi() {
|
|
4072
|
-
if (
|
|
4073
|
-
|
|
4074
|
-
const e =
|
|
4072
|
+
if (Mn) return jt;
|
|
4073
|
+
Mn = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
4074
|
+
const e = Jt(), t = Se(), r = ee(), n = ks(), a = {
|
|
4075
4075
|
keyword: "properties",
|
|
4076
4076
|
type: "object",
|
|
4077
4077
|
schemaType: "object",
|
|
@@ -4100,13 +4100,13 @@ function bi() {
|
|
|
4100
4100
|
}
|
|
4101
4101
|
}
|
|
4102
4102
|
};
|
|
4103
|
-
return
|
|
4103
|
+
return jt.default = a, jt;
|
|
4104
4104
|
}
|
|
4105
|
-
var
|
|
4105
|
+
var kt = {}, Vn;
|
|
4106
4106
|
function $i() {
|
|
4107
|
-
if (
|
|
4108
|
-
|
|
4109
|
-
const e =
|
|
4107
|
+
if (Vn) return kt;
|
|
4108
|
+
Vn = 1, Object.defineProperty(kt, "__esModule", { value: !0 });
|
|
4109
|
+
const e = Se(), t = G(), r = ee(), n = ee(), a = {
|
|
4110
4110
|
keyword: "patternProperties",
|
|
4111
4111
|
type: "object",
|
|
4112
4112
|
schemaType: "object",
|
|
@@ -4141,12 +4141,12 @@ function $i() {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
};
|
|
4144
|
-
return
|
|
4144
|
+
return kt.default = a, kt;
|
|
4145
4145
|
}
|
|
4146
|
-
var
|
|
4146
|
+
var Rt = {}, Dn;
|
|
4147
4147
|
function wi() {
|
|
4148
|
-
if (
|
|
4149
|
-
|
|
4148
|
+
if (Dn) return Rt;
|
|
4149
|
+
Dn = 1, Object.defineProperty(Rt, "__esModule", { value: !0 });
|
|
4150
4150
|
const e = ee(), t = {
|
|
4151
4151
|
keyword: "not",
|
|
4152
4152
|
schemaType: ["object", "boolean"],
|
|
@@ -4167,25 +4167,25 @@ function wi() {
|
|
|
4167
4167
|
},
|
|
4168
4168
|
error: { message: "must NOT be valid" }
|
|
4169
4169
|
};
|
|
4170
|
-
return
|
|
4170
|
+
return Rt.default = t, Rt;
|
|
4171
4171
|
}
|
|
4172
|
-
var
|
|
4172
|
+
var Nt = {}, zn;
|
|
4173
4173
|
function Si() {
|
|
4174
|
-
if (
|
|
4175
|
-
|
|
4174
|
+
if (zn) return Nt;
|
|
4175
|
+
zn = 1, Object.defineProperty(Nt, "__esModule", { value: !0 });
|
|
4176
4176
|
const t = {
|
|
4177
4177
|
keyword: "anyOf",
|
|
4178
4178
|
schemaType: "array",
|
|
4179
4179
|
trackErrors: !0,
|
|
4180
|
-
code:
|
|
4180
|
+
code: Se().validateUnion,
|
|
4181
4181
|
error: { message: "must match a schema in anyOf" }
|
|
4182
4182
|
};
|
|
4183
|
-
return
|
|
4183
|
+
return Nt.default = t, Nt;
|
|
4184
4184
|
}
|
|
4185
|
-
var
|
|
4185
|
+
var It = {}, Ln;
|
|
4186
4186
|
function Pi() {
|
|
4187
|
-
if (
|
|
4188
|
-
|
|
4187
|
+
if (Ln) return It;
|
|
4188
|
+
Ln = 1, Object.defineProperty(It, "__esModule", { value: !0 });
|
|
4189
4189
|
const e = G(), t = ee(), n = {
|
|
4190
4190
|
keyword: "oneOf",
|
|
4191
4191
|
schemaType: "array",
|
|
@@ -4216,12 +4216,12 @@ function Pi() {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
4218
|
};
|
|
4219
|
-
return
|
|
4219
|
+
return It.default = n, It;
|
|
4220
4220
|
}
|
|
4221
|
-
var
|
|
4221
|
+
var At = {}, Fn;
|
|
4222
4222
|
function Ei() {
|
|
4223
|
-
if (
|
|
4224
|
-
|
|
4223
|
+
if (Fn) return At;
|
|
4224
|
+
Fn = 1, Object.defineProperty(At, "__esModule", { value: !0 });
|
|
4225
4225
|
const e = ee(), t = {
|
|
4226
4226
|
keyword: "allOf",
|
|
4227
4227
|
schemaType: "array",
|
|
@@ -4238,12 +4238,12 @@ function Ei() {
|
|
|
4238
4238
|
});
|
|
4239
4239
|
}
|
|
4240
4240
|
};
|
|
4241
|
-
return
|
|
4241
|
+
return At.default = t, At;
|
|
4242
4242
|
}
|
|
4243
|
-
var
|
|
4243
|
+
var Ct = {}, Un;
|
|
4244
4244
|
function Oi() {
|
|
4245
|
-
if (
|
|
4246
|
-
|
|
4245
|
+
if (Un) return Ct;
|
|
4246
|
+
Un = 1, Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
4247
4247
|
const e = G(), t = ee(), n = {
|
|
4248
4248
|
keyword: "if",
|
|
4249
4249
|
schemaType: ["object", "boolean"],
|
|
@@ -4285,12 +4285,12 @@ function Oi() {
|
|
|
4285
4285
|
const u = s.schema[o];
|
|
4286
4286
|
return u !== void 0 && !(0, t.alwaysValidSchema)(s, u);
|
|
4287
4287
|
}
|
|
4288
|
-
return
|
|
4288
|
+
return Ct.default = n, Ct;
|
|
4289
4289
|
}
|
|
4290
|
-
var
|
|
4290
|
+
var Tt = {}, Kn;
|
|
4291
4291
|
function ji() {
|
|
4292
|
-
if (
|
|
4293
|
-
|
|
4292
|
+
if (Kn) return Tt;
|
|
4293
|
+
Kn = 1, Object.defineProperty(Tt, "__esModule", { value: !0 });
|
|
4294
4294
|
const e = ee(), t = {
|
|
4295
4295
|
keyword: ["then", "else"],
|
|
4296
4296
|
schemaType: ["object", "boolean"],
|
|
@@ -4298,13 +4298,13 @@ function ji() {
|
|
|
4298
4298
|
n.if === void 0 && (0, e.checkStrictMode)(a, `"${r}" without "if" is ignored`);
|
|
4299
4299
|
}
|
|
4300
4300
|
};
|
|
4301
|
-
return
|
|
4301
|
+
return Tt.default = t, Tt;
|
|
4302
4302
|
}
|
|
4303
|
-
var
|
|
4303
|
+
var Bn;
|
|
4304
4304
|
function ki() {
|
|
4305
|
-
if (
|
|
4306
|
-
|
|
4307
|
-
const e =
|
|
4305
|
+
if (Bn) return $t;
|
|
4306
|
+
Bn = 1, Object.defineProperty($t, "__esModule", { value: !0 });
|
|
4307
|
+
const e = Os(), t = mi(), r = js(), n = yi(), a = gi(), s = vi(), o = _i(), u = ks(), h = bi(), y = $i(), d = wi(), v = Si(), $ = Pi(), S = Ei(), w = Oi(), g = ji();
|
|
4308
4308
|
function f(l = !1) {
|
|
4309
4309
|
const i = [
|
|
4310
4310
|
// any
|
|
@@ -4323,12 +4323,12 @@ function ki() {
|
|
|
4323
4323
|
];
|
|
4324
4324
|
return l ? i.push(t.default, n.default) : i.push(e.default, r.default), i.push(a.default), i;
|
|
4325
4325
|
}
|
|
4326
|
-
return
|
|
4326
|
+
return $t.default = f, $t;
|
|
4327
4327
|
}
|
|
4328
|
-
var
|
|
4328
|
+
var qt = {}, Mt = {}, Wn;
|
|
4329
4329
|
function Ri() {
|
|
4330
|
-
if (
|
|
4331
|
-
|
|
4330
|
+
if (Wn) return Mt;
|
|
4331
|
+
Wn = 1, Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
4332
4332
|
const e = G(), r = {
|
|
4333
4333
|
keyword: "format",
|
|
4334
4334
|
type: ["number", "string"],
|
|
@@ -4392,18 +4392,18 @@ function Ri() {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
}
|
|
4394
4394
|
};
|
|
4395
|
-
return
|
|
4395
|
+
return Mt.default = r, Mt;
|
|
4396
4396
|
}
|
|
4397
|
-
var
|
|
4397
|
+
var Jn;
|
|
4398
4398
|
function Ni() {
|
|
4399
|
-
if (
|
|
4400
|
-
|
|
4399
|
+
if (Jn) return qt;
|
|
4400
|
+
Jn = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
4401
4401
|
const t = [Ri().default];
|
|
4402
|
-
return
|
|
4402
|
+
return qt.default = t, qt;
|
|
4403
4403
|
}
|
|
4404
|
-
var
|
|
4404
|
+
var qe = {}, Hn;
|
|
4405
4405
|
function Ii() {
|
|
4406
|
-
return Hn || (Hn = 1, Object.defineProperty(
|
|
4406
|
+
return Hn || (Hn = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.contentVocabulary = qe.metadataVocabulary = void 0, qe.metadataVocabulary = [
|
|
4407
4407
|
"title",
|
|
4408
4408
|
"description",
|
|
4409
4409
|
"default",
|
|
@@ -4411,16 +4411,16 @@ function Ii() {
|
|
|
4411
4411
|
"readOnly",
|
|
4412
4412
|
"writeOnly",
|
|
4413
4413
|
"examples"
|
|
4414
|
-
],
|
|
4414
|
+
], qe.contentVocabulary = [
|
|
4415
4415
|
"contentMediaType",
|
|
4416
4416
|
"contentEncoding",
|
|
4417
4417
|
"contentSchema"
|
|
4418
|
-
]),
|
|
4418
|
+
]), qe;
|
|
4419
4419
|
}
|
|
4420
|
-
var
|
|
4420
|
+
var Gn;
|
|
4421
4421
|
function Ai() {
|
|
4422
|
-
if (
|
|
4423
|
-
|
|
4422
|
+
if (Gn) return at;
|
|
4423
|
+
Gn = 1, Object.defineProperty(at, "__esModule", { value: !0 });
|
|
4424
4424
|
const e = ri(), t = pi(), r = ki(), n = Ni(), a = Ii(), s = [
|
|
4425
4425
|
e.default,
|
|
4426
4426
|
t.default,
|
|
@@ -4429,22 +4429,22 @@ function Ai() {
|
|
|
4429
4429
|
a.metadataVocabulary,
|
|
4430
4430
|
a.contentVocabulary
|
|
4431
4431
|
];
|
|
4432
|
-
return
|
|
4432
|
+
return at.default = s, at;
|
|
4433
4433
|
}
|
|
4434
|
-
var
|
|
4434
|
+
var Vt = {}, Je = {}, xn;
|
|
4435
4435
|
function Ci() {
|
|
4436
|
-
if (
|
|
4437
|
-
|
|
4436
|
+
if (xn) return Je;
|
|
4437
|
+
xn = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.DiscrError = void 0;
|
|
4438
4438
|
var e;
|
|
4439
4439
|
return function(t) {
|
|
4440
4440
|
t.Tag = "tag", t.Mapping = "mapping";
|
|
4441
|
-
}(e || (
|
|
4441
|
+
}(e || (Je.DiscrError = e = {})), Je;
|
|
4442
4442
|
}
|
|
4443
|
-
var
|
|
4443
|
+
var Xn;
|
|
4444
4444
|
function Ti() {
|
|
4445
|
-
if (
|
|
4446
|
-
|
|
4447
|
-
const e = G(), t = Ci(), r =
|
|
4445
|
+
if (Xn) return Vt;
|
|
4446
|
+
Xn = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
4447
|
+
const e = G(), t = Ci(), r = Or(), n = Ht(), a = ee(), o = {
|
|
4448
4448
|
keyword: "discriminator",
|
|
4449
4449
|
type: "object",
|
|
4450
4450
|
schemaType: "object",
|
|
@@ -4515,7 +4515,7 @@ function Ti() {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
4517
4517
|
};
|
|
4518
|
-
return
|
|
4518
|
+
return Vt.default = o, Vt;
|
|
4519
4519
|
}
|
|
4520
4520
|
const qi = "http://json-schema.org/draft-07/schema#", Mi = "http://json-schema.org/draft-07/schema#", Vi = "Core schema meta-schema", Di = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, zi = ["object", "boolean"], Li = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, Fi = {
|
|
4521
4521
|
$schema: qi,
|
|
@@ -4526,9 +4526,9 @@ const qi = "http://json-schema.org/draft-07/schema#", Mi = "http://json-schema.o
|
|
|
4526
4526
|
properties: Li,
|
|
4527
4527
|
default: !0
|
|
4528
4528
|
};
|
|
4529
|
-
var
|
|
4530
|
-
function
|
|
4531
|
-
return
|
|
4529
|
+
var Yn;
|
|
4530
|
+
function Rs() {
|
|
4531
|
+
return Yn || (Yn = 1, function(e, t) {
|
|
4532
4532
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
4533
4533
|
const r = Qa(), n = Ai(), a = Ti(), s = Fi, o = ["/properties"], u = "http://json-schema.org/draft-07/schema";
|
|
4534
4534
|
class h extends r.default {
|
|
@@ -4546,7 +4546,7 @@ function ks() {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
}
|
|
4548
4548
|
t.Ajv = h, e.exports = t = h, e.exports.Ajv = h, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = h;
|
|
4549
|
-
var y =
|
|
4549
|
+
var y = Jt();
|
|
4550
4550
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
4551
4551
|
return y.KeywordCxt;
|
|
4552
4552
|
} });
|
|
@@ -4564,7 +4564,7 @@ function ks() {
|
|
|
4564
4564
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
4565
4565
|
return d.CodeGen;
|
|
4566
4566
|
} });
|
|
4567
|
-
var v =
|
|
4567
|
+
var v = Er();
|
|
4568
4568
|
Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
|
|
4569
4569
|
return v.default;
|
|
4570
4570
|
} });
|
|
@@ -4572,13 +4572,13 @@ function ks() {
|
|
|
4572
4572
|
Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
|
|
4573
4573
|
return $.default;
|
|
4574
4574
|
} });
|
|
4575
|
-
}(
|
|
4575
|
+
}(et, et.exports)), et.exports;
|
|
4576
4576
|
}
|
|
4577
|
-
var
|
|
4577
|
+
var Zn;
|
|
4578
4578
|
function Ui() {
|
|
4579
|
-
return
|
|
4579
|
+
return Zn || (Zn = 1, function(e) {
|
|
4580
4580
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
4581
|
-
const t =
|
|
4581
|
+
const t = Rs(), r = G(), n = r.operators, a = {
|
|
4582
4582
|
formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
|
|
4583
4583
|
formatMinimum: { okStr: ">=", ok: n.GTE, fail: n.LT },
|
|
4584
4584
|
formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
|
|
@@ -4627,11 +4627,11 @@ function Ui() {
|
|
|
4627
4627
|
};
|
|
4628
4628
|
const o = (u) => (u.addKeyword(e.formatLimitDefinition), u);
|
|
4629
4629
|
e.default = o;
|
|
4630
|
-
}(
|
|
4630
|
+
}(tr)), tr;
|
|
4631
4631
|
}
|
|
4632
|
-
var
|
|
4632
|
+
var Qn;
|
|
4633
4633
|
function Ki() {
|
|
4634
|
-
return
|
|
4634
|
+
return Qn || (Qn = 1, function(e, t) {
|
|
4635
4635
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
4636
4636
|
const r = qa(), n = Ui(), a = G(), s = new a.Name("fullFormats"), o = new a.Name("fastFormats"), u = (y, d = { keywords: !0 }) => {
|
|
4637
4637
|
if (Array.isArray(d))
|
|
@@ -4652,15 +4652,15 @@ function Ki() {
|
|
|
4652
4652
|
y.addFormat(g, v[g]);
|
|
4653
4653
|
}
|
|
4654
4654
|
e.exports = t = u, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = u;
|
|
4655
|
-
}(
|
|
4655
|
+
}(Qe, Qe.exports)), Qe.exports;
|
|
4656
4656
|
}
|
|
4657
4657
|
var Bi = Ki();
|
|
4658
|
-
const Wi = /* @__PURE__ */
|
|
4659
|
-
function
|
|
4658
|
+
const Wi = /* @__PURE__ */ ws(Bi);
|
|
4659
|
+
function Ns(e) {
|
|
4660
4660
|
return e.split("/").slice(1).map((t) => t.replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
4661
4661
|
}
|
|
4662
|
-
function
|
|
4663
|
-
const t =
|
|
4662
|
+
function Ji(e) {
|
|
4663
|
+
const t = Ns(e.instancePath || "");
|
|
4664
4664
|
if (e.keyword === "required") {
|
|
4665
4665
|
const r = e.params.missingProperty;
|
|
4666
4666
|
if (r != null) return [...t, r];
|
|
@@ -4675,24 +4675,24 @@ function Hi(e) {
|
|
|
4675
4675
|
}
|
|
4676
4676
|
return t.length > 0 ? t : void 0;
|
|
4677
4677
|
}
|
|
4678
|
-
function
|
|
4678
|
+
function Hi(e) {
|
|
4679
4679
|
return e.message ?? `${e.keyword} validation failed`;
|
|
4680
4680
|
}
|
|
4681
4681
|
function Gi(e) {
|
|
4682
4682
|
return e.reduce((t, r) => {
|
|
4683
|
-
const n =
|
|
4683
|
+
const n = Ji(r);
|
|
4684
4684
|
if (n == null) return t;
|
|
4685
4685
|
let a = t;
|
|
4686
4686
|
for (const s of n) {
|
|
4687
4687
|
const o = s;
|
|
4688
4688
|
a.dependencies == null && (a.dependencies = {}), a.dependencies[o] == null && (a.dependencies[o] = {}), a = a.dependencies[o];
|
|
4689
4689
|
}
|
|
4690
|
-
return a.message =
|
|
4690
|
+
return a.message = Hi(r), t;
|
|
4691
4691
|
}, {});
|
|
4692
4692
|
}
|
|
4693
|
-
function
|
|
4693
|
+
function kr(e) {
|
|
4694
4694
|
const t = Gi(e);
|
|
4695
|
-
return
|
|
4695
|
+
return Pe.invalid(t);
|
|
4696
4696
|
}
|
|
4697
4697
|
function xi(e) {
|
|
4698
4698
|
const t = {
|
|
@@ -4705,12 +4705,12 @@ function xi(e) {
|
|
|
4705
4705
|
};
|
|
4706
4706
|
e.addKeyword(t);
|
|
4707
4707
|
}
|
|
4708
|
-
let
|
|
4708
|
+
let Lt = /* @__PURE__ */ new WeakMap();
|
|
4709
4709
|
function gu() {
|
|
4710
|
-
|
|
4710
|
+
Lt = /* @__PURE__ */ new WeakMap();
|
|
4711
4711
|
}
|
|
4712
4712
|
function vu(e) {
|
|
4713
|
-
|
|
4713
|
+
Lt.delete(e);
|
|
4714
4714
|
}
|
|
4715
4715
|
function _u() {
|
|
4716
4716
|
return {
|
|
@@ -4718,21 +4718,21 @@ function _u() {
|
|
|
4718
4718
|
// WeakMap doesn't expose size for privacy/security
|
|
4719
4719
|
};
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4722
|
-
let r =
|
|
4723
|
-
r == null && (r = /* @__PURE__ */ new WeakMap(),
|
|
4721
|
+
function Rr(e, t) {
|
|
4722
|
+
let r = Lt.get(e);
|
|
4723
|
+
r == null && (r = /* @__PURE__ */ new WeakMap(), Lt.set(e, r));
|
|
4724
4724
|
const n = r.get(t);
|
|
4725
4725
|
if (n) return n;
|
|
4726
4726
|
const a = e.compile(t);
|
|
4727
4727
|
return r.set(t, a), a;
|
|
4728
4728
|
}
|
|
4729
|
-
async function
|
|
4729
|
+
async function es(e, t, r) {
|
|
4730
4730
|
const n = (await (() => {
|
|
4731
4731
|
switch (e) {
|
|
4732
4732
|
case "2020-12":
|
|
4733
|
-
return import("./2020-
|
|
4733
|
+
return import("./2020-D0-tZTo7.js").then((s) => s._);
|
|
4734
4734
|
case "2019-09":
|
|
4735
|
-
return import("./2019-
|
|
4735
|
+
return import("./2019-DnG5Y5sm.js").then((s) => s._);
|
|
4736
4736
|
case "draft-07":
|
|
4737
4737
|
return Promise.resolve().then(() => iu);
|
|
4738
4738
|
}
|
|
@@ -4763,18 +4763,18 @@ function Yi(e) {
|
|
|
4763
4763
|
const t = e.indexOf("#");
|
|
4764
4764
|
return t >= 0 ? e.slice(0, t) : e;
|
|
4765
4765
|
}
|
|
4766
|
-
function
|
|
4766
|
+
function yr(e, t = !0) {
|
|
4767
4767
|
if (Array.isArray(e))
|
|
4768
|
-
return e.map((r) =>
|
|
4768
|
+
return e.map((r) => yr(r, !1));
|
|
4769
4769
|
if (e != null && typeof e == "object") {
|
|
4770
4770
|
const r = e, n = {};
|
|
4771
4771
|
for (const [a, s] of Object.entries(r))
|
|
4772
|
-
!t && (a === "$id" || a === "$schema" || a === "$dynamicAnchor") || (n[a] =
|
|
4772
|
+
!t && (a === "$id" || a === "$schema" || a === "$dynamicAnchor") || (n[a] = yr(s, !1));
|
|
4773
4773
|
return n;
|
|
4774
4774
|
}
|
|
4775
4775
|
return e;
|
|
4776
4776
|
}
|
|
4777
|
-
function
|
|
4777
|
+
function ts(e) {
|
|
4778
4778
|
const t = /* @__PURE__ */ new Set(), r = (n) => {
|
|
4779
4779
|
if (n != null) {
|
|
4780
4780
|
if (Array.isArray(n)) {
|
|
@@ -4790,7 +4790,7 @@ function es(e) {
|
|
|
4790
4790
|
};
|
|
4791
4791
|
return r(e), [...t];
|
|
4792
4792
|
}
|
|
4793
|
-
function
|
|
4793
|
+
function Is(e, t) {
|
|
4794
4794
|
for (const r of t) {
|
|
4795
4795
|
const n = r.$id;
|
|
4796
4796
|
if (typeof n == "string" && n.length > 0 && !e.getSchema(n))
|
|
@@ -4810,8 +4810,8 @@ async function Zi(e, t, r, n) {
|
|
|
4810
4810
|
}
|
|
4811
4811
|
const s = [], o = 5;
|
|
4812
4812
|
for (let u = 0; u < o; u++) {
|
|
4813
|
-
const h =
|
|
4814
|
-
($) =>
|
|
4813
|
+
const h = ts(t), y = s.flatMap(
|
|
4814
|
+
($) => ts($)
|
|
4815
4815
|
), d = /* @__PURE__ */ new Set([...h, ...y]), v = [];
|
|
4816
4816
|
for (const $ of d)
|
|
4817
4817
|
if (!a.has($)) {
|
|
@@ -4826,7 +4826,7 @@ async function Zi(e, t, r, n) {
|
|
|
4826
4826
|
const $ = await r(v);
|
|
4827
4827
|
if (!Array.isArray($) || $.length === 0)
|
|
4828
4828
|
return null;
|
|
4829
|
-
|
|
4829
|
+
Is(e, $);
|
|
4830
4830
|
for (const S of $) {
|
|
4831
4831
|
const w = S.$id;
|
|
4832
4832
|
typeof w == "string" && w.length > 0 && (a.add(w), s.push(S));
|
|
@@ -4845,7 +4845,7 @@ async function Qi(e, t) {
|
|
|
4845
4845
|
"https://json-schema.org/draft/2019-09/schema",
|
|
4846
4846
|
"http://json-schema.org/draft-07/schema"
|
|
4847
4847
|
])).has(o)) {
|
|
4848
|
-
const d = await
|
|
4848
|
+
const d = await es(r, n, !1), v = yr(
|
|
4849
4849
|
e
|
|
4850
4850
|
);
|
|
4851
4851
|
try {
|
|
@@ -4855,8 +4855,8 @@ async function Qi(e, t) {
|
|
|
4855
4855
|
const $ = d.getSchema(s ?? o) ?? d.compile(v);
|
|
4856
4856
|
return { ok: !0, value: { ajv: d, validate: $ } };
|
|
4857
4857
|
}
|
|
4858
|
-
const h = await
|
|
4859
|
-
if (t?.externalSchemas && t.externalSchemas.length > 0 &&
|
|
4858
|
+
const h = await es(r, n, !0);
|
|
4859
|
+
if (t?.externalSchemas && t.externalSchemas.length > 0 && Is(h, t.externalSchemas), t?.refResolver) {
|
|
4860
4860
|
const d = await Zi(
|
|
4861
4861
|
h,
|
|
4862
4862
|
e,
|
|
@@ -4872,7 +4872,7 @@ async function Qi(e, t) {
|
|
|
4872
4872
|
return { ok: !1, error: r instanceof Error ? r.message : String(r) };
|
|
4873
4873
|
}
|
|
4874
4874
|
}
|
|
4875
|
-
class
|
|
4875
|
+
class Nr {
|
|
4876
4876
|
schema;
|
|
4877
4877
|
definition;
|
|
4878
4878
|
horizontal;
|
|
@@ -4896,7 +4896,7 @@ class Rr {
|
|
|
4896
4896
|
} = t;
|
|
4897
4897
|
this.schema = r, this.definition = n, this.horizontal = a, this.path = s, this.ajv = o, this.isPropertyRequired = u ?? !1, this.suppressLabel = h ?? !1, this.schemaConflicts = y ?? [], this.notViolations = d ?? [];
|
|
4898
4898
|
}
|
|
4899
|
-
with = (t) => new
|
|
4899
|
+
with = (t) => new Nr({
|
|
4900
4900
|
schema: t.schema ?? this.schema,
|
|
4901
4901
|
definition: t.definition ?? this.definition,
|
|
4902
4902
|
horizontal: t.horizontal ?? this.horizontal,
|
|
@@ -4921,7 +4921,7 @@ class Rr {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
get widgetLabel() {
|
|
4923
4923
|
const t = this.name;
|
|
4924
|
-
return (typeof this.definition == "object" && this.definition !== null ? this.definition.title : void 0) ?? (t != null ?
|
|
4924
|
+
return (typeof this.definition == "object" && this.definition !== null ? this.definition.title : void 0) ?? (t != null ? wr(na(t)) : void 0);
|
|
4925
4925
|
}
|
|
4926
4926
|
hasRequiredProperty = (t) => typeof this.definition == "boolean" ? !1 : this.definition.required != null && this.definition.required.includes(t);
|
|
4927
4927
|
get nullable() {
|
|
@@ -5085,7 +5085,7 @@ function ro(e, t, r, n) {
|
|
|
5085
5085
|
conflictingValues: [t, r]
|
|
5086
5086
|
};
|
|
5087
5087
|
}
|
|
5088
|
-
function
|
|
5088
|
+
function Ir(e, t = []) {
|
|
5089
5089
|
const r = [], n = {}, a = [], s = [], o = {};
|
|
5090
5090
|
for (const u of e) {
|
|
5091
5091
|
if (u.type != null) {
|
|
@@ -5164,7 +5164,7 @@ function no(e, t, r, n = []) {
|
|
|
5164
5164
|
if (!r)
|
|
5165
5165
|
return null;
|
|
5166
5166
|
try {
|
|
5167
|
-
if (
|
|
5167
|
+
if (Rr(r, e)(t)) {
|
|
5168
5168
|
const o = e.title || "disallowed schema";
|
|
5169
5169
|
return {
|
|
5170
5170
|
path: n,
|
|
@@ -5178,7 +5178,7 @@ function no(e, t, r, n = []) {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
}
|
|
5180
5180
|
function so(e, t, r, n = []) {
|
|
5181
|
-
const a = [], s = [], o =
|
|
5181
|
+
const a = [], s = [], o = As(e, t, r);
|
|
5182
5182
|
o && a.push(o);
|
|
5183
5183
|
const u = Array.isArray(e.required) ? [...e.required] : [];
|
|
5184
5184
|
if (typeof t == "object" && t != null && !Array.isArray(t)) {
|
|
@@ -5201,7 +5201,7 @@ function so(e, t, r, n = []) {
|
|
|
5201
5201
|
for (const [g, f] of Object.entries(w))
|
|
5202
5202
|
Object.prototype.hasOwnProperty.call(v, g) && a.push(f);
|
|
5203
5203
|
}
|
|
5204
|
-
const h = [e, ...a], { mergedSchema: y, conflicts: d } =
|
|
5204
|
+
const h = [e, ...a], { mergedSchema: y, conflicts: d } = Ir(
|
|
5205
5205
|
h,
|
|
5206
5206
|
n
|
|
5207
5207
|
);
|
|
@@ -5211,10 +5211,10 @@ function so(e, t, r, n = []) {
|
|
|
5211
5211
|
}
|
|
5212
5212
|
return s.push(...d), { effective: y, conflicts: s };
|
|
5213
5213
|
}
|
|
5214
|
-
function
|
|
5214
|
+
function As(e, t, r) {
|
|
5215
5215
|
if (!r || !e.if || typeof e.if != "object") return null;
|
|
5216
5216
|
try {
|
|
5217
|
-
if (
|
|
5217
|
+
if (Rr(r, e.if)(t)) {
|
|
5218
5218
|
const s = e.then;
|
|
5219
5219
|
if (s && typeof s == "object")
|
|
5220
5220
|
return s;
|
|
@@ -5258,7 +5258,7 @@ function He(e, t, r) {
|
|
|
5258
5258
|
e.allOf && e.allOf.forEach((o) => {
|
|
5259
5259
|
typeof o == "object" && He(o, t, r).forEach((h) => n.add(h));
|
|
5260
5260
|
});
|
|
5261
|
-
const a =
|
|
5261
|
+
const a = As(e, t, r);
|
|
5262
5262
|
a && He(a, t, r).forEach((u) => n.add(u));
|
|
5263
5263
|
const s = e.dependentSchemas;
|
|
5264
5264
|
return s && Object.keys(s).forEach((o) => {
|
|
@@ -5277,7 +5277,7 @@ function He(e, t, r) {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
}), n;
|
|
5279
5279
|
}
|
|
5280
|
-
function
|
|
5280
|
+
function Ne({
|
|
5281
5281
|
ctx: e
|
|
5282
5282
|
}) {
|
|
5283
5283
|
const { examples: t, default: r } = e;
|
|
@@ -5295,7 +5295,7 @@ function Re({
|
|
|
5295
5295
|
layout: e.horizontal ? "horizontal" : "vertical"
|
|
5296
5296
|
};
|
|
5297
5297
|
}
|
|
5298
|
-
function
|
|
5298
|
+
function Xe(e, t) {
|
|
5299
5299
|
if (e.default != null)
|
|
5300
5300
|
return t(e.default);
|
|
5301
5301
|
if (Array.isArray(e.examples))
|
|
@@ -5303,10 +5303,10 @@ function xe(e, t) {
|
|
|
5303
5303
|
if (e.examples != null)
|
|
5304
5304
|
return t(e.examples);
|
|
5305
5305
|
}
|
|
5306
|
-
function
|
|
5306
|
+
function Cs(e) {
|
|
5307
5307
|
return e == null ? 1 : Math.round(e);
|
|
5308
5308
|
}
|
|
5309
|
-
function
|
|
5309
|
+
function Ts(e) {
|
|
5310
5310
|
const {
|
|
5311
5311
|
options: t,
|
|
5312
5312
|
selected: r,
|
|
@@ -5320,14 +5320,14 @@ function Cs(e) {
|
|
|
5320
5320
|
const d = Object.fromEntries(
|
|
5321
5321
|
t.map((v) => [o(v.value), v.label])
|
|
5322
5322
|
);
|
|
5323
|
-
return
|
|
5323
|
+
return sa({
|
|
5324
5324
|
options: d,
|
|
5325
5325
|
value: ne.map(r, (v) => o(v)),
|
|
5326
5326
|
onChange: (v) => n(u(v)),
|
|
5327
5327
|
size: s
|
|
5328
5328
|
});
|
|
5329
5329
|
}
|
|
5330
|
-
return
|
|
5330
|
+
return aa({
|
|
5331
5331
|
options: t.map((d) => ({
|
|
5332
5332
|
type: "value",
|
|
5333
5333
|
value: d.value,
|
|
@@ -5337,14 +5337,14 @@ function Cs(e) {
|
|
|
5337
5337
|
onChange: n
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
|
-
function
|
|
5340
|
+
function qs({
|
|
5341
5341
|
ctx: e,
|
|
5342
5342
|
showSelector: t,
|
|
5343
5343
|
selector: r,
|
|
5344
5344
|
inner: n
|
|
5345
5345
|
}) {
|
|
5346
|
-
return e.isRoot ? t ? de(F.class("bc-stack--gap-2"), r, n) : n :
|
|
5347
|
-
...
|
|
5346
|
+
return e.isRoot ? t ? de(F.class("bc-stack--gap-2"), r, n) : n : Ye({
|
|
5347
|
+
...Ne({ ctx: e }),
|
|
5348
5348
|
content: t ? de(
|
|
5349
5349
|
F.class("bc-stack--gap-2 bc-stack--align-start"),
|
|
5350
5350
|
r,
|
|
@@ -5426,21 +5426,21 @@ function uo(e) {
|
|
|
5426
5426
|
}
|
|
5427
5427
|
return {};
|
|
5428
5428
|
}
|
|
5429
|
-
const
|
|
5429
|
+
const hr = ["description", "comment", "notes", "text"];
|
|
5430
5430
|
function co(e) {
|
|
5431
|
-
if (typeof e == "boolean") return
|
|
5431
|
+
if (typeof e == "boolean") return hr;
|
|
5432
5432
|
const t = e["x:ui"];
|
|
5433
|
-
return t && Array.isArray(t.textAreaTriggers) ? [...
|
|
5433
|
+
return t && Array.isArray(t.textAreaTriggers) ? [...hr, ...t.textAreaTriggers] : hr;
|
|
5434
5434
|
}
|
|
5435
|
-
function
|
|
5435
|
+
function Ms(e) {
|
|
5436
5436
|
if (typeof e == "boolean") return;
|
|
5437
5437
|
const t = e["x:ui"];
|
|
5438
5438
|
if (t != null && (typeof t == "string" || typeof t == "object" && t !== null))
|
|
5439
5439
|
return t;
|
|
5440
5440
|
}
|
|
5441
|
-
function
|
|
5441
|
+
function Ar(e, t) {
|
|
5442
5442
|
if (typeof e == "boolean") return;
|
|
5443
|
-
const r =
|
|
5443
|
+
const r = Ms(e);
|
|
5444
5444
|
if (typeof r == "object" && typeof r.widget == "string")
|
|
5445
5445
|
return {
|
|
5446
5446
|
widget: r.widget,
|
|
@@ -5534,7 +5534,7 @@ function lo(e) {
|
|
|
5534
5534
|
pattern: t.pattern,
|
|
5535
5535
|
minLength: t.minLength,
|
|
5536
5536
|
maxLength: t.maxLength
|
|
5537
|
-
}, n =
|
|
5537
|
+
}, n = Ar(t, e.name), a = n?.widget;
|
|
5538
5538
|
if (a != null)
|
|
5539
5539
|
switch (a) {
|
|
5540
5540
|
case "binary":
|
|
@@ -5576,17 +5576,17 @@ function lo(e) {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
5578
5578
|
const fo = (e) => {
|
|
5579
|
-
const { value: t, onBlur: r, onChange: n, onInput: a, after: s, disabled: o, ...u } = e, h =
|
|
5580
|
-
return
|
|
5579
|
+
const { value: t, onBlur: r, onChange: n, onInput: a, after: s, disabled: o, ...u } = e, h = ms(t, o, n);
|
|
5580
|
+
return ia({
|
|
5581
5581
|
...u,
|
|
5582
5582
|
value: ne.map(t, (y) => y ?? void 0),
|
|
5583
5583
|
onChange: n != null ? (y) => n(y ?? null) : void 0,
|
|
5584
5584
|
onInput: a != null ? (y) => a(y ?? null) : void 0,
|
|
5585
5585
|
onBlur: r,
|
|
5586
|
-
after: s != null ?
|
|
5586
|
+
after: s != null ? we(h, s) : h
|
|
5587
5587
|
});
|
|
5588
5588
|
};
|
|
5589
|
-
function
|
|
5589
|
+
function rs({
|
|
5590
5590
|
ctx: e,
|
|
5591
5591
|
options: t,
|
|
5592
5592
|
controller: r
|
|
@@ -5594,32 +5594,32 @@ function ts({
|
|
|
5594
5594
|
const n = lo(e);
|
|
5595
5595
|
switch (n?.format) {
|
|
5596
5596
|
case "email":
|
|
5597
|
-
return Z(
|
|
5597
|
+
return Z(ma, {
|
|
5598
5598
|
...t,
|
|
5599
5599
|
controller: le(r)
|
|
5600
5600
|
});
|
|
5601
5601
|
case "date":
|
|
5602
|
-
return
|
|
5602
|
+
return Zt(pa, {
|
|
5603
5603
|
...t,
|
|
5604
5604
|
controller: le(r),
|
|
5605
5605
|
toInput: (a) => a == null ? null : new Date(a),
|
|
5606
5606
|
fromInput: (a) => a?.toISOString().split("T")[0] ?? null
|
|
5607
5607
|
});
|
|
5608
5608
|
case "date-time":
|
|
5609
|
-
return
|
|
5609
|
+
return Zt(ha, {
|
|
5610
5610
|
...t,
|
|
5611
5611
|
controller: le(r),
|
|
5612
5612
|
toInput: (a) => a == null ? null : new Date(a),
|
|
5613
5613
|
fromInput: (a) => a?.toISOString() ?? null
|
|
5614
5614
|
});
|
|
5615
5615
|
case "time":
|
|
5616
|
-
return Z(
|
|
5616
|
+
return Z(De, {
|
|
5617
5617
|
...t,
|
|
5618
5618
|
controller: le(r),
|
|
5619
5619
|
placeholder: "HH:MM:SS"
|
|
5620
5620
|
});
|
|
5621
5621
|
case "password":
|
|
5622
|
-
return Z(
|
|
5622
|
+
return Z(da, {
|
|
5623
5623
|
...t,
|
|
5624
5624
|
controller: le(r)
|
|
5625
5625
|
});
|
|
@@ -5632,7 +5632,7 @@ function ts({
|
|
|
5632
5632
|
accept: n.mediaType || "*/*",
|
|
5633
5633
|
maxFileSize: (typeof s?.maxBytes == "number" ? s.maxBytes : void 0) || (typeof s?.maxFileSize == "number" ? s.maxFileSize : void 0),
|
|
5634
5634
|
showFileList: !0
|
|
5635
|
-
}) : Z(
|
|
5635
|
+
}) : Z(Qt, {
|
|
5636
5636
|
...t,
|
|
5637
5637
|
controller: le(r),
|
|
5638
5638
|
placeholder: "Paste base64-encoded data",
|
|
@@ -5641,45 +5641,45 @@ function ts({
|
|
|
5641
5641
|
}
|
|
5642
5642
|
case "uri":
|
|
5643
5643
|
case "url":
|
|
5644
|
-
return Z(
|
|
5644
|
+
return Z(fa, {
|
|
5645
5645
|
...t,
|
|
5646
5646
|
controller: le(r),
|
|
5647
5647
|
placeholder: "https://example.com"
|
|
5648
5648
|
});
|
|
5649
5649
|
case "uri-reference":
|
|
5650
|
-
return Z(
|
|
5650
|
+
return Z(De, {
|
|
5651
5651
|
...t,
|
|
5652
5652
|
controller: le(r),
|
|
5653
5653
|
placeholder: "Enter URL..."
|
|
5654
5654
|
});
|
|
5655
5655
|
case "hostname":
|
|
5656
|
-
return Z(
|
|
5656
|
+
return Z(De, {
|
|
5657
5657
|
...t,
|
|
5658
5658
|
controller: le(r),
|
|
5659
5659
|
placeholder: "example.com"
|
|
5660
5660
|
});
|
|
5661
5661
|
case "ipv4":
|
|
5662
|
-
return Z(
|
|
5662
|
+
return Z(De, {
|
|
5663
5663
|
...t,
|
|
5664
5664
|
controller: le(r),
|
|
5665
5665
|
placeholder: "192.168.1.1"
|
|
5666
5666
|
});
|
|
5667
5667
|
case "ipv6":
|
|
5668
|
-
return Z(
|
|
5668
|
+
return Z(De, {
|
|
5669
5669
|
...t,
|
|
5670
5670
|
controller: le(r),
|
|
5671
5671
|
placeholder: "2001:db8::1"
|
|
5672
5672
|
});
|
|
5673
5673
|
case "regex":
|
|
5674
|
-
return Z(
|
|
5674
|
+
return Z(Qt, {
|
|
5675
5675
|
...t,
|
|
5676
5676
|
controller: le(r),
|
|
5677
5677
|
placeholder: "^[a-zA-Z0-9]+$",
|
|
5678
5678
|
rows: 3
|
|
5679
5679
|
});
|
|
5680
5680
|
case "duration":
|
|
5681
|
-
return
|
|
5682
|
-
({ Duration: a }) =>
|
|
5681
|
+
return ca(
|
|
5682
|
+
({ Duration: a }) => Zt(la, {
|
|
5683
5683
|
...t,
|
|
5684
5684
|
controller: le(r),
|
|
5685
5685
|
toInput: (s) => s == null ? null : a.from(s),
|
|
@@ -5687,43 +5687,43 @@ function ts({
|
|
|
5687
5687
|
})
|
|
5688
5688
|
);
|
|
5689
5689
|
case "color":
|
|
5690
|
-
return Z(
|
|
5690
|
+
return Z(ua, {
|
|
5691
5691
|
...t,
|
|
5692
5692
|
controller: r,
|
|
5693
5693
|
displayValue: !0
|
|
5694
5694
|
});
|
|
5695
5695
|
case "uuid":
|
|
5696
|
-
return Z(
|
|
5696
|
+
return Z(oa, {
|
|
5697
5697
|
...t,
|
|
5698
5698
|
controller: le(r)
|
|
5699
5699
|
});
|
|
5700
5700
|
case "textarea":
|
|
5701
|
-
return Z(
|
|
5701
|
+
return Z(Qt, {
|
|
5702
5702
|
...t,
|
|
5703
5703
|
controller: le(r)
|
|
5704
5704
|
});
|
|
5705
5705
|
default:
|
|
5706
|
-
return Z(
|
|
5706
|
+
return Z(De, {
|
|
5707
5707
|
...t,
|
|
5708
5708
|
controller: le(r)
|
|
5709
5709
|
});
|
|
5710
5710
|
}
|
|
5711
5711
|
}
|
|
5712
|
-
function
|
|
5712
|
+
function gr({
|
|
5713
5713
|
ctx: e,
|
|
5714
5714
|
controller: t
|
|
5715
5715
|
}) {
|
|
5716
5716
|
if (e.isWriteOnly && !e.shouldShowWriteOnly)
|
|
5717
|
-
return
|
|
5717
|
+
return we();
|
|
5718
5718
|
const r = {
|
|
5719
|
-
...
|
|
5720
|
-
placeholder:
|
|
5719
|
+
...Ne({ ctx: e }),
|
|
5720
|
+
placeholder: Xe(e.definition, String),
|
|
5721
5721
|
// Disable input if readOnly (unless overridden) or deprecated
|
|
5722
5722
|
disabled: e.isReadOnly && !e.shouldIgnoreReadOnly || e.isDeprecated
|
|
5723
5723
|
};
|
|
5724
5724
|
if (e.isNullable && (e.isOptional || !e.shouldShowPresenceToggle))
|
|
5725
|
-
return
|
|
5726
|
-
const a =
|
|
5725
|
+
return rs({ ctx: e, options: r, controller: t });
|
|
5726
|
+
const a = Ar(e.definition, e.name)?.widget;
|
|
5727
5727
|
if (a != null && [
|
|
5728
5728
|
"url",
|
|
5729
5729
|
"uri",
|
|
@@ -5738,37 +5738,37 @@ function yr({
|
|
|
5738
5738
|
"time",
|
|
5739
5739
|
"color"
|
|
5740
5740
|
].includes(a))
|
|
5741
|
-
return
|
|
5741
|
+
return rs({ ctx: e, options: r, controller: t });
|
|
5742
5742
|
switch (a) {
|
|
5743
5743
|
case "email":
|
|
5744
|
-
return Z(
|
|
5744
|
+
return Z(Zs, {
|
|
5745
5745
|
...r,
|
|
5746
|
-
controller:
|
|
5746
|
+
controller: Ke(t)
|
|
5747
5747
|
});
|
|
5748
5748
|
case "password":
|
|
5749
|
-
return Z(
|
|
5749
|
+
return Z(Ys, {
|
|
5750
5750
|
...r,
|
|
5751
|
-
controller:
|
|
5751
|
+
controller: Ke(t)
|
|
5752
5752
|
});
|
|
5753
5753
|
case "uuid":
|
|
5754
|
-
return Z(
|
|
5754
|
+
return Z(ga, {
|
|
5755
5755
|
...r,
|
|
5756
|
-
controller:
|
|
5756
|
+
controller: Ke(t)
|
|
5757
5757
|
});
|
|
5758
5758
|
case "textarea":
|
|
5759
|
-
return Z(
|
|
5759
|
+
return Z(ya, {
|
|
5760
5760
|
...r,
|
|
5761
|
-
controller:
|
|
5761
|
+
controller: Ke(t)
|
|
5762
5762
|
});
|
|
5763
5763
|
default:
|
|
5764
5764
|
return Z(Ia, {
|
|
5765
5765
|
...r,
|
|
5766
|
-
controller:
|
|
5766
|
+
controller: Ke(t)
|
|
5767
5767
|
});
|
|
5768
5768
|
}
|
|
5769
5769
|
}
|
|
5770
5770
|
function ho(e) {
|
|
5771
|
-
const t =
|
|
5771
|
+
const t = Ar(e.definition, e.name);
|
|
5772
5772
|
if (t?.widget === "slider")
|
|
5773
5773
|
return { widget: "slider", options: t.options };
|
|
5774
5774
|
if (t?.widget === "rating")
|
|
@@ -5781,15 +5781,15 @@ function ho(e) {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
} : n?.displayFormat === "percent" ? { widget: "percent" } : { widget: "number" };
|
|
5783
5783
|
}
|
|
5784
|
-
function
|
|
5784
|
+
function Ft({
|
|
5785
5785
|
ctx: e,
|
|
5786
5786
|
controller: t
|
|
5787
5787
|
}) {
|
|
5788
5788
|
if (e.isWriteOnly && !e.shouldShowWriteOnly)
|
|
5789
|
-
return
|
|
5789
|
+
return we();
|
|
5790
5790
|
const r = e.definition, n = ho(e), a = {
|
|
5791
|
-
...
|
|
5792
|
-
placeholder:
|
|
5791
|
+
...Ne({ ctx: e }),
|
|
5792
|
+
placeholder: Xe(e.definition, String),
|
|
5793
5793
|
min: r.minimum,
|
|
5794
5794
|
max: r.maximum,
|
|
5795
5795
|
step: r.multipleOf,
|
|
@@ -5799,58 +5799,58 @@ function Lt({
|
|
|
5799
5799
|
switch (n.widget) {
|
|
5800
5800
|
case "rating":
|
|
5801
5801
|
const o = (typeof n.options?.max == "number" ? n.options.max : r.maximum) || 5;
|
|
5802
|
-
return s ? Z(
|
|
5802
|
+
return s ? Z($a, {
|
|
5803
5803
|
...a,
|
|
5804
5804
|
max: o,
|
|
5805
5805
|
controller: t
|
|
5806
|
-
}) : Z(
|
|
5806
|
+
}) : Z(wa, {
|
|
5807
5807
|
...a,
|
|
5808
5808
|
max: o,
|
|
5809
5809
|
controller: t
|
|
5810
5810
|
});
|
|
5811
5811
|
case "slider":
|
|
5812
|
-
return s ? Z(
|
|
5812
|
+
return s ? Z(_a, {
|
|
5813
5813
|
...a,
|
|
5814
5814
|
controller: t
|
|
5815
|
-
}) : Z(
|
|
5815
|
+
}) : Z(ba, {
|
|
5816
5816
|
...a,
|
|
5817
5817
|
controller: t
|
|
5818
5818
|
});
|
|
5819
5819
|
case "currency":
|
|
5820
5820
|
const u = typeof n.options?.currency == "string" ? n.options.currency : "USD";
|
|
5821
|
-
return s ? Z(
|
|
5821
|
+
return s ? Z(Ze, {
|
|
5822
5822
|
...a,
|
|
5823
|
-
mask:
|
|
5823
|
+
mask: ns(u),
|
|
5824
5824
|
controller: t
|
|
5825
|
-
}) : Z(
|
|
5825
|
+
}) : Z(Ze, {
|
|
5826
5826
|
...a,
|
|
5827
|
-
mask:
|
|
5827
|
+
mask: ns(u),
|
|
5828
5828
|
controller: t
|
|
5829
5829
|
});
|
|
5830
5830
|
case "percent":
|
|
5831
|
-
return s ? Z(
|
|
5831
|
+
return s ? Z(Ze, {
|
|
5832
5832
|
...a,
|
|
5833
|
-
mask:
|
|
5833
|
+
mask: ss(),
|
|
5834
5834
|
controller: t
|
|
5835
|
-
}) : Z(
|
|
5835
|
+
}) : Z(Ze, {
|
|
5836
5836
|
...a,
|
|
5837
|
-
mask:
|
|
5837
|
+
mask: ss(),
|
|
5838
5838
|
controller: t
|
|
5839
5839
|
});
|
|
5840
5840
|
default:
|
|
5841
|
-
return s ? Z(
|
|
5841
|
+
return s ? Z(mr, {
|
|
5842
5842
|
...a,
|
|
5843
5843
|
controller: t
|
|
5844
|
-
}) : Z(
|
|
5844
|
+
}) : Z(va, {
|
|
5845
5845
|
...a,
|
|
5846
5846
|
controller: t
|
|
5847
5847
|
});
|
|
5848
5848
|
}
|
|
5849
5849
|
}
|
|
5850
|
-
function
|
|
5850
|
+
function ns(e) {
|
|
5851
5851
|
return `${po(e)} 000,000.00`;
|
|
5852
5852
|
}
|
|
5853
|
-
function
|
|
5853
|
+
function ss() {
|
|
5854
5854
|
return "000.00%";
|
|
5855
5855
|
}
|
|
5856
5856
|
function po(e) {
|
|
@@ -5863,15 +5863,15 @@ function po(e) {
|
|
|
5863
5863
|
AUD: "A$"
|
|
5864
5864
|
}[e.toUpperCase()] || e;
|
|
5865
5865
|
}
|
|
5866
|
-
function
|
|
5866
|
+
function vr({
|
|
5867
5867
|
ctx: e,
|
|
5868
5868
|
controller: t
|
|
5869
5869
|
}) {
|
|
5870
|
-
return
|
|
5870
|
+
return Ft({
|
|
5871
5871
|
ctx: e.with({
|
|
5872
5872
|
definition: {
|
|
5873
5873
|
...e.definition,
|
|
5874
|
-
multipleOf:
|
|
5874
|
+
multipleOf: Cs(
|
|
5875
5875
|
e.definition.multipleOf
|
|
5876
5876
|
)
|
|
5877
5877
|
}
|
|
@@ -5879,47 +5879,47 @@ function gr({
|
|
|
5879
5879
|
controller: t
|
|
5880
5880
|
});
|
|
5881
5881
|
}
|
|
5882
|
-
function
|
|
5882
|
+
function _r({
|
|
5883
5883
|
ctx: e,
|
|
5884
5884
|
controller: t
|
|
5885
5885
|
}) {
|
|
5886
5886
|
if (e.isWriteOnly && !e.shouldShowWriteOnly)
|
|
5887
|
-
return
|
|
5887
|
+
return we();
|
|
5888
5888
|
const r = {
|
|
5889
|
-
...
|
|
5889
|
+
...Ne({ ctx: e }),
|
|
5890
5890
|
// Disable input if readOnly (unless overridden) or deprecated
|
|
5891
5891
|
disabled: e.isReadOnly && !e.shouldIgnoreReadOnly || e.isDeprecated
|
|
5892
|
-
}, n = Z(
|
|
5892
|
+
}, n = Z(qr, {
|
|
5893
5893
|
...r,
|
|
5894
5894
|
controller: t
|
|
5895
5895
|
});
|
|
5896
|
-
return !e.isNullable || e.isOptional && !e.shouldShowPresenceToggle ? n : Z(
|
|
5896
|
+
return !e.isNullable || e.isOptional && !e.shouldShowPresenceToggle ? n : Z(qr, {
|
|
5897
5897
|
...r,
|
|
5898
5898
|
controller: t,
|
|
5899
|
-
after:
|
|
5899
|
+
after: ms(
|
|
5900
5900
|
t.signal,
|
|
5901
5901
|
t.disabled,
|
|
5902
5902
|
(a) => t.change(a)
|
|
5903
5903
|
)
|
|
5904
5904
|
});
|
|
5905
5905
|
}
|
|
5906
|
-
function
|
|
5906
|
+
function Vs({
|
|
5907
5907
|
controller: e
|
|
5908
5908
|
}) {
|
|
5909
|
-
return
|
|
5909
|
+
return gs(() => {
|
|
5910
5910
|
e.change(null);
|
|
5911
5911
|
});
|
|
5912
5912
|
}
|
|
5913
|
-
let
|
|
5914
|
-
function
|
|
5913
|
+
let pr = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap();
|
|
5914
|
+
function Ds(e, t) {
|
|
5915
5915
|
const r = typeof t == "object" && t != null ? t : null;
|
|
5916
5916
|
if (r != null) {
|
|
5917
|
-
const o =
|
|
5917
|
+
const o = pr.get(r)?.get(e);
|
|
5918
5918
|
if (o != null) return o;
|
|
5919
5919
|
}
|
|
5920
5920
|
let n = e;
|
|
5921
5921
|
const a = /* @__PURE__ */ new Set();
|
|
5922
|
-
for (;
|
|
5922
|
+
for (; zs(n); ) {
|
|
5923
5923
|
const s = n.$ref;
|
|
5924
5924
|
if (!s.startsWith("#")) {
|
|
5925
5925
|
console.warn(`resolveRef: external $ref not supported here: ${s}`);
|
|
@@ -5932,8 +5932,8 @@ function Vs(e, t) {
|
|
|
5932
5932
|
break;
|
|
5933
5933
|
}
|
|
5934
5934
|
a.add(s);
|
|
5935
|
-
const o =
|
|
5936
|
-
if (!
|
|
5935
|
+
const o = Ls(t, s);
|
|
5936
|
+
if (!Gt(o)) {
|
|
5937
5937
|
console.warn(`resolveRef: could not resolve JSON Pointer ${s}`);
|
|
5938
5938
|
break;
|
|
5939
5939
|
}
|
|
@@ -5941,30 +5941,30 @@ function Vs(e, t) {
|
|
|
5941
5941
|
n = { ...o, ...h };
|
|
5942
5942
|
}
|
|
5943
5943
|
if (r != null) {
|
|
5944
|
-
let s =
|
|
5945
|
-
s == null && (s = /* @__PURE__ */ new WeakMap(),
|
|
5944
|
+
let s = pr.get(r);
|
|
5945
|
+
s == null && (s = /* @__PURE__ */ new WeakMap(), pr.set(r, s)), s.set(e, n);
|
|
5946
5946
|
}
|
|
5947
5947
|
return n;
|
|
5948
5948
|
}
|
|
5949
|
-
function
|
|
5950
|
-
return
|
|
5949
|
+
function zs(e) {
|
|
5950
|
+
return Gt(e) && typeof e.$ref == "string";
|
|
5951
5951
|
}
|
|
5952
|
-
function
|
|
5952
|
+
function Gt(e) {
|
|
5953
5953
|
return typeof e == "object" && e != null && !Array.isArray(e);
|
|
5954
5954
|
}
|
|
5955
|
-
function
|
|
5955
|
+
function Ls(e, t) {
|
|
5956
5956
|
if (!t.startsWith("#")) return;
|
|
5957
5957
|
if (t === "#") return e;
|
|
5958
5958
|
if (typeof e != "object" || e == null) return;
|
|
5959
5959
|
const r = e;
|
|
5960
|
-
let n =
|
|
5961
|
-
n == null && (n = /* @__PURE__ */ new Map(),
|
|
5960
|
+
let n = as.get(r);
|
|
5961
|
+
n == null && (n = /* @__PURE__ */ new Map(), as.set(r, n));
|
|
5962
5962
|
const a = n.get(t);
|
|
5963
5963
|
if (a !== void 0) return a;
|
|
5964
|
-
const s =
|
|
5964
|
+
const s = Ns(t);
|
|
5965
5965
|
let o = e;
|
|
5966
5966
|
for (const u of s) {
|
|
5967
|
-
if (!
|
|
5967
|
+
if (!Gt(o) && !Array.isArray(o)) {
|
|
5968
5968
|
n.set(t, void 0);
|
|
5969
5969
|
return;
|
|
5970
5970
|
}
|
|
@@ -5972,13 +5972,13 @@ function zs(e, t) {
|
|
|
5972
5972
|
}
|
|
5973
5973
|
return n.set(t, o), o;
|
|
5974
5974
|
}
|
|
5975
|
-
function
|
|
5975
|
+
function Fs(e, t, r) {
|
|
5976
5976
|
let n = e;
|
|
5977
5977
|
const a = /* @__PURE__ */ new Set(), s = (o, u) => {
|
|
5978
5978
|
const { $ref: h, ...y } = u;
|
|
5979
5979
|
return { ...o, ...y };
|
|
5980
5980
|
};
|
|
5981
|
-
for (;
|
|
5981
|
+
for (; zs(n); ) {
|
|
5982
5982
|
const o = n.$ref;
|
|
5983
5983
|
if (a.has(o)) {
|
|
5984
5984
|
console.warn(
|
|
@@ -5987,8 +5987,8 @@ function Ls(e, t, r) {
|
|
|
5987
5987
|
break;
|
|
5988
5988
|
}
|
|
5989
5989
|
if (a.add(o), o.startsWith("#")) {
|
|
5990
|
-
const v =
|
|
5991
|
-
if (!
|
|
5990
|
+
const v = Ls(t, o);
|
|
5991
|
+
if (!Gt(v)) {
|
|
5992
5992
|
console.warn(`resolveAnyRef: could not resolve JSON Pointer ${o}`);
|
|
5993
5993
|
break;
|
|
5994
5994
|
}
|
|
@@ -6020,20 +6020,20 @@ function Ls(e, t, r) {
|
|
|
6020
6020
|
function mo({
|
|
6021
6021
|
conflicts: e
|
|
6022
6022
|
}) {
|
|
6023
|
-
return e.length === 0 ?
|
|
6023
|
+
return e.length === 0 ? vs : hs(
|
|
6024
6024
|
{
|
|
6025
6025
|
variant: "warning",
|
|
6026
6026
|
tone: "prominent",
|
|
6027
6027
|
title: "Schema Conflicts Detected",
|
|
6028
6028
|
class: "bc-schema-conflicts-banner"
|
|
6029
6029
|
},
|
|
6030
|
-
|
|
6030
|
+
J.ul(
|
|
6031
6031
|
F.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
|
|
6032
6032
|
...e.map(
|
|
6033
|
-
(t) =>
|
|
6033
|
+
(t) => J.li(
|
|
6034
6034
|
F.style("margin-bottom: 0.25rem;"),
|
|
6035
6035
|
t.message,
|
|
6036
|
-
t.path.length > 0 ?
|
|
6036
|
+
t.path.length > 0 ? J.code(
|
|
6037
6037
|
F.style(
|
|
6038
6038
|
"margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
|
|
6039
6039
|
),
|
|
@@ -6047,20 +6047,20 @@ function mo({
|
|
|
6047
6047
|
function yo({
|
|
6048
6048
|
violations: e
|
|
6049
6049
|
}) {
|
|
6050
|
-
return e.length === 0 ?
|
|
6050
|
+
return e.length === 0 ? vs : hs(
|
|
6051
6051
|
{
|
|
6052
6052
|
variant: "danger",
|
|
6053
6053
|
tone: "prominent",
|
|
6054
6054
|
title: "Schema Violations Detected",
|
|
6055
6055
|
class: "bc-not-violations-banner"
|
|
6056
6056
|
},
|
|
6057
|
-
|
|
6057
|
+
J.ul(
|
|
6058
6058
|
F.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
|
|
6059
6059
|
...e.map(
|
|
6060
|
-
(t) =>
|
|
6060
|
+
(t) => J.li(
|
|
6061
6061
|
F.style("margin-bottom: 0.25rem;"),
|
|
6062
6062
|
t.message,
|
|
6063
|
-
t.path.length > 0 ?
|
|
6063
|
+
t.path.length > 0 ? J.code(
|
|
6064
6064
|
F.style(
|
|
6065
6065
|
"margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
|
|
6066
6066
|
),
|
|
@@ -6089,19 +6089,20 @@ function go({
|
|
|
6089
6089
|
t.change(void 0);
|
|
6090
6090
|
};
|
|
6091
6091
|
return de(
|
|
6092
|
-
|
|
6092
|
+
Ee(() => ne.dispose(n)),
|
|
6093
|
+
J.div(
|
|
6093
6094
|
F.class("bc-presence-toggle"),
|
|
6094
|
-
|
|
6095
|
+
Ye({
|
|
6095
6096
|
layout: "horizontal",
|
|
6096
6097
|
label: `Include ${a}`,
|
|
6097
|
-
content:
|
|
6098
|
+
content: Sa({
|
|
6098
6099
|
value: n,
|
|
6099
6100
|
onChange: s,
|
|
6100
6101
|
size: "xs"
|
|
6101
6102
|
})
|
|
6102
6103
|
})
|
|
6103
6104
|
),
|
|
6104
|
-
|
|
6105
|
+
Ge(n, () => r)
|
|
6105
6106
|
);
|
|
6106
6107
|
}
|
|
6107
6108
|
function se(e, t, r) {
|
|
@@ -6114,7 +6115,7 @@ function se(e, t, r) {
|
|
|
6114
6115
|
o
|
|
6115
6116
|
);
|
|
6116
6117
|
}
|
|
6117
|
-
function
|
|
6118
|
+
function Us(e) {
|
|
6118
6119
|
if (typeof e == "boolean") return;
|
|
6119
6120
|
const t = e["x:ui"];
|
|
6120
6121
|
if (!t || !t.visibleIf) return;
|
|
@@ -6133,7 +6134,7 @@ function vo(e) {
|
|
|
6133
6134
|
return {
|
|
6134
6135
|
field: t.trim(),
|
|
6135
6136
|
operator: "notEquals",
|
|
6136
|
-
value:
|
|
6137
|
+
value: is(r.trim())
|
|
6137
6138
|
};
|
|
6138
6139
|
}
|
|
6139
6140
|
if (e.includes("=")) {
|
|
@@ -6141,7 +6142,7 @@ function vo(e) {
|
|
|
6141
6142
|
return {
|
|
6142
6143
|
field: t.trim(),
|
|
6143
6144
|
operator: "equals",
|
|
6144
|
-
value:
|
|
6145
|
+
value: is(r.trim())
|
|
6145
6146
|
};
|
|
6146
6147
|
}
|
|
6147
6148
|
return {
|
|
@@ -6149,7 +6150,7 @@ function vo(e) {
|
|
|
6149
6150
|
operator: "truthy"
|
|
6150
6151
|
};
|
|
6151
6152
|
}
|
|
6152
|
-
function
|
|
6153
|
+
function is(e) {
|
|
6153
6154
|
if (e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'"))
|
|
6154
6155
|
return e.slice(1, -1);
|
|
6155
6156
|
if (e === "true") return !0;
|
|
@@ -6177,7 +6178,7 @@ function _o(e, t) {
|
|
|
6177
6178
|
}
|
|
6178
6179
|
return n;
|
|
6179
6180
|
}
|
|
6180
|
-
function
|
|
6181
|
+
function br(e, t) {
|
|
6181
6182
|
const r = _o(t, e.field);
|
|
6182
6183
|
switch (e.operator) {
|
|
6183
6184
|
case "equals":
|
|
@@ -6208,8 +6209,8 @@ function _r(e, t) {
|
|
|
6208
6209
|
return !1;
|
|
6209
6210
|
}
|
|
6210
6211
|
}
|
|
6211
|
-
function
|
|
6212
|
-
const r = e.conditions.map((n) => "operator" in n && ["and", "or", "not"].includes(n.operator) ?
|
|
6212
|
+
function Ks(e, t) {
|
|
6213
|
+
const r = e.conditions.map((n) => "operator" in n && ["and", "or", "not"].includes(n.operator) ? Ks(n, t) : br(n, t));
|
|
6213
6214
|
switch (e.operator) {
|
|
6214
6215
|
case "and":
|
|
6215
6216
|
return r.every(Boolean);
|
|
@@ -6225,9 +6226,9 @@ function bo(e, t) {
|
|
|
6225
6226
|
try {
|
|
6226
6227
|
if (typeof e == "string") {
|
|
6227
6228
|
const r = vo(e);
|
|
6228
|
-
return
|
|
6229
|
+
return br(r, t);
|
|
6229
6230
|
}
|
|
6230
|
-
return "operator" in e && ["and", "or", "not"].includes(e.operator) ?
|
|
6231
|
+
return "operator" in e && ["and", "or", "not"].includes(e.operator) ? Ks(e, t) : br(e, t);
|
|
6231
6232
|
} catch (r) {
|
|
6232
6233
|
return console.warn("Error evaluating visibility condition:", r), !0;
|
|
6233
6234
|
}
|
|
@@ -6237,7 +6238,7 @@ function $o(e, t) {
|
|
|
6237
6238
|
(r) => bo(e, r)
|
|
6238
6239
|
);
|
|
6239
6240
|
}
|
|
6240
|
-
const
|
|
6241
|
+
const os = {
|
|
6241
6242
|
behavior: "hide",
|
|
6242
6243
|
clearOnHide: !1
|
|
6243
6244
|
};
|
|
@@ -6245,27 +6246,27 @@ function wo({
|
|
|
6245
6246
|
ctx: e,
|
|
6246
6247
|
controller: t,
|
|
6247
6248
|
children: r,
|
|
6248
|
-
options: n =
|
|
6249
|
+
options: n = os
|
|
6249
6250
|
}) {
|
|
6250
|
-
const a =
|
|
6251
|
+
const a = Us(e.definition);
|
|
6251
6252
|
if (!a)
|
|
6252
6253
|
return r;
|
|
6253
|
-
const s = { ...
|
|
6254
|
+
const s = { ...os, ...n }, o = So(t), u = $o(a, o);
|
|
6254
6255
|
switch (s.clearOnHide && u.on((h) => {
|
|
6255
6256
|
!h && t.signal.value !== void 0 && t.change(void 0);
|
|
6256
6257
|
}), s.behavior) {
|
|
6257
6258
|
case "unmount":
|
|
6258
|
-
return
|
|
6259
|
+
return Ge(
|
|
6259
6260
|
u,
|
|
6260
6261
|
() => r,
|
|
6261
|
-
() =>
|
|
6262
|
+
() => we()
|
|
6262
6263
|
);
|
|
6263
6264
|
case "hide":
|
|
6264
6265
|
default:
|
|
6265
|
-
return
|
|
6266
|
+
return Ge(
|
|
6266
6267
|
u,
|
|
6267
6268
|
() => r,
|
|
6268
|
-
() =>
|
|
6269
|
+
() => we(
|
|
6269
6270
|
// Keep the component in DOM but hidden
|
|
6270
6271
|
// This preserves form state and validation
|
|
6271
6272
|
r
|
|
@@ -6283,8 +6284,8 @@ function Po({
|
|
|
6283
6284
|
controller: t
|
|
6284
6285
|
}) {
|
|
6285
6286
|
const r = e.definition;
|
|
6286
|
-
return
|
|
6287
|
-
...
|
|
6287
|
+
return Pa({
|
|
6288
|
+
...Ne({ ctx: e }),
|
|
6288
6289
|
options: (r.enum ?? []).map((n) => ({
|
|
6289
6290
|
type: "value",
|
|
6290
6291
|
value: n,
|
|
@@ -6298,11 +6299,11 @@ function Eo({
|
|
|
6298
6299
|
controller: t
|
|
6299
6300
|
}) {
|
|
6300
6301
|
const r = e.definition;
|
|
6301
|
-
return
|
|
6302
|
-
|
|
6302
|
+
return we(
|
|
6303
|
+
gs(() => {
|
|
6303
6304
|
ne.get(t.signal) !== r.const && t.change(r.const);
|
|
6304
6305
|
}),
|
|
6305
|
-
|
|
6306
|
+
Ea(Qs(e.widgetLabel, ": "), Fe(String(r.const)))
|
|
6306
6307
|
);
|
|
6307
6308
|
}
|
|
6308
6309
|
function Oo(e, t, r) {
|
|
@@ -6314,7 +6315,7 @@ function Oo(e, t, r) {
|
|
|
6314
6315
|
canRemove: u,
|
|
6315
6316
|
lockKeyAfterSet: h,
|
|
6316
6317
|
validatePropertyName: y
|
|
6317
|
-
} = r, d = n.field(e), v =
|
|
6318
|
+
} = r, d = n.field(e), v = Re(e), $ = Re(null);
|
|
6318
6319
|
let S = o;
|
|
6319
6320
|
if (t) {
|
|
6320
6321
|
const l = Object.keys(s).find((i) => {
|
|
@@ -6344,9 +6345,9 @@ function Oo(e, t, r) {
|
|
|
6344
6345
|
$.set(null);
|
|
6345
6346
|
const m = { ...ne.get(n.signal) ?? {} }, _ = m[e];
|
|
6346
6347
|
delete m[e], m[i] = _, n.change(m);
|
|
6347
|
-
}, g =
|
|
6348
|
-
|
|
6349
|
-
(l) =>
|
|
6348
|
+
}, g = Sr(
|
|
6349
|
+
Pr,
|
|
6350
|
+
(l) => ps({
|
|
6350
6351
|
size: "xs",
|
|
6351
6352
|
label: l.$.removeItem,
|
|
6352
6353
|
disabled: !u(
|
|
@@ -6363,11 +6364,12 @@ function Oo(e, t, r) {
|
|
|
6363
6364
|
d.signal,
|
|
6364
6365
|
(l) => h && l != null
|
|
6365
6366
|
);
|
|
6366
|
-
return
|
|
6367
|
+
return J.div(
|
|
6368
|
+
Ee(v, $, () => ne.dispose(f)),
|
|
6367
6369
|
F.class("bc-object-helpers__row"),
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
content:
|
|
6370
|
+
_s.gridTemplateColumns("2fr 3fr min-content"),
|
|
6371
|
+
Ye({
|
|
6372
|
+
content: ys({
|
|
6371
6373
|
value: v,
|
|
6372
6374
|
onChange: w,
|
|
6373
6375
|
disabled: ie(
|
|
@@ -6375,23 +6377,23 @@ function Oo(e, t, r) {
|
|
|
6375
6377
|
f
|
|
6376
6378
|
)((l, i) => l || i)
|
|
6377
6379
|
}),
|
|
6378
|
-
error:
|
|
6380
|
+
error: bs(
|
|
6379
6381
|
$,
|
|
6380
|
-
(l) =>
|
|
6382
|
+
(l) => J.div(F.class("bc-object-helpers__error"), l)
|
|
6381
6383
|
),
|
|
6382
|
-
description: Object.keys(s).length > 0 ?
|
|
6384
|
+
description: Object.keys(s).length > 0 ? J.div(
|
|
6383
6385
|
F.class("bc-object-helpers__description"),
|
|
6384
6386
|
"Allowed patterns: ",
|
|
6385
6387
|
Object.keys(s).join(", ")
|
|
6386
6388
|
) : null
|
|
6387
6389
|
}),
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
+
J.div(
|
|
6391
|
+
Me({
|
|
6390
6392
|
ctx: a.with({ definition: S, suppressLabel: !0 }).append(e),
|
|
6391
6393
|
controller: d
|
|
6392
6394
|
})
|
|
6393
6395
|
),
|
|
6394
|
-
|
|
6396
|
+
J.div(F.class("bc-object-helpers__remove"), g)
|
|
6395
6397
|
);
|
|
6396
6398
|
}
|
|
6397
6399
|
function jo(e, t, r) {
|
|
@@ -6404,7 +6406,7 @@ function jo(e, t, r) {
|
|
|
6404
6406
|
canRemove: h,
|
|
6405
6407
|
lockKeyAfterSet: y,
|
|
6406
6408
|
validatePropertyName: d
|
|
6407
|
-
} = r, v = n.field(e), $ =
|
|
6409
|
+
} = r, v = n.field(e), $ = Re(e), S = Re(null);
|
|
6408
6410
|
let w;
|
|
6409
6411
|
if (u && typeof u == "object")
|
|
6410
6412
|
w = u;
|
|
@@ -6438,9 +6440,9 @@ function jo(e, t, r) {
|
|
|
6438
6440
|
S.set(null);
|
|
6439
6441
|
const _ = { ...ne.get(n.signal) ?? {} }, b = _[e];
|
|
6440
6442
|
delete _[e], _[c] = b, n.change(_);
|
|
6441
|
-
}, f =
|
|
6442
|
-
|
|
6443
|
-
(i) =>
|
|
6443
|
+
}, f = Sr(
|
|
6444
|
+
Pr,
|
|
6445
|
+
(i) => ps({
|
|
6444
6446
|
size: "xs",
|
|
6445
6447
|
label: i.$.removeItem,
|
|
6446
6448
|
disabled: !h(
|
|
@@ -6457,11 +6459,12 @@ function jo(e, t, r) {
|
|
|
6457
6459
|
v.signal,
|
|
6458
6460
|
(i) => y && i != null
|
|
6459
6461
|
);
|
|
6460
|
-
return
|
|
6462
|
+
return J.div(
|
|
6463
|
+
Ee($, S, () => ne.dispose(l)),
|
|
6461
6464
|
F.class("bc-object-helpers__row"),
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
content:
|
|
6465
|
+
_s.gridTemplateColumns("2fr 3fr min-content"),
|
|
6466
|
+
Ye({
|
|
6467
|
+
content: ys({
|
|
6465
6468
|
value: $,
|
|
6466
6469
|
onChange: g,
|
|
6467
6470
|
disabled: ie(
|
|
@@ -6469,31 +6472,31 @@ function jo(e, t, r) {
|
|
|
6469
6472
|
l
|
|
6470
6473
|
)((i, c) => i || c)
|
|
6471
6474
|
}),
|
|
6472
|
-
error:
|
|
6475
|
+
error: bs(
|
|
6473
6476
|
S,
|
|
6474
|
-
(i) =>
|
|
6477
|
+
(i) => J.div(F.class("bc-object-helpers__error"), i)
|
|
6475
6478
|
),
|
|
6476
|
-
description:
|
|
6479
|
+
description: J.div(
|
|
6477
6480
|
F.class("bc-object-helpers__description"),
|
|
6478
6481
|
u === !1 ? "Unevaluated property (not allowed by schema)" : "Unevaluated property",
|
|
6479
|
-
Object.keys(s).length > 0 ?
|
|
6482
|
+
Object.keys(s).length > 0 ? J.span(
|
|
6480
6483
|
" • Allowed patterns: ",
|
|
6481
6484
|
Object.keys(s).join(", ")
|
|
6482
6485
|
) : null
|
|
6483
6486
|
)
|
|
6484
6487
|
}),
|
|
6485
|
-
|
|
6486
|
-
|
|
6488
|
+
J.div(
|
|
6489
|
+
Me({
|
|
6487
6490
|
ctx: a.with({ definition: w, suppressLabel: !0 }).append(e),
|
|
6488
6491
|
controller: v
|
|
6489
6492
|
})
|
|
6490
6493
|
),
|
|
6491
|
-
|
|
6494
|
+
J.div(F.class("bc-object-helpers__remove"), f)
|
|
6492
6495
|
);
|
|
6493
6496
|
}
|
|
6494
6497
|
function ko(e) {
|
|
6495
6498
|
if (typeof e.definition == "boolean") return;
|
|
6496
|
-
const t =
|
|
6499
|
+
const t = Ms(e.definition);
|
|
6497
6500
|
if (typeof t != "object") return;
|
|
6498
6501
|
const r = {};
|
|
6499
6502
|
return typeof t.format == "string" && ["fieldset", "tabs", "accordion", "group", "grid"].includes(t.format) && (r.format = t.format), Array.isArray(t.order) && (r.order = t.order.filter(
|
|
@@ -6504,10 +6507,10 @@ function Ro({
|
|
|
6504
6507
|
title: e,
|
|
6505
6508
|
children: t
|
|
6506
6509
|
}) {
|
|
6507
|
-
return
|
|
6510
|
+
return J.fieldset(
|
|
6508
6511
|
F.class("bc-fieldset"),
|
|
6509
|
-
e ?
|
|
6510
|
-
|
|
6512
|
+
e ? J.legend(F.class("bc-fieldset__legend"), e) : null,
|
|
6513
|
+
J.div(
|
|
6511
6514
|
F.class("bc-fieldset__content"),
|
|
6512
6515
|
de(F.class("bc-stack--gap-1"), ...t)
|
|
6513
6516
|
)
|
|
@@ -6517,11 +6520,11 @@ function No({
|
|
|
6517
6520
|
title: e,
|
|
6518
6521
|
children: t
|
|
6519
6522
|
}) {
|
|
6520
|
-
return
|
|
6523
|
+
return Oa(
|
|
6521
6524
|
{ variant: "outlined", size: "md" },
|
|
6522
6525
|
de(
|
|
6523
6526
|
F.class("bc-stack--gap-1"),
|
|
6524
|
-
e ?
|
|
6527
|
+
e ? Fe(e) : null,
|
|
6525
6528
|
...t
|
|
6526
6529
|
)
|
|
6527
6530
|
);
|
|
@@ -6539,7 +6542,7 @@ function Io({
|
|
|
6539
6542
|
}
|
|
6540
6543
|
return "bc-schema-grid bc-schema-grid--cols-1";
|
|
6541
6544
|
});
|
|
6542
|
-
return
|
|
6545
|
+
return J.div(
|
|
6543
6546
|
F.class(r),
|
|
6544
6547
|
F.class("bc-schema-grid--gap-4"),
|
|
6545
6548
|
...t
|
|
@@ -6551,15 +6554,16 @@ function Ao({
|
|
|
6551
6554
|
}) {
|
|
6552
6555
|
if (!e || Object.keys(e).length === 0)
|
|
6553
6556
|
return Co({ title: "Properties", children: t });
|
|
6554
|
-
const r =
|
|
6555
|
-
return
|
|
6557
|
+
const r = Re(Object.keys(e)[0]), n = Object.entries(e);
|
|
6558
|
+
return J.div(
|
|
6559
|
+
Ee(r),
|
|
6556
6560
|
F.class("bc-tabs"),
|
|
6557
6561
|
// Tab headers
|
|
6558
|
-
|
|
6562
|
+
J.div(
|
|
6559
6563
|
F.class("bc-tabs__header"),
|
|
6560
6564
|
F.role("tablist"),
|
|
6561
6565
|
...n.map(
|
|
6562
|
-
([a], s) =>
|
|
6566
|
+
([a], s) => J.button(
|
|
6563
6567
|
F.type("button"),
|
|
6564
6568
|
F.class("bc-tabs__tab"),
|
|
6565
6569
|
F.class(
|
|
@@ -6571,8 +6575,8 @@ function Ao({
|
|
|
6571
6575
|
F.tabindex(
|
|
6572
6576
|
r.map((o) => o === a ? 0 : -1)
|
|
6573
6577
|
),
|
|
6574
|
-
|
|
6575
|
-
|
|
6578
|
+
xe.click(() => r.set(a)),
|
|
6579
|
+
xe.keydown((o) => {
|
|
6576
6580
|
switch (o.key) {
|
|
6577
6581
|
case "ArrowLeft":
|
|
6578
6582
|
o.preventDefault();
|
|
@@ -6597,10 +6601,10 @@ function Ao({
|
|
|
6597
6601
|
)
|
|
6598
6602
|
),
|
|
6599
6603
|
// Tab content
|
|
6600
|
-
|
|
6604
|
+
J.div(
|
|
6601
6605
|
F.class("bc-tabs__content"),
|
|
6602
6606
|
...n.map(
|
|
6603
|
-
([a, s]) =>
|
|
6607
|
+
([a, s]) => J.div(
|
|
6604
6608
|
F.class("bc-tabs__panel"),
|
|
6605
6609
|
F.class(
|
|
6606
6610
|
ie(r)(
|
|
@@ -6621,15 +6625,15 @@ function Co({
|
|
|
6621
6625
|
title: e,
|
|
6622
6626
|
children: t
|
|
6623
6627
|
}) {
|
|
6624
|
-
return
|
|
6628
|
+
return J.div(
|
|
6625
6629
|
F.class("bc-tabs"),
|
|
6626
|
-
|
|
6630
|
+
J.div(
|
|
6627
6631
|
F.class("bc-tabs__header"),
|
|
6628
|
-
|
|
6632
|
+
J.div(F.class("bc-tabs__tab bc-tabs__tab--active"), e)
|
|
6629
6633
|
),
|
|
6630
|
-
|
|
6634
|
+
J.div(
|
|
6631
6635
|
F.class("bc-tabs__content"),
|
|
6632
|
-
|
|
6636
|
+
J.div(
|
|
6633
6637
|
F.class("bc-tabs__panel bc-tabs__panel--active"),
|
|
6634
6638
|
de(F.class("bc-stack--gap-1"), ...t)
|
|
6635
6639
|
)
|
|
@@ -6642,39 +6646,41 @@ function To({
|
|
|
6642
6646
|
}) {
|
|
6643
6647
|
if (!e || Object.keys(e).length === 0)
|
|
6644
6648
|
return qo({ title: "Properties", children: t });
|
|
6645
|
-
const r = Object.entries(e), n =
|
|
6646
|
-
return
|
|
6649
|
+
const r = Object.entries(e), n = Re(new Set([r[0]?.[0]].filter(Boolean)));
|
|
6650
|
+
return J.div(
|
|
6651
|
+
Ee(n),
|
|
6647
6652
|
F.class("bc-accordion"),
|
|
6648
6653
|
...r.map(([a, s]) => {
|
|
6649
6654
|
const o = ie(n)(
|
|
6650
6655
|
(u) => u.has(a)
|
|
6651
6656
|
);
|
|
6652
|
-
return
|
|
6657
|
+
return J.div(
|
|
6658
|
+
Ee(o),
|
|
6653
6659
|
F.class("bc-accordion__item"),
|
|
6654
|
-
|
|
6660
|
+
J.button(
|
|
6655
6661
|
F.type("button"),
|
|
6656
6662
|
F.class("bc-accordion__header"),
|
|
6657
|
-
|
|
6658
|
-
|
|
6663
|
+
Ra.expanded(o),
|
|
6664
|
+
xe.click(() => {
|
|
6659
6665
|
const u = n.value, h = new Set(u);
|
|
6660
6666
|
h.has(a) ? h.delete(a) : h.add(a), n.set(h);
|
|
6661
6667
|
}),
|
|
6662
|
-
|
|
6668
|
+
xe.keydown((u) => {
|
|
6663
6669
|
if (u.key === "Enter" || u.key === " ") {
|
|
6664
6670
|
u.preventDefault();
|
|
6665
6671
|
const h = n.value, y = new Set(h);
|
|
6666
6672
|
y.has(a) ? y.delete(a) : y.add(a), n.set(y);
|
|
6667
6673
|
}
|
|
6668
6674
|
}),
|
|
6669
|
-
|
|
6670
|
-
|
|
6675
|
+
J.span(a),
|
|
6676
|
+
$s({
|
|
6671
6677
|
icon: ie(o)(
|
|
6672
6678
|
(u) => u ? "chevron-up" : "chevron-down"
|
|
6673
6679
|
),
|
|
6674
6680
|
size: "sm"
|
|
6675
6681
|
})
|
|
6676
6682
|
),
|
|
6677
|
-
|
|
6683
|
+
J.div(
|
|
6678
6684
|
F.class("bc-accordion__content"),
|
|
6679
6685
|
F.class(
|
|
6680
6686
|
ie(o)(
|
|
@@ -6694,24 +6700,25 @@ function qo({
|
|
|
6694
6700
|
title: e,
|
|
6695
6701
|
children: t
|
|
6696
6702
|
}) {
|
|
6697
|
-
const r =
|
|
6698
|
-
return
|
|
6703
|
+
const r = Re(!0);
|
|
6704
|
+
return J.div(
|
|
6705
|
+
Ee(r),
|
|
6699
6706
|
F.class("bc-accordion"),
|
|
6700
|
-
|
|
6707
|
+
J.div(
|
|
6701
6708
|
F.class("bc-accordion__item"),
|
|
6702
|
-
|
|
6709
|
+
J.button(
|
|
6703
6710
|
F.type("button"),
|
|
6704
6711
|
F.class("bc-accordion__header"),
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6712
|
+
xe.click(() => r.set(!r.value)),
|
|
6713
|
+
J.span(e),
|
|
6714
|
+
$s({
|
|
6708
6715
|
icon: ie(r)(
|
|
6709
6716
|
(n) => n ? "chevron-up" : "chevron-down"
|
|
6710
6717
|
),
|
|
6711
6718
|
size: "sm"
|
|
6712
6719
|
})
|
|
6713
6720
|
),
|
|
6714
|
-
|
|
6721
|
+
J.div(
|
|
6715
6722
|
F.class("bc-accordion__content"),
|
|
6716
6723
|
F.class(
|
|
6717
6724
|
ie(r)(
|
|
@@ -6723,7 +6730,7 @@ function qo({
|
|
|
6723
6730
|
)
|
|
6724
6731
|
);
|
|
6725
6732
|
}
|
|
6726
|
-
function
|
|
6733
|
+
function us(e, t, r) {
|
|
6727
6734
|
const n = /* @__PURE__ */ new Map();
|
|
6728
6735
|
r.forEach((o, u) => {
|
|
6729
6736
|
e[u] && n.set(o, e[u]);
|
|
@@ -6758,7 +6765,7 @@ function os(e, t, r) {
|
|
|
6758
6765
|
function Mo(e, t, r, n = []) {
|
|
6759
6766
|
if (!e || !e.format) {
|
|
6760
6767
|
if (e?.order) {
|
|
6761
|
-
const { orderedChildren: u } =
|
|
6768
|
+
const { orderedChildren: u } = us(
|
|
6762
6769
|
r,
|
|
6763
6770
|
e,
|
|
6764
6771
|
n
|
|
@@ -6767,7 +6774,7 @@ function Mo(e, t, r, n = []) {
|
|
|
6767
6774
|
}
|
|
6768
6775
|
return de(F.class("bc-stack--gap-1"), ...r);
|
|
6769
6776
|
}
|
|
6770
|
-
const a = t.widgetLabel || t.name, { orderedChildren: s, groupedChildren: o } =
|
|
6777
|
+
const a = t.widgetLabel || t.name, { orderedChildren: s, groupedChildren: o } = us(
|
|
6771
6778
|
r,
|
|
6772
6779
|
e,
|
|
6773
6780
|
n
|
|
@@ -6793,11 +6800,11 @@ function Mo(e, t, r, n = []) {
|
|
|
6793
6800
|
return de(F.class("bc-stack--gap-1"), ...s);
|
|
6794
6801
|
}
|
|
6795
6802
|
}
|
|
6796
|
-
function
|
|
6803
|
+
function Bs({
|
|
6797
6804
|
ctx: e,
|
|
6798
6805
|
controller: t
|
|
6799
6806
|
}) {
|
|
6800
|
-
return
|
|
6807
|
+
return Kt(t.signal, (r) => {
|
|
6801
6808
|
const n = e.definition, { effective: a, conflicts: s } = so(
|
|
6802
6809
|
n,
|
|
6803
6810
|
r,
|
|
@@ -6844,7 +6851,7 @@ function Ks({
|
|
|
6844
6851
|
}
|
|
6845
6852
|
return { ok: !0 };
|
|
6846
6853
|
}, V = a["x:ui"], L = !!(V && typeof V == "object" && V.lockKeyAfterSet), B = (p) => {
|
|
6847
|
-
const P =
|
|
6854
|
+
const P = Xe(p, (U) => U);
|
|
6848
6855
|
if (P !== void 0) return P;
|
|
6849
6856
|
const R = p.type;
|
|
6850
6857
|
if (R === "string") return "";
|
|
@@ -6858,8 +6865,8 @@ function Ks({
|
|
|
6858
6865
|
let K = 1;
|
|
6859
6866
|
for (; P.has(R + K) || !U(R + K); ) K++;
|
|
6860
6867
|
return R + K;
|
|
6861
|
-
}, oe =
|
|
6862
|
-
|
|
6868
|
+
}, oe = Sr(
|
|
6869
|
+
Pr,
|
|
6863
6870
|
(p) => Aa(
|
|
6864
6871
|
{
|
|
6865
6872
|
variant: "outline",
|
|
@@ -6892,7 +6899,7 @@ function Ks({
|
|
|
6892
6899
|
// Known properties
|
|
6893
6900
|
...te.map(([p, P]) => {
|
|
6894
6901
|
const R = p, U = t.field(R);
|
|
6895
|
-
return
|
|
6902
|
+
return Me({
|
|
6896
6903
|
ctx: o.with({
|
|
6897
6904
|
definition: P,
|
|
6898
6905
|
isPropertyRequired: Array.isArray(a.required) ? a.required.includes(R) : o.hasRequiredProperty(R),
|
|
@@ -6938,8 +6945,8 @@ function Ks({
|
|
|
6938
6945
|
j,
|
|
6939
6946
|
M
|
|
6940
6947
|
);
|
|
6941
|
-
return !o.suppressLabel && o.name != null && (!ae || !["fieldset", "group"].includes(ae.format || "")) ?
|
|
6942
|
-
...
|
|
6948
|
+
return !o.suppressLabel && o.name != null && (!ae || !["fieldset", "group"].includes(ae.format || "")) ? Ye({
|
|
6949
|
+
...Ne({ ctx: o }),
|
|
6943
6950
|
content: C
|
|
6944
6951
|
}) : C;
|
|
6945
6952
|
});
|
|
@@ -6957,7 +6964,7 @@ function Vo(e, t, r) {
|
|
|
6957
6964
|
if (typeof d == "object" && d != null && "$ref" in d) {
|
|
6958
6965
|
const v = d.$ref;
|
|
6959
6966
|
if (typeof v == "string" && v.startsWith("#"))
|
|
6960
|
-
return
|
|
6967
|
+
return Ds(d, e.schema);
|
|
6961
6968
|
}
|
|
6962
6969
|
return d;
|
|
6963
6970
|
}), o = [];
|
|
@@ -6969,12 +6976,12 @@ function Vo(e, t, r) {
|
|
|
6969
6976
|
}
|
|
6970
6977
|
if (r)
|
|
6971
6978
|
try {
|
|
6972
|
-
|
|
6979
|
+
Rr(r, v)(t) && o.push(d);
|
|
6973
6980
|
} catch ($) {
|
|
6974
|
-
console.warn(`Failed to compile oneOf branch ${d}:`, $),
|
|
6981
|
+
console.warn(`Failed to compile oneOf branch ${d}:`, $), cs(v, t) && o.push(d);
|
|
6975
6982
|
}
|
|
6976
6983
|
else
|
|
6977
|
-
|
|
6984
|
+
cs(v, t) && o.push(d);
|
|
6978
6985
|
}
|
|
6979
6986
|
const u = o.length > 1, h = o.length === 0;
|
|
6980
6987
|
return {
|
|
@@ -6984,7 +6991,7 @@ function Vo(e, t, r) {
|
|
|
6984
6991
|
hasNoMatch: h
|
|
6985
6992
|
};
|
|
6986
6993
|
}
|
|
6987
|
-
function
|
|
6994
|
+
function cs(e, t) {
|
|
6988
6995
|
if ("const" in e)
|
|
6989
6996
|
return e.const === t;
|
|
6990
6997
|
if (Array.isArray(e.enum))
|
|
@@ -7020,7 +7027,7 @@ function zo(e, t, r = `Option ${t + 1}`) {
|
|
|
7020
7027
|
}
|
|
7021
7028
|
return "const" in e && typeof e.const == "string" ? e.const : e.type ? (Array.isArray(e.type) ? e.type : [e.type]).join(" | ") : r;
|
|
7022
7029
|
}
|
|
7023
|
-
function
|
|
7030
|
+
function ls(e, t, r) {
|
|
7024
7031
|
const n = Vo(e, t, r);
|
|
7025
7032
|
return n.matchingBranch !== -1 ? n.matchingBranch : -1;
|
|
7026
7033
|
}
|
|
@@ -7059,7 +7066,7 @@ function Fo(e, t, r) {
|
|
|
7059
7066
|
const u = s.mapping[o];
|
|
7060
7067
|
return Uo(e, u);
|
|
7061
7068
|
}
|
|
7062
|
-
return
|
|
7069
|
+
return fs(
|
|
7063
7070
|
e,
|
|
7064
7071
|
s.propertyName,
|
|
7065
7072
|
o
|
|
@@ -7073,7 +7080,7 @@ function Fo(e, t, r) {
|
|
|
7073
7080
|
const u = s.mapping[o];
|
|
7074
7081
|
return u >= 0 && u < e.length ? u : null;
|
|
7075
7082
|
}
|
|
7076
|
-
return
|
|
7083
|
+
return fs(
|
|
7077
7084
|
e,
|
|
7078
7085
|
s.key,
|
|
7079
7086
|
o
|
|
@@ -7089,7 +7096,7 @@ function Uo(e, t) {
|
|
|
7089
7096
|
}
|
|
7090
7097
|
return null;
|
|
7091
7098
|
}
|
|
7092
|
-
function
|
|
7099
|
+
function fs(e, t, r) {
|
|
7093
7100
|
for (let n = 0; n < e.length; n++) {
|
|
7094
7101
|
const a = e[n];
|
|
7095
7102
|
if (typeof a != "object") continue;
|
|
@@ -7109,29 +7116,29 @@ function Ko({
|
|
|
7109
7116
|
controller: t
|
|
7110
7117
|
}) {
|
|
7111
7118
|
const r = e.definition.anyOf;
|
|
7112
|
-
return
|
|
7119
|
+
return Ws({ ctx: e, controller: t, kind: "anyOf", variants: r });
|
|
7113
7120
|
}
|
|
7114
7121
|
function Bo({
|
|
7115
7122
|
ctx: e,
|
|
7116
7123
|
controller: t
|
|
7117
7124
|
}) {
|
|
7118
7125
|
const r = e.definition.oneOf;
|
|
7119
|
-
return
|
|
7126
|
+
return Ws({ ctx: e, controller: t, kind: "oneOf", variants: r });
|
|
7120
7127
|
}
|
|
7121
7128
|
function bu({
|
|
7122
7129
|
ctx: e,
|
|
7123
7130
|
controller: t
|
|
7124
7131
|
}) {
|
|
7125
|
-
const n = e.definition.allOf.filter((u) => typeof u == "object").map((u) =>
|
|
7132
|
+
const n = e.definition.allOf.filter((u) => typeof u == "object").map((u) => Fs(u, e.schema, e.ajv)), { mergedSchema: a, conflicts: s } = Ir(n, e.path), o = e.with({
|
|
7126
7133
|
definition: a,
|
|
7127
7134
|
schemaConflicts: [...e.schemaConflicts, ...s]
|
|
7128
7135
|
});
|
|
7129
|
-
return
|
|
7136
|
+
return Me({
|
|
7130
7137
|
ctx: o,
|
|
7131
7138
|
controller: t
|
|
7132
7139
|
});
|
|
7133
7140
|
}
|
|
7134
|
-
function
|
|
7141
|
+
function Ws({
|
|
7135
7142
|
ctx: e,
|
|
7136
7143
|
controller: t,
|
|
7137
7144
|
kind: r,
|
|
@@ -7151,10 +7158,10 @@ function Bs({
|
|
|
7151
7158
|
if (l !== null)
|
|
7152
7159
|
return l;
|
|
7153
7160
|
}
|
|
7154
|
-
return
|
|
7161
|
+
return ls(e, g, f);
|
|
7155
7162
|
}
|
|
7156
|
-
return
|
|
7157
|
-
}), u = ne.get(o), h =
|
|
7163
|
+
return ls(e, g, f);
|
|
7164
|
+
}), u = ne.get(o), h = Re(u >= 0 ? u : 0);
|
|
7158
7165
|
t.onDispose(h.dispose);
|
|
7159
7166
|
let y = !1;
|
|
7160
7167
|
const d = o.on((g) => {
|
|
@@ -7163,7 +7170,7 @@ function Bs({
|
|
|
7163
7170
|
t.onDispose(d);
|
|
7164
7171
|
const v = n.length, $ = (g) => {
|
|
7165
7172
|
y = !0, h.set(g);
|
|
7166
|
-
}, S = v > 1 ?
|
|
7173
|
+
}, S = v > 1 ? Ts({
|
|
7167
7174
|
options: n.map((g, f) => ({
|
|
7168
7175
|
value: f,
|
|
7169
7176
|
label: a[f]
|
|
@@ -7171,7 +7178,7 @@ function Bs({
|
|
|
7171
7178
|
selected: h,
|
|
7172
7179
|
onChange: $
|
|
7173
7180
|
// auto mode chooses segmented for <=3
|
|
7174
|
-
}) : "", w =
|
|
7181
|
+
}) : "", w = Kt(h, (g) => Me({
|
|
7175
7182
|
ctx: e.with({
|
|
7176
7183
|
definition: n[ne.get(g)],
|
|
7177
7184
|
// Suppress inner labels only when combinator is nested (non-root)
|
|
@@ -7179,27 +7186,30 @@ function Bs({
|
|
|
7179
7186
|
}),
|
|
7180
7187
|
controller: t
|
|
7181
7188
|
}));
|
|
7182
|
-
return
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7189
|
+
return we(
|
|
7190
|
+
Ee(o, h),
|
|
7191
|
+
qs({
|
|
7192
|
+
ctx: e,
|
|
7193
|
+
showSelector: v > 1,
|
|
7194
|
+
selector: S,
|
|
7195
|
+
inner: w
|
|
7196
|
+
})
|
|
7197
|
+
);
|
|
7188
7198
|
}
|
|
7189
|
-
function
|
|
7199
|
+
function Me({
|
|
7190
7200
|
ctx: e,
|
|
7191
7201
|
controller: t
|
|
7192
7202
|
}) {
|
|
7193
7203
|
const r = typeof e.definition == "boolean" ? {} : e.definition;
|
|
7194
|
-
let n = r?.$ref ?
|
|
7204
|
+
let n = r?.$ref ? Ds(r, e.schema) : r, a = e.with({ definition: n });
|
|
7195
7205
|
if (n?.allOf != null) {
|
|
7196
7206
|
const o = n.allOf.filter(
|
|
7197
7207
|
(u) => typeof u == "object" && u !== null
|
|
7198
7208
|
);
|
|
7199
7209
|
if (o.length > 0) {
|
|
7200
7210
|
const u = o.map(
|
|
7201
|
-
($) =>
|
|
7202
|
-
), { mergedSchema: h, conflicts: y } =
|
|
7211
|
+
($) => Fs($, e.schema, e.ajv)
|
|
7212
|
+
), { mergedSchema: h, conflicts: y } = Ir(u, e.path), { allOf: d, ...v } = n;
|
|
7203
7213
|
n = { ...v, ...h }, a = e.with({
|
|
7204
7214
|
definition: n,
|
|
7205
7215
|
schemaConflicts: [...e.schemaConflicts, ...y]
|
|
@@ -7222,7 +7232,7 @@ function qe({
|
|
|
7222
7232
|
t,
|
|
7223
7233
|
se(
|
|
7224
7234
|
a,
|
|
7225
|
-
|
|
7235
|
+
Ut({
|
|
7226
7236
|
ctx: a,
|
|
7227
7237
|
controller: t
|
|
7228
7238
|
}),
|
|
@@ -7284,7 +7294,7 @@ function qe({
|
|
|
7284
7294
|
if (n?.type == null)
|
|
7285
7295
|
return se(
|
|
7286
7296
|
a,
|
|
7287
|
-
|
|
7297
|
+
Ut({
|
|
7288
7298
|
ctx: a,
|
|
7289
7299
|
controller: t
|
|
7290
7300
|
}),
|
|
@@ -7297,7 +7307,7 @@ function qe({
|
|
|
7297
7307
|
case "number":
|
|
7298
7308
|
return se(
|
|
7299
7309
|
a,
|
|
7300
|
-
|
|
7310
|
+
Ft({
|
|
7301
7311
|
ctx: a,
|
|
7302
7312
|
controller: t
|
|
7303
7313
|
}),
|
|
@@ -7306,7 +7316,7 @@ function qe({
|
|
|
7306
7316
|
case "integer":
|
|
7307
7317
|
return se(
|
|
7308
7318
|
a,
|
|
7309
|
-
|
|
7319
|
+
vr({
|
|
7310
7320
|
ctx: a,
|
|
7311
7321
|
controller: t
|
|
7312
7322
|
}),
|
|
@@ -7315,7 +7325,7 @@ function qe({
|
|
|
7315
7325
|
case "string":
|
|
7316
7326
|
return se(
|
|
7317
7327
|
a,
|
|
7318
|
-
|
|
7328
|
+
gr({
|
|
7319
7329
|
ctx: a,
|
|
7320
7330
|
controller: t
|
|
7321
7331
|
}),
|
|
@@ -7324,7 +7334,7 @@ function qe({
|
|
|
7324
7334
|
case "boolean":
|
|
7325
7335
|
return se(
|
|
7326
7336
|
a,
|
|
7327
|
-
|
|
7337
|
+
_r({
|
|
7328
7338
|
ctx: a,
|
|
7329
7339
|
controller: t
|
|
7330
7340
|
}),
|
|
@@ -7351,7 +7361,7 @@ function qe({
|
|
|
7351
7361
|
t,
|
|
7352
7362
|
se(
|
|
7353
7363
|
a,
|
|
7354
|
-
|
|
7364
|
+
Ft({
|
|
7355
7365
|
ctx: a,
|
|
7356
7366
|
controller: t
|
|
7357
7367
|
}),
|
|
@@ -7364,7 +7374,7 @@ function qe({
|
|
|
7364
7374
|
t,
|
|
7365
7375
|
se(
|
|
7366
7376
|
a,
|
|
7367
|
-
|
|
7377
|
+
vr({
|
|
7368
7378
|
ctx: a,
|
|
7369
7379
|
controller: t
|
|
7370
7380
|
}),
|
|
@@ -7377,7 +7387,7 @@ function qe({
|
|
|
7377
7387
|
t,
|
|
7378
7388
|
se(
|
|
7379
7389
|
a,
|
|
7380
|
-
|
|
7390
|
+
gr({
|
|
7381
7391
|
ctx: a,
|
|
7382
7392
|
controller: t
|
|
7383
7393
|
}),
|
|
@@ -7390,7 +7400,7 @@ function qe({
|
|
|
7390
7400
|
t,
|
|
7391
7401
|
se(
|
|
7392
7402
|
a,
|
|
7393
|
-
|
|
7403
|
+
_r({
|
|
7394
7404
|
ctx: a,
|
|
7395
7405
|
controller: t
|
|
7396
7406
|
}),
|
|
@@ -7403,17 +7413,17 @@ function qe({
|
|
|
7403
7413
|
t,
|
|
7404
7414
|
se(
|
|
7405
7415
|
a,
|
|
7406
|
-
|
|
7416
|
+
Js({
|
|
7407
7417
|
ctx: a,
|
|
7408
|
-
controller: t instanceof
|
|
7418
|
+
controller: t instanceof ta ? t : t.array()
|
|
7409
7419
|
}),
|
|
7410
7420
|
t
|
|
7411
7421
|
)
|
|
7412
7422
|
);
|
|
7413
7423
|
case "object": {
|
|
7414
|
-
const o =
|
|
7424
|
+
const o = Bs({
|
|
7415
7425
|
ctx: a,
|
|
7416
|
-
controller: t instanceof
|
|
7426
|
+
controller: t instanceof ea ? t : t.object()
|
|
7417
7427
|
});
|
|
7418
7428
|
return a.isRoot ? pe(
|
|
7419
7429
|
a,
|
|
@@ -7424,7 +7434,7 @@ function qe({
|
|
|
7424
7434
|
t,
|
|
7425
7435
|
se(
|
|
7426
7436
|
a,
|
|
7427
|
-
|
|
7437
|
+
J.div(F.class("bc-json-schema-object"), o),
|
|
7428
7438
|
t
|
|
7429
7439
|
)
|
|
7430
7440
|
);
|
|
@@ -7435,7 +7445,7 @@ function qe({
|
|
|
7435
7445
|
t,
|
|
7436
7446
|
se(
|
|
7437
7447
|
a,
|
|
7438
|
-
|
|
7448
|
+
Vs({
|
|
7439
7449
|
controller: t
|
|
7440
7450
|
}),
|
|
7441
7451
|
t
|
|
@@ -7447,7 +7457,7 @@ function qe({
|
|
|
7447
7457
|
t,
|
|
7448
7458
|
se(
|
|
7449
7459
|
a,
|
|
7450
|
-
|
|
7460
|
+
J.div(F.class("bc-json-schema-unknown"), "Unknown"),
|
|
7451
7461
|
t
|
|
7452
7462
|
)
|
|
7453
7463
|
);
|
|
@@ -7458,7 +7468,7 @@ function Wo({
|
|
|
7458
7468
|
controller: t,
|
|
7459
7469
|
ajv: r
|
|
7460
7470
|
}) {
|
|
7461
|
-
const n = new
|
|
7471
|
+
const n = new Nr({
|
|
7462
7472
|
schema: e,
|
|
7463
7473
|
definition: e,
|
|
7464
7474
|
horizontal: !1,
|
|
@@ -7466,10 +7476,10 @@ function Wo({
|
|
|
7466
7476
|
path: [],
|
|
7467
7477
|
ajv: r
|
|
7468
7478
|
});
|
|
7469
|
-
return e === !0 ?
|
|
7479
|
+
return e === !0 ? Ut({ ctx: n, controller: t }) : e === !1 ? we() : Me({ ctx: n, controller: t });
|
|
7470
7480
|
}
|
|
7471
7481
|
function pe(e, t, r) {
|
|
7472
|
-
return
|
|
7482
|
+
return Us(e.definition) ? wo({
|
|
7473
7483
|
ctx: e,
|
|
7474
7484
|
controller: t,
|
|
7475
7485
|
children: r,
|
|
@@ -7481,33 +7491,33 @@ function pe(e, t, r) {
|
|
|
7481
7491
|
}
|
|
7482
7492
|
}) : r;
|
|
7483
7493
|
}
|
|
7484
|
-
function
|
|
7494
|
+
function Jo(e) {
|
|
7485
7495
|
return e.prefixItems != null ? {
|
|
7486
7496
|
isTuple: !0,
|
|
7487
7497
|
prefixItems: e.prefixItems,
|
|
7488
7498
|
additionalItemsSchema: Array.isArray(e.items) ? !0 : e.items ?? !0,
|
|
7489
|
-
tupleLabels:
|
|
7499
|
+
tupleLabels: ds(e)
|
|
7490
7500
|
} : Array.isArray(e.items) ? {
|
|
7491
7501
|
isTuple: !0,
|
|
7492
7502
|
prefixItems: e.items,
|
|
7493
7503
|
additionalItemsSchema: e.additionalItems ?? !0,
|
|
7494
|
-
tupleLabels:
|
|
7504
|
+
tupleLabels: ds(e)
|
|
7495
7505
|
} : {
|
|
7496
7506
|
isTuple: !1,
|
|
7497
7507
|
prefixItems: [],
|
|
7498
7508
|
additionalItemsSchema: e.items ?? !0
|
|
7499
7509
|
};
|
|
7500
7510
|
}
|
|
7501
|
-
function
|
|
7511
|
+
function ds(e) {
|
|
7502
7512
|
if (typeof e == "boolean") return;
|
|
7503
7513
|
const t = e["x:ui"];
|
|
7504
7514
|
return Array.isArray(t?.tupleLabels) ? t.tupleLabels : void 0;
|
|
7505
7515
|
}
|
|
7506
|
-
function
|
|
7516
|
+
function Js({
|
|
7507
7517
|
ctx: e,
|
|
7508
7518
|
controller: t
|
|
7509
7519
|
}) {
|
|
7510
|
-
const r = e.definition, n =
|
|
7520
|
+
const r = e.definition, n = Jo(r), a = ie(t.signal)((d) => {
|
|
7511
7521
|
const v = d?.length ?? 0;
|
|
7512
7522
|
return !(r.maxItems != null && v >= r.maxItems || n.isTuple && v >= n.prefixItems.length && n.additionalItemsSchema === !1);
|
|
7513
7523
|
}), s = ie(t.signal)((d) => {
|
|
@@ -7566,16 +7576,16 @@ function Ws({
|
|
|
7566
7576
|
return `Must contain at most ${d.maxContains} item(s) matching ${v} (currently ${d.count})`;
|
|
7567
7577
|
}
|
|
7568
7578
|
return `Contains ${d.count} item(s) matching ${v}`;
|
|
7569
|
-
}) : null, y =
|
|
7570
|
-
...
|
|
7579
|
+
}) : null, y = ja({
|
|
7580
|
+
...Ne({ ctx: e }),
|
|
7571
7581
|
createItem: () => {
|
|
7572
7582
|
const d = t.signal.value?.length ?? 0;
|
|
7573
7583
|
if (n.isTuple && d < n.prefixItems.length) {
|
|
7574
7584
|
const v = n.prefixItems[d];
|
|
7575
|
-
return
|
|
7585
|
+
return Xe(v, () => {
|
|
7576
7586
|
});
|
|
7577
7587
|
} else
|
|
7578
|
-
return
|
|
7588
|
+
return Xe(
|
|
7579
7589
|
n.additionalItemsSchema,
|
|
7580
7590
|
() => {
|
|
7581
7591
|
}
|
|
@@ -7591,7 +7601,7 @@ function Ws({
|
|
|
7591
7601
|
const v = d.item, $ = d.position.index;
|
|
7592
7602
|
let S, w;
|
|
7593
7603
|
n.isTuple && $ < n.prefixItems.length ? (S = n.prefixItems[$], n.tupleLabels?.[$] ? w = n.tupleLabels[$] : typeof S == "object" && S.title ? w = S.title : w = `Item ${$ + 1}`) : (S = n.additionalItemsSchema, n.isTuple && (w = `Additional Item ${$ - n.prefixItems.length + 1}`));
|
|
7594
|
-
const g =
|
|
7604
|
+
const g = Me({
|
|
7595
7605
|
ctx: e.with({ definition: S }).append($),
|
|
7596
7606
|
controller: v
|
|
7597
7607
|
}), f = o.map((m) => m.has($)), l = u.map(
|
|
@@ -7600,14 +7610,14 @@ function Ws({
|
|
|
7600
7610
|
let i = g;
|
|
7601
7611
|
w && n.isTuple && (i = de(
|
|
7602
7612
|
F.class("bc-stack--gap-1"),
|
|
7603
|
-
|
|
7613
|
+
Fe(F.class("bc-array-control__item-label"), w),
|
|
7604
7614
|
i
|
|
7605
7615
|
));
|
|
7606
7616
|
const c = [];
|
|
7607
7617
|
return r.uniqueItems && c.push(
|
|
7608
|
-
|
|
7618
|
+
Ge(
|
|
7609
7619
|
f,
|
|
7610
|
-
() =>
|
|
7620
|
+
() => Fe(
|
|
7611
7621
|
F.class(
|
|
7612
7622
|
"bc-array-control__indicator bc-array-control__indicator--error"
|
|
7613
7623
|
),
|
|
@@ -7615,9 +7625,9 @@ function Ws({
|
|
|
7615
7625
|
)
|
|
7616
7626
|
)
|
|
7617
7627
|
), r.contains && c.push(
|
|
7618
|
-
|
|
7628
|
+
Ge(
|
|
7619
7629
|
l,
|
|
7620
|
-
() =>
|
|
7630
|
+
() => Fe(
|
|
7621
7631
|
F.class(
|
|
7622
7632
|
"bc-array-control__indicator bc-array-control__indicator--success"
|
|
7623
7633
|
),
|
|
@@ -7630,7 +7640,7 @@ function Ws({
|
|
|
7630
7640
|
return r.contains && h ? de(
|
|
7631
7641
|
F.class("bc-stack--gap-2"),
|
|
7632
7642
|
y,
|
|
7633
|
-
|
|
7643
|
+
Kt(
|
|
7634
7644
|
ie(
|
|
7635
7645
|
u,
|
|
7636
7646
|
h
|
|
@@ -7638,19 +7648,22 @@ function Ws({
|
|
|
7638
7648
|
info: d,
|
|
7639
7649
|
summary: v
|
|
7640
7650
|
})),
|
|
7641
|
-
({ info: d, summary: v }) =>
|
|
7651
|
+
({ info: d, summary: v }) => Fe(
|
|
7642
7652
|
F.class(
|
|
7643
7653
|
d.isValid ? "bc-array-control__summary bc-array-control__summary--success" : "bc-array-control__summary bc-array-control__summary--error"
|
|
7644
7654
|
),
|
|
7645
7655
|
v
|
|
7646
7656
|
)
|
|
7647
7657
|
)
|
|
7648
|
-
) :
|
|
7658
|
+
) : we(
|
|
7659
|
+
Ee(a, s, o, u),
|
|
7660
|
+
y
|
|
7661
|
+
);
|
|
7649
7662
|
}
|
|
7650
|
-
function
|
|
7663
|
+
function Ho(e) {
|
|
7651
7664
|
return e.map((t) => ({
|
|
7652
7665
|
key: t,
|
|
7653
|
-
label:
|
|
7666
|
+
label: wr(t),
|
|
7654
7667
|
detect: (r) => ao(r, [t]) === t,
|
|
7655
7668
|
convert: (r) => io(r, t),
|
|
7656
7669
|
defaultValue: () => oo(t)
|
|
@@ -7666,7 +7679,7 @@ function Hs({
|
|
|
7666
7679
|
(S) => S !== "null" && (S === "string" || S === "number" || S === "integer" || S === "boolean")
|
|
7667
7680
|
), u = s && o.length === n.length - 1;
|
|
7668
7681
|
u && (n = o);
|
|
7669
|
-
const h =
|
|
7682
|
+
const h = Ho(n), y = new ka(
|
|
7670
7683
|
t.path,
|
|
7671
7684
|
t.change,
|
|
7672
7685
|
t.signal,
|
|
@@ -7675,26 +7688,26 @@ function Hs({
|
|
|
7675
7688
|
h
|
|
7676
7689
|
);
|
|
7677
7690
|
t.onDispose(() => y.dispose());
|
|
7678
|
-
const d = (S) =>
|
|
7679
|
-
options: n.map((w) => ({ value: w, label:
|
|
7691
|
+
const d = (S) => Ts({
|
|
7692
|
+
options: n.map((w) => ({ value: w, label: wr(w) })),
|
|
7680
7693
|
selected: y.activeBranch,
|
|
7681
7694
|
onChange: S,
|
|
7682
7695
|
mode: a.selector ?? "auto"
|
|
7683
7696
|
}), v = (S) => {
|
|
7684
7697
|
y.switchToBranch(S, a.confirmBranchChange);
|
|
7685
|
-
}, $ =
|
|
7698
|
+
}, $ = Kt(y.activeBranch, (S) => {
|
|
7686
7699
|
const w = ne.get(S), g = y.getBranchController(w);
|
|
7687
7700
|
if (u && (w === "number" || w === "integer")) {
|
|
7688
7701
|
const l = r;
|
|
7689
|
-
return Z(
|
|
7702
|
+
return Z(mr, {
|
|
7690
7703
|
// Suppress inner labels only when union is nested (non-root)
|
|
7691
|
-
...
|
|
7704
|
+
...Ne({
|
|
7692
7705
|
ctx: e.with({ suppressLabel: !e.isRoot })
|
|
7693
7706
|
}),
|
|
7694
7707
|
controller: g,
|
|
7695
7708
|
min: l.minimum,
|
|
7696
7709
|
max: l.maximum,
|
|
7697
|
-
step: w === "integer" ?
|
|
7710
|
+
step: w === "integer" ? Cs(l.multipleOf) : l.multipleOf
|
|
7698
7711
|
});
|
|
7699
7712
|
}
|
|
7700
7713
|
const f = e.with({
|
|
@@ -7704,62 +7717,62 @@ function Hs({
|
|
|
7704
7717
|
});
|
|
7705
7718
|
switch (w) {
|
|
7706
7719
|
case "string":
|
|
7707
|
-
return
|
|
7720
|
+
return gr({
|
|
7708
7721
|
ctx: f,
|
|
7709
7722
|
controller: g
|
|
7710
7723
|
});
|
|
7711
7724
|
case "number":
|
|
7712
|
-
return
|
|
7725
|
+
return Ft({
|
|
7713
7726
|
ctx: f,
|
|
7714
7727
|
controller: g
|
|
7715
7728
|
});
|
|
7716
7729
|
case "integer":
|
|
7717
|
-
return
|
|
7730
|
+
return vr({
|
|
7718
7731
|
ctx: f,
|
|
7719
7732
|
controller: g
|
|
7720
7733
|
});
|
|
7721
7734
|
case "boolean":
|
|
7722
|
-
return
|
|
7735
|
+
return _r({
|
|
7723
7736
|
ctx: f,
|
|
7724
7737
|
controller: g
|
|
7725
7738
|
});
|
|
7726
7739
|
case "null":
|
|
7727
|
-
return
|
|
7740
|
+
return Vs({
|
|
7728
7741
|
controller: g
|
|
7729
7742
|
});
|
|
7730
7743
|
case "array": {
|
|
7731
7744
|
const l = g.array();
|
|
7732
|
-
return
|
|
7745
|
+
return Js({
|
|
7733
7746
|
ctx: f,
|
|
7734
7747
|
controller: l
|
|
7735
7748
|
});
|
|
7736
7749
|
}
|
|
7737
7750
|
case "object": {
|
|
7738
7751
|
const l = g.object();
|
|
7739
|
-
return
|
|
7752
|
+
return Bs({
|
|
7740
7753
|
ctx: f,
|
|
7741
7754
|
controller: l
|
|
7742
7755
|
});
|
|
7743
7756
|
}
|
|
7744
7757
|
default:
|
|
7745
|
-
return Z(
|
|
7746
|
-
...
|
|
7758
|
+
return Z(mr, {
|
|
7759
|
+
...Ne({ ctx: f }),
|
|
7747
7760
|
controller: g
|
|
7748
7761
|
});
|
|
7749
7762
|
}
|
|
7750
7763
|
});
|
|
7751
|
-
return
|
|
7764
|
+
return qs({
|
|
7752
7765
|
ctx: e,
|
|
7753
7766
|
showSelector: n.length > 1,
|
|
7754
7767
|
selector: d(v),
|
|
7755
7768
|
inner: $
|
|
7756
7769
|
});
|
|
7757
7770
|
}
|
|
7758
|
-
function
|
|
7771
|
+
function Ut({
|
|
7759
7772
|
ctx: e,
|
|
7760
7773
|
controller: t
|
|
7761
7774
|
}) {
|
|
7762
|
-
return e.definition === !0 ?
|
|
7775
|
+
return e.definition === !0 ? Ut({
|
|
7763
7776
|
ctx: e.with({
|
|
7764
7777
|
definition: {
|
|
7765
7778
|
type: ["string", "number", "object", "array", "boolean", "null"]
|
|
@@ -7836,7 +7849,7 @@ function xo(e, t, r = !1) {
|
|
|
7836
7849
|
message: "Cross-field validation error"
|
|
7837
7850
|
});
|
|
7838
7851
|
}
|
|
7839
|
-
return n.length > 0 ?
|
|
7852
|
+
return n.length > 0 ? kr(n) : Pe.valid;
|
|
7840
7853
|
}
|
|
7841
7854
|
function Xo(e, t) {
|
|
7842
7855
|
if (e == null || typeof e != "object")
|
|
@@ -7872,7 +7885,7 @@ function Yo(e) {
|
|
|
7872
7885
|
(a) => typeof a == "object" && a != null && typeof a.validate == "function"
|
|
7873
7886
|
)), Object.keys(r).length > 0 ? r : void 0;
|
|
7874
7887
|
}
|
|
7875
|
-
function
|
|
7888
|
+
function $r(e, t) {
|
|
7876
7889
|
if (!e.startsWith("$."))
|
|
7877
7890
|
throw new Error(`Invalid JSONPath: ${e}. Must start with '$.'.`);
|
|
7878
7891
|
const r = e.slice(2).split(/[.\[\]]/).filter(Boolean);
|
|
@@ -7896,14 +7909,14 @@ function Zo(e, t) {
|
|
|
7896
7909
|
try {
|
|
7897
7910
|
if (typeof e.condition == "function") {
|
|
7898
7911
|
const n = (Array.isArray(e.watch) ? e.watch : [e.watch]).map(
|
|
7899
|
-
(a) =>
|
|
7912
|
+
(a) => $r(a, t)
|
|
7900
7913
|
);
|
|
7901
7914
|
return e.condition(
|
|
7902
7915
|
n.length === 1 ? n[0] : n,
|
|
7903
7916
|
t
|
|
7904
7917
|
);
|
|
7905
7918
|
}
|
|
7906
|
-
return typeof e.condition == "string" ?
|
|
7919
|
+
return typeof e.condition == "string" ? !!$r(e.condition, t) : !1;
|
|
7907
7920
|
} catch (r) {
|
|
7908
7921
|
return console.warn("Error evaluating conditional validation:", r), !1;
|
|
7909
7922
|
}
|
|
@@ -7931,7 +7944,7 @@ function Qo(e, t, r, n) {
|
|
|
7931
7944
|
try {
|
|
7932
7945
|
const o = {};
|
|
7933
7946
|
for (const h of s.fields)
|
|
7934
|
-
o[h] =
|
|
7947
|
+
o[h] = $r(`$.${h}`, t);
|
|
7935
7948
|
const u = s.validate(o, t);
|
|
7936
7949
|
if (u) {
|
|
7937
7950
|
const h = s.target || s.fields[0];
|
|
@@ -7956,7 +7969,7 @@ function Qo(e, t, r, n) {
|
|
|
7956
7969
|
a.push(...o);
|
|
7957
7970
|
}
|
|
7958
7971
|
}
|
|
7959
|
-
return a.length > 0 ?
|
|
7972
|
+
return a.length > 0 ? kr(a) : Pe.valid;
|
|
7960
7973
|
}
|
|
7961
7974
|
function eu(e) {
|
|
7962
7975
|
if (e.type === "valid") return [];
|
|
@@ -8006,9 +8019,9 @@ class nu {
|
|
|
8006
8019
|
getValidationState(t) {
|
|
8007
8020
|
return this.validationStates.has(t) || this.validationStates.set(
|
|
8008
8021
|
t,
|
|
8009
|
-
|
|
8022
|
+
Re({
|
|
8010
8023
|
isValidating: !1,
|
|
8011
|
-
result:
|
|
8024
|
+
result: Pe.valid,
|
|
8012
8025
|
lastValidatedValue: void 0,
|
|
8013
8026
|
lastValidatedAt: 0
|
|
8014
8027
|
})
|
|
@@ -8026,7 +8039,7 @@ class nu {
|
|
|
8026
8039
|
if (t.minLength && typeof r == "string" && r.length < t.minLength) {
|
|
8027
8040
|
o.set({
|
|
8028
8041
|
...o.value,
|
|
8029
|
-
result:
|
|
8042
|
+
result: Pe.valid,
|
|
8030
8043
|
isValidating: !1
|
|
8031
8044
|
});
|
|
8032
8045
|
return;
|
|
@@ -8037,13 +8050,13 @@ class nu {
|
|
|
8037
8050
|
this.abortControllers.set(s, d), o.set({
|
|
8038
8051
|
...o.value,
|
|
8039
8052
|
isValidating: !0,
|
|
8040
|
-
result: t.loadingMessage ?
|
|
8053
|
+
result: t.loadingMessage ? Pe.invalid({ message: t.loadingMessage }) : o.value.result
|
|
8041
8054
|
});
|
|
8042
8055
|
try {
|
|
8043
8056
|
const v = await t.validate(r, n);
|
|
8044
8057
|
if (d.signal.aborted)
|
|
8045
8058
|
return;
|
|
8046
|
-
const $ = v.valid ?
|
|
8059
|
+
const $ = v.valid ? Pe.valid : Pe.invalid({
|
|
8047
8060
|
message: v.message || "Async validation failed",
|
|
8048
8061
|
context: v.context
|
|
8049
8062
|
});
|
|
@@ -8059,7 +8072,7 @@ class nu {
|
|
|
8059
8072
|
const $ = v instanceof Error ? v.message : "Async validation error";
|
|
8060
8073
|
o.set({
|
|
8061
8074
|
isValidating: !1,
|
|
8062
|
-
result:
|
|
8075
|
+
result: Pe.invalid({ message: $ }),
|
|
8063
8076
|
lastValidatedValue: r,
|
|
8064
8077
|
lastValidatedAt: Date.now()
|
|
8065
8078
|
});
|
|
@@ -8132,7 +8145,7 @@ function $u({
|
|
|
8132
8145
|
validationMode: s,
|
|
8133
8146
|
validateDebounceMs: o
|
|
8134
8147
|
}, u) {
|
|
8135
|
-
return
|
|
8148
|
+
return Na(
|
|
8136
8149
|
Qi(e, {
|
|
8137
8150
|
externalSchemas: r,
|
|
8138
8151
|
refResolver: n,
|
|
@@ -8143,7 +8156,7 @@ function $u({
|
|
|
8143
8156
|
const { ajv: y, validate: d } = h.value, v = Yo(e), $ = ru(e), S = $.length > 0 ? new nu() : null, w = s ?? "touchedOrSubmit", g = (D) => {
|
|
8144
8157
|
const A = d(D);
|
|
8145
8158
|
let V;
|
|
8146
|
-
return A ? V =
|
|
8159
|
+
return A ? V = Pe.valid : V = kr(
|
|
8147
8160
|
d.errors ?? []
|
|
8148
8161
|
), v ? Qo(
|
|
8149
8162
|
D,
|
|
@@ -8152,7 +8165,7 @@ function $u({
|
|
|
8152
8165
|
v,
|
|
8153
8166
|
d
|
|
8154
8167
|
) : V;
|
|
8155
|
-
}, { controller: f, setStatus: l } =
|
|
8168
|
+
}, { controller: f, setStatus: l } = ra({
|
|
8156
8169
|
initialValue: t,
|
|
8157
8170
|
validationMode: w,
|
|
8158
8171
|
validateDebounceMs: o,
|
|
@@ -8174,25 +8187,25 @@ function $u({
|
|
|
8174
8187
|
for (const A of $)
|
|
8175
8188
|
S.validateField(A, D, D);
|
|
8176
8189
|
}) : () => {
|
|
8177
|
-
}, q =
|
|
8178
|
-
|
|
8190
|
+
}, q = we(
|
|
8191
|
+
Ee(() => {
|
|
8179
8192
|
_(), b(), E(), S?.dispose(), f.dispose();
|
|
8180
8193
|
}),
|
|
8181
8194
|
Wo({ schema: e, controller: f, ajv: y })
|
|
8182
8195
|
);
|
|
8183
8196
|
return u({ Form: q, controller: f, setStatus: l });
|
|
8184
8197
|
}
|
|
8185
|
-
return
|
|
8198
|
+
return J.div(F.class("bc-json-schema-form__error"), h.error);
|
|
8186
8199
|
}
|
|
8187
8200
|
);
|
|
8188
8201
|
}
|
|
8189
|
-
var
|
|
8190
|
-
const
|
|
8202
|
+
var Gs = Rs();
|
|
8203
|
+
const xs = /* @__PURE__ */ ws(Gs), iu = /* @__PURE__ */ Ta({
|
|
8191
8204
|
__proto__: null,
|
|
8192
|
-
default:
|
|
8193
|
-
}, [
|
|
8205
|
+
default: xs
|
|
8206
|
+
}, [Gs]);
|
|
8194
8207
|
function wu(e, t) {
|
|
8195
|
-
const n = (t?.ajv ?? new
|
|
8208
|
+
const n = (t?.ajv ?? new xs({ allErrors: !0 })).compile(e);
|
|
8196
8209
|
return {
|
|
8197
8210
|
"~standard": {
|
|
8198
8211
|
version: 1,
|
|
@@ -8234,55 +8247,55 @@ function fu(e) {
|
|
|
8234
8247
|
return /^\d+$/.test(e);
|
|
8235
8248
|
}
|
|
8236
8249
|
export {
|
|
8237
|
-
|
|
8250
|
+
Rr as A,
|
|
8238
8251
|
Qi as B,
|
|
8239
|
-
|
|
8252
|
+
Ir as C,
|
|
8240
8253
|
no as D,
|
|
8241
8254
|
so as E,
|
|
8242
|
-
|
|
8255
|
+
As as F,
|
|
8243
8256
|
He as G,
|
|
8244
8257
|
Po as H,
|
|
8245
8258
|
Eo as I,
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8259
|
+
Ut as J,
|
|
8260
|
+
Ft as K,
|
|
8261
|
+
vr as L,
|
|
8262
|
+
gr as M,
|
|
8263
|
+
_r as N,
|
|
8264
|
+
Vs as O,
|
|
8265
|
+
Js as P,
|
|
8266
|
+
Bs as Q,
|
|
8254
8267
|
Hs as R,
|
|
8255
|
-
|
|
8268
|
+
Nr as S,
|
|
8256
8269
|
Ko as T,
|
|
8257
8270
|
Bo as U,
|
|
8258
8271
|
bu as V,
|
|
8259
|
-
|
|
8272
|
+
Me as W,
|
|
8260
8273
|
Wo as X,
|
|
8261
8274
|
$u as Y,
|
|
8262
8275
|
wu as Z,
|
|
8263
8276
|
Ai as a,
|
|
8264
8277
|
Ti as b,
|
|
8265
|
-
|
|
8278
|
+
Jt as c,
|
|
8266
8279
|
G as d,
|
|
8267
|
-
|
|
8280
|
+
Er as e,
|
|
8268
8281
|
Ht as f,
|
|
8269
|
-
|
|
8282
|
+
ws as g,
|
|
8270
8283
|
ri as h,
|
|
8271
8284
|
pi as i,
|
|
8272
8285
|
ki as j,
|
|
8273
8286
|
Ni as k,
|
|
8274
8287
|
Ii as l,
|
|
8275
|
-
|
|
8276
|
-
|
|
8288
|
+
Ae as m,
|
|
8289
|
+
Or as n,
|
|
8277
8290
|
ti as o,
|
|
8278
8291
|
ee as p,
|
|
8279
8292
|
vi as q,
|
|
8280
8293
|
Qa as r,
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8294
|
+
Ns as s,
|
|
8295
|
+
Ji as t,
|
|
8296
|
+
Hi as u,
|
|
8284
8297
|
Gi as v,
|
|
8285
|
-
|
|
8298
|
+
kr as w,
|
|
8286
8299
|
gu as x,
|
|
8287
8300
|
vu as y,
|
|
8288
8301
|
_u as z
|