@tempots/beatui 0.24.0 → 0.25.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.
@@ -1,7 +1,7 @@
1
- import { b as Se, S as de, j as Ft, d as Q, M as Yt, T as Ys, P as Qs, E as Zs, c as Tr, L as Fe, a1 as ea, B as $r, C as ds, I as hs, a as ta, N as ra, Q as na, W as sa } from "./translations-GO9sIajX.js";
1
+ import { b as Se, S as de, j as Ft, d as Z, M as Yt, T as Ys, P as Zs, E as Qs, c as Tr, L as Fe, a1 as ea, B as $r, C as ds, I as hs, a as ta, N as ra, Q as na, W as sa } from "./translations-GO9sIajX.js";
2
2
  import { g as ps } from "./_commonjsHelpers-C6fGbg64.js";
3
- import { _ as wr, X as aa, S as ia, N as oa, a as ms, B as ua, t as le, s as Ve, r as Qt, y as ca, C as la, W as fa, H as da, J as ha, q as pa, c as Le, o as ma, m as ya, p as ga, T as va, x as _a, v as pr, u as ba, M as Xe, D as $a, A as wa, z as Sa, R as Pa, Q as ys, w as Ea, l as Oa, G as ja, i as gs, K as ka, L as Ra, b as Na } from "./notice-c9Vbv45l.js";
4
- import { attr as U, Value as ne, Fragment as je, Async as vs, WithElement as _s, Empty as bs, html as J, When as He, computedOf as ie, prop as ke, Use as Sr, style as $s, Ensure as ws, aria as Aa, on as xe, MapSignal as Ut, OnDispose as Ia } from "@tempots/dom";
3
+ import { _ as wr, Y as aa, S as ia, N as oa, a as ms, g as ua, t as le, u as Ve, s as Zt, z as ca, C as la, W as fa, I as da, K as ha, r as pa, c as Le, p as ma, o as ya, q as ga, T as va, y as _a, w as pr, v as ba, M as Xe, H as $a, D as wa, A as Sa, R as Pa, V as ys, x as Ea, m as Oa, G as ja, j as gs, O as ka, L as Ra, b as Na } from "./notice-wSAzLfbl.js";
4
+ import { attr as U, Value as ne, Fragment as je, Async as vs, WithElement as _s, Empty as bs, html as H, When as Je, computedOf as ie, prop as ke, Use as Sr, style as $s, Ensure as ws, aria as Ia, on as xe, MapSignal as Ut, OnDispose as Aa } from "@tempots/dom";
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
- var Ye = { exports: {} }, Zt = {}, qr;
22
+ var Ye = { exports: {} }, Qt = {}, qr;
23
23
  function qa() {
24
24
  return qr || (qr = 1, function(e) {
25
25
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
26
- function t(I, V) {
27
- return { validate: I, compare: V };
26
+ function t(A, V) {
27
+ return { validate: A, compare: V };
28
28
  }
29
29
  e.fullFormats = {
30
30
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -65,9 +65,9 @@ function qa() {
65
65
  // signed 64 bit integer
66
66
  int64: { type: "number", validate: E },
67
67
  // C-type float
68
- float: { type: "number", validate: A },
68
+ float: { type: "number", validate: I },
69
69
  // C-type double
70
- double: { type: "number", validate: A },
70
+ double: { type: "number", validate: I },
71
71
  // hint to the UI to hide input strings
72
72
  password: !0,
73
73
  // unchecked string payload
@@ -87,103 +87,103 @@ function qa() {
87
87
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
88
88
  email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
89
89
  }, e.formatNames = Object.keys(e.fullFormats);
90
- function r(I) {
91
- return I % 4 === 0 && (I % 100 !== 0 || I % 400 === 0);
90
+ function r(A) {
91
+ return A % 4 === 0 && (A % 100 !== 0 || A % 400 === 0);
92
92
  }
93
93
  const n = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, a = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
94
- function s(I) {
95
- const V = n.exec(I);
94
+ function s(A) {
95
+ const V = n.exec(A);
96
96
  if (!V)
97
97
  return !1;
98
- const L = +V[1], B = +V[2], Z = +V[3];
99
- return B >= 1 && B <= 12 && Z >= 1 && Z <= (B === 2 && r(L) ? 29 : a[B]);
98
+ const L = +V[1], B = +V[2], Q = +V[3];
99
+ return B >= 1 && B <= 12 && Q >= 1 && Q <= (B === 2 && r(L) ? 29 : a[B]);
100
100
  }
101
- function o(I, V) {
102
- if (I && V)
103
- return I > V ? 1 : I < V ? -1 : 0;
101
+ function o(A, V) {
102
+ if (A && V)
103
+ return A > V ? 1 : A < V ? -1 : 0;
104
104
  }
105
105
  const u = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
106
- function h(I) {
106
+ function h(A) {
107
107
  return function(L) {
108
108
  const B = u.exec(L);
109
109
  if (!B)
110
110
  return !1;
111
- const Z = +B[1], oe = +B[2], ae = +B[3], te = B[4], ve = B[5] === "-" ? -1 : 1, M = +(B[6] || 0), j = +(B[7] || 0);
112
- if (M > 23 || j > 59 || I && !te)
111
+ const Q = +B[1], oe = +B[2], ae = +B[3], te = B[4], ve = B[5] === "-" ? -1 : 1, M = +(B[6] || 0), j = +(B[7] || 0);
112
+ if (M > 23 || j > 59 || A && !te)
113
113
  return !1;
114
- if (Z <= 23 && oe <= 59 && ae < 60)
114
+ if (Q <= 23 && oe <= 59 && ae < 60)
115
115
  return !0;
116
- const C = oe - j * ve, N = Z - M * ve - (C < 0 ? 1 : 0);
116
+ const C = oe - j * ve, N = Q - M * ve - (C < 0 ? 1 : 0);
117
117
  return (N === 23 || N === -1) && (C === 59 || C === -1) && ae < 61;
118
118
  };
119
119
  }
120
- function y(I, V) {
121
- if (!(I && V))
120
+ function y(A, V) {
121
+ if (!(A && V))
122
122
  return;
123
- const L = (/* @__PURE__ */ new Date("2020-01-01T" + I)).valueOf(), B = (/* @__PURE__ */ new Date("2020-01-01T" + V)).valueOf();
123
+ const L = (/* @__PURE__ */ new Date("2020-01-01T" + A)).valueOf(), B = (/* @__PURE__ */ new Date("2020-01-01T" + V)).valueOf();
124
124
  if (L && B)
125
125
  return L - B;
126
126
  }
127
- function d(I, V) {
128
- if (!(I && V))
127
+ function d(A, V) {
128
+ if (!(A && V))
129
129
  return;
130
- const L = u.exec(I), B = u.exec(V);
130
+ const L = u.exec(A), B = u.exec(V);
131
131
  if (L && B)
132
- return I = L[1] + L[2] + L[3], V = B[1] + B[2] + B[3], I > V ? 1 : I < V ? -1 : 0;
132
+ return A = L[1] + L[2] + L[3], V = B[1] + B[2] + B[3], A > V ? 1 : A < V ? -1 : 0;
133
133
  }
134
134
  const v = /t|\s/i;
135
- function $(I) {
136
- const V = h(I);
135
+ function $(A) {
136
+ const V = h(A);
137
137
  return function(B) {
138
- const Z = B.split(v);
139
- return Z.length === 2 && s(Z[0]) && V(Z[1]);
138
+ const Q = B.split(v);
139
+ return Q.length === 2 && s(Q[0]) && V(Q[1]);
140
140
  };
141
141
  }
142
- function S(I, V) {
143
- if (!(I && V))
142
+ function S(A, V) {
143
+ if (!(A && V))
144
144
  return;
145
- const L = new Date(I).valueOf(), B = new Date(V).valueOf();
145
+ const L = new Date(A).valueOf(), B = new Date(V).valueOf();
146
146
  if (L && B)
147
147
  return L - B;
148
148
  }
149
- function w(I, V) {
150
- if (!(I && V))
149
+ function w(A, V) {
150
+ if (!(A && V))
151
151
  return;
152
- const [L, B] = I.split(v), [Z, oe] = V.split(v), ae = o(L, Z);
152
+ const [L, B] = A.split(v), [Q, oe] = V.split(v), ae = o(L, Q);
153
153
  if (ae !== void 0)
154
154
  return ae || y(B, oe);
155
155
  }
156
156
  const g = /\/|:/, f = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
157
- function l(I) {
158
- return g.test(I) && f.test(I);
157
+ function l(A) {
158
+ return g.test(A) && f.test(A);
159
159
  }
160
160
  const i = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
161
- function c(I) {
162
- return i.lastIndex = 0, i.test(I);
161
+ function c(A) {
162
+ return i.lastIndex = 0, i.test(A);
163
163
  }
164
164
  const m = -2147483648, _ = 2 ** 31 - 1;
165
- function b(I) {
166
- return Number.isInteger(I) && I <= _ && I >= m;
165
+ function b(A) {
166
+ return Number.isInteger(A) && A <= _ && A >= m;
167
167
  }
168
- function E(I) {
169
- return Number.isInteger(I);
168
+ function E(A) {
169
+ return Number.isInteger(A);
170
170
  }
171
- function A() {
171
+ function I() {
172
172
  return !0;
173
173
  }
174
174
  const q = /[^\\]\\Z/;
175
- function D(I) {
176
- if (q.test(I))
175
+ function D(A) {
176
+ if (q.test(A))
177
177
  return !1;
178
178
  try {
179
- return new RegExp(I), !0;
179
+ return new RegExp(A), !0;
180
180
  } catch {
181
181
  return !1;
182
182
  }
183
183
  }
184
- }(Zt)), Zt;
184
+ }(Qt)), Qt;
185
185
  }
186
- var er = {}, Qe = { exports: {} }, tr = {}, Pe = {}, Ie = {}, rr = {}, nr = {}, sr = {}, Mr;
186
+ var er = {}, Ze = { exports: {} }, tr = {}, Pe = {}, Ae = {}, rr = {}, nr = {}, sr = {}, Mr;
187
187
  function Mt() {
188
188
  return Mr || (Mr = 1, function(e) {
189
189
  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;
@@ -586,7 +586,7 @@ function x() {
586
586
  let F = R.length;
587
587
  for (; F--; ) {
588
588
  const K = R[F];
589
- K.optimizeNames(p, P) || (Z(p, K.names), R.splice(F, 1));
589
+ K.optimizeNames(p, P) || (Q(p, K.names), R.splice(F, 1));
590
590
  }
591
591
  return R.length > 0 ? this : void 0;
592
592
  }
@@ -699,7 +699,7 @@ function x() {
699
699
  }
700
700
  }
701
701
  E.kind = "return";
702
- class A extends w {
702
+ class I extends w {
703
703
  render(p) {
704
704
  let P = "try" + super.render(p);
705
705
  return this.catch && (P += this.catch.render(p)), this.finally && (P += this.finally.render(p)), P;
@@ -732,7 +732,7 @@ function x() {
732
732
  }
733
733
  }
734
734
  D.kind = "finally";
735
- class I {
735
+ class A {
736
736
  constructor(p, P = {}) {
737
737
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...P, _n: P.lines ? `
738
738
  ` : "" }, this._extScope = p, this._scope = new r.Scope({ parent: p }), this._nodes = [new g()];
@@ -875,7 +875,7 @@ function x() {
875
875
  try(p, P, R) {
876
876
  if (!P && !R)
877
877
  throw new Error('CodeGen: "try" without "catch" and "finally"');
878
- const F = new A();
878
+ const F = new I();
879
879
  if (this._blockNode(F), this.code(p), P) {
880
880
  const K = this.name("e");
881
881
  this._currNode = F.catch = new q(K), P(K);
@@ -942,7 +942,7 @@ function x() {
942
942
  P[P.length - 1] = p;
943
943
  }
944
944
  }
945
- e.CodeGen = I;
945
+ e.CodeGen = A;
946
946
  function V(N, p) {
947
947
  for (const P in p)
948
948
  N[P] = (N[P] || 0) + (p[P] || 0);
@@ -965,7 +965,7 @@ function x() {
965
965
  return K instanceof t._Code && K._items.some((Y) => Y instanceof t.Name && p[Y.str] === 1 && P[Y.str] !== void 0);
966
966
  }
967
967
  }
968
- function Z(N, p) {
968
+ function Q(N, p) {
969
969
  for (const P in p)
970
970
  N[P] = (N[P] || 0) - (p[P] || 0);
971
971
  }
@@ -991,10 +991,10 @@ function x() {
991
991
  }
992
992
  }(nr)), nr;
993
993
  }
994
- var H = {}, Lr;
994
+ var J = {}, Lr;
995
995
  function ee() {
996
- if (Lr) return H;
997
- Lr = 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;
996
+ if (Lr) return J;
997
+ Lr = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.checkStrictMode = J.getErrorPath = J.Type = J.useFunc = J.setEvaluated = J.evaluatedPropsToName = J.mergeEvaluated = J.eachItem = J.unescapeJsonPointer = J.escapeJsonPointer = J.escapeFragment = J.unescapeFragment = J.schemaRefOrVal = J.schemaHasRulesButRef = J.schemaHasRules = J.checkUnknownRules = J.alwaysValidSchema = J.toHash = void 0;
998
998
  const e = x(), t = Mt();
999
999
  function r(_) {
1000
1000
  const b = {};
@@ -1002,20 +1002,20 @@ function ee() {
1002
1002
  b[E] = !0;
1003
1003
  return b;
1004
1004
  }
1005
- H.toHash = r;
1005
+ J.toHash = r;
1006
1006
  function n(_, b) {
1007
1007
  return typeof b == "boolean" ? b : Object.keys(b).length === 0 ? !0 : (a(_, b), !s(b, _.self.RULES.all));
1008
1008
  }
1009
- H.alwaysValidSchema = n;
1009
+ J.alwaysValidSchema = n;
1010
1010
  function a(_, b = _.schema) {
1011
- const { opts: E, self: A } = _;
1011
+ const { opts: E, self: I } = _;
1012
1012
  if (!E.strictSchema || typeof b == "boolean")
1013
1013
  return;
1014
- const q = A.RULES.keywords;
1014
+ const q = I.RULES.keywords;
1015
1015
  for (const D in b)
1016
1016
  q[D] || m(_, `unknown keyword: "${D}"`);
1017
1017
  }
1018
- H.checkUnknownRules = a;
1018
+ J.checkUnknownRules = a;
1019
1019
  function s(_, b) {
1020
1020
  if (typeof _ == "boolean")
1021
1021
  return !_;
@@ -1024,7 +1024,7 @@ function ee() {
1024
1024
  return !0;
1025
1025
  return !1;
1026
1026
  }
1027
- H.schemaHasRules = s;
1027
+ J.schemaHasRules = s;
1028
1028
  function o(_, b) {
1029
1029
  if (typeof _ == "boolean")
1030
1030
  return !_;
@@ -1033,33 +1033,33 @@ function ee() {
1033
1033
  return !0;
1034
1034
  return !1;
1035
1035
  }
1036
- H.schemaHasRulesButRef = o;
1037
- function u({ topSchemaRef: _, schemaPath: b }, E, A, q) {
1036
+ J.schemaHasRulesButRef = o;
1037
+ function u({ topSchemaRef: _, schemaPath: b }, E, I, q) {
1038
1038
  if (!q) {
1039
1039
  if (typeof E == "number" || typeof E == "boolean")
1040
1040
  return E;
1041
1041
  if (typeof E == "string")
1042
1042
  return (0, e._)`${E}`;
1043
1043
  }
1044
- return (0, e._)`${_}${b}${(0, e.getProperty)(A)}`;
1044
+ return (0, e._)`${_}${b}${(0, e.getProperty)(I)}`;
1045
1045
  }
1046
- H.schemaRefOrVal = u;
1046
+ J.schemaRefOrVal = u;
1047
1047
  function h(_) {
1048
1048
  return v(decodeURIComponent(_));
1049
1049
  }
1050
- H.unescapeFragment = h;
1050
+ J.unescapeFragment = h;
1051
1051
  function y(_) {
1052
1052
  return encodeURIComponent(d(_));
1053
1053
  }
1054
- H.escapeFragment = y;
1054
+ J.escapeFragment = y;
1055
1055
  function d(_) {
1056
1056
  return typeof _ == "number" ? `${_}` : _.replace(/~/g, "~0").replace(/\//g, "~1");
1057
1057
  }
1058
- H.escapeJsonPointer = d;
1058
+ J.escapeJsonPointer = d;
1059
1059
  function v(_) {
1060
1060
  return _.replace(/~1/g, "/").replace(/~0/g, "~");
1061
1061
  }
1062
- H.unescapeJsonPointer = v;
1062
+ J.unescapeJsonPointer = v;
1063
1063
  function $(_, b) {
1064
1064
  if (Array.isArray(_))
1065
1065
  for (const E of _)
@@ -1067,14 +1067,14 @@ function ee() {
1067
1067
  else
1068
1068
  b(_);
1069
1069
  }
1070
- H.eachItem = $;
1071
- function S({ mergeNames: _, mergeToName: b, mergeValues: E, resultToName: A }) {
1072
- return (q, D, I, V) => {
1073
- const L = I === void 0 ? D : I instanceof e.Name ? (D instanceof e.Name ? _(q, D, I) : b(q, D, I), I) : D instanceof e.Name ? (b(q, I, D), D) : E(D, I);
1074
- return V === e.Name && !(L instanceof e.Name) ? A(q, L) : L;
1070
+ J.eachItem = $;
1071
+ function S({ mergeNames: _, mergeToName: b, mergeValues: E, resultToName: I }) {
1072
+ return (q, D, A, V) => {
1073
+ 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);
1074
+ return V === e.Name && !(L instanceof e.Name) ? I(q, L) : L;
1075
1075
  };
1076
1076
  }
1077
- H.mergeEvaluated = {
1077
+ J.mergeEvaluated = {
1078
1078
  props: S({
1079
1079
  mergeNames: (_, b, E) => _.if((0, e._)`${E} !== true && ${b} !== undefined`, () => {
1080
1080
  _.if((0, e._)`${b} === true`, () => _.assign(E, !0), () => _.assign(E, (0, e._)`${E} || {}`).code((0, e._)`Object.assign(${E}, ${b})`));
@@ -1098,11 +1098,11 @@ function ee() {
1098
1098
  const E = _.var("props", (0, e._)`{}`);
1099
1099
  return b !== void 0 && g(_, E, b), E;
1100
1100
  }
1101
- H.evaluatedPropsToName = w;
1101
+ J.evaluatedPropsToName = w;
1102
1102
  function g(_, b, E) {
1103
- Object.keys(E).forEach((A) => _.assign((0, e._)`${b}${(0, e.getProperty)(A)}`, !0));
1103
+ Object.keys(E).forEach((I) => _.assign((0, e._)`${b}${(0, e.getProperty)(I)}`, !0));
1104
1104
  }
1105
- H.setEvaluated = g;
1105
+ J.setEvaluated = g;
1106
1106
  const f = {};
1107
1107
  function l(_, b) {
1108
1108
  return _.scopeValue("func", {
@@ -1110,19 +1110,19 @@ function ee() {
1110
1110
  code: f[b.code] || (f[b.code] = new t._Code(b.code))
1111
1111
  });
1112
1112
  }
1113
- H.useFunc = l;
1113
+ J.useFunc = l;
1114
1114
  var i;
1115
1115
  (function(_) {
1116
1116
  _[_.Num = 0] = "Num", _[_.Str = 1] = "Str";
1117
- })(i || (H.Type = i = {}));
1117
+ })(i || (J.Type = i = {}));
1118
1118
  function c(_, b, E) {
1119
1119
  if (_ instanceof e.Name) {
1120
- const A = b === i.Num;
1121
- return E ? A ? (0, e._)`"[" + ${_} + "]"` : (0, e._)`"['" + ${_} + "']"` : A ? (0, e._)`"/" + ${_}` : (0, e._)`"/" + ${_}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
1120
+ const I = b === i.Num;
1121
+ return E ? I ? (0, e._)`"[" + ${_} + "]"` : (0, e._)`"['" + ${_} + "']"` : I ? (0, e._)`"/" + ${_}` : (0, e._)`"/" + ${_}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
1122
1122
  }
1123
1123
  return E ? (0, e.getProperty)(_).toString() : "/" + d(_);
1124
1124
  }
1125
- H.getErrorPath = c;
1125
+ J.getErrorPath = c;
1126
1126
  function m(_, b, E = _.opts.strictSchema) {
1127
1127
  if (E) {
1128
1128
  if (b = `strict mode: ${b}`, E === !0)
@@ -1130,12 +1130,12 @@ function ee() {
1130
1130
  _.self.logger.warn(b);
1131
1131
  }
1132
1132
  }
1133
- return H.checkStrictMode = m, H;
1133
+ return J.checkStrictMode = m, J;
1134
1134
  }
1135
- var Ze = {}, Fr;
1136
- function Ae() {
1137
- if (Fr) return Ze;
1138
- Fr = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
1135
+ var Qe = {}, Fr;
1136
+ function Ie() {
1137
+ if (Fr) return Qe;
1138
+ Fr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
1139
1139
  const e = x(), t = {
1140
1140
  // validation function arguments
1141
1141
  data: new e.Name("data"),
@@ -1165,21 +1165,21 @@ function Ae() {
1165
1165
  jsonLen: new e.Name("jsonLen"),
1166
1166
  jsonPart: new e.Name("jsonPart")
1167
1167
  };
1168
- return Ze.default = t, Ze;
1168
+ return Qe.default = t, Qe;
1169
1169
  }
1170
1170
  var Ur;
1171
1171
  function Kt() {
1172
1172
  return Ur || (Ur = 1, function(e) {
1173
1173
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
1174
- const t = x(), r = ee(), n = Ae();
1174
+ const t = x(), r = ee(), n = Ie();
1175
1175
  e.keywordError = {
1176
1176
  message: ({ keyword: f }) => (0, t.str)`must pass "${f}" keyword validation`
1177
1177
  }, e.keyword$DataError = {
1178
1178
  message: ({ keyword: f, schemaType: l }) => l ? (0, t.str)`"${f}" keyword must be ${l} ($data)` : (0, t.str)`"${f}" keyword is invalid ($data)`
1179
1179
  };
1180
1180
  function a(f, l = e.keywordError, i, c) {
1181
- const { it: m } = f, { gen: _, compositeRule: b, allErrors: E } = m, A = v(f, l, i);
1182
- c ?? (b || E) ? h(_, A) : y(m, (0, t._)`[${A}]`);
1181
+ const { it: m } = f, { gen: _, compositeRule: b, allErrors: E } = m, I = v(f, l, i);
1182
+ c ?? (b || E) ? h(_, I) : y(m, (0, t._)`[${I}]`);
1183
1183
  }
1184
1184
  e.reportError = a;
1185
1185
  function s(f, l = e.keywordError, i) {
@@ -1238,28 +1238,28 @@ function Kt() {
1238
1238
  return i && (m = (0, t.str)`${m}${(0, r.getErrorPath)(i, r.Type.Str)}`), [d.schemaPath, m];
1239
1239
  }
1240
1240
  function g(f, { params: l, message: i }, c) {
1241
- const { keyword: m, data: _, schemaValue: b, it: E } = f, { opts: A, propertyName: q, topSchemaRef: D, schemaPath: I } = E;
1242
- c.push([d.keyword, m], [d.params, typeof l == "function" ? l(f) : l || (0, t._)`{}`]), A.messages && c.push([d.message, typeof i == "function" ? i(f) : i]), A.verbose && c.push([d.schema, b], [d.parentSchema, (0, t._)`${D}${I}`], [n.default.data, _]), q && c.push([d.propertyName, q]);
1241
+ const { keyword: m, data: _, schemaValue: b, it: E } = f, { opts: I, propertyName: q, topSchemaRef: D, schemaPath: A } = E;
1242
+ 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]);
1243
1243
  }
1244
1244
  }(rr)), rr;
1245
1245
  }
1246
1246
  var Kr;
1247
1247
  function Ma() {
1248
- if (Kr) return Ie;
1249
- Kr = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.boolOrEmptySchema = Ie.topBoolOrEmptySchema = void 0;
1250
- const e = Kt(), t = x(), r = Ae(), n = {
1248
+ if (Kr) return Ae;
1249
+ Kr = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.boolOrEmptySchema = Ae.topBoolOrEmptySchema = void 0;
1250
+ const e = Kt(), t = x(), r = Ie(), n = {
1251
1251
  message: "boolean schema is false"
1252
1252
  };
1253
1253
  function a(u) {
1254
1254
  const { gen: h, schema: y, validateName: d } = u;
1255
1255
  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));
1256
1256
  }
1257
- Ie.topBoolOrEmptySchema = a;
1257
+ Ae.topBoolOrEmptySchema = a;
1258
1258
  function s(u, h) {
1259
1259
  const { gen: y, schema: d } = u;
1260
1260
  d === !1 ? (y.var(h, !1), o(u)) : y.var(h, !0);
1261
1261
  }
1262
- Ie.boolOrEmptySchema = s;
1262
+ Ae.boolOrEmptySchema = s;
1263
1263
  function o(u, h) {
1264
1264
  const { gen: y, data: d } = u, v = {
1265
1265
  gen: y,
@@ -1273,7 +1273,7 @@ function Ma() {
1273
1273
  };
1274
1274
  (0, e.reportError)(v, n, void 0, h);
1275
1275
  }
1276
- return Ie;
1276
+ return Ae;
1277
1277
  }
1278
1278
  var fe = {}, Ce = {}, Br;
1279
1279
  function Ss() {
@@ -1320,10 +1320,10 @@ function Ps() {
1320
1320
  }
1321
1321
  return Ee.shouldUseRule = r, Ee;
1322
1322
  }
1323
- var Jr;
1323
+ var Hr;
1324
1324
  function Vt() {
1325
- if (Jr) return fe;
1326
- Jr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.reportTypeError = fe.checkDataTypes = fe.checkDataType = fe.coerceAndCheckDataType = fe.getJSONTypes = fe.getSchemaTypes = fe.DataType = void 0;
1325
+ if (Hr) return fe;
1326
+ Hr = 1, Object.defineProperty(fe, "__esModule", { value: !0 }), fe.reportTypeError = fe.checkDataTypes = fe.checkDataType = fe.coerceAndCheckDataType = fe.getJSONTypes = fe.getSchemaTypes = fe.DataType = void 0;
1327
1327
  const e = Ss(), t = Ps(), r = Kt(), n = x(), a = ee();
1328
1328
  var s;
1329
1329
  (function(i) {
@@ -1350,14 +1350,14 @@ function Vt() {
1350
1350
  }
1351
1351
  fe.getJSONTypes = u;
1352
1352
  function h(i, c) {
1353
- const { gen: m, data: _, opts: b } = i, E = d(c, b.coerceTypes), A = c.length > 0 && !(E.length === 0 && c.length === 1 && (0, t.schemaHasRulesForType)(i, c[0]));
1354
- if (A) {
1353
+ const { gen: m, data: _, opts: b } = i, E = d(c, b.coerceTypes), I = c.length > 0 && !(E.length === 0 && c.length === 1 && (0, t.schemaHasRulesForType)(i, c[0]));
1354
+ if (I) {
1355
1355
  const q = w(c, _, b.strictNumbers, s.Wrong);
1356
1356
  m.if(q, () => {
1357
1357
  E.length ? v(i, c, E) : f(i);
1358
1358
  });
1359
1359
  }
1360
- return A;
1360
+ return I;
1361
1361
  }
1362
1362
  fe.coerceAndCheckDataType = h;
1363
1363
  const y = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
@@ -1365,25 +1365,25 @@ function Vt() {
1365
1365
  return c ? i.filter((m) => y.has(m) || c === "array" && m === "array") : [];
1366
1366
  }
1367
1367
  function v(i, c, m) {
1368
- const { gen: _, data: b, opts: E } = i, A = _.let("dataType", (0, n._)`typeof ${b}`), q = _.let("coerced", (0, n._)`undefined`);
1369
- E.coerceTypes === "array" && _.if((0, n._)`${A} == 'object' && Array.isArray(${b}) && ${b}.length == 1`, () => _.assign(b, (0, n._)`${b}[0]`).assign(A, (0, n._)`typeof ${b}`).if(w(c, b, E.strictNumbers), () => _.assign(q, b))), _.if((0, n._)`${q} !== undefined`);
1370
- for (const I of m)
1371
- (y.has(I) || I === "array" && E.coerceTypes === "array") && D(I);
1368
+ const { gen: _, data: b, opts: E } = i, I = _.let("dataType", (0, n._)`typeof ${b}`), q = _.let("coerced", (0, n._)`undefined`);
1369
+ E.coerceTypes === "array" && _.if((0, n._)`${I} == 'object' && Array.isArray(${b}) && ${b}.length == 1`, () => _.assign(b, (0, n._)`${b}[0]`).assign(I, (0, n._)`typeof ${b}`).if(w(c, b, E.strictNumbers), () => _.assign(q, b))), _.if((0, n._)`${q} !== undefined`);
1370
+ for (const A of m)
1371
+ (y.has(A) || A === "array" && E.coerceTypes === "array") && D(A);
1372
1372
  _.else(), f(i), _.endIf(), _.if((0, n._)`${q} !== undefined`, () => {
1373
1373
  _.assign(b, q), $(i, q);
1374
1374
  });
1375
- function D(I) {
1376
- switch (I) {
1375
+ function D(A) {
1376
+ switch (A) {
1377
1377
  case "string":
1378
- _.elseIf((0, n._)`${A} == "number" || ${A} == "boolean"`).assign(q, (0, n._)`"" + ${b}`).elseIf((0, n._)`${b} === null`).assign(q, (0, n._)`""`);
1378
+ _.elseIf((0, n._)`${I} == "number" || ${I} == "boolean"`).assign(q, (0, n._)`"" + ${b}`).elseIf((0, n._)`${b} === null`).assign(q, (0, n._)`""`);
1379
1379
  return;
1380
1380
  case "number":
1381
- _.elseIf((0, n._)`${A} == "boolean" || ${b} === null
1382
- || (${A} == "string" && ${b} && ${b} == +${b})`).assign(q, (0, n._)`+${b}`);
1381
+ _.elseIf((0, n._)`${I} == "boolean" || ${b} === null
1382
+ || (${I} == "string" && ${b} && ${b} == +${b})`).assign(q, (0, n._)`+${b}`);
1383
1383
  return;
1384
1384
  case "integer":
1385
- _.elseIf((0, n._)`${A} === "boolean" || ${b} === null
1386
- || (${A} === "string" && ${b} && ${b} == +${b} && !(${b} % 1))`).assign(q, (0, n._)`+${b}`);
1385
+ _.elseIf((0, n._)`${I} === "boolean" || ${b} === null
1386
+ || (${I} === "string" && ${b} && ${b} == +${b} && !(${b} % 1))`).assign(q, (0, n._)`+${b}`);
1387
1387
  return;
1388
1388
  case "boolean":
1389
1389
  _.elseIf((0, n._)`${b} === "false" || ${b} === 0 || ${b} === null`).assign(q, !1).elseIf((0, n._)`${b} === "true" || ${b} === 1`).assign(q, !0);
@@ -1392,8 +1392,8 @@ function Vt() {
1392
1392
  _.elseIf((0, n._)`${b} === "" || ${b} === 0 || ${b} === false`), _.assign(q, null);
1393
1393
  return;
1394
1394
  case "array":
1395
- _.elseIf((0, n._)`${A} === "string" || ${A} === "number"
1396
- || ${A} === "boolean" || ${b} === null`).assign(q, (0, n._)`[${b}]`);
1395
+ _.elseIf((0, n._)`${I} === "string" || ${I} === "number"
1396
+ || ${I} === "boolean" || ${b} === null`).assign(q, (0, n._)`[${b}]`);
1397
1397
  }
1398
1398
  }
1399
1399
  }
@@ -1413,16 +1413,16 @@ function Vt() {
1413
1413
  E = (0, n._)`${c} && typeof ${c} == "object" && !Array.isArray(${c})`;
1414
1414
  break;
1415
1415
  case "integer":
1416
- E = A((0, n._)`!(${c} % 1) && !isNaN(${c})`);
1416
+ E = I((0, n._)`!(${c} % 1) && !isNaN(${c})`);
1417
1417
  break;
1418
1418
  case "number":
1419
- E = A();
1419
+ E = I();
1420
1420
  break;
1421
1421
  default:
1422
1422
  return (0, n._)`typeof ${c} ${b} ${i}`;
1423
1423
  }
1424
1424
  return _ === s.Correct ? E : (0, n.not)(E);
1425
- function A(q = n.nil) {
1425
+ function I(q = n.nil) {
1426
1426
  return (0, n.and)((0, n._)`typeof ${c} == "number"`, q, m ? (0, n._)`isFinite(${c})` : n.nil);
1427
1427
  }
1428
1428
  }
@@ -1433,13 +1433,13 @@ function Vt() {
1433
1433
  let b;
1434
1434
  const E = (0, a.toHash)(i);
1435
1435
  if (E.array && E.object) {
1436
- const A = (0, n._)`typeof ${c} != "object"`;
1437
- b = E.null ? A : (0, n._)`!${c} || ${A}`, delete E.null, delete E.array, delete E.object;
1436
+ const I = (0, n._)`typeof ${c} != "object"`;
1437
+ b = E.null ? I : (0, n._)`!${c} || ${I}`, delete E.null, delete E.array, delete E.object;
1438
1438
  } else
1439
1439
  b = n.nil;
1440
1440
  E.number && delete E.integer;
1441
- for (const A in E)
1442
- b = (0, n.and)(b, S(A, c, m, _));
1441
+ for (const I in E)
1442
+ b = (0, n.and)(b, S(I, c, m, _));
1443
1443
  return b;
1444
1444
  }
1445
1445
  fe.checkDataTypes = w;
@@ -1468,10 +1468,10 @@ function Vt() {
1468
1468
  }
1469
1469
  return fe;
1470
1470
  }
1471
- var Ke = {}, Hr;
1471
+ var Ke = {}, Jr;
1472
1472
  function Va() {
1473
- if (Hr) return Ke;
1474
- Hr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.assignDefaults = void 0;
1473
+ if (Jr) return Ke;
1474
+ Jr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.assignDefaults = void 0;
1475
1475
  const e = x(), t = ee();
1476
1476
  function r(a, s) {
1477
1477
  const { properties: o, items: u } = a.schema;
@@ -1499,7 +1499,7 @@ var $e = {}, re = {}, xr;
1499
1499
  function we() {
1500
1500
  if (xr) return re;
1501
1501
  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;
1502
- const e = x(), t = ee(), r = Ae(), n = ee();
1502
+ const e = x(), t = ee(), r = Ie(), n = ee();
1503
1503
  function a(i, c) {
1504
1504
  const { gen: m, data: _, it: b } = i;
1505
1505
  m.if(d(m, _, c, b.opts.ownProperties), () => {
@@ -1545,14 +1545,14 @@ function we() {
1545
1545
  return v(c).filter((m) => !(0, t.alwaysValidSchema)(i, c[m]));
1546
1546
  }
1547
1547
  re.schemaProperties = $;
1548
- function S({ schemaCode: i, data: c, it: { gen: m, topSchemaRef: _, schemaPath: b, errorPath: E }, it: A }, q, D, I) {
1549
- const V = I ? (0, e._)`${i}, ${c}, ${_}${b}` : c, L = [
1548
+ function S({ schemaCode: i, data: c, it: { gen: m, topSchemaRef: _, schemaPath: b, errorPath: E }, it: I }, q, D, A) {
1549
+ const V = A ? (0, e._)`${i}, ${c}, ${_}${b}` : c, L = [
1550
1550
  [r.default.instancePath, (0, e.strConcat)(r.default.instancePath, E)],
1551
- [r.default.parentData, A.parentData],
1552
- [r.default.parentDataProperty, A.parentDataProperty],
1551
+ [r.default.parentData, I.parentData],
1552
+ [r.default.parentDataProperty, I.parentDataProperty],
1553
1553
  [r.default.rootData, r.default.rootData]
1554
1554
  ];
1555
- A.opts.dynamicRef && L.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
1555
+ I.opts.dynamicRef && L.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
1556
1556
  const B = (0, e._)`${V}, ${m.object(...L)}`;
1557
1557
  return D !== e.nil ? (0, e._)`${q}.call(${D}, ${B})` : (0, e._)`${q}(${B})`;
1558
1558
  }
@@ -1571,15 +1571,15 @@ function we() {
1571
1571
  const { gen: c, data: m, keyword: _, it: b } = i, E = c.name("valid");
1572
1572
  if (b.allErrors) {
1573
1573
  const q = c.let("valid", !0);
1574
- return A(() => c.assign(q, !1)), q;
1574
+ return I(() => c.assign(q, !1)), q;
1575
1575
  }
1576
- return c.var(E, !0), A(() => c.break()), E;
1577
- function A(q) {
1576
+ return c.var(E, !0), I(() => c.break()), E;
1577
+ function I(q) {
1578
1578
  const D = c.const("len", (0, e._)`${m}.length`);
1579
- c.forRange("i", 0, D, (I) => {
1579
+ c.forRange("i", 0, D, (A) => {
1580
1580
  i.subschema({
1581
1581
  keyword: _,
1582
- dataProp: I,
1582
+ dataProp: A,
1583
1583
  dataPropType: t.Type.Num
1584
1584
  }, E), c.if((0, e.not)(E), q);
1585
1585
  });
@@ -1592,15 +1592,15 @@ function we() {
1592
1592
  throw new Error("ajv implementation error");
1593
1593
  if (m.some((D) => (0, t.alwaysValidSchema)(b, D)) && !b.opts.unevaluated)
1594
1594
  return;
1595
- const A = c.let("valid", !1), q = c.name("_valid");
1596
- c.block(() => m.forEach((D, I) => {
1595
+ const I = c.let("valid", !1), q = c.name("_valid");
1596
+ c.block(() => m.forEach((D, A) => {
1597
1597
  const V = i.subschema({
1598
1598
  keyword: _,
1599
- schemaProp: I,
1599
+ schemaProp: A,
1600
1600
  compositeRule: !0
1601
1601
  }, q);
1602
- c.assign(A, (0, e._)`${A} || ${q}`), i.mergeValidEvaluated(V, q) || c.if((0, e.not)(A));
1603
- })), i.result(A, () => i.reset(), () => i.error(!0));
1602
+ c.assign(I, (0, e._)`${I} || ${q}`), i.mergeValidEvaluated(V, q) || c.if((0, e.not)(I));
1603
+ })), i.result(I, () => i.reset(), () => i.error(!0));
1604
1604
  }
1605
1605
  return re.validateUnion = l, re;
1606
1606
  }
@@ -1608,7 +1608,7 @@ var Gr;
1608
1608
  function Da() {
1609
1609
  if (Gr) return $e;
1610
1610
  Gr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.validateKeywordUsage = $e.validSchemaType = $e.funcKeywordCode = $e.macroKeywordCode = void 0;
1611
- const e = x(), t = Ae(), r = we(), n = Kt();
1611
+ const e = x(), t = Ie(), r = we(), n = Kt();
1612
1612
  function a($, S) {
1613
1613
  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);
1614
1614
  i.opts.validateSchema !== !1 && i.self.validateSchema(c, !0);
@@ -1627,10 +1627,10 @@ function Da() {
1627
1627
  const { gen: g, keyword: f, schema: l, parentSchema: i, $data: c, it: m } = $;
1628
1628
  h(m, S);
1629
1629
  const _ = !c && S.compile ? S.compile.call(m.self, l, i, m) : S.validate, b = y(g, f, _), E = g.let("valid");
1630
- $.block$data(E, A), $.ok((w = S.valid) !== null && w !== void 0 ? w : E);
1631
- function A() {
1630
+ $.block$data(E, I), $.ok((w = S.valid) !== null && w !== void 0 ? w : E);
1631
+ function I() {
1632
1632
  if (S.errors === !1)
1633
- I(), S.modifying && o($), V(() => $.error());
1633
+ A(), S.modifying && o($), V(() => $.error());
1634
1634
  else {
1635
1635
  const L = S.async ? q() : D();
1636
1636
  S.modifying && o($), V(() => u($, L));
@@ -1638,15 +1638,15 @@ function Da() {
1638
1638
  }
1639
1639
  function q() {
1640
1640
  const L = g.let("ruleErrs", null);
1641
- return g.try(() => I((0, e._)`await `), (B) => g.assign(E, !1).if((0, e._)`${B} instanceof ${m.ValidationError}`, () => g.assign(L, (0, e._)`${B}.errors`), () => g.throw(B))), L;
1641
+ return g.try(() => A((0, e._)`await `), (B) => g.assign(E, !1).if((0, e._)`${B} instanceof ${m.ValidationError}`, () => g.assign(L, (0, e._)`${B}.errors`), () => g.throw(B))), L;
1642
1642
  }
1643
1643
  function D() {
1644
1644
  const L = (0, e._)`${b}.errors`;
1645
- return g.assign(L, null), I(e.nil), L;
1645
+ return g.assign(L, null), A(e.nil), L;
1646
1646
  }
1647
- function I(L = S.async ? (0, e._)`await ` : e.nil) {
1648
- const B = m.opts.passContext ? t.default.this : t.default.self, Z = !("compile" in S && !c || S.schema === !1);
1649
- g.assign(E, (0, e._)`${L}${(0, r.callValidateCode)($, b, B, Z)}`, S.modifying);
1647
+ function A(L = S.async ? (0, e._)`await ` : e.nil) {
1648
+ const B = m.opts.passContext ? t.default.this : t.default.self, Q = !("compile" in S && !c || S.schema === !1);
1649
+ g.assign(E, (0, e._)`${L}${(0, r.callValidateCode)($, b, B, Q)}`, S.modifying);
1650
1650
  }
1651
1651
  function V(L) {
1652
1652
  var B;
@@ -1777,10 +1777,10 @@ function Es() {
1777
1777
  return t !== t && r !== r;
1778
1778
  }), ir;
1779
1779
  }
1780
- var or = { exports: {} }, Qr;
1780
+ var or = { exports: {} }, Zr;
1781
1781
  function La() {
1782
- if (Qr) return or.exports;
1783
- Qr = 1;
1782
+ if (Zr) return or.exports;
1783
+ Zr = 1;
1784
1784
  var e = or.exports = function(n, a, s) {
1785
1785
  typeof a == "function" && (s = a, a = {}), s = a.cb || s;
1786
1786
  var o = typeof s == "function" ? s : s.pre || function() {
@@ -1852,10 +1852,10 @@ function La() {
1852
1852
  }
1853
1853
  return or.exports;
1854
1854
  }
1855
- var Zr;
1855
+ var Qr;
1856
1856
  function Bt() {
1857
- if (Zr) return he;
1858
- Zr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.getSchemaRefs = he.resolveUrl = he.normalizeId = he._getFullPath = he.getFullPath = he.inlineRef = void 0;
1857
+ if (Qr) return he;
1858
+ Qr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.getSchemaRefs = he.resolveUrl = he.normalizeId = he._getFullPath = he.getFullPath = he.inlineRef = void 0;
1859
1859
  const e = ee(), t = Es(), r = La(), n = /* @__PURE__ */ new Set([
1860
1860
  "type",
1861
1861
  "format",
@@ -1929,19 +1929,19 @@ function Bt() {
1929
1929
  if (typeof g == "boolean")
1930
1930
  return {};
1931
1931
  const { schemaId: l, uriResolver: i } = this.opts, c = v(g[l] || f), m = { "": c }, _ = h(i, c, !1), b = {}, E = /* @__PURE__ */ new Set();
1932
- return r(g, { allKeys: !0 }, (D, I, V, L) => {
1932
+ return r(g, { allKeys: !0 }, (D, A, V, L) => {
1933
1933
  if (L === void 0)
1934
1934
  return;
1935
- const B = _ + I;
1936
- let Z = m[L];
1937
- typeof D[l] == "string" && (Z = oe.call(this, D[l])), ae.call(this, D.$anchor), ae.call(this, D.$dynamicAnchor), m[I] = Z;
1935
+ const B = _ + A;
1936
+ let Q = m[L];
1937
+ typeof D[l] == "string" && (Q = oe.call(this, D[l])), ae.call(this, D.$anchor), ae.call(this, D.$dynamicAnchor), m[A] = Q;
1938
1938
  function oe(te) {
1939
1939
  const ve = this.opts.uriResolver.resolve;
1940
- if (te = v(Z ? ve(Z, te) : te), E.has(te))
1940
+ if (te = v(Q ? ve(Q, te) : te), E.has(te))
1941
1941
  throw q(te);
1942
1942
  E.add(te);
1943
1943
  let M = this.refs[te];
1944
- return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? A(D, M.schema, te) : te !== v(B) && (te[0] === "#" ? (A(D, b[te], te), b[te] = D) : this.refs[te] = B), te;
1944
+ return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? I(D, M.schema, te) : te !== v(B) && (te[0] === "#" ? (I(D, b[te], te), b[te] = D) : this.refs[te] = B), te;
1945
1945
  }
1946
1946
  function ae(te) {
1947
1947
  if (typeof te == "string") {
@@ -1951,8 +1951,8 @@ function Bt() {
1951
1951
  }
1952
1952
  }
1953
1953
  }), b;
1954
- function A(D, I, V) {
1955
- if (I !== void 0 && !t(D, I))
1954
+ function I(D, A, V) {
1955
+ if (A !== void 0 && !t(D, A))
1956
1956
  throw q(V);
1957
1957
  }
1958
1958
  function q(D) {
@@ -1965,7 +1965,7 @@ var en;
1965
1965
  function Wt() {
1966
1966
  if (en) return Pe;
1967
1967
  en = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.getData = Pe.KeywordCxt = Pe.validateFunctionCode = void 0;
1968
- const e = Ma(), t = Vt(), r = Ps(), n = Vt(), a = Va(), s = Da(), o = za(), u = x(), h = Ae(), y = Bt(), d = ee(), v = Kt();
1968
+ const e = Ma(), t = Vt(), r = Ps(), n = Vt(), a = Va(), s = Da(), o = za(), u = x(), h = Ie(), y = Bt(), d = ee(), v = Kt();
1969
1969
  function $(O) {
1970
1970
  if (_(O) && (E(O), m(O))) {
1971
1971
  f(O);
@@ -1992,7 +1992,7 @@ function Wt() {
1992
1992
  function f(O) {
1993
1993
  const { schema: k, opts: T, gen: z } = O;
1994
1994
  S(O, () => {
1995
- T.$comment && k.$comment && L(O), D(O), z.let(h.default.vErrors, null), z.let(h.default.errors, 0), T.unevaluated && l(O), A(O), B(O);
1995
+ T.$comment && k.$comment && L(O), D(O), z.let(h.default.vErrors, null), z.let(h.default.errors, 0), T.unevaluated && l(O), I(O), B(O);
1996
1996
  });
1997
1997
  }
1998
1998
  function l(O) {
@@ -2023,14 +2023,14 @@ function Wt() {
2023
2023
  }
2024
2024
  function b(O, k) {
2025
2025
  const { schema: T, gen: z, opts: W } = O;
2026
- W.$comment && T.$comment && L(O), I(O), V(O);
2026
+ W.$comment && T.$comment && L(O), A(O), V(O);
2027
2027
  const G = z.const("_errs", h.default.errors);
2028
- A(O, G), z.var(k, (0, u._)`${G} === ${h.default.errors}`);
2028
+ I(O, G), z.var(k, (0, u._)`${G} === ${h.default.errors}`);
2029
2029
  }
2030
2030
  function E(O) {
2031
2031
  (0, d.checkUnknownRules)(O), q(O);
2032
2032
  }
2033
- function A(O, k) {
2033
+ function I(O, k) {
2034
2034
  if (O.opts.jtd)
2035
2035
  return oe(O, [], !1, k);
2036
2036
  const T = (0, t.getSchemaTypes)(O.schema), z = (0, t.coerceAndCheckDataType)(O, T);
@@ -2044,7 +2044,7 @@ function Wt() {
2044
2044
  const { schema: k, opts: T } = O;
2045
2045
  k.default !== void 0 && T.useDefaults && T.strictSchema && (0, d.checkStrictMode)(O, "default is ignored in the schema root");
2046
2046
  }
2047
- function I(O) {
2047
+ function A(O) {
2048
2048
  const k = O.schema[O.opts.schemaId];
2049
2049
  k && (O.baseId = (0, y.resolveUrl)(O.opts.uriResolver, O.baseId, k));
2050
2050
  }
@@ -2063,9 +2063,9 @@ function Wt() {
2063
2063
  }
2064
2064
  function B(O) {
2065
2065
  const { gen: k, schemaEnv: T, validateName: z, ValidationError: W, opts: G } = O;
2066
- T.$async ? k.if((0, u._)`${h.default.errors} === 0`, () => k.return(h.default.data), () => k.throw((0, u._)`new ${W}(${h.default.vErrors})`)) : (k.assign((0, u._)`${z}.errors`, h.default.vErrors), G.unevaluated && Z(O), k.return((0, u._)`${h.default.errors} === 0`));
2066
+ T.$async ? k.if((0, u._)`${h.default.errors} === 0`, () => k.return(h.default.data), () => k.throw((0, u._)`new ${W}(${h.default.vErrors})`)) : (k.assign((0, u._)`${z}.errors`, h.default.vErrors), G.unevaluated && Q(O), k.return((0, u._)`${h.default.errors} === 0`));
2067
2067
  }
2068
- function Z({ gen: O, evaluated: k, props: T, items: z }) {
2068
+ function Q({ gen: O, evaluated: k, props: T, items: z }) {
2069
2069
  T instanceof u.Name && O.assign((0, u._)`${k}.props`, T), z instanceof u.Name && O.assign((0, u._)`${k}.items`, z);
2070
2070
  }
2071
2071
  function oe(O, k, T, z) {
@@ -2286,7 +2286,7 @@ function Pr() {
2286
2286
  return et.default = e, et;
2287
2287
  }
2288
2288
  var tt = {}, rn;
2289
- function Jt() {
2289
+ function Ht() {
2290
2290
  if (rn) return tt;
2291
2291
  rn = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
2292
2292
  const e = Bt();
@@ -2301,7 +2301,7 @@ var ge = {}, nn;
2301
2301
  function Er() {
2302
2302
  if (nn) return ge;
2303
2303
  nn = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.resolveSchema = ge.getCompilingSchema = ge.resolveRef = ge.compileSchema = ge.SchemaEnv = void 0;
2304
- const e = x(), t = Pr(), r = Ae(), n = Bt(), a = ee(), s = Wt();
2304
+ const e = x(), t = Pr(), r = Ie(), n = Bt(), a = ee(), s = Wt();
2305
2305
  class o {
2306
2306
  constructor(l) {
2307
2307
  var i;
@@ -2321,8 +2321,8 @@ function Er() {
2321
2321
  ref: t.default,
2322
2322
  code: (0, e._)`require("ajv/dist/runtime/validation_error").default`
2323
2323
  }));
2324
- const A = b.scopeName("validate");
2325
- f.validateName = A;
2324
+ const I = b.scopeName("validate");
2325
+ f.validateName = I;
2326
2326
  const q = {
2327
2327
  gen: b,
2328
2328
  allErrors: this.opts.allErrors,
@@ -2336,7 +2336,7 @@ function Er() {
2336
2336
  dataTypes: [],
2337
2337
  definedProperties: /* @__PURE__ */ new Set(),
2338
2338
  topSchemaRef: b.scopeValue("schema", this.opts.code.source === !0 ? { ref: f.schema, code: (0, e.stringify)(f.schema) } : { ref: f.schema }),
2339
- validateName: A,
2339
+ validateName: I,
2340
2340
  ValidationError: E,
2341
2341
  schema: f.schema,
2342
2342
  schemaEnv: f,
@@ -2351,21 +2351,21 @@ function Er() {
2351
2351
  let D;
2352
2352
  try {
2353
2353
  this._compilations.add(f), (0, s.validateFunctionCode)(q), b.optimize(this.opts.code.optimize);
2354
- const I = b.toString();
2355
- D = `${b.scopeRefs(r.default.scope)}return ${I}`, this.opts.code.process && (D = this.opts.code.process(D, f));
2354
+ const A = b.toString();
2355
+ D = `${b.scopeRefs(r.default.scope)}return ${A}`, this.opts.code.process && (D = this.opts.code.process(D, f));
2356
2356
  const L = new Function(`${r.default.self}`, `${r.default.scope}`, D)(this, this.scope.get());
2357
- if (this.scope.value(A, { ref: L }), L.errors = null, L.schema = f.schema, L.schemaEnv = f, f.$async && (L.$async = !0), this.opts.code.source === !0 && (L.source = { validateName: A, validateCode: I, scopeValues: b._values }), this.opts.unevaluated) {
2358
- const { props: B, items: Z } = q;
2357
+ if (this.scope.value(I, { ref: L }), L.errors = null, L.schema = f.schema, L.schemaEnv = f, f.$async && (L.$async = !0), this.opts.code.source === !0 && (L.source = { validateName: I, validateCode: A, scopeValues: b._values }), this.opts.unevaluated) {
2358
+ const { props: B, items: Q } = q;
2359
2359
  L.evaluated = {
2360
2360
  props: B instanceof e.Name ? void 0 : B,
2361
- items: Z instanceof e.Name ? void 0 : Z,
2361
+ items: Q instanceof e.Name ? void 0 : Q,
2362
2362
  dynamicProps: B instanceof e.Name,
2363
- dynamicItems: Z instanceof e.Name
2363
+ dynamicItems: Q instanceof e.Name
2364
2364
  }, L.source && (L.source.evaluated = (0, e.stringify)(L.evaluated));
2365
2365
  }
2366
2366
  return f.validate = L, f;
2367
- } catch (I) {
2368
- throw delete f.validate, delete f.validateName, D && this.logger.error("Error compiling schema, function code:", D), I;
2367
+ } catch (A) {
2368
+ throw delete f.validate, delete f.validateName, D && this.logger.error("Error compiling schema, function code:", D), A;
2369
2369
  } finally {
2370
2370
  this._compilations.delete(f);
2371
2371
  }
@@ -2416,8 +2416,8 @@ function Er() {
2416
2416
  }
2417
2417
  if (typeof b?.schema == "object") {
2418
2418
  if (b.validate || u.call(this, b), _ === (0, n.normalizeId)(l)) {
2419
- const { schema: E } = b, { schemaId: A } = this.opts, q = E[A];
2420
- return q && (m = (0, n.resolveUrl)(this.opts.uriResolver, m, q)), new o({ schema: E, schemaId: A, root: f, baseId: m });
2419
+ const { schema: E } = b, { schemaId: I } = this.opts, q = E[I];
2420
+ return q && (m = (0, n.resolveUrl)(this.opts.uriResolver, m, q)), new o({ schema: E, schemaId: I, root: f, baseId: m });
2421
2421
  }
2422
2422
  return g.call(this, i, b);
2423
2423
  }
@@ -2437,10 +2437,10 @@ function Er() {
2437
2437
  for (const E of f.fragment.slice(1).split("/")) {
2438
2438
  if (typeof i == "boolean")
2439
2439
  return;
2440
- const A = i[(0, a.unescapeFragment)(E)];
2441
- if (A === void 0)
2440
+ const I = i[(0, a.unescapeFragment)(E)];
2441
+ if (I === void 0)
2442
2442
  return;
2443
- i = A;
2443
+ i = I;
2444
2444
  const q = typeof i == "object" && i[this.opts.schemaId];
2445
2445
  !w.has(E) && q && (l = (0, n.resolveUrl)(this.opts.uriResolver, l, q));
2446
2446
  }
@@ -2455,13 +2455,13 @@ function Er() {
2455
2455
  }
2456
2456
  return ge;
2457
2457
  }
2458
- 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 = {
2458
+ 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" }] } }, Ha = !1, Ja = {
2459
2459
  $id: Fa,
2460
2460
  description: Ua,
2461
2461
  type: Ka,
2462
2462
  required: Ba,
2463
2463
  properties: Wa,
2464
- additionalProperties: Ja
2464
+ additionalProperties: Ha
2465
2465
  };
2466
2466
  var rt = {}, Be = { exports: {} }, ur, sn;
2467
2467
  function xa() {
@@ -2518,9 +2518,9 @@ function Ga() {
2518
2518
  function E() {
2519
2519
  if (c.length) {
2520
2520
  if (m === !1) {
2521
- const A = n(c);
2522
- if (A !== void 0)
2523
- i.push(A);
2521
+ const I = n(c);
2522
+ if (I !== void 0)
2523
+ i.push(I);
2524
2524
  else
2525
2525
  return l.error = !0, !1;
2526
2526
  }
@@ -2528,8 +2528,8 @@ function Ga() {
2528
2528
  }
2529
2529
  return !0;
2530
2530
  }
2531
- for (let A = 0; A < g.length; A++) {
2532
- const q = g[A];
2531
+ for (let I = 0; I < g.length; I++) {
2532
+ const q = g[I];
2533
2533
  if (!(q === "[" || q === "]"))
2534
2534
  if (q === ":") {
2535
2535
  if (_ === !0 && (b = !0), !E())
@@ -2538,7 +2538,7 @@ function Ga() {
2538
2538
  l.error = !0;
2539
2539
  break;
2540
2540
  }
2541
- A - 1 >= 0 && g[A - 1] === ":" && (_ = !0);
2541
+ I - 1 >= 0 && g[I - 1] === ":" && (_ = !0);
2542
2542
  continue;
2543
2543
  } else if (q === "%") {
2544
2544
  if (!E())
@@ -2668,8 +2668,8 @@ function Xa() {
2668
2668
  function h(i, c) {
2669
2669
  const m = c.scheme || i.scheme || "urn", _ = i.nid.toLowerCase(), b = `${m}:${c.nid || _}`, E = l[b];
2670
2670
  E && (i = E.serialize(i, c));
2671
- const A = i, q = i.nss;
2672
- return A.path = `${_ || c.nid}:${q}`, c.skipEscape = !0, A;
2671
+ const I = i, q = i.nss;
2672
+ return I.path = `${_ || c.nid}:${q}`, c.skipEscape = !0, I;
2673
2673
  }
2674
2674
  function y(i, c) {
2675
2675
  const m = i;
@@ -2787,20 +2787,20 @@ function Ya() {
2787
2787
  const b = f.match(S);
2788
2788
  if (b) {
2789
2789
  if (c.scheme = b[1], c.userinfo = b[3], c.host = b[4], c.port = parseInt(b[5], 10), c.path = b[6] || "", c.query = b[7], c.fragment = b[8], isNaN(c.port) && (c.port = b[5]), c.host) {
2790
- const A = t(c.host);
2791
- if (A.isIPV4 === !1) {
2792
- const q = e(A.host);
2790
+ const I = t(c.host);
2791
+ if (I.isIPV4 === !1) {
2792
+ const q = e(I.host);
2793
2793
  c.host = q.host.toLowerCase(), _ = q.isIPV6;
2794
2794
  } else
2795
- c.host = A.host, _ = !0;
2795
+ c.host = I.host, _ = !0;
2796
2796
  }
2797
2797
  c.scheme === void 0 && c.userinfo === void 0 && c.host === void 0 && c.port === void 0 && c.query === void 0 && !c.path ? c.reference = "same-document" : c.scheme === void 0 ? c.reference = "relative" : c.fragment === void 0 ? c.reference = "absolute" : c.reference = "uri", i.reference && i.reference !== "suffix" && i.reference !== c.reference && (c.error = c.error || "URI is not a " + i.reference + " reference.");
2798
2798
  const E = s[(i.scheme || c.scheme || "").toLowerCase()];
2799
2799
  if (!i.unicodeSupport && (!E || !E.unicodeSupport) && c.host && (i.domainHost || E && E.domainHost) && _ === !1 && $(c.host))
2800
2800
  try {
2801
2801
  c.host = URL.domainToASCII(c.host.toLowerCase());
2802
- } catch (A) {
2803
- c.error = c.error || "Host's domain name can not be converted to ASCII: " + A;
2802
+ } catch (I) {
2803
+ c.error = c.error || "Host's domain name can not be converted to ASCII: " + I;
2804
2804
  }
2805
2805
  (!E || E && !E.skipNormalize) && (m && c.scheme !== void 0 && (c.scheme = unescape(c.scheme)), m && c.host !== void 0 && (c.host = unescape(c.host)), c.path && (c.path = escape(unescape(c.path))), c.fragment && (c.fragment = encodeURI(decodeURIComponent(c.fragment)))), E && E.parse && E.parse(c, i);
2806
2806
  } else
@@ -2819,14 +2819,14 @@ function Ya() {
2819
2819
  return Be.exports = g, Be.exports.default = g, Be.exports.fastUri = g, Be.exports;
2820
2820
  }
2821
2821
  var cn;
2822
- function Qa() {
2822
+ function Za() {
2823
2823
  if (cn) return rt;
2824
2824
  cn = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
2825
2825
  const e = Ya();
2826
2826
  return e.code = 'require("ajv/dist/runtime/uri").default', rt.default = e, rt;
2827
2827
  }
2828
2828
  var ln;
2829
- function Za() {
2829
+ function Qa() {
2830
2830
  return ln || (ln = 1, function(e) {
2831
2831
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2832
2832
  var t = Wt();
@@ -2847,7 +2847,7 @@ function Za() {
2847
2847
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2848
2848
  return r.CodeGen;
2849
2849
  } });
2850
- const n = Pr(), a = Jt(), s = Ss(), o = Er(), u = x(), h = Bt(), y = Vt(), d = ee(), v = Ha, $ = Qa(), S = (M, j) => new RegExp(M, j);
2850
+ const n = Pr(), a = Ht(), s = Ss(), o = Er(), u = x(), h = Bt(), y = Vt(), d = ee(), v = Ja, $ = Za(), S = (M, j) => new RegExp(M, j);
2851
2851
  S.code = "new RegExp";
2852
2852
  const w = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
2853
2853
  "validate",
@@ -2886,14 +2886,14 @@ function Za() {
2886
2886
  }, i = 200;
2887
2887
  function c(M) {
2888
2888
  var j, C, N, p, P, R, F, K, Y, X, O, k, T, z, W, G, ue, be, me, ye, ce, Me, _e, xt, Gt;
2889
- const Ue = M.strict, Xt = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, Ir = Xt === !0 || Xt === void 0 ? 1 : Xt || 0, Cr = (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;
2889
+ const Ue = M.strict, Xt = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, Ar = Xt === !0 || Xt === void 0 ? 1 : Xt || 0, Cr = (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;
2890
2890
  return {
2891
2891
  strictSchema: (R = (P = M.strictSchema) !== null && P !== void 0 ? P : Ue) !== null && R !== void 0 ? R : !0,
2892
2892
  strictNumbers: (K = (F = M.strictNumbers) !== null && F !== void 0 ? F : Ue) !== null && K !== void 0 ? K : !0,
2893
2893
  strictTypes: (X = (Y = M.strictTypes) !== null && Y !== void 0 ? Y : Ue) !== null && X !== void 0 ? X : "log",
2894
2894
  strictTuples: (k = (O = M.strictTuples) !== null && O !== void 0 ? O : Ue) !== null && k !== void 0 ? k : "log",
2895
2895
  strictRequired: (z = (T = M.strictRequired) !== null && T !== void 0 ? T : Ue) !== null && z !== void 0 ? z : !1,
2896
- code: M.code ? { ...M.code, optimize: Ir, regExp: Cr } : { optimize: Ir, regExp: Cr },
2896
+ code: M.code ? { ...M.code, optimize: Ar, regExp: Cr } : { optimize: Ar, regExp: Cr },
2897
2897
  loopRequired: (W = M.loopRequired) !== null && W !== void 0 ? W : i,
2898
2898
  loopEnum: (G = M.loopEnum) !== null && G !== void 0 ? G : i,
2899
2899
  meta: (ue = M.meta) !== null && ue !== void 0 ? ue : !0,
@@ -2914,7 +2914,7 @@ function Za() {
2914
2914
  const { es5: C, lines: N } = this.opts.code;
2915
2915
  this.scope = new u.ValueScope({ scope: {}, prefixes: g, es5: C, lines: N }), this.logger = V(j.logger);
2916
2916
  const p = j.validateFormats;
2917
- j.validateFormats = !1, this.RULES = (0, s.getRules)(), _.call(this, f, j, "NOT SUPPORTED"), _.call(this, l, j, "DEPRECATED", "warn"), this._metaOpts = D.call(this), j.formats && A.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), j.keywords && q.call(this, j.keywords), typeof j.meta == "object" && this.addMetaSchema(j.meta), E.call(this), j.validateFormats = p;
2917
+ j.validateFormats = !1, this.RULES = (0, s.getRules)(), _.call(this, f, j, "NOT SUPPORTED"), _.call(this, l, j, "DEPRECATED", "warn"), this._metaOpts = D.call(this), j.formats && I.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), j.keywords && q.call(this, j.keywords), typeof j.meta == "object" && this.addMetaSchema(j.meta), E.call(this), j.validateFormats = p;
2918
2918
  }
2919
2919
  _addVocabularies() {
2920
2920
  this.addKeyword("$async");
@@ -3076,14 +3076,14 @@ function Za() {
3076
3076
  } else
3077
3077
  throw new Error("invalid addKeywords parameters");
3078
3078
  if (B.call(this, N, C), !C)
3079
- return (0, d.eachItem)(N, (P) => Z.call(this, P)), this;
3079
+ return (0, d.eachItem)(N, (P) => Q.call(this, P)), this;
3080
3080
  ae.call(this, C);
3081
3081
  const p = {
3082
3082
  ...C,
3083
3083
  type: (0, y.getJSONTypes)(C.type),
3084
3084
  schemaType: (0, y.getJSONTypes)(C.schemaType)
3085
3085
  };
3086
- return (0, d.eachItem)(N, p.type.length === 0 ? (P) => Z.call(this, P, p) : (P) => p.type.forEach((R) => Z.call(this, P, p, R))), this;
3086
+ return (0, d.eachItem)(N, p.type.length === 0 ? (P) => Q.call(this, P, p) : (P) => p.type.forEach((R) => Q.call(this, P, p, R))), this;
3087
3087
  }
3088
3088
  getKeyword(j) {
3089
3089
  const C = this.RULES.all[j];
@@ -3186,7 +3186,7 @@ function Za() {
3186
3186
  for (const j in M)
3187
3187
  this.addSchema(M[j], j);
3188
3188
  }
3189
- function A() {
3189
+ function I() {
3190
3190
  for (const M in this.opts.formats) {
3191
3191
  const j = this.opts.formats[M];
3192
3192
  j && this.addFormat(M, j);
@@ -3209,13 +3209,13 @@ function Za() {
3209
3209
  delete M[j];
3210
3210
  return M;
3211
3211
  }
3212
- const I = { log() {
3212
+ const A = { log() {
3213
3213
  }, warn() {
3214
3214
  }, error() {
3215
3215
  } };
3216
3216
  function V(M) {
3217
3217
  if (M === !1)
3218
- return I;
3218
+ return A;
3219
3219
  if (M === void 0)
3220
3220
  return console;
3221
3221
  if (M.log && M.warn && M.error)
@@ -3233,7 +3233,7 @@ function Za() {
3233
3233
  }), !!j && j.$data && !("code" in j || "validate" in j))
3234
3234
  throw new Error('$data keyword must have "code" or "validate" function');
3235
3235
  }
3236
- function Z(M, j, C) {
3236
+ function Q(M, j, C) {
3237
3237
  var N;
3238
3238
  const p = j?.post;
3239
3239
  if (C && p)
@@ -3284,7 +3284,7 @@ var Ne = {}, dn;
3284
3284
  function ti() {
3285
3285
  if (dn) return Ne;
3286
3286
  dn = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.callRef = Ne.getValidate = void 0;
3287
- const e = Jt(), t = we(), r = x(), n = Ae(), a = Er(), s = ee(), o = {
3287
+ const e = Ht(), t = we(), r = x(), n = Ie(), a = Er(), s = ee(), o = {
3288
3288
  keyword: "$ref",
3289
3289
  schemaType: "string",
3290
3290
  code(y) {
@@ -3304,15 +3304,15 @@ function ti() {
3304
3304
  return h(y, (0, r._)`${E}.validate`, i, i.$async);
3305
3305
  }
3306
3306
  function _(E) {
3307
- const A = u(y, E);
3308
- h(y, A, E, E.$async);
3307
+ const I = u(y, E);
3308
+ h(y, I, E, E.$async);
3309
3309
  }
3310
3310
  function b(E) {
3311
- const A = d.scopeValue("schema", f.code.source === !0 ? { ref: E, code: (0, r.stringify)(E) } : { ref: E }), q = d.name("valid"), D = y.subschema({
3311
+ const I = d.scopeValue("schema", f.code.source === !0 ? { ref: E, code: (0, r.stringify)(E) } : { ref: E }), q = d.name("valid"), D = y.subschema({
3312
3312
  schema: E,
3313
3313
  dataTypes: [],
3314
3314
  schemaPath: r.nil,
3315
- topSchemaRef: A,
3315
+ topSchemaRef: I,
3316
3316
  errSchemaPath: v
3317
3317
  }, q);
3318
3318
  y.mergeEvaluated(D), y.ok(q);
@@ -3333,22 +3333,22 @@ function ti() {
3333
3333
  const E = S.let("valid");
3334
3334
  S.try(() => {
3335
3335
  S.code((0, r._)`await ${(0, t.callValidateCode)(y, d, i)}`), b(d), g || S.assign(E, !0);
3336
- }, (A) => {
3337
- S.if((0, r._)`!(${A} instanceof ${w.ValidationError})`, () => S.throw(A)), _(A), g || S.assign(E, !1);
3336
+ }, (I) => {
3337
+ S.if((0, r._)`!(${I} instanceof ${w.ValidationError})`, () => S.throw(I)), _(I), g || S.assign(E, !1);
3338
3338
  }), y.ok(E);
3339
3339
  }
3340
3340
  function m() {
3341
3341
  y.result((0, t.callValidateCode)(y, d, i), () => b(d), () => _(d));
3342
3342
  }
3343
3343
  function _(E) {
3344
- const A = (0, r._)`${E}.errors`;
3345
- S.assign(n.default.vErrors, (0, r._)`${n.default.vErrors} === null ? ${A} : ${n.default.vErrors}.concat(${A})`), S.assign(n.default.errors, (0, r._)`${n.default.vErrors}.length`);
3344
+ const I = (0, r._)`${E}.errors`;
3345
+ S.assign(n.default.vErrors, (0, r._)`${n.default.vErrors} === null ? ${I} : ${n.default.vErrors}.concat(${I})`), S.assign(n.default.errors, (0, r._)`${n.default.vErrors}.length`);
3346
3346
  }
3347
3347
  function b(E) {
3348
- var A;
3348
+ var I;
3349
3349
  if (!w.opts.unevaluated)
3350
3350
  return;
3351
- const q = (A = v?.validate) === null || A === void 0 ? void 0 : A.evaluated;
3351
+ const q = (I = v?.validate) === null || I === void 0 ? void 0 : I.evaluated;
3352
3352
  if (w.props !== !0)
3353
3353
  if (q && !q.dynamicProps)
3354
3354
  q.props !== void 0 && (w.props = s.mergeEvaluated.props(S, q.props, w.props));
@@ -3621,11 +3621,11 @@ function fi() {
3621
3621
  return g.length > 0 && !g.some((m) => m === "object" || m === "array");
3622
3622
  }
3623
3623
  function i(m, _) {
3624
- const b = u.name("item"), E = (0, e.checkDataTypes)(g, b, S.opts.strictNumbers, e.DataType.Wrong), A = u.const("indices", (0, t._)`{}`);
3624
+ const b = u.name("item"), E = (0, e.checkDataTypes)(g, b, S.opts.strictNumbers, e.DataType.Wrong), I = u.const("indices", (0, t._)`{}`);
3625
3625
  u.for((0, t._)`;${m}--;`, () => {
3626
- u.let(b, (0, t._)`${h}[${m}]`), u.if(E, (0, t._)`continue`), g.length > 1 && u.if((0, t._)`typeof ${b} == "string"`, (0, t._)`${b} += "_"`), u.if((0, t._)`typeof ${A}[${b}] == "number"`, () => {
3627
- u.assign(_, (0, t._)`${A}[${b}]`), o.error(), u.assign(w, !1).break();
3628
- }).code((0, t._)`${A}[${b}] = ${m}`);
3626
+ u.let(b, (0, t._)`${h}[${m}]`), u.if(E, (0, t._)`continue`), g.length > 1 && u.if((0, t._)`typeof ${b} == "string"`, (0, t._)`${b} += "_"`), u.if((0, t._)`typeof ${I}[${b}] == "number"`, () => {
3627
+ u.assign(_, (0, t._)`${I}[${b}]`), o.error(), u.assign(w, !1).break();
3628
+ }).code((0, t._)`${I}[${b}] = ${m}`);
3629
3629
  });
3630
3630
  }
3631
3631
  function c(m, _) {
@@ -3831,10 +3831,10 @@ function yi() {
3831
3831
  };
3832
3832
  return $t.default = s, $t;
3833
3833
  }
3834
- var wt = {}, An;
3834
+ var wt = {}, In;
3835
3835
  function gi() {
3836
- if (An) return wt;
3837
- An = 1, Object.defineProperty(wt, "__esModule", { value: !0 });
3836
+ if (In) return wt;
3837
+ In = 1, Object.defineProperty(wt, "__esModule", { value: !0 });
3838
3838
  const e = x(), t = ee(), n = {
3839
3839
  keyword: "contains",
3840
3840
  type: "array",
@@ -3888,9 +3888,9 @@ function gi() {
3888
3888
  };
3889
3889
  return wt.default = n, wt;
3890
3890
  }
3891
- var fr = {}, In;
3891
+ var fr = {}, An;
3892
3892
  function vi() {
3893
- return In || (In = 1, function(e) {
3893
+ return An || (An = 1, function(e) {
3894
3894
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3895
3895
  const t = x(), r = ee(), n = we();
3896
3896
  e.error = {
@@ -3997,7 +3997,7 @@ var Pt = {}, Tn;
3997
3997
  function ks() {
3998
3998
  if (Tn) return Pt;
3999
3999
  Tn = 1, Object.defineProperty(Pt, "__esModule", { value: !0 });
4000
- const e = we(), t = x(), r = Ae(), n = ee(), s = {
4000
+ const e = we(), t = x(), r = Ie(), n = ee(), s = {
4001
4001
  keyword: "additionalProperties",
4002
4002
  type: ["object"],
4003
4003
  schemaType: ["boolean", "object"],
@@ -4024,10 +4024,10 @@ function ks() {
4024
4024
  function i(b) {
4025
4025
  let E;
4026
4026
  if (g.length > 8) {
4027
- const A = (0, n.schemaRefOrVal)($, y.properties, "properties");
4028
- E = (0, e.isOwnProperty)(u, A, b);
4029
- } else g.length ? E = (0, t.or)(...g.map((A) => (0, t._)`${b} === ${A}`)) : E = t.nil;
4030
- return f.length && (E = (0, t.or)(E, ...f.map((A) => (0, t._)`${(0, e.usePattern)(o, A)}.test(${b})`))), (0, t.not)(E);
4027
+ const I = (0, n.schemaRefOrVal)($, y.properties, "properties");
4028
+ E = (0, e.isOwnProperty)(u, I, b);
4029
+ } else g.length ? E = (0, t.or)(...g.map((I) => (0, t._)`${b} === ${I}`)) : E = t.nil;
4030
+ return f.length && (E = (0, t.or)(E, ...f.map((I) => (0, t._)`${(0, e.usePattern)(o, I)}.test(${b})`))), (0, t.not)(E);
4031
4031
  }
4032
4032
  function c(b) {
4033
4033
  u.code((0, t._)`delete ${d}[${b}]`);
@@ -4048,13 +4048,13 @@ function ks() {
4048
4048
  })) : (_(b, E), S || u.if((0, t.not)(E), () => u.break()));
4049
4049
  }
4050
4050
  }
4051
- function _(b, E, A) {
4051
+ function _(b, E, I) {
4052
4052
  const q = {
4053
4053
  keyword: "additionalProperties",
4054
4054
  dataProp: b,
4055
4055
  dataPropType: n.Type.Str
4056
4056
  };
4057
- A === !1 && Object.assign(q, {
4057
+ I === !1 && Object.assign(q, {
4058
4058
  compositeRule: !0,
4059
4059
  createErrors: !1,
4060
4060
  allErrors: !1
@@ -4237,10 +4237,10 @@ function Ei() {
4237
4237
  };
4238
4238
  return Nt.default = t, Nt;
4239
4239
  }
4240
- var At = {}, Fn;
4240
+ var It = {}, Fn;
4241
4241
  function Oi() {
4242
- if (Fn) return At;
4243
- Fn = 1, Object.defineProperty(At, "__esModule", { value: !0 });
4242
+ if (Fn) return It;
4243
+ Fn = 1, Object.defineProperty(It, "__esModule", { value: !0 });
4244
4244
  const e = x(), t = ee(), n = {
4245
4245
  keyword: "if",
4246
4246
  schemaType: ["object", "boolean"],
@@ -4282,12 +4282,12 @@ function Oi() {
4282
4282
  const u = s.schema[o];
4283
4283
  return u !== void 0 && !(0, t.alwaysValidSchema)(s, u);
4284
4284
  }
4285
- return At.default = n, At;
4285
+ return It.default = n, It;
4286
4286
  }
4287
- var It = {}, Un;
4287
+ var At = {}, Un;
4288
4288
  function ji() {
4289
- if (Un) return It;
4290
- Un = 1, Object.defineProperty(It, "__esModule", { value: !0 });
4289
+ if (Un) return At;
4290
+ Un = 1, Object.defineProperty(At, "__esModule", { value: !0 });
4291
4291
  const e = ee(), t = {
4292
4292
  keyword: ["then", "else"],
4293
4293
  schemaType: ["object", "boolean"],
@@ -4295,7 +4295,7 @@ function ji() {
4295
4295
  n.if === void 0 && (0, e.checkStrictMode)(a, `"${r}" without "if" is ignored`);
4296
4296
  }
4297
4297
  };
4298
- return It.default = t, It;
4298
+ return At.default = t, At;
4299
4299
  }
4300
4300
  var Kn;
4301
4301
  function ki() {
@@ -4350,8 +4350,8 @@ function Ri() {
4350
4350
  return v.strictSchema === !1 ? e.nil : (0, e._)`${y} && !${m}`;
4351
4351
  }
4352
4352
  function b() {
4353
- const E = S.$async ? (0, e._)`(${i}.async ? await ${m}(${o}) : ${m}(${o}))` : (0, e._)`${m}(${o})`, A = (0, e._)`(typeof ${m} == "function" ? ${E} : ${m}.test(${o}))`;
4354
- return (0, e._)`${m} && ${m} !== true && ${c} === ${a} && !${A}`;
4353
+ const E = S.$async ? (0, e._)`(${i}.async ? await ${m}(${o}) : ${m}(${o}))` : (0, e._)`${m}(${o})`, I = (0, e._)`(typeof ${m} == "function" ? ${E} : ${m}.test(${o}))`;
4354
+ return (0, e._)`${m} && ${m} !== true && ${c} === ${a} && !${I}`;
4355
4355
  }
4356
4356
  }
4357
4357
  function f() {
@@ -4366,17 +4366,17 @@ function Ri() {
4366
4366
  i === a && n.pass(E());
4367
4367
  function _() {
4368
4368
  if (v.strictSchema === !1) {
4369
- w.logger.warn(A());
4369
+ w.logger.warn(I());
4370
4370
  return;
4371
4371
  }
4372
- throw new Error(A());
4373
- function A() {
4372
+ throw new Error(I());
4373
+ function I() {
4374
4374
  return `unknown format "${h}" ignored in schema at path "${$}"`;
4375
4375
  }
4376
4376
  }
4377
- function b(A) {
4378
- const q = A instanceof RegExp ? (0, e.regexpCode)(A) : v.code.formats ? (0, e._)`${v.code.formats}${(0, e.getProperty)(h)}` : void 0, D = s.scopeValue("formats", { key: h, ref: A, code: q });
4379
- return typeof A == "object" && !(A instanceof RegExp) ? [A.type || "string", A.validate, (0, e._)`${D}.validate`] : ["string", A, D];
4377
+ function b(I) {
4378
+ const q = I instanceof RegExp ? (0, e.regexpCode)(I) : v.code.formats ? (0, e._)`${v.code.formats}${(0, e.getProperty)(h)}` : void 0, D = s.scopeValue("formats", { key: h, ref: I, code: q });
4379
+ return typeof I == "object" && !(I instanceof RegExp) ? [I.type || "string", I.validate, (0, e._)`${D}.validate`] : ["string", I, D];
4380
4380
  }
4381
4381
  function E() {
4382
4382
  if (typeof l == "object" && !(l instanceof RegExp) && l.async) {
@@ -4398,9 +4398,9 @@ function Ni() {
4398
4398
  const t = [Ri().default];
4399
4399
  return Ct.default = t, Ct;
4400
4400
  }
4401
- var Te = {}, Jn;
4402
- function Ai() {
4403
- return Jn || (Jn = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.contentVocabulary = Te.metadataVocabulary = void 0, Te.metadataVocabulary = [
4401
+ var Te = {}, Hn;
4402
+ function Ii() {
4403
+ return Hn || (Hn = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.contentVocabulary = Te.metadataVocabulary = void 0, Te.metadataVocabulary = [
4404
4404
  "title",
4405
4405
  "description",
4406
4406
  "default",
@@ -4414,11 +4414,11 @@ function Ai() {
4414
4414
  "contentSchema"
4415
4415
  ]), Te;
4416
4416
  }
4417
- var Hn;
4418
- function Ii() {
4419
- if (Hn) return nt;
4420
- Hn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
4421
- const e = ri(), t = pi(), r = ki(), n = Ni(), a = Ai(), s = [
4417
+ var Jn;
4418
+ function Ai() {
4419
+ if (Jn) return nt;
4420
+ Jn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
4421
+ const e = ri(), t = pi(), r = ki(), n = Ni(), a = Ii(), s = [
4422
4422
  e.default,
4423
4423
  t.default,
4424
4424
  (0, r.default)(),
@@ -4441,7 +4441,7 @@ var Gn;
4441
4441
  function Ti() {
4442
4442
  if (Gn) return qt;
4443
4443
  Gn = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
4444
- const e = x(), t = Ci(), r = Er(), n = Jt(), a = ee(), o = {
4444
+ const e = x(), t = Ci(), r = Er(), n = Ht(), a = ee(), o = {
4445
4445
  keyword: "discriminator",
4446
4446
  type: "object",
4447
4447
  schemaType: "object",
@@ -4475,10 +4475,10 @@ function Ti() {
4475
4475
  }
4476
4476
  function c() {
4477
4477
  var m;
4478
- const _ = {}, b = A(v);
4478
+ const _ = {}, b = I(v);
4479
4479
  let E = !0;
4480
- for (let I = 0; I < S.length; I++) {
4481
- let V = S[I];
4480
+ for (let A = 0; A < S.length; A++) {
4481
+ let V = S[A];
4482
4482
  if (V?.$ref && !(0, a.schemaHasRulesButRef)(V, $.self.RULES)) {
4483
4483
  const B = V.$ref;
4484
4484
  if (V = r.resolveRef.call($.self, $.schemaEnv.root, $.baseId, B), V instanceof r.SchemaEnv && (V = V.schema), V === void 0)
@@ -4487,27 +4487,27 @@ function Ti() {
4487
4487
  const L = (m = V?.properties) === null || m === void 0 ? void 0 : m[w];
4488
4488
  if (typeof L != "object")
4489
4489
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${w}"`);
4490
- E = E && (b || A(V)), q(L, I);
4490
+ E = E && (b || I(V)), q(L, A);
4491
4491
  }
4492
4492
  if (!E)
4493
4493
  throw new Error(`discriminator: "${w}" must be required`);
4494
4494
  return _;
4495
- function A({ required: I }) {
4496
- return Array.isArray(I) && I.includes(w);
4495
+ function I({ required: A }) {
4496
+ return Array.isArray(A) && A.includes(w);
4497
4497
  }
4498
- function q(I, V) {
4499
- if (I.const)
4500
- D(I.const, V);
4501
- else if (I.enum)
4502
- for (const L of I.enum)
4498
+ function q(A, V) {
4499
+ if (A.const)
4500
+ D(A.const, V);
4501
+ else if (A.enum)
4502
+ for (const L of A.enum)
4503
4503
  D(L, V);
4504
4504
  else
4505
4505
  throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`);
4506
4506
  }
4507
- function D(I, V) {
4508
- if (typeof I != "string" || I in _)
4507
+ function D(A, V) {
4508
+ if (typeof A != "string" || A in _)
4509
4509
  throw new Error(`discriminator: "${w}" values must be unique strings`);
4510
- _[I] = V;
4510
+ _[A] = V;
4511
4511
  }
4512
4512
  }
4513
4513
  }
@@ -4527,7 +4527,7 @@ var Xn;
4527
4527
  function Rs() {
4528
4528
  return Xn || (Xn = 1, function(e, t) {
4529
4529
  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;
4530
- const r = Za(), n = Ii(), a = Ti(), s = Fi, o = ["/properties"], u = "http://json-schema.org/draft-07/schema";
4530
+ const r = Qa(), n = Ai(), a = Ti(), s = Fi, o = ["/properties"], u = "http://json-schema.org/draft-07/schema";
4531
4531
  class h extends r.default {
4532
4532
  _addVocabularies() {
4533
4533
  super._addVocabularies(), n.default.forEach((w) => this.addVocabulary(w)), this.opts.discriminator && this.addKeyword(a.default);
@@ -4565,11 +4565,11 @@ function Rs() {
4565
4565
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
4566
4566
  return v.default;
4567
4567
  } });
4568
- var $ = Jt();
4568
+ var $ = Ht();
4569
4569
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
4570
4570
  return $.default;
4571
4571
  } });
4572
- }(Qe, Qe.exports)), Qe.exports;
4572
+ }(Ze, Ze.exports)), Ze.exports;
4573
4573
  }
4574
4574
  var Yn;
4575
4575
  function Ui() {
@@ -4626,9 +4626,9 @@ function Ui() {
4626
4626
  e.default = o;
4627
4627
  }(er)), er;
4628
4628
  }
4629
- var Qn;
4629
+ var Zn;
4630
4630
  function Ki() {
4631
- return Qn || (Qn = 1, function(e, t) {
4631
+ return Zn || (Zn = 1, function(e, t) {
4632
4632
  Object.defineProperty(t, "__esModule", { value: !0 });
4633
4633
  const r = qa(), n = Ui(), a = x(), s = new a.Name("fullFormats"), o = new a.Name("fastFormats"), u = (y, d = { keywords: !0 }) => {
4634
4634
  if (Array.isArray(d))
@@ -4656,7 +4656,7 @@ const Wi = /* @__PURE__ */ ps(Bi);
4656
4656
  function Ns(e) {
4657
4657
  return e.split("/").slice(1).map((t) => t.replace(/~1/g, "/").replace(/~0/g, "~"));
4658
4658
  }
4659
- function Ji(e) {
4659
+ function Hi(e) {
4660
4660
  const t = Ns(e.instancePath || "");
4661
4661
  if (e.keyword === "required") {
4662
4662
  const r = e.params.missingProperty;
@@ -4672,19 +4672,19 @@ function Ji(e) {
4672
4672
  }
4673
4673
  return t.length > 0 ? t : void 0;
4674
4674
  }
4675
- function Hi(e) {
4675
+ function Ji(e) {
4676
4676
  return e.message ?? `${e.keyword} validation failed`;
4677
4677
  }
4678
4678
  function xi(e) {
4679
4679
  return e.reduce((t, r) => {
4680
- const n = Ji(r);
4680
+ const n = Hi(r);
4681
4681
  if (n == null) return t;
4682
4682
  let a = t;
4683
4683
  for (const s of n) {
4684
4684
  const o = s;
4685
4685
  a.dependencies == null && (a.dependencies = {}), a.dependencies[o] == null && (a.dependencies[o] = {}), a = a.dependencies[o];
4686
4686
  }
4687
- return a.message = Hi(r), t;
4687
+ return a.message = Ji(r), t;
4688
4688
  }, {});
4689
4689
  }
4690
4690
  function jr(e) {
@@ -4723,13 +4723,13 @@ function kr(e, t) {
4723
4723
  const a = e.compile(t);
4724
4724
  return r.set(t, a), a;
4725
4725
  }
4726
- async function Zn(e, t, r) {
4726
+ async function Qn(e, t, r) {
4727
4727
  const n = (await (() => {
4728
4728
  switch (e) {
4729
4729
  case "2020-12":
4730
- return import("./2020-kK0rQWn9.js").then((s) => s._);
4730
+ return import("./2020-CFnlLHs-.js").then((s) => s._);
4731
4731
  case "2019-09":
4732
- return import("./2019-JwkYbae8.js").then((s) => s._);
4732
+ return import("./2019-DrrKn54V.js").then((s) => s._);
4733
4733
  case "draft-07":
4734
4734
  return Promise.resolve().then(() => iu);
4735
4735
  }
@@ -4787,7 +4787,7 @@ function es(e) {
4787
4787
  };
4788
4788
  return r(e), [...t];
4789
4789
  }
4790
- function As(e, t) {
4790
+ function Is(e, t) {
4791
4791
  for (const r of t) {
4792
4792
  const n = r.$id;
4793
4793
  if (typeof n == "string" && n.length > 0 && !e.getSchema(n))
@@ -4797,7 +4797,7 @@ function As(e, t) {
4797
4797
  }
4798
4798
  }
4799
4799
  }
4800
- async function Qi(e, t, r, n) {
4800
+ async function Zi(e, t, r, n) {
4801
4801
  if (r == null) return null;
4802
4802
  const a = /* @__PURE__ */ new Set();
4803
4803
  if (n && n.length > 0)
@@ -4823,7 +4823,7 @@ async function Qi(e, t, r, n) {
4823
4823
  const $ = await r(v);
4824
4824
  if (!Array.isArray($) || $.length === 0)
4825
4825
  return null;
4826
- As(e, $);
4826
+ Is(e, $);
4827
4827
  for (const S of $) {
4828
4828
  const w = S.$id;
4829
4829
  typeof w == "string" && w.length > 0 && (a.add(w), s.push(S));
@@ -4834,7 +4834,7 @@ async function Qi(e, t, r, n) {
4834
4834
  }
4835
4835
  return "refResolver reached iteration limit while resolving external $refs";
4836
4836
  }
4837
- async function Zi(e, t) {
4837
+ async function Qi(e, t) {
4838
4838
  try {
4839
4839
  const r = Xi(e.$schema), n = t?.sanitizeAdditional === !1 ? !1 : t?.sanitizeAdditional ?? !1, a = (d) => typeof d == "string" && d.endsWith("#") ? d.slice(0, -1) : d ?? "", s = e.$id, o = a(s);
4840
4840
  if (o !== "" && (/* @__PURE__ */ new Set([
@@ -4842,7 +4842,7 @@ async function Zi(e, t) {
4842
4842
  "https://json-schema.org/draft/2019-09/schema",
4843
4843
  "http://json-schema.org/draft-07/schema"
4844
4844
  ])).has(o)) {
4845
- const d = await Zn(r, n, !1), v = mr(
4845
+ const d = await Qn(r, n, !1), v = mr(
4846
4846
  e
4847
4847
  );
4848
4848
  try {
@@ -4852,9 +4852,9 @@ async function Zi(e, t) {
4852
4852
  const $ = d.getSchema(s ?? o) ?? d.compile(v);
4853
4853
  return { ok: !0, value: { ajv: d, validate: $ } };
4854
4854
  }
4855
- const h = await Zn(r, n, !0);
4856
- if (t?.externalSchemas && t.externalSchemas.length > 0 && As(h, t.externalSchemas), t?.refResolver) {
4857
- const d = await Qi(
4855
+ const h = await Qn(r, n, !0);
4856
+ if (t?.externalSchemas && t.externalSchemas.length > 0 && Is(h, t.externalSchemas), t?.refResolver) {
4857
+ const d = await Zi(
4858
4858
  h,
4859
4859
  e,
4860
4860
  t.refResolver,
@@ -5175,7 +5175,7 @@ function no(e, t, r, n = []) {
5175
5175
  }
5176
5176
  }
5177
5177
  function so(e, t, r, n = []) {
5178
- const a = [], s = [], o = Is(e, t, r);
5178
+ const a = [], s = [], o = As(e, t, r);
5179
5179
  o && a.push(o);
5180
5180
  const u = Array.isArray(e.required) ? [...e.required] : [];
5181
5181
  if (typeof t == "object" && t != null && !Array.isArray(t)) {
@@ -5208,7 +5208,7 @@ function so(e, t, r, n = []) {
5208
5208
  }
5209
5209
  return s.push(...d), { effective: y, conflicts: s };
5210
5210
  }
5211
- function Is(e, t, r) {
5211
+ function As(e, t, r) {
5212
5212
  if (!r || !e.if || typeof e.if != "object") return null;
5213
5213
  try {
5214
5214
  if (kr(r, e.if)(t)) {
@@ -5224,7 +5224,7 @@ function Is(e, t, r) {
5224
5224
  }
5225
5225
  return null;
5226
5226
  }
5227
- function Je(e, t, r) {
5227
+ function He(e, t, r) {
5228
5228
  const n = /* @__PURE__ */ new Set();
5229
5229
  if (!t || typeof t != "object")
5230
5230
  return n;
@@ -5253,15 +5253,15 @@ function Je(e, t, r) {
5253
5253
  });
5254
5254
  }
5255
5255
  e.allOf && e.allOf.forEach((o) => {
5256
- typeof o == "object" && Je(o, t, r).forEach((h) => n.add(h));
5256
+ typeof o == "object" && He(o, t, r).forEach((h) => n.add(h));
5257
5257
  });
5258
- const a = Is(e, t, r);
5259
- a && Je(a, t, r).forEach((u) => n.add(u));
5258
+ const a = As(e, t, r);
5259
+ a && He(a, t, r).forEach((u) => n.add(u));
5260
5260
  const s = e.dependentSchemas;
5261
5261
  return s && Object.keys(s).forEach((o) => {
5262
5262
  if (o in t) {
5263
5263
  const u = s[o];
5264
- typeof u == "object" && Je(
5264
+ typeof u == "object" && He(
5265
5265
  u,
5266
5266
  t,
5267
5267
  r
@@ -5270,7 +5270,7 @@ function Je(e, t, r) {
5270
5270
  }), e.dependencies && Object.keys(e.dependencies).forEach((o) => {
5271
5271
  if (o in t) {
5272
5272
  const u = e.dependencies[o];
5273
- typeof u == "object" && !Array.isArray(u) && Je(u, t, r).forEach((y) => n.add(y));
5273
+ typeof u == "object" && !Array.isArray(u) && He(u, t, r).forEach((y) => n.add(y));
5274
5274
  }
5275
5275
  }), n;
5276
5276
  }
@@ -5435,7 +5435,7 @@ function Ms(e) {
5435
5435
  if (t != null && (typeof t == "string" || typeof t == "object" && t !== null))
5436
5436
  return t;
5437
5437
  }
5438
- function Ar(e, t) {
5438
+ function Ir(e, t) {
5439
5439
  if (typeof e == "boolean") return;
5440
5440
  const r = Ms(e);
5441
5441
  if (typeof r == "object" && typeof r.widget == "string")
@@ -5531,7 +5531,7 @@ function lo(e) {
5531
5531
  pattern: t.pattern,
5532
5532
  minLength: t.minLength,
5533
5533
  maxLength: t.maxLength
5534
- }, n = Ar(t, e.name), a = n?.widget;
5534
+ }, n = Ir(t, e.name), a = n?.widget;
5535
5535
  if (a != null)
5536
5536
  switch (a) {
5537
5537
  case "binary":
@@ -5591,7 +5591,7 @@ function ts({
5591
5591
  const n = lo(e);
5592
5592
  switch (n?.format) {
5593
5593
  case "email":
5594
- return Q(ga, {
5594
+ return Z(ga, {
5595
5595
  ...t,
5596
5596
  controller: le(r)
5597
5597
  });
@@ -5611,32 +5611,32 @@ function ts({
5611
5611
  });
5612
5612
  case "markdown":
5613
5613
  return vs(import("./milkdown-input-BI5TwGax.js").then((a) => a.K), {
5614
- then: ({ MilkdownInput: a }) => Q(a, {
5614
+ then: ({ MilkdownInput: a }) => Z(a, {
5615
5615
  ...t,
5616
5616
  controller: Le(r)
5617
5617
  })
5618
5618
  });
5619
5619
  case "time":
5620
- return Q(Ve, {
5620
+ return Z(Ve, {
5621
5621
  ...t,
5622
5622
  controller: le(r),
5623
5623
  placeholder: "HH:MM:SS"
5624
5624
  });
5625
5625
  case "password":
5626
- return Q(pa, {
5626
+ return Z(pa, {
5627
5627
  ...t,
5628
5628
  controller: le(r)
5629
5629
  });
5630
5630
  case "binary": {
5631
5631
  const { definition: a } = e, s = typeof a == "object" ? a["x:ui"] : void 0;
5632
- return n.mediaType && (n.mediaType.startsWith("image/") || n.mediaType.startsWith("video/") || n.mediaType.startsWith("audio/") || n.mediaType === "application/pdf" || s?.preferFileUpload === !0) ? Q(fo, {
5632
+ return n.mediaType && (n.mediaType.startsWith("image/") || n.mediaType.startsWith("video/") || n.mediaType.startsWith("audio/") || n.mediaType === "application/pdf" || s?.preferFileUpload === !0) ? Z(fo, {
5633
5633
  ...t,
5634
5634
  controller: le(r),
5635
5635
  mode: "compact",
5636
5636
  accept: n.mediaType || "*/*",
5637
5637
  maxFileSize: (typeof s?.maxBytes == "number" ? s.maxBytes : void 0) || (typeof s?.maxFileSize == "number" ? s.maxFileSize : void 0),
5638
5638
  showFileList: !0
5639
- }) : Q(Qt, {
5639
+ }) : Z(Zt, {
5640
5640
  ...t,
5641
5641
  controller: le(r),
5642
5642
  placeholder: "Paste base64-encoded data",
@@ -5645,37 +5645,37 @@ function ts({
5645
5645
  }
5646
5646
  case "uri":
5647
5647
  case "url":
5648
- return Q(ha, {
5648
+ return Z(ha, {
5649
5649
  ...t,
5650
5650
  controller: le(r),
5651
5651
  placeholder: "https://example.com"
5652
5652
  });
5653
5653
  case "uri-reference":
5654
- return Q(Ve, {
5654
+ return Z(Ve, {
5655
5655
  ...t,
5656
5656
  controller: le(r),
5657
5657
  placeholder: "Enter URL..."
5658
5658
  });
5659
5659
  case "hostname":
5660
- return Q(Ve, {
5660
+ return Z(Ve, {
5661
5661
  ...t,
5662
5662
  controller: le(r),
5663
5663
  placeholder: "example.com"
5664
5664
  });
5665
5665
  case "ipv4":
5666
- return Q(Ve, {
5666
+ return Z(Ve, {
5667
5667
  ...t,
5668
5668
  controller: le(r),
5669
5669
  placeholder: "192.168.1.1"
5670
5670
  });
5671
5671
  case "ipv6":
5672
- return Q(Ve, {
5672
+ return Z(Ve, {
5673
5673
  ...t,
5674
5674
  controller: le(r),
5675
5675
  placeholder: "2001:db8::1"
5676
5676
  });
5677
5677
  case "regex":
5678
- return Q(Qt, {
5678
+ return Z(Zt, {
5679
5679
  ...t,
5680
5680
  controller: le(r),
5681
5681
  placeholder: "^[a-zA-Z0-9]+$",
@@ -5691,23 +5691,23 @@ function ts({
5691
5691
  })
5692
5692
  );
5693
5693
  case "color":
5694
- return Q(la, {
5694
+ return Z(la, {
5695
5695
  ...t,
5696
5696
  controller: r,
5697
5697
  displayValue: !0
5698
5698
  });
5699
5699
  case "uuid":
5700
- return Q(ca, {
5700
+ return Z(ca, {
5701
5701
  ...t,
5702
5702
  controller: le(r)
5703
5703
  });
5704
5704
  case "textarea":
5705
- return Q(Qt, {
5705
+ return Z(Zt, {
5706
5706
  ...t,
5707
5707
  controller: le(r)
5708
5708
  });
5709
5709
  default:
5710
- return Q(Ve, {
5710
+ return Z(Ve, {
5711
5711
  ...t,
5712
5712
  controller: le(r)
5713
5713
  });
@@ -5727,7 +5727,7 @@ function yr({
5727
5727
  };
5728
5728
  if (e.isNullable && (e.isOptional || !e.shouldShowPresenceToggle))
5729
5729
  return ts({ ctx: e, options: r, controller: t });
5730
- const a = Ar(e.definition, e.name)?.widget;
5730
+ const a = Ir(e.definition, e.name)?.widget;
5731
5731
  if (a != null && [
5732
5732
  "url",
5733
5733
  "uri",
@@ -5745,34 +5745,34 @@ function yr({
5745
5745
  return ts({ ctx: e, options: r, controller: t });
5746
5746
  switch (a) {
5747
5747
  case "email":
5748
- return Q(Zs, {
5748
+ return Z(Qs, {
5749
5749
  ...r,
5750
5750
  controller: Le(t)
5751
5751
  });
5752
5752
  case "password":
5753
- return Q(Qs, {
5753
+ return Z(Zs, {
5754
5754
  ...r,
5755
5755
  controller: Le(t)
5756
5756
  });
5757
5757
  case "uuid":
5758
- return Q(_a, {
5758
+ return Z(_a, {
5759
5759
  ...r,
5760
5760
  controller: Le(t)
5761
5761
  });
5762
5762
  case "textarea":
5763
- return Q(va, {
5763
+ return Z(va, {
5764
5764
  ...r,
5765
5765
  controller: Le(t)
5766
5766
  });
5767
5767
  default:
5768
- return Q(Ys, {
5768
+ return Z(Ys, {
5769
5769
  ...r,
5770
5770
  controller: Le(t)
5771
5771
  });
5772
5772
  }
5773
5773
  }
5774
5774
  function ho(e) {
5775
- const t = Ar(e.definition, e.name);
5775
+ const t = Ir(e.definition, e.name);
5776
5776
  if (t?.widget === "slider")
5777
5777
  return { widget: "slider", options: t.options };
5778
5778
  if (t?.widget === "rating")
@@ -5803,49 +5803,49 @@ function zt({
5803
5803
  switch (n.widget) {
5804
5804
  case "rating":
5805
5805
  const o = (typeof n.options?.max == "number" ? n.options.max : r.maximum) || 5;
5806
- return s ? Q(Sa, {
5806
+ return s ? Z(Sa, {
5807
5807
  ...a,
5808
5808
  max: o,
5809
5809
  controller: t
5810
- }) : Q(Pa, {
5810
+ }) : Z(Pa, {
5811
5811
  ...a,
5812
5812
  max: o,
5813
5813
  controller: t
5814
5814
  });
5815
5815
  case "slider":
5816
- return s ? Q($a, {
5816
+ return s ? Z($a, {
5817
5817
  ...a,
5818
5818
  controller: t
5819
- }) : Q(wa, {
5819
+ }) : Z(wa, {
5820
5820
  ...a,
5821
5821
  controller: t
5822
5822
  });
5823
5823
  case "currency":
5824
5824
  const u = typeof n.options?.currency == "string" ? n.options.currency : "USD";
5825
- return s ? Q(Xe, {
5825
+ return s ? Z(Xe, {
5826
5826
  ...a,
5827
5827
  mask: rs(u),
5828
5828
  controller: t
5829
- }) : Q(Xe, {
5829
+ }) : Z(Xe, {
5830
5830
  ...a,
5831
5831
  mask: rs(u),
5832
5832
  controller: t
5833
5833
  });
5834
5834
  case "percent":
5835
- return s ? Q(Xe, {
5835
+ return s ? Z(Xe, {
5836
5836
  ...a,
5837
5837
  mask: ns(),
5838
5838
  controller: t
5839
- }) : Q(Xe, {
5839
+ }) : Z(Xe, {
5840
5840
  ...a,
5841
5841
  mask: ns(),
5842
5842
  controller: t
5843
5843
  });
5844
5844
  default:
5845
- return s ? Q(pr, {
5845
+ return s ? Z(pr, {
5846
5846
  ...a,
5847
5847
  controller: t
5848
- }) : Q(ba, {
5848
+ }) : Z(ba, {
5849
5849
  ...a,
5850
5850
  controller: t
5851
5851
  });
@@ -5893,11 +5893,11 @@ function vr({
5893
5893
  ...Re({ ctx: e }),
5894
5894
  // Disable input if readOnly (unless overridden) or deprecated
5895
5895
  disabled: e.isReadOnly && !e.shouldIgnoreReadOnly || e.isDeprecated
5896
- }, n = Q(Tr, {
5896
+ }, n = Z(Tr, {
5897
5897
  ...r,
5898
5898
  controller: t
5899
5899
  });
5900
- return !e.isNullable || e.isOptional && !e.shouldShowPresenceToggle ? n : Q(Tr, {
5900
+ return !e.isNullable || e.isOptional && !e.shouldShowPresenceToggle ? n : Z(Tr, {
5901
5901
  ...r,
5902
5902
  controller: t,
5903
5903
  after: ms(
@@ -5937,7 +5937,7 @@ function Ds(e, t) {
5937
5937
  }
5938
5938
  a.add(s);
5939
5939
  const o = Ls(t, s);
5940
- if (!Ht(o)) {
5940
+ if (!Jt(o)) {
5941
5941
  console.warn(`resolveRef: could not resolve JSON Pointer ${s}`);
5942
5942
  break;
5943
5943
  }
@@ -5951,9 +5951,9 @@ function Ds(e, t) {
5951
5951
  return n;
5952
5952
  }
5953
5953
  function zs(e) {
5954
- return Ht(e) && typeof e.$ref == "string";
5954
+ return Jt(e) && typeof e.$ref == "string";
5955
5955
  }
5956
- function Ht(e) {
5956
+ function Jt(e) {
5957
5957
  return typeof e == "object" && e != null && !Array.isArray(e);
5958
5958
  }
5959
5959
  function Ls(e, t) {
@@ -5968,7 +5968,7 @@ function Ls(e, t) {
5968
5968
  const s = Ns(t);
5969
5969
  let o = e;
5970
5970
  for (const u of s) {
5971
- if (!Ht(o) && !Array.isArray(o)) {
5971
+ if (!Jt(o) && !Array.isArray(o)) {
5972
5972
  n.set(t, void 0);
5973
5973
  return;
5974
5974
  }
@@ -5992,7 +5992,7 @@ function Fs(e, t, r) {
5992
5992
  }
5993
5993
  if (a.add(o), o.startsWith("#")) {
5994
5994
  const v = Ls(t, o);
5995
- if (!Ht(v)) {
5995
+ if (!Jt(v)) {
5996
5996
  console.warn(`resolveAnyRef: could not resolve JSON Pointer ${o}`);
5997
5997
  break;
5998
5998
  }
@@ -6031,13 +6031,13 @@ function mo({
6031
6031
  title: "Schema Conflicts Detected",
6032
6032
  class: "bc-schema-conflicts-banner"
6033
6033
  },
6034
- J.ul(
6034
+ H.ul(
6035
6035
  U.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
6036
6036
  ...e.map(
6037
- (t) => J.li(
6037
+ (t) => H.li(
6038
6038
  U.style("margin-bottom: 0.25rem;"),
6039
6039
  t.message,
6040
- t.path.length > 0 ? J.code(
6040
+ t.path.length > 0 ? H.code(
6041
6041
  U.style(
6042
6042
  "margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
6043
6043
  ),
@@ -6058,13 +6058,13 @@ function yo({
6058
6058
  title: "Schema Violations Detected",
6059
6059
  class: "bc-not-violations-banner"
6060
6060
  },
6061
- J.ul(
6061
+ H.ul(
6062
6062
  U.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
6063
6063
  ...e.map(
6064
- (t) => J.li(
6064
+ (t) => H.li(
6065
6065
  U.style("margin-bottom: 0.25rem;"),
6066
6066
  t.message,
6067
- t.path.length > 0 ? J.code(
6067
+ t.path.length > 0 ? H.code(
6068
6068
  U.style(
6069
6069
  "margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
6070
6070
  ),
@@ -6093,7 +6093,7 @@ function go({
6093
6093
  t.change(void 0);
6094
6094
  };
6095
6095
  return de(
6096
- J.div(
6096
+ H.div(
6097
6097
  U.class("bc-presence-toggle"),
6098
6098
  Ea({
6099
6099
  value: n,
@@ -6102,7 +6102,7 @@ function go({
6102
6102
  size: "xs"
6103
6103
  })
6104
6104
  ),
6105
- He(n, () => r)
6105
+ Je(n, () => r)
6106
6106
  );
6107
6107
  }
6108
6108
  function se(e, t, r) {
@@ -6256,14 +6256,14 @@ function wo({
6256
6256
  !h && t.value.value !== void 0 && t.change(void 0);
6257
6257
  }), s.behavior) {
6258
6258
  case "unmount":
6259
- return He(
6259
+ return Je(
6260
6260
  u,
6261
6261
  () => r,
6262
6262
  () => je()
6263
6263
  );
6264
6264
  case "hide":
6265
6265
  default:
6266
- return He(
6266
+ return Je(
6267
6267
  u,
6268
6268
  () => r,
6269
6269
  () => je(
@@ -6364,7 +6364,7 @@ function Oo(e, t, r) {
6364
6364
  d.value,
6365
6365
  (l) => h && l != null
6366
6366
  );
6367
- return J.div(
6367
+ return H.div(
6368
6368
  U.class("bc-object-helpers__row"),
6369
6369
  $s.gridTemplateColumns("2fr 3fr min-content"),
6370
6370
  Ft({
@@ -6378,21 +6378,21 @@ function Oo(e, t, r) {
6378
6378
  }),
6379
6379
  error: ws(
6380
6380
  $,
6381
- (l) => J.div(U.class("bc-object-helpers__error"), l)
6381
+ (l) => H.div(U.class("bc-object-helpers__error"), l)
6382
6382
  ),
6383
- description: Object.keys(s).length > 0 ? J.div(
6383
+ description: Object.keys(s).length > 0 ? H.div(
6384
6384
  U.class("bc-object-helpers__description"),
6385
6385
  "Allowed patterns: ",
6386
6386
  Object.keys(s).join(", ")
6387
6387
  ) : null
6388
6388
  }),
6389
- J.div(
6389
+ H.div(
6390
6390
  qe({
6391
6391
  ctx: a.with({ definition: S, suppressLabel: !0 }).append(e),
6392
6392
  controller: d
6393
6393
  })
6394
6394
  ),
6395
- J.div(U.class("bc-object-helpers__remove"), g)
6395
+ H.div(U.class("bc-object-helpers__remove"), g)
6396
6396
  );
6397
6397
  }
6398
6398
  function jo(e, t, r) {
@@ -6458,7 +6458,7 @@ function jo(e, t, r) {
6458
6458
  v.value,
6459
6459
  (i) => y && i != null
6460
6460
  );
6461
- return J.div(
6461
+ return H.div(
6462
6462
  U.class("bc-object-helpers__row"),
6463
6463
  $s.gridTemplateColumns("2fr 3fr min-content"),
6464
6464
  Ft({
@@ -6472,24 +6472,24 @@ function jo(e, t, r) {
6472
6472
  }),
6473
6473
  error: ws(
6474
6474
  S,
6475
- (i) => J.div(U.class("bc-object-helpers__error"), i)
6475
+ (i) => H.div(U.class("bc-object-helpers__error"), i)
6476
6476
  ),
6477
- description: J.div(
6477
+ description: H.div(
6478
6478
  U.class("bc-object-helpers__description"),
6479
6479
  u === !1 ? "Unevaluated property (not allowed by schema)" : "Unevaluated property",
6480
- Object.keys(s).length > 0 ? J.span(
6480
+ Object.keys(s).length > 0 ? H.span(
6481
6481
  " • Allowed patterns: ",
6482
6482
  Object.keys(s).join(", ")
6483
6483
  ) : null
6484
6484
  )
6485
6485
  }),
6486
- J.div(
6486
+ H.div(
6487
6487
  qe({
6488
6488
  ctx: a.with({ definition: w, suppressLabel: !0 }).append(e),
6489
6489
  controller: v
6490
6490
  })
6491
6491
  ),
6492
- J.div(U.class("bc-object-helpers__remove"), f)
6492
+ H.div(U.class("bc-object-helpers__remove"), f)
6493
6493
  );
6494
6494
  }
6495
6495
  function ko(e) {
@@ -6505,10 +6505,10 @@ function Ro({
6505
6505
  title: e,
6506
6506
  children: t
6507
6507
  }) {
6508
- return J.fieldset(
6508
+ return H.fieldset(
6509
6509
  U.class("bc-fieldset"),
6510
- e ? J.legend(U.class("bc-fieldset__legend"), e) : null,
6511
- J.div(
6510
+ e ? H.legend(U.class("bc-fieldset__legend"), e) : null,
6511
+ H.div(
6512
6512
  U.class("bc-fieldset__content"),
6513
6513
  de(U.class("bc-stack--gap-1"), ...t)
6514
6514
  )
@@ -6527,7 +6527,7 @@ function No({
6527
6527
  )
6528
6528
  );
6529
6529
  }
6530
- function Ao({
6530
+ function Io({
6531
6531
  cols: e = 1,
6532
6532
  children: t
6533
6533
  }) {
@@ -6540,27 +6540,27 @@ function Ao({
6540
6540
  }
6541
6541
  return "bc-schema-grid bc-schema-grid--cols-1";
6542
6542
  });
6543
- return J.div(
6543
+ return H.div(
6544
6544
  U.class(r),
6545
6545
  U.class("bc-schema-grid--gap-4"),
6546
6546
  ...t
6547
6547
  );
6548
6548
  }
6549
- function Io({
6549
+ function Ao({
6550
6550
  groups: e,
6551
6551
  children: t
6552
6552
  }) {
6553
6553
  if (!e || Object.keys(e).length === 0)
6554
6554
  return Co({ title: "Properties", children: t });
6555
6555
  const r = ke(Object.keys(e)[0]), n = Object.entries(e);
6556
- return J.div(
6556
+ return H.div(
6557
6557
  U.class("bc-tabs"),
6558
6558
  // Tab headers
6559
- J.div(
6559
+ H.div(
6560
6560
  U.class("bc-tabs__header"),
6561
6561
  U.role("tablist"),
6562
6562
  ...n.map(
6563
- ([a], s) => J.button(
6563
+ ([a], s) => H.button(
6564
6564
  U.class("bc-tabs__tab"),
6565
6565
  U.class(
6566
6566
  ie(r)(
@@ -6597,10 +6597,10 @@ function Io({
6597
6597
  )
6598
6598
  ),
6599
6599
  // Tab content
6600
- J.div(
6600
+ H.div(
6601
6601
  U.class("bc-tabs__content"),
6602
6602
  ...n.map(
6603
- ([a, s]) => J.div(
6603
+ ([a, s]) => H.div(
6604
6604
  U.class("bc-tabs__panel"),
6605
6605
  U.class(
6606
6606
  ie(r)(
@@ -6621,15 +6621,15 @@ function Co({
6621
6621
  title: e,
6622
6622
  children: t
6623
6623
  }) {
6624
- return J.div(
6624
+ return H.div(
6625
6625
  U.class("bc-tabs"),
6626
- J.div(
6626
+ H.div(
6627
6627
  U.class("bc-tabs__header"),
6628
- J.div(U.class("bc-tabs__tab bc-tabs__tab--active"), e)
6628
+ H.div(U.class("bc-tabs__tab bc-tabs__tab--active"), e)
6629
6629
  ),
6630
- J.div(
6630
+ H.div(
6631
6631
  U.class("bc-tabs__content"),
6632
- J.div(
6632
+ H.div(
6633
6633
  U.class("bc-tabs__panel bc-tabs__panel--active"),
6634
6634
  de(U.class("bc-stack--gap-1"), ...t)
6635
6635
  )
@@ -6643,17 +6643,17 @@ function To({
6643
6643
  if (!e || Object.keys(e).length === 0)
6644
6644
  return qo({ title: "Properties", children: t });
6645
6645
  const r = Object.entries(e), n = ke(new Set([r[0]?.[0]].filter(Boolean)));
6646
- return J.div(
6646
+ return H.div(
6647
6647
  U.class("bc-accordion"),
6648
6648
  ...r.map(([a, s]) => {
6649
6649
  const o = ie(n)(
6650
6650
  (u) => u.has(a)
6651
6651
  );
6652
- return J.div(
6652
+ return H.div(
6653
6653
  U.class("bc-accordion__item"),
6654
- J.button(
6654
+ H.button(
6655
6655
  U.class("bc-accordion__header"),
6656
- Aa.expanded(o),
6656
+ Ia.expanded(o),
6657
6657
  xe.click(() => {
6658
6658
  const u = n.value, h = new Set(u);
6659
6659
  h.has(a) ? h.delete(a) : h.add(a), n.set(h);
@@ -6665,7 +6665,7 @@ function To({
6665
6665
  y.has(a) ? y.delete(a) : y.add(a), n.set(y);
6666
6666
  }
6667
6667
  }),
6668
- J.span(a),
6668
+ H.span(a),
6669
6669
  hs({
6670
6670
  icon: ie(o)(
6671
6671
  (u) => u ? "chevron-up" : "chevron-down"
@@ -6673,7 +6673,7 @@ function To({
6673
6673
  size: "sm"
6674
6674
  })
6675
6675
  ),
6676
- J.div(
6676
+ H.div(
6677
6677
  U.class("bc-accordion__content"),
6678
6678
  U.class(
6679
6679
  ie(o)(
@@ -6694,14 +6694,14 @@ function qo({
6694
6694
  children: t
6695
6695
  }) {
6696
6696
  const r = ke(!0);
6697
- return J.div(
6697
+ return H.div(
6698
6698
  U.class("bc-accordion"),
6699
- J.div(
6699
+ H.div(
6700
6700
  U.class("bc-accordion__item"),
6701
- J.button(
6701
+ H.button(
6702
6702
  U.class("bc-accordion__header"),
6703
6703
  xe.click(() => r.set(!r.value)),
6704
- J.span(e),
6704
+ H.span(e),
6705
6705
  hs({
6706
6706
  icon: ie(r)(
6707
6707
  (n) => n ? "chevron-up" : "chevron-down"
@@ -6709,7 +6709,7 @@ function qo({
6709
6709
  size: "sm"
6710
6710
  })
6711
6711
  ),
6712
- J.div(
6712
+ H.div(
6713
6713
  U.class("bc-accordion__content"),
6714
6714
  U.class(
6715
6715
  ie(r)(
@@ -6776,9 +6776,9 @@ function Mo(e, t, r, n = []) {
6776
6776
  case "group":
6777
6777
  return No({ title: a, children: s });
6778
6778
  case "grid":
6779
- return Ao({ cols: e.cols, children: s });
6779
+ return Io({ cols: e.cols, children: s });
6780
6780
  case "tabs":
6781
- return Io({
6781
+ return Ao({
6782
6782
  groups: o || e.groups,
6783
6783
  children: o ? Object.values(o).flat() : s
6784
6784
  });
@@ -6804,7 +6804,7 @@ function Bs({
6804
6804
  ), o = e.with({
6805
6805
  definition: a,
6806
6806
  schemaConflicts: [...e.schemaConflicts, ...s]
6807
- }), u = a.properties ?? {}, h = new Set(Object.keys(u)), y = Object.keys(r ?? {}), d = y.filter((p) => !h.has(p)), v = a.unevaluatedProperties, $ = Je(
6807
+ }), u = a.properties ?? {}, h = new Set(Object.keys(u)), y = Object.keys(r ?? {}), d = y.filter((p) => !h.has(p)), v = a.unevaluatedProperties, $ = He(
6808
6808
  a,
6809
6809
  r ?? {},
6810
6810
  e.ajv
@@ -6813,13 +6813,13 @@ function Bs({
6813
6813
  ), g = a.additionalProperties ?? !0, f = g !== !1, l = g === !0 || g === void 0 ? {} : g, i = a.minProperties ?? 0, c = a.maxProperties ?? 1 / 0;
6814
6814
  let m = !0, _ = null;
6815
6815
  v === !1 ? (m = !1, _ = "No unevaluated properties are allowed by schema") : v && typeof v == "object" && (m = !0);
6816
- const b = f && m && y.length < c, E = (p) => p > i, A = a.patternProperties ?? {}, q = Object.keys(A).filter(Boolean).map((p) => {
6816
+ const b = f && m && y.length < c, E = (p) => p > i, I = a.patternProperties ?? {}, q = Object.keys(I).filter(Boolean).map((p) => {
6817
6817
  try {
6818
6818
  return new RegExp(p);
6819
6819
  } catch {
6820
6820
  return null;
6821
6821
  }
6822
- }).filter((p) => p != null), D = a.propertyNames, I = (p) => {
6822
+ }).filter((p) => p != null), D = a.propertyNames, A = (p) => {
6823
6823
  const P = (p ?? "").trim();
6824
6824
  if (P === "") return { ok: !1, message: "Key cannot be empty" };
6825
6825
  if (D === !1)
@@ -6837,7 +6837,7 @@ function Bs({
6837
6837
  if (!q.some((F) => F.test(P)))
6838
6838
  return {
6839
6839
  ok: !1,
6840
- message: `Key must match one of: ${Object.keys(A).join(", ")}`
6840
+ message: `Key must match one of: ${Object.keys(I).join(", ")}`
6841
6841
  };
6842
6842
  }
6843
6843
  return { ok: !0 };
@@ -6850,8 +6850,8 @@ function Bs({
6850
6850
  if (R === "boolean") return !1;
6851
6851
  if (R === "array") return [];
6852
6852
  if (R === "object") return {};
6853
- }, Z = (p, P) => {
6854
- const R = p, F = (Y) => P.has(Y) ? !1 : I(Y).ok;
6853
+ }, Q = (p, P) => {
6854
+ const R = p, F = (Y) => P.has(Y) ? !1 : A(Y).ok;
6855
6855
  if (F(R)) return R;
6856
6856
  let K = 1;
6857
6857
  for (; P.has(R + K) || !F(R + K); ) K++;
@@ -6864,8 +6864,8 @@ function Bs({
6864
6864
  disabled: !b,
6865
6865
  onClick: () => {
6866
6866
  if (!b) return;
6867
- const P = new Set(Object.keys(ne.get(t.value) ?? {})), R = Z("property", P);
6868
- if (!I(R).ok) return;
6867
+ const P = new Set(Object.keys(ne.get(t.value) ?? {})), R = Q("property", P);
6868
+ if (!A(R).ok) return;
6869
6869
  let K = l;
6870
6870
  v && typeof v == "object" && (K = v);
6871
6871
  const Y = B(K), X = {
@@ -6905,11 +6905,11 @@ function Bs({
6905
6905
  return Oo(p, P, {
6906
6906
  controller: t,
6907
6907
  effCtx: o,
6908
- patternProps: A,
6908
+ patternProps: I,
6909
6909
  apSchema: l,
6910
6910
  canRemove: E,
6911
6911
  lockKeyAfterSet: L,
6912
- validatePropertyName: I
6912
+ validatePropertyName: A
6913
6913
  });
6914
6914
  }),
6915
6915
  // Unevaluated keys (use unevaluatedProperties schema if available)
@@ -6918,12 +6918,12 @@ function Bs({
6918
6918
  return jo(p, P, {
6919
6919
  controller: t,
6920
6920
  effCtx: o,
6921
- patternProps: A,
6921
+ patternProps: I,
6922
6922
  apSchema: l,
6923
6923
  unevaluatedProps: v,
6924
6924
  canRemove: E,
6925
6925
  lockKeyAfterSet: L,
6926
- validatePropertyName: I
6926
+ validatePropertyName: A
6927
6927
  });
6928
6928
  }),
6929
6929
  // Add affordance
@@ -7332,7 +7332,7 @@ function qe({
7332
7332
  t,
7333
7333
  se(
7334
7334
  a,
7335
- Hs({
7335
+ Js({
7336
7336
  ctx: a,
7337
7337
  controller: t
7338
7338
  }),
@@ -7399,7 +7399,7 @@ function qe({
7399
7399
  t,
7400
7400
  se(
7401
7401
  a,
7402
- Js({
7402
+ Hs({
7403
7403
  ctx: a,
7404
7404
  controller: t instanceof na ? t : t.array()
7405
7405
  }),
@@ -7420,7 +7420,7 @@ function qe({
7420
7420
  t,
7421
7421
  se(
7422
7422
  a,
7423
- J.div(U.class("bc-json-schema-object"), o),
7423
+ H.div(U.class("bc-json-schema-object"), o),
7424
7424
  t
7425
7425
  )
7426
7426
  );
@@ -7443,7 +7443,7 @@ function qe({
7443
7443
  t,
7444
7444
  se(
7445
7445
  a,
7446
- J.div(U.class("bc-json-schema-unknown"), "Unknown"),
7446
+ H.div(U.class("bc-json-schema-unknown"), "Unknown"),
7447
7447
  t
7448
7448
  )
7449
7449
  );
@@ -7477,7 +7477,7 @@ function pe(e, t, r) {
7477
7477
  }
7478
7478
  }) : r;
7479
7479
  }
7480
- function Jo(e) {
7480
+ function Ho(e) {
7481
7481
  return e.prefixItems != null ? {
7482
7482
  isTuple: !0,
7483
7483
  prefixItems: e.prefixItems,
@@ -7499,11 +7499,11 @@ function fs(e) {
7499
7499
  const t = e["x:ui"];
7500
7500
  return Array.isArray(t?.tupleLabels) ? t.tupleLabels : void 0;
7501
7501
  }
7502
- function Js({
7502
+ function Hs({
7503
7503
  ctx: e,
7504
7504
  controller: t
7505
7505
  }) {
7506
- const r = e.definition, n = Jo(r), a = ie(t.value)((d) => {
7506
+ const r = e.definition, n = Ho(r), a = ie(t.value)((d) => {
7507
7507
  const v = d?.length ?? 0;
7508
7508
  return !(r.maxItems != null && v >= r.maxItems || n.isTuple && v >= n.prefixItems.length && n.additionalItemsSchema === !1);
7509
7509
  }), s = ie(t.value)((d) => {
@@ -7601,7 +7601,7 @@ function Js({
7601
7601
  ));
7602
7602
  const c = [];
7603
7603
  return r.uniqueItems && c.push(
7604
- He(
7604
+ Je(
7605
7605
  f,
7606
7606
  () => Fe(
7607
7607
  U.class(
@@ -7611,7 +7611,7 @@ function Js({
7611
7611
  )
7612
7612
  )
7613
7613
  ), r.contains && c.push(
7614
- He(
7614
+ Je(
7615
7615
  l,
7616
7616
  () => Fe(
7617
7617
  U.class(
@@ -7643,7 +7643,7 @@ function Js({
7643
7643
  )
7644
7644
  ) : y;
7645
7645
  }
7646
- function Ho(e) {
7646
+ function Jo(e) {
7647
7647
  return e.map((t) => ({
7648
7648
  key: t,
7649
7649
  label: wr(t),
@@ -7652,7 +7652,7 @@ function Ho(e) {
7652
7652
  defaultValue: () => oo(t)
7653
7653
  }));
7654
7654
  }
7655
- function Hs({
7655
+ function Js({
7656
7656
  ctx: e,
7657
7657
  controller: t
7658
7658
  }) {
@@ -7662,7 +7662,7 @@ function Hs({
7662
7662
  (S) => S !== "null" && (S === "string" || S === "number" || S === "integer" || S === "boolean")
7663
7663
  ), u = s && o.length === n.length - 1;
7664
7664
  u && (n = o);
7665
- const h = Ho(n), y = new Na(
7665
+ const h = Jo(n), y = new Na(
7666
7666
  t.path,
7667
7667
  t.change,
7668
7668
  t.value,
@@ -7682,7 +7682,7 @@ function Hs({
7682
7682
  const w = ne.get(S), g = y.getBranchController(w);
7683
7683
  if (u && (w === "number" || w === "integer")) {
7684
7684
  const l = r;
7685
- return Q(pr, {
7685
+ return Z(pr, {
7686
7686
  // Suppress inner labels only when union is nested (non-root)
7687
7687
  ...Re({
7688
7688
  ctx: e.with({ suppressLabel: !e.isRoot })
@@ -7725,7 +7725,7 @@ function Hs({
7725
7725
  });
7726
7726
  case "array": {
7727
7727
  const l = g.array();
7728
- return Js({
7728
+ return Hs({
7729
7729
  ctx: f,
7730
7730
  controller: l
7731
7731
  });
@@ -7738,7 +7738,7 @@ function Hs({
7738
7738
  });
7739
7739
  }
7740
7740
  default:
7741
- return Q(pr, {
7741
+ return Z(pr, {
7742
7742
  ...Re({ ctx: f }),
7743
7743
  controller: g
7744
7744
  });
@@ -7762,7 +7762,7 @@ function Lt({
7762
7762
  }
7763
7763
  }),
7764
7764
  controller: t
7765
- }) : Hs({
7765
+ }) : Js({
7766
7766
  ctx: e.with({
7767
7767
  definition: {
7768
7768
  ...e.definition,
@@ -7888,7 +7888,7 @@ function br(e, t) {
7888
7888
  }
7889
7889
  return n;
7890
7890
  }
7891
- function Qo(e, t) {
7891
+ function Zo(e, t) {
7892
7892
  try {
7893
7893
  if (typeof e.condition == "function") {
7894
7894
  const n = (Array.isArray(e.watch) ? e.watch : [e.watch]).map(
@@ -7904,11 +7904,11 @@ function Qo(e, t) {
7904
7904
  return console.warn("Error evaluating conditional validation:", r), !1;
7905
7905
  }
7906
7906
  }
7907
- function Zo(e, t, r, n) {
7907
+ function Qo(e, t, r, n) {
7908
7908
  const a = [];
7909
7909
  if (n && !n(e) && n.errors && a.push(...n.errors), r.when) {
7910
7910
  for (const s of r.when)
7911
- if (Qo(s, t) ? s.then : s.else, s.validate)
7911
+ if (Zo(s, t) ? s.then : s.else, s.validate)
7912
7912
  try {
7913
7913
  const u = s.validate(e, t);
7914
7914
  u && a.push({
@@ -8129,7 +8129,7 @@ function $u({
8129
8129
  validateDebounceMs: o
8130
8130
  }, u) {
8131
8131
  return vs(
8132
- Zi(e, {
8132
+ Qi(e, {
8133
8133
  externalSchemas: r,
8134
8134
  refResolver: n,
8135
8135
  sanitizeAdditional: a
@@ -8137,11 +8137,11 @@ function $u({
8137
8137
  (h) => {
8138
8138
  if (h.ok) {
8139
8139
  const { ajv: y, validate: d } = h.value, v = Yo(e), $ = ru(e), S = $.length > 0 ? new nu() : null, w = s ?? "touchedOrSubmit", g = (D) => {
8140
- const I = d(D);
8140
+ const A = d(D);
8141
8141
  let V;
8142
- return I ? V = Se.valid : V = jr(
8142
+ return A ? V = Se.valid : V = jr(
8143
8143
  d.errors ?? []
8144
- ), v ? Zo(
8144
+ ), v ? Qo(
8145
8145
  D,
8146
8146
  D,
8147
8147
  // formData is the same as value for root-level validation
@@ -8157,28 +8157,28 @@ function $u({
8157
8157
  let m = !1;
8158
8158
  const _ = c ? f.value.on((D) => {
8159
8159
  if (m) return;
8160
- const I = su(D);
8161
- d(I) && !au(I, D) && (m = !0, f.change(I), m = !1);
8160
+ const A = su(D);
8161
+ d(A) && !au(A, D) && (m = !0, f.change(A), m = !1);
8162
8162
  }) : () => {
8163
- }, b = i ? f.value.on((D, I) => {
8164
- I != null && JSON.stringify(D) !== JSON.stringify(I) && setTimeout(() => {
8163
+ }, b = i ? f.value.on((D, A) => {
8164
+ A != null && JSON.stringify(D) !== JSON.stringify(A) && setTimeout(() => {
8165
8165
  const L = f.status.value;
8166
8166
  l(L);
8167
8167
  }, 10);
8168
8168
  }) : () => {
8169
8169
  }, E = S && $.length > 0 ? f.value.on((D) => {
8170
- for (const I of $)
8171
- S.validateField(I, D, D);
8170
+ for (const A of $)
8171
+ S.validateField(A, D, D);
8172
8172
  }) : () => {
8173
8173
  }, q = je(
8174
- Ia(() => {
8174
+ Aa(() => {
8175
8175
  _(), b(), E(), S?.dispose(), f.dispose();
8176
8176
  }),
8177
8177
  Wo({ schema: e, controller: f, ajv: y })
8178
8178
  );
8179
8179
  return u({ Form: q, controller: f, setStatus: l });
8180
8180
  }
8181
- return J.div(U.class("bc-json-schema-form__error"), h.error);
8181
+ return H.div(U.class("bc-json-schema-form__error"), h.error);
8182
8182
  }
8183
8183
  );
8184
8184
  }
@@ -8230,12 +8230,12 @@ function fu(e) {
8230
8230
  return /^\d+$/.test(e);
8231
8231
  }
8232
8232
  export {
8233
- Zi as A,
8233
+ Qi as A,
8234
8234
  Nr as B,
8235
8235
  no as C,
8236
8236
  so as D,
8237
- Is as E,
8238
- Je as F,
8237
+ As as E,
8238
+ He as F,
8239
8239
  Po as G,
8240
8240
  Eo as H,
8241
8241
  zt as I,
@@ -8244,9 +8244,9 @@ export {
8244
8244
  yr as L,
8245
8245
  vr as M,
8246
8246
  Vs as N,
8247
- Js as O,
8247
+ Hs as O,
8248
8248
  Bs as P,
8249
- Hs as Q,
8249
+ Js as Q,
8250
8250
  Ko as R,
8251
8251
  Rr as S,
8252
8252
  Bo as T,
@@ -8255,26 +8255,26 @@ export {
8255
8255
  Wo as W,
8256
8256
  $u as X,
8257
8257
  wu as Y,
8258
- Ii as a,
8258
+ Ai as a,
8259
8259
  Ti as b,
8260
8260
  Wt as c,
8261
8261
  x as d,
8262
8262
  Pr as e,
8263
- Jt as f,
8263
+ Ht as f,
8264
8264
  ri as g,
8265
8265
  pi as h,
8266
8266
  ki as i,
8267
8267
  Ni as j,
8268
- Ai as k,
8269
- Ae as l,
8268
+ Ii as k,
8269
+ Ie as l,
8270
8270
  Er as m,
8271
8271
  ti as n,
8272
8272
  ee as o,
8273
8273
  vi as p,
8274
8274
  Ns as q,
8275
- Za as r,
8276
- Ji as s,
8277
- Hi as t,
8275
+ Qa as r,
8276
+ Hi as s,
8277
+ Ji as t,
8278
8278
  xi as u,
8279
8279
  jr as v,
8280
8280
  gu as w,