@anov/cic-standard-sdk 0.0.2 → 0.0.3

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,9 +1,9 @@
1
1
  function vn(e) {
2
2
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
3
  }
4
- var qe = { exports: {} }, At = {}, he = {}, be = {}, Mt = {}, Vt = {}, zt = {}, er;
5
- function vt() {
6
- return er || (er = 1, (function(e) {
4
+ var Ce = { exports: {} }, At = {}, he = {}, $e = {}, Vt = {}, zt = {}, Ft = {}, tr;
5
+ function _t() {
6
+ return tr || (tr = 1, (function(e) {
7
7
  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;
8
8
  class t {
9
9
  }
@@ -48,20 +48,20 @@ function vt() {
48
48
  }
49
49
  }
50
50
  e._Code = n, e.nil = new n("");
51
- function v(d, ...r) {
51
+ function y(d, ...r) {
52
52
  const o = [d[0]];
53
53
  let h = 0;
54
54
  for (; h < r.length; )
55
55
  u(o, r[h]), o.push(d[++h]);
56
56
  return new n(o);
57
57
  }
58
- e._ = v;
58
+ e._ = y;
59
59
  const i = new n("+");
60
60
  function p(d, ...r) {
61
- const o = [y(d[0])];
61
+ const o = [g(d[0])];
62
62
  let h = 0;
63
63
  for (; h < r.length; )
64
- o.push(i), u(o, r[h]), o.push(i, y(d[++h]));
64
+ o.push(i), u(o, r[h]), o.push(i, g(d[++h]));
65
65
  return m(o), new n(o);
66
66
  }
67
67
  e.str = p;
@@ -98,20 +98,20 @@ function vt() {
98
98
  }
99
99
  e.strConcat = _;
100
100
  function S(d) {
101
- return typeof d == "number" || typeof d == "boolean" || d === null ? d : y(Array.isArray(d) ? d.join(",") : d);
101
+ return typeof d == "number" || typeof d == "boolean" || d === null ? d : g(Array.isArray(d) ? d.join(",") : d);
102
102
  }
103
103
  function $(d) {
104
- return new n(y(d));
104
+ return new n(g(d));
105
105
  }
106
106
  e.stringify = $;
107
- function y(d) {
107
+ function g(d) {
108
108
  return JSON.stringify(d).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
109
109
  }
110
- e.safeStringify = y;
111
- function g(d) {
112
- return typeof d == "string" && e.IDENTIFIER.test(d) ? new n(`.${d}`) : v`[${d}]`;
110
+ e.safeStringify = g;
111
+ function v(d) {
112
+ return typeof d == "string" && e.IDENTIFIER.test(d) ? new n(`.${d}`) : y`[${d}]`;
113
113
  }
114
- e.getProperty = g;
114
+ e.getProperty = v;
115
115
  function w(d) {
116
116
  if (typeof d == "string" && e.IDENTIFIER.test(d))
117
117
  return new n(`${d}`);
@@ -122,13 +122,13 @@ function vt() {
122
122
  return new n(d.toString());
123
123
  }
124
124
  e.regexpCode = c;
125
- })(zt)), zt;
125
+ })(Ft)), Ft;
126
126
  }
127
- var Ft = {}, tr;
128
- function rr() {
129
- return tr || (tr = 1, (function(e) {
127
+ var Lt = {}, rr;
128
+ function nr() {
129
+ return rr || (rr = 1, (function(e) {
130
130
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
131
- const t = vt();
131
+ const t = _t();
132
132
  class a extends Error {
133
133
  constructor(b) {
134
134
  super(`CodeGen: "code" for ${b} not defined`), this.value = b.value;
@@ -142,7 +142,7 @@ function rr() {
142
142
  let: new t.Name("let"),
143
143
  var: new t.Name("var")
144
144
  };
145
- class v {
145
+ class y {
146
146
  constructor({ prefixes: b, parent: _ } = {}) {
147
147
  this._names = {}, this._prefixes = b, this._parent = _;
148
148
  }
@@ -163,7 +163,7 @@ function rr() {
163
163
  return this._names[b] = { prefix: b, index: 0 };
164
164
  }
165
165
  }
166
- e.Scope = v;
166
+ e.Scope = y;
167
167
  class i extends t.Name {
168
168
  constructor(b, _) {
169
169
  super(_), this.prefix = b;
@@ -174,7 +174,7 @@ function rr() {
174
174
  }
175
175
  e.ValueScopeName = i;
176
176
  const p = (0, t._)`\n`;
177
- class u extends v {
177
+ class u extends y {
178
178
  constructor(b) {
179
179
  super(b), this._values = {}, this._scope = b.scope, this.opts = { ...b, _n: b.lines ? p : t.nil };
180
180
  }
@@ -188,17 +188,17 @@ function rr() {
188
188
  var S;
189
189
  if (_.ref === void 0)
190
190
  throw new Error("CodeGen: ref must be passed in value");
191
- const $ = this.toName(b), { prefix: y } = $, g = (S = _.key) !== null && S !== void 0 ? S : _.ref;
192
- let w = this._values[y];
191
+ const $ = this.toName(b), { prefix: g } = $, v = (S = _.key) !== null && S !== void 0 ? S : _.ref;
192
+ let w = this._values[g];
193
193
  if (w) {
194
- const r = w.get(g);
194
+ const r = w.get(v);
195
195
  if (r)
196
196
  return r;
197
197
  } else
198
- w = this._values[y] = /* @__PURE__ */ new Map();
199
- w.set(g, $);
200
- const c = this._scope[y] || (this._scope[y] = []), d = c.length;
201
- return c[d] = _.ref, $.setValue(_, { property: y, itemIndex: d }), $;
198
+ w = this._values[g] = /* @__PURE__ */ new Map();
199
+ w.set(v, $);
200
+ const c = this._scope[g] || (this._scope[g] = []), d = c.length;
201
+ return c[d] = _.ref, $.setValue(_, { property: g, itemIndex: d }), $;
202
202
  }
203
203
  getValue(b, _) {
204
204
  const S = this._values[b];
@@ -220,12 +220,12 @@ function rr() {
220
220
  }, _, S);
221
221
  }
222
222
  _reduceValues(b, _, S = {}, $) {
223
- let y = t.nil;
224
- for (const g in b) {
225
- const w = b[g];
223
+ let g = t.nil;
224
+ for (const v in b) {
225
+ const w = b[v];
226
226
  if (!w)
227
227
  continue;
228
- const c = S[g] = S[g] || /* @__PURE__ */ new Map();
228
+ const c = S[v] = S[v] || /* @__PURE__ */ new Map();
229
229
  w.forEach((d) => {
230
230
  if (c.has(d))
231
231
  return;
@@ -233,26 +233,26 @@ function rr() {
233
233
  let r = _(d);
234
234
  if (r) {
235
235
  const o = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
236
- y = (0, t._)`${y}${o} ${d} = ${r};${this.opts._n}`;
236
+ g = (0, t._)`${g}${o} ${d} = ${r};${this.opts._n}`;
237
237
  } else if (r = $?.(d))
238
- y = (0, t._)`${y}${r}${this.opts._n}`;
238
+ g = (0, t._)`${g}${r}${this.opts._n}`;
239
239
  else
240
240
  throw new a(d);
241
241
  c.set(d, n.Completed);
242
242
  });
243
243
  }
244
- return y;
244
+ return g;
245
245
  }
246
246
  }
247
247
  e.ValueScope = u;
248
- })(Ft)), Ft;
248
+ })(Lt)), Lt;
249
249
  }
250
- var nr;
250
+ var ir;
251
251
  function J() {
252
- return nr || (nr = 1, (function(e) {
252
+ return ir || (ir = 1, (function(e) {
253
253
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
254
- const t = vt(), a = rr();
255
- var n = vt();
254
+ const t = _t(), a = nr();
255
+ var n = _t();
256
256
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
257
257
  return n._;
258
258
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -270,15 +270,15 @@ function J() {
270
270
  } }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
271
271
  return n.Name;
272
272
  } });
273
- var v = rr();
273
+ var y = nr();
274
274
  Object.defineProperty(e, "Scope", { enumerable: !0, get: function() {
275
- return v.Scope;
275
+ return y.Scope;
276
276
  } }), Object.defineProperty(e, "ValueScope", { enumerable: !0, get: function() {
277
- return v.ValueScope;
277
+ return y.ValueScope;
278
278
  } }), Object.defineProperty(e, "ValueScopeName", { enumerable: !0, get: function() {
279
- return v.ValueScopeName;
279
+ return y.ValueScopeName;
280
280
  } }), Object.defineProperty(e, "varKinds", { enumerable: !0, get: function() {
281
- return v.varKinds;
281
+ return y.varKinds;
282
282
  } }), e.operators = {
283
283
  GT: new t._Code(">"),
284
284
  GTE: new t._Code(">="),
@@ -383,7 +383,7 @@ function J() {
383
383
  return this.code instanceof t._CodeOrName ? this.code.names : {};
384
384
  }
385
385
  }
386
- class y extends i {
386
+ class g extends i {
387
387
  constructor(l = []) {
388
388
  super(), this.nodes = l;
389
389
  }
@@ -412,17 +412,17 @@ function J() {
412
412
  return this.nodes.reduce((l, E) => V(l, E.names), {});
413
413
  }
414
414
  }
415
- class g extends y {
415
+ class v extends g {
416
416
  render(l) {
417
417
  return "{" + l._n + super.render(l) + "}" + l._n;
418
418
  }
419
419
  }
420
- class w extends y {
420
+ class w extends g {
421
421
  }
422
- class c extends g {
422
+ class c extends v {
423
423
  }
424
424
  c.kind = "else";
425
- class d extends g {
425
+ class d extends v {
426
426
  constructor(l, E) {
427
427
  super(E), this.condition = l;
428
428
  }
@@ -456,7 +456,7 @@ function J() {
456
456
  }
457
457
  }
458
458
  d.kind = "if";
459
- class r extends g {
459
+ class r extends v {
460
460
  }
461
461
  r.kind = "for";
462
462
  class o extends r {
@@ -502,7 +502,7 @@ function J() {
502
502
  return V(super.names, this.iterable.names);
503
503
  }
504
504
  }
505
- class f extends g {
505
+ class f extends v {
506
506
  constructor(l, E, O) {
507
507
  super(), this.name = l, this.args = E, this.async = O;
508
508
  }
@@ -511,13 +511,13 @@ function J() {
511
511
  }
512
512
  }
513
513
  f.kind = "func";
514
- class P extends y {
514
+ class P extends g {
515
515
  render(l) {
516
516
  return "return " + super.render(l);
517
517
  }
518
518
  }
519
519
  P.kind = "return";
520
- class R extends g {
520
+ class N extends v {
521
521
  render(l) {
522
522
  let E = "try" + super.render(l);
523
523
  return this.catch && (E += this.catch.render(l)), this.finally && (E += this.finally.render(l)), E;
@@ -535,7 +535,7 @@ function J() {
535
535
  return this.catch && V(l, this.catch.names), this.finally && V(l, this.finally.names), l;
536
536
  }
537
537
  }
538
- class D extends g {
538
+ class D extends v {
539
539
  constructor(l) {
540
540
  super(), this.error = l;
541
541
  }
@@ -544,7 +544,7 @@ function J() {
544
544
  }
545
545
  }
546
546
  D.kind = "catch";
547
- class z extends g {
547
+ class z extends v {
548
548
  render(l) {
549
549
  return "finally" + super.render(l);
550
550
  }
@@ -693,7 +693,7 @@ function J() {
693
693
  try(l, E, O) {
694
694
  if (!E && !O)
695
695
  throw new Error('CodeGen: "try" without "catch" and "finally"');
696
- const U = new R();
696
+ const U = new N();
697
697
  if (this._blockNode(U), this.code(l), E) {
698
698
  const H = this.name("e");
699
699
  this._currNode = U.catch = new D(H), E(H);
@@ -761,20 +761,20 @@ function J() {
761
761
  }
762
762
  }
763
763
  e.CodeGen = q;
764
- function V(N, l) {
764
+ function V(R, l) {
765
765
  for (const E in l)
766
- N[E] = (N[E] || 0) + (l[E] || 0);
767
- return N;
768
- }
769
- function F(N, l) {
770
- return l instanceof t._CodeOrName ? V(N, l.names) : N;
771
- }
772
- function L(N, l, E) {
773
- if (N instanceof t.Name)
774
- return O(N);
775
- if (!U(N))
776
- return N;
777
- return new t._Code(N._items.reduce((H, Z) => (Z instanceof t.Name && (Z = O(Z)), Z instanceof t._Code ? H.push(...Z._items) : H.push(Z), H), []));
766
+ R[E] = (R[E] || 0) + (l[E] || 0);
767
+ return R;
768
+ }
769
+ function F(R, l) {
770
+ return l instanceof t._CodeOrName ? V(R, l.names) : R;
771
+ }
772
+ function L(R, l, E) {
773
+ if (R instanceof t.Name)
774
+ return O(R);
775
+ if (!U(R))
776
+ return R;
777
+ return new t._Code(R._items.reduce((H, Z) => (Z instanceof t.Name && (Z = O(Z)), Z instanceof t._Code ? H.push(...Z._items) : H.push(Z), H), []));
778
778
  function O(H) {
779
779
  const Z = E[H.str];
780
780
  return Z === void 0 || l[H.str] !== 1 ? H : (delete l[H.str], Z);
@@ -783,37 +783,37 @@ function J() {
783
783
  return H instanceof t._Code && H._items.some((Z) => Z instanceof t.Name && l[Z.str] === 1 && E[Z.str] !== void 0);
784
784
  }
785
785
  }
786
- function Q(N, l) {
786
+ function Q(R, l) {
787
787
  for (const E in l)
788
- N[E] = (N[E] || 0) - (l[E] || 0);
788
+ R[E] = (R[E] || 0) - (l[E] || 0);
789
789
  }
790
- function ne(N) {
791
- return typeof N == "boolean" || typeof N == "number" || N === null ? !N : (0, t._)`!${T(N)}`;
790
+ function ne(R) {
791
+ return typeof R == "boolean" || typeof R == "number" || R === null ? !R : (0, t._)`!${T(R)}`;
792
792
  }
793
793
  e.not = ne;
794
794
  const ie = k(e.operators.AND);
795
- function x(...N) {
796
- return N.reduce(ie);
795
+ function x(...R) {
796
+ return R.reduce(ie);
797
797
  }
798
798
  e.and = x;
799
799
  const le = k(e.operators.OR);
800
- function A(...N) {
801
- return N.reduce(le);
800
+ function M(...R) {
801
+ return R.reduce(le);
802
802
  }
803
- e.or = A;
804
- function k(N) {
805
- return (l, E) => l === t.nil ? E : E === t.nil ? l : (0, t._)`${T(l)} ${N} ${T(E)}`;
803
+ e.or = M;
804
+ function k(R) {
805
+ return (l, E) => l === t.nil ? E : E === t.nil ? l : (0, t._)`${T(l)} ${R} ${T(E)}`;
806
806
  }
807
- function T(N) {
808
- return N instanceof t.Name ? N : (0, t._)`(${N})`;
807
+ function T(R) {
808
+ return R instanceof t.Name ? R : (0, t._)`(${R})`;
809
809
  }
810
- })(Vt)), Vt;
810
+ })(zt)), zt;
811
811
  }
812
- var G = {}, ir;
812
+ var G = {}, sr;
813
813
  function Y() {
814
- if (ir) return G;
815
- ir = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.checkStrictMode = G.getErrorPath = G.Type = G.useFunc = G.setEvaluated = G.evaluatedPropsToName = G.mergeEvaluated = G.eachItem = G.unescapeJsonPointer = G.escapeJsonPointer = G.escapeFragment = G.unescapeFragment = G.schemaRefOrVal = G.schemaHasRulesButRef = G.schemaHasRules = G.checkUnknownRules = G.alwaysValidSchema = G.toHash = void 0;
816
- const e = J(), t = vt();
814
+ if (sr) return G;
815
+ sr = 1, Object.defineProperty(G, "__esModule", { value: !0 }), G.checkStrictMode = G.getErrorPath = G.Type = G.useFunc = G.setEvaluated = G.evaluatedPropsToName = G.mergeEvaluated = G.eachItem = G.unescapeJsonPointer = G.escapeJsonPointer = G.escapeFragment = G.unescapeFragment = G.schemaRefOrVal = G.schemaHasRulesButRef = G.schemaHasRules = G.checkUnknownRules = G.alwaysValidSchema = G.toHash = void 0;
816
+ const e = J(), t = _t();
817
817
  function a(s) {
818
818
  const f = {};
819
819
  for (const P of s)
@@ -822,18 +822,18 @@ function Y() {
822
822
  }
823
823
  G.toHash = a;
824
824
  function n(s, f) {
825
- return typeof f == "boolean" ? f : Object.keys(f).length === 0 ? !0 : (v(s, f), !i(f, s.self.RULES.all));
825
+ return typeof f == "boolean" ? f : Object.keys(f).length === 0 ? !0 : (y(s, f), !i(f, s.self.RULES.all));
826
826
  }
827
827
  G.alwaysValidSchema = n;
828
- function v(s, f = s.schema) {
829
- const { opts: P, self: R } = s;
828
+ function y(s, f = s.schema) {
829
+ const { opts: P, self: N } = s;
830
830
  if (!P.strictSchema || typeof f == "boolean")
831
831
  return;
832
- const D = R.RULES.keywords;
832
+ const D = N.RULES.keywords;
833
833
  for (const z in f)
834
834
  D[z] || h(s, `unknown keyword: "${z}"`);
835
835
  }
836
- G.checkUnknownRules = v;
836
+ G.checkUnknownRules = y;
837
837
  function i(s, f) {
838
838
  if (typeof s == "boolean")
839
839
  return !s;
@@ -852,14 +852,14 @@ function Y() {
852
852
  return !1;
853
853
  }
854
854
  G.schemaHasRulesButRef = p;
855
- function u({ topSchemaRef: s, schemaPath: f }, P, R, D) {
855
+ function u({ topSchemaRef: s, schemaPath: f }, P, N, D) {
856
856
  if (!D) {
857
857
  if (typeof P == "number" || typeof P == "boolean")
858
858
  return P;
859
859
  if (typeof P == "string")
860
860
  return (0, e._)`${P}`;
861
861
  }
862
- return (0, e._)`${s}${f}${(0, e.getProperty)(R)}`;
862
+ return (0, e._)`${s}${f}${(0, e.getProperty)(N)}`;
863
863
  }
864
864
  G.schemaRefOrVal = u;
865
865
  function m(s) {
@@ -886,14 +886,14 @@ function Y() {
886
886
  f(s);
887
887
  }
888
888
  G.eachItem = $;
889
- function y({ mergeNames: s, mergeToName: f, mergeValues: P, resultToName: R }) {
889
+ function g({ mergeNames: s, mergeToName: f, mergeValues: P, resultToName: N }) {
890
890
  return (D, z, q, V) => {
891
891
  const F = q === void 0 ? z : q instanceof e.Name ? (z instanceof e.Name ? s(D, z, q) : f(D, z, q), q) : z instanceof e.Name ? (f(D, q, z), z) : P(z, q);
892
- return V === e.Name && !(F instanceof e.Name) ? R(D, F) : F;
892
+ return V === e.Name && !(F instanceof e.Name) ? N(D, F) : F;
893
893
  };
894
894
  }
895
895
  G.mergeEvaluated = {
896
- props: y({
896
+ props: g({
897
897
  mergeNames: (s, f, P) => s.if((0, e._)`${P} !== true && ${f} !== undefined`, () => {
898
898
  s.if((0, e._)`${f} === true`, () => s.assign(P, !0), () => s.assign(P, (0, e._)`${P} || {}`).code((0, e._)`Object.assign(${P}, ${f})`));
899
899
  }),
@@ -901,24 +901,24 @@ function Y() {
901
901
  f === !0 ? s.assign(P, !0) : (s.assign(P, (0, e._)`${P} || {}`), w(s, P, f));
902
902
  }),
903
903
  mergeValues: (s, f) => s === !0 ? !0 : { ...s, ...f },
904
- resultToName: g
904
+ resultToName: v
905
905
  }),
906
- items: y({
906
+ items: g({
907
907
  mergeNames: (s, f, P) => s.if((0, e._)`${P} !== true && ${f} !== undefined`, () => s.assign(P, (0, e._)`${f} === true ? true : ${P} > ${f} ? ${P} : ${f}`)),
908
908
  mergeToName: (s, f, P) => s.if((0, e._)`${P} !== true`, () => s.assign(P, f === !0 ? !0 : (0, e._)`${P} > ${f} ? ${P} : ${f}`)),
909
909
  mergeValues: (s, f) => s === !0 ? !0 : Math.max(s, f),
910
910
  resultToName: (s, f) => s.var("items", f)
911
911
  })
912
912
  };
913
- function g(s, f) {
913
+ function v(s, f) {
914
914
  if (f === !0)
915
915
  return s.var("props", !0);
916
916
  const P = s.var("props", (0, e._)`{}`);
917
917
  return f !== void 0 && w(s, P, f), P;
918
918
  }
919
- G.evaluatedPropsToName = g;
919
+ G.evaluatedPropsToName = v;
920
920
  function w(s, f, P) {
921
- Object.keys(P).forEach((R) => s.assign((0, e._)`${f}${(0, e.getProperty)(R)}`, !0));
921
+ Object.keys(P).forEach((N) => s.assign((0, e._)`${f}${(0, e.getProperty)(N)}`, !0));
922
922
  }
923
923
  G.setEvaluated = w;
924
924
  const c = {};
@@ -935,8 +935,8 @@ function Y() {
935
935
  })(r || (G.Type = r = {}));
936
936
  function o(s, f, P) {
937
937
  if (s instanceof e.Name) {
938
- const R = f === r.Num;
939
- return P ? R ? (0, e._)`"[" + ${s} + "]"` : (0, e._)`"['" + ${s} + "']"` : R ? (0, e._)`"/" + ${s}` : (0, e._)`"/" + ${s}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
938
+ const N = f === r.Num;
939
+ return P ? N ? (0, e._)`"[" + ${s} + "]"` : (0, e._)`"['" + ${s} + "']"` : N ? (0, e._)`"/" + ${s}` : (0, e._)`"/" + ${s}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
940
940
  }
941
941
  return P ? (0, e.getProperty)(s).toString() : "/" + _(s);
942
942
  }
@@ -950,10 +950,10 @@ function Y() {
950
950
  }
951
951
  return G.checkStrictMode = h, G;
952
952
  }
953
- var Ce = {}, sr;
953
+ var Te = {}, or;
954
954
  function _e() {
955
- if (sr) return Ce;
956
- sr = 1, Object.defineProperty(Ce, "__esModule", { value: !0 });
955
+ if (or) return Te;
956
+ or = 1, Object.defineProperty(Te, "__esModule", { value: !0 });
957
957
  const e = J(), t = {
958
958
  // validation function arguments
959
959
  data: new e.Name("data"),
@@ -983,11 +983,11 @@ function _e() {
983
983
  jsonLen: new e.Name("jsonLen"),
984
984
  jsonPart: new e.Name("jsonPart")
985
985
  };
986
- return Ce.default = t, Ce;
986
+ return Te.default = t, Te;
987
987
  }
988
- var or;
988
+ var ar;
989
989
  function Nt() {
990
- return or || (or = 1, (function(e) {
990
+ return ar || (ar = 1, (function(e) {
991
991
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
992
992
  const t = J(), a = Y(), n = _e();
993
993
  e.keywordError = {
@@ -995,11 +995,11 @@ function Nt() {
995
995
  }, e.keyword$DataError = {
996
996
  message: ({ keyword: c, schemaType: d }) => d ? (0, t.str)`"${c}" keyword must be ${d} ($data)` : (0, t.str)`"${c}" keyword is invalid ($data)`
997
997
  };
998
- function v(c, d = e.keywordError, r, o) {
999
- const { it: h } = c, { gen: s, compositeRule: f, allErrors: P } = h, R = S(c, d, r);
1000
- o ?? (f || P) ? m(s, R) : b(h, (0, t._)`[${R}]`);
998
+ function y(c, d = e.keywordError, r, o) {
999
+ const { it: h } = c, { gen: s, compositeRule: f, allErrors: P } = h, N = S(c, d, r);
1000
+ o ?? (f || P) ? m(s, N) : b(h, (0, t._)`[${N}]`);
1001
1001
  }
1002
- e.reportError = v;
1002
+ e.reportError = y;
1003
1003
  function i(c, d = e.keywordError, r) {
1004
1004
  const { it: o } = c, { gen: h, compositeRule: s, allErrors: f } = o, P = S(c, d, r);
1005
1005
  m(h, P), s || f || b(o, n.default.vErrors);
@@ -1042,42 +1042,42 @@ function Nt() {
1042
1042
  }
1043
1043
  function $(c, d, r = {}) {
1044
1044
  const { gen: o, it: h } = c, s = [
1045
- y(h, r),
1046
- g(c, r)
1045
+ g(h, r),
1046
+ v(c, r)
1047
1047
  ];
1048
1048
  return w(c, d, s), o.object(...s);
1049
1049
  }
1050
- function y({ errorPath: c }, { instancePath: d }) {
1050
+ function g({ errorPath: c }, { instancePath: d }) {
1051
1051
  const r = d ? (0, t.str)`${c}${(0, a.getErrorPath)(d, a.Type.Str)}` : c;
1052
1052
  return [n.default.instancePath, (0, t.strConcat)(n.default.instancePath, r)];
1053
1053
  }
1054
- function g({ keyword: c, it: { errSchemaPath: d } }, { schemaPath: r, parentSchema: o }) {
1054
+ function v({ keyword: c, it: { errSchemaPath: d } }, { schemaPath: r, parentSchema: o }) {
1055
1055
  let h = o ? d : (0, t.str)`${d}/${c}`;
1056
1056
  return r && (h = (0, t.str)`${h}${(0, a.getErrorPath)(r, a.Type.Str)}`), [_.schemaPath, h];
1057
1057
  }
1058
1058
  function w(c, { params: d, message: r }, o) {
1059
- const { keyword: h, data: s, schemaValue: f, it: P } = c, { opts: R, propertyName: D, topSchemaRef: z, schemaPath: q } = P;
1060
- o.push([_.keyword, h], [_.params, typeof d == "function" ? d(c) : d || (0, t._)`{}`]), R.messages && o.push([_.message, typeof r == "function" ? r(c) : r]), R.verbose && o.push([_.schema, f], [_.parentSchema, (0, t._)`${z}${q}`], [n.default.data, s]), D && o.push([_.propertyName, D]);
1059
+ const { keyword: h, data: s, schemaValue: f, it: P } = c, { opts: N, propertyName: D, topSchemaRef: z, schemaPath: q } = P;
1060
+ o.push([_.keyword, h], [_.params, typeof d == "function" ? d(c) : d || (0, t._)`{}`]), N.messages && o.push([_.message, typeof r == "function" ? r(c) : r]), N.verbose && o.push([_.schema, f], [_.parentSchema, (0, t._)`${z}${q}`], [n.default.data, s]), D && o.push([_.propertyName, D]);
1061
1061
  }
1062
- })(Mt)), Mt;
1062
+ })(Vt)), Vt;
1063
1063
  }
1064
- var ar;
1065
- function Vn() {
1066
- if (ar) return be;
1067
- ar = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.boolOrEmptySchema = be.topBoolOrEmptySchema = void 0;
1064
+ var cr;
1065
+ function Ln() {
1066
+ if (cr) return $e;
1067
+ cr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.boolOrEmptySchema = $e.topBoolOrEmptySchema = void 0;
1068
1068
  const e = Nt(), t = J(), a = _e(), n = {
1069
1069
  message: "boolean schema is false"
1070
1070
  };
1071
- function v(u) {
1071
+ function y(u) {
1072
1072
  const { gen: m, schema: b, validateName: _ } = u;
1073
1073
  b === !1 ? p(u, !1) : typeof b == "object" && b.$async === !0 ? m.return(a.default.data) : (m.assign((0, t._)`${_}.errors`, null), m.return(!0));
1074
1074
  }
1075
- be.topBoolOrEmptySchema = v;
1075
+ $e.topBoolOrEmptySchema = y;
1076
1076
  function i(u, m) {
1077
1077
  const { gen: b, schema: _ } = u;
1078
1078
  _ === !1 ? (b.var(m, !1), p(u)) : b.var(m, !0);
1079
1079
  }
1080
- be.boolOrEmptySchema = i;
1080
+ $e.boolOrEmptySchema = i;
1081
1081
  function p(u, m) {
1082
1082
  const { gen: b, data: _ } = u, S = {
1083
1083
  gen: b,
@@ -1091,58 +1091,58 @@ function Vn() {
1091
1091
  };
1092
1092
  (0, e.reportError)(S, n, void 0, m);
1093
1093
  }
1094
- return be;
1094
+ return $e;
1095
1095
  }
1096
- var re = {}, we = {}, cr;
1096
+ var re = {}, be = {}, dr;
1097
1097
  function _n() {
1098
- if (cr) return we;
1099
- cr = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.getRules = we.isJSONType = void 0;
1098
+ if (dr) return be;
1099
+ dr = 1, Object.defineProperty(be, "__esModule", { value: !0 }), be.getRules = be.isJSONType = void 0;
1100
1100
  const e = ["string", "number", "integer", "boolean", "null", "object", "array"], t = new Set(e);
1101
- function a(v) {
1102
- return typeof v == "string" && t.has(v);
1101
+ function a(y) {
1102
+ return typeof y == "string" && t.has(y);
1103
1103
  }
1104
- we.isJSONType = a;
1104
+ be.isJSONType = a;
1105
1105
  function n() {
1106
- const v = {
1106
+ const y = {
1107
1107
  number: { type: "number", rules: [] },
1108
1108
  string: { type: "string", rules: [] },
1109
1109
  array: { type: "array", rules: [] },
1110
1110
  object: { type: "object", rules: [] }
1111
1111
  };
1112
1112
  return {
1113
- types: { ...v, integer: !0, boolean: !0, null: !0 },
1114
- rules: [{ rules: [] }, v.number, v.string, v.array, v.object],
1113
+ types: { ...y, integer: !0, boolean: !0, null: !0 },
1114
+ rules: [{ rules: [] }, y.number, y.string, y.array, y.object],
1115
1115
  post: { rules: [] },
1116
1116
  all: {},
1117
1117
  keywords: {}
1118
1118
  };
1119
1119
  }
1120
- return we.getRules = n, we;
1120
+ return be.getRules = n, be;
1121
1121
  }
1122
- var ye = {}, dr;
1122
+ var ye = {}, ur;
1123
1123
  function $n() {
1124
- if (dr) return ye;
1125
- dr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.shouldUseRule = ye.shouldUseGroup = ye.schemaHasRulesForType = void 0;
1126
- function e({ schema: n, self: v }, i) {
1127
- const p = v.RULES.types[i];
1124
+ if (ur) return ye;
1125
+ ur = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.shouldUseRule = ye.shouldUseGroup = ye.schemaHasRulesForType = void 0;
1126
+ function e({ schema: n, self: y }, i) {
1127
+ const p = y.RULES.types[i];
1128
1128
  return p && p !== !0 && t(n, p);
1129
1129
  }
1130
1130
  ye.schemaHasRulesForType = e;
1131
- function t(n, v) {
1132
- return v.rules.some((i) => a(n, i));
1131
+ function t(n, y) {
1132
+ return y.rules.some((i) => a(n, i));
1133
1133
  }
1134
1134
  ye.shouldUseGroup = t;
1135
- function a(n, v) {
1135
+ function a(n, y) {
1136
1136
  var i;
1137
- return n[v.keyword] !== void 0 || ((i = v.definition.implements) === null || i === void 0 ? void 0 : i.some((p) => n[p] !== void 0));
1137
+ return n[y.keyword] !== void 0 || ((i = y.definition.implements) === null || i === void 0 ? void 0 : i.some((p) => n[p] !== void 0));
1138
1138
  }
1139
1139
  return ye.shouldUseRule = a, ye;
1140
1140
  }
1141
- var ur;
1142
- function _t() {
1143
- if (ur) return re;
1144
- ur = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.reportTypeError = re.checkDataTypes = re.checkDataType = re.coerceAndCheckDataType = re.getJSONTypes = re.getSchemaTypes = re.DataType = void 0;
1145
- const e = _n(), t = $n(), a = Nt(), n = J(), v = Y();
1141
+ var lr;
1142
+ function $t() {
1143
+ if (lr) return re;
1144
+ lr = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.reportTypeError = re.checkDataTypes = re.checkDataType = re.coerceAndCheckDataType = re.getJSONTypes = re.getSchemaTypes = re.DataType = void 0;
1145
+ const e = _n(), t = $n(), a = Nt(), n = J(), y = Y();
1146
1146
  var i;
1147
1147
  (function(r) {
1148
1148
  r[r.Correct = 0] = "Correct", r[r.Wrong = 1] = "Wrong";
@@ -1168,14 +1168,14 @@ function _t() {
1168
1168
  }
1169
1169
  re.getJSONTypes = u;
1170
1170
  function m(r, o) {
1171
- const { gen: h, data: s, opts: f } = r, P = _(o, f.coerceTypes), R = o.length > 0 && !(P.length === 0 && o.length === 1 && (0, t.schemaHasRulesForType)(r, o[0]));
1172
- if (R) {
1173
- const D = g(o, s, f.strictNumbers, i.Wrong);
1171
+ const { gen: h, data: s, opts: f } = r, P = _(o, f.coerceTypes), N = o.length > 0 && !(P.length === 0 && o.length === 1 && (0, t.schemaHasRulesForType)(r, o[0]));
1172
+ if (N) {
1173
+ const D = v(o, s, f.strictNumbers, i.Wrong);
1174
1174
  h.if(D, () => {
1175
1175
  P.length ? S(r, o, P) : c(r);
1176
1176
  });
1177
1177
  }
1178
- return R;
1178
+ return N;
1179
1179
  }
1180
1180
  re.coerceAndCheckDataType = m;
1181
1181
  const b = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
@@ -1183,8 +1183,8 @@ function _t() {
1183
1183
  return o ? r.filter((h) => b.has(h) || o === "array" && h === "array") : [];
1184
1184
  }
1185
1185
  function S(r, o, h) {
1186
- const { gen: s, data: f, opts: P } = r, R = s.let("dataType", (0, n._)`typeof ${f}`), D = s.let("coerced", (0, n._)`undefined`);
1187
- P.coerceTypes === "array" && s.if((0, n._)`${R} == 'object' && Array.isArray(${f}) && ${f}.length == 1`, () => s.assign(f, (0, n._)`${f}[0]`).assign(R, (0, n._)`typeof ${f}`).if(g(o, f, P.strictNumbers), () => s.assign(D, f))), s.if((0, n._)`${D} !== undefined`);
1186
+ const { gen: s, data: f, opts: P } = r, N = s.let("dataType", (0, n._)`typeof ${f}`), D = s.let("coerced", (0, n._)`undefined`);
1187
+ P.coerceTypes === "array" && s.if((0, n._)`${N} == 'object' && Array.isArray(${f}) && ${f}.length == 1`, () => s.assign(f, (0, n._)`${f}[0]`).assign(N, (0, n._)`typeof ${f}`).if(v(o, f, P.strictNumbers), () => s.assign(D, f))), s.if((0, n._)`${D} !== undefined`);
1188
1188
  for (const q of h)
1189
1189
  (b.has(q) || q === "array" && P.coerceTypes === "array") && z(q);
1190
1190
  s.else(), c(r), s.endIf(), s.if((0, n._)`${D} !== undefined`, () => {
@@ -1193,15 +1193,15 @@ function _t() {
1193
1193
  function z(q) {
1194
1194
  switch (q) {
1195
1195
  case "string":
1196
- s.elseIf((0, n._)`${R} == "number" || ${R} == "boolean"`).assign(D, (0, n._)`"" + ${f}`).elseIf((0, n._)`${f} === null`).assign(D, (0, n._)`""`);
1196
+ s.elseIf((0, n._)`${N} == "number" || ${N} == "boolean"`).assign(D, (0, n._)`"" + ${f}`).elseIf((0, n._)`${f} === null`).assign(D, (0, n._)`""`);
1197
1197
  return;
1198
1198
  case "number":
1199
- s.elseIf((0, n._)`${R} == "boolean" || ${f} === null
1200
- || (${R} == "string" && ${f} && ${f} == +${f})`).assign(D, (0, n._)`+${f}`);
1199
+ s.elseIf((0, n._)`${N} == "boolean" || ${f} === null
1200
+ || (${N} == "string" && ${f} && ${f} == +${f})`).assign(D, (0, n._)`+${f}`);
1201
1201
  return;
1202
1202
  case "integer":
1203
- s.elseIf((0, n._)`${R} === "boolean" || ${f} === null
1204
- || (${R} === "string" && ${f} && ${f} == +${f} && !(${f} % 1))`).assign(D, (0, n._)`+${f}`);
1203
+ s.elseIf((0, n._)`${N} === "boolean" || ${f} === null
1204
+ || (${N} === "string" && ${f} && ${f} == +${f} && !(${f} % 1))`).assign(D, (0, n._)`+${f}`);
1205
1205
  return;
1206
1206
  case "boolean":
1207
1207
  s.elseIf((0, n._)`${f} === "false" || ${f} === 0 || ${f} === null`).assign(D, !1).elseIf((0, n._)`${f} === "true" || ${f} === 1`).assign(D, !0);
@@ -1210,15 +1210,15 @@ function _t() {
1210
1210
  s.elseIf((0, n._)`${f} === "" || ${f} === 0 || ${f} === false`), s.assign(D, null);
1211
1211
  return;
1212
1212
  case "array":
1213
- s.elseIf((0, n._)`${R} === "string" || ${R} === "number"
1214
- || ${R} === "boolean" || ${f} === null`).assign(D, (0, n._)`[${f}]`);
1213
+ s.elseIf((0, n._)`${N} === "string" || ${N} === "number"
1214
+ || ${N} === "boolean" || ${f} === null`).assign(D, (0, n._)`[${f}]`);
1215
1215
  }
1216
1216
  }
1217
1217
  }
1218
1218
  function $({ gen: r, parentData: o, parentDataProperty: h }, s) {
1219
1219
  r.if((0, n._)`${o} !== undefined`, () => r.assign((0, n._)`${o}[${h}]`, s));
1220
1220
  }
1221
- function y(r, o, h, s = i.Correct) {
1221
+ function g(r, o, h, s = i.Correct) {
1222
1222
  const f = s === i.Correct ? n.operators.EQ : n.operators.NEQ;
1223
1223
  let P;
1224
1224
  switch (r) {
@@ -1231,36 +1231,36 @@ function _t() {
1231
1231
  P = (0, n._)`${o} && typeof ${o} == "object" && !Array.isArray(${o})`;
1232
1232
  break;
1233
1233
  case "integer":
1234
- P = R((0, n._)`!(${o} % 1) && !isNaN(${o})`);
1234
+ P = N((0, n._)`!(${o} % 1) && !isNaN(${o})`);
1235
1235
  break;
1236
1236
  case "number":
1237
- P = R();
1237
+ P = N();
1238
1238
  break;
1239
1239
  default:
1240
1240
  return (0, n._)`typeof ${o} ${f} ${r}`;
1241
1241
  }
1242
1242
  return s === i.Correct ? P : (0, n.not)(P);
1243
- function R(D = n.nil) {
1243
+ function N(D = n.nil) {
1244
1244
  return (0, n.and)((0, n._)`typeof ${o} == "number"`, D, h ? (0, n._)`isFinite(${o})` : n.nil);
1245
1245
  }
1246
1246
  }
1247
- re.checkDataType = y;
1248
- function g(r, o, h, s) {
1247
+ re.checkDataType = g;
1248
+ function v(r, o, h, s) {
1249
1249
  if (r.length === 1)
1250
- return y(r[0], o, h, s);
1250
+ return g(r[0], o, h, s);
1251
1251
  let f;
1252
- const P = (0, v.toHash)(r);
1252
+ const P = (0, y.toHash)(r);
1253
1253
  if (P.array && P.object) {
1254
- const R = (0, n._)`typeof ${o} != "object"`;
1255
- f = P.null ? R : (0, n._)`!${o} || ${R}`, delete P.null, delete P.array, delete P.object;
1254
+ const N = (0, n._)`typeof ${o} != "object"`;
1255
+ f = P.null ? N : (0, n._)`!${o} || ${N}`, delete P.null, delete P.array, delete P.object;
1256
1256
  } else
1257
1257
  f = n.nil;
1258
1258
  P.number && delete P.integer;
1259
- for (const R in P)
1260
- f = (0, n.and)(f, y(R, o, h, s));
1259
+ for (const N in P)
1260
+ f = (0, n.and)(f, g(N, o, h, s));
1261
1261
  return f;
1262
1262
  }
1263
- re.checkDataTypes = g;
1263
+ re.checkDataTypes = v;
1264
1264
  const w = {
1265
1265
  message: ({ schema: r }) => `must be ${r}`,
1266
1266
  params: ({ schema: r, schemaValue: o }) => typeof r == "string" ? (0, n._)`{type: ${r}}` : (0, n._)`{type: ${o}}`
@@ -1271,7 +1271,7 @@ function _t() {
1271
1271
  }
1272
1272
  re.reportTypeError = c;
1273
1273
  function d(r) {
1274
- const { gen: o, data: h, schema: s } = r, f = (0, v.schemaRefOrVal)(r, s, "type");
1274
+ const { gen: o, data: h, schema: s } = r, f = (0, y.schemaRefOrVal)(r, s, "type");
1275
1275
  return {
1276
1276
  gen: o,
1277
1277
  keyword: "type",
@@ -1286,26 +1286,26 @@ function _t() {
1286
1286
  }
1287
1287
  return re;
1288
1288
  }
1289
- var Ie = {}, lr;
1290
- function zn() {
1291
- if (lr) return Ie;
1292
- lr = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.assignDefaults = void 0;
1289
+ var Ie = {}, fr;
1290
+ function Un() {
1291
+ if (fr) return Ie;
1292
+ fr = 1, Object.defineProperty(Ie, "__esModule", { value: !0 }), Ie.assignDefaults = void 0;
1293
1293
  const e = J(), t = Y();
1294
- function a(v, i) {
1295
- const { properties: p, items: u } = v.schema;
1294
+ function a(y, i) {
1295
+ const { properties: p, items: u } = y.schema;
1296
1296
  if (i === "object" && p)
1297
1297
  for (const m in p)
1298
- n(v, m, p[m].default);
1299
- else i === "array" && Array.isArray(u) && u.forEach((m, b) => n(v, b, m.default));
1298
+ n(y, m, p[m].default);
1299
+ else i === "array" && Array.isArray(u) && u.forEach((m, b) => n(y, b, m.default));
1300
1300
  }
1301
1301
  Ie.assignDefaults = a;
1302
- function n(v, i, p) {
1303
- const { gen: u, compositeRule: m, data: b, opts: _ } = v;
1302
+ function n(y, i, p) {
1303
+ const { gen: u, compositeRule: m, data: b, opts: _ } = y;
1304
1304
  if (p === void 0)
1305
1305
  return;
1306
1306
  const S = (0, e._)`${b}${(0, e.getProperty)(i)}`;
1307
1307
  if (m) {
1308
- (0, t.checkStrictMode)(v, `default is ignored for: ${S}`);
1308
+ (0, t.checkStrictMode)(y, `default is ignored for: ${S}`);
1309
1309
  return;
1310
1310
  }
1311
1311
  let $ = (0, e._)`${S} === undefined`;
@@ -1313,18 +1313,18 @@ function zn() {
1313
1313
  }
1314
1314
  return Ie;
1315
1315
  }
1316
- var pe = {}, X = {}, fr;
1316
+ var pe = {}, X = {}, pr;
1317
1317
  function me() {
1318
- if (fr) return X;
1319
- fr = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.validateUnion = X.validateArray = X.usePattern = X.callValidateCode = X.schemaProperties = X.allSchemaProperties = X.noPropertyInData = X.propertyInData = X.isOwnProperty = X.hasPropFunc = X.reportMissingProp = X.checkMissingProp = X.checkReportMissingProp = void 0;
1318
+ if (pr) return X;
1319
+ pr = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.validateUnion = X.validateArray = X.usePattern = X.callValidateCode = X.schemaProperties = X.allSchemaProperties = X.noPropertyInData = X.propertyInData = X.isOwnProperty = X.hasPropFunc = X.reportMissingProp = X.checkMissingProp = X.checkReportMissingProp = void 0;
1320
1320
  const e = J(), t = Y(), a = _e(), n = Y();
1321
- function v(r, o) {
1321
+ function y(r, o) {
1322
1322
  const { gen: h, data: s, it: f } = r;
1323
1323
  h.if(_(h, s, o, f.opts.ownProperties), () => {
1324
1324
  r.setParams({ missingProperty: (0, e._)`${o}` }, !0), r.error();
1325
1325
  });
1326
1326
  }
1327
- X.checkReportMissingProp = v;
1327
+ X.checkReportMissingProp = y;
1328
1328
  function i({ gen: r, data: o, it: { opts: h } }, s, f) {
1329
1329
  return (0, e.or)(...s.map((P) => (0, e.and)(_(r, o, P, h.ownProperties), (0, e._)`${f} = ${P}`)));
1330
1330
  }
@@ -1363,25 +1363,25 @@ function me() {
1363
1363
  return S(o).filter((h) => !(0, t.alwaysValidSchema)(r, o[h]));
1364
1364
  }
1365
1365
  X.schemaProperties = $;
1366
- function y({ schemaCode: r, data: o, it: { gen: h, topSchemaRef: s, schemaPath: f, errorPath: P }, it: R }, D, z, q) {
1366
+ function g({ schemaCode: r, data: o, it: { gen: h, topSchemaRef: s, schemaPath: f, errorPath: P }, it: N }, D, z, q) {
1367
1367
  const V = q ? (0, e._)`${r}, ${o}, ${s}${f}` : o, F = [
1368
1368
  [a.default.instancePath, (0, e.strConcat)(a.default.instancePath, P)],
1369
- [a.default.parentData, R.parentData],
1370
- [a.default.parentDataProperty, R.parentDataProperty],
1369
+ [a.default.parentData, N.parentData],
1370
+ [a.default.parentDataProperty, N.parentDataProperty],
1371
1371
  [a.default.rootData, a.default.rootData]
1372
1372
  ];
1373
- R.opts.dynamicRef && F.push([a.default.dynamicAnchors, a.default.dynamicAnchors]);
1373
+ N.opts.dynamicRef && F.push([a.default.dynamicAnchors, a.default.dynamicAnchors]);
1374
1374
  const L = (0, e._)`${V}, ${h.object(...F)}`;
1375
1375
  return z !== e.nil ? (0, e._)`${D}.call(${z}, ${L})` : (0, e._)`${D}(${L})`;
1376
1376
  }
1377
- X.callValidateCode = y;
1378
- const g = (0, e._)`new RegExp`;
1377
+ X.callValidateCode = g;
1378
+ const v = (0, e._)`new RegExp`;
1379
1379
  function w({ gen: r, it: { opts: o } }, h) {
1380
1380
  const s = o.unicodeRegExp ? "u" : "", { regExp: f } = o.code, P = f(h, s);
1381
1381
  return r.scopeValue("pattern", {
1382
1382
  key: P.toString(),
1383
1383
  ref: P,
1384
- code: (0, e._)`${f.code === "new RegExp" ? g : (0, n.useFunc)(r, f)}(${h}, ${s})`
1384
+ code: (0, e._)`${f.code === "new RegExp" ? v : (0, n.useFunc)(r, f)}(${h}, ${s})`
1385
1385
  });
1386
1386
  }
1387
1387
  X.usePattern = w;
@@ -1389,10 +1389,10 @@ function me() {
1389
1389
  const { gen: o, data: h, keyword: s, it: f } = r, P = o.name("valid");
1390
1390
  if (f.allErrors) {
1391
1391
  const D = o.let("valid", !0);
1392
- return R(() => o.assign(D, !1)), D;
1392
+ return N(() => o.assign(D, !1)), D;
1393
1393
  }
1394
- return o.var(P, !0), R(() => o.break()), P;
1395
- function R(D) {
1394
+ return o.var(P, !0), N(() => o.break()), P;
1395
+ function N(D) {
1396
1396
  const z = o.const("len", (0, e._)`${h}.length`);
1397
1397
  o.forRange("i", 0, z, (q) => {
1398
1398
  r.subschema({
@@ -1410,27 +1410,27 @@ function me() {
1410
1410
  throw new Error("ajv implementation error");
1411
1411
  if (h.some((z) => (0, t.alwaysValidSchema)(f, z)) && !f.opts.unevaluated)
1412
1412
  return;
1413
- const R = o.let("valid", !1), D = o.name("_valid");
1413
+ const N = o.let("valid", !1), D = o.name("_valid");
1414
1414
  o.block(() => h.forEach((z, q) => {
1415
1415
  const V = r.subschema({
1416
1416
  keyword: s,
1417
1417
  schemaProp: q,
1418
1418
  compositeRule: !0
1419
1419
  }, D);
1420
- o.assign(R, (0, e._)`${R} || ${D}`), r.mergeValidEvaluated(V, D) || o.if((0, e.not)(R));
1421
- })), r.result(R, () => r.reset(), () => r.error(!0));
1420
+ o.assign(N, (0, e._)`${N} || ${D}`), r.mergeValidEvaluated(V, D) || o.if((0, e.not)(N));
1421
+ })), r.result(N, () => r.reset(), () => r.error(!0));
1422
1422
  }
1423
1423
  return X.validateUnion = d, X;
1424
1424
  }
1425
- var pr;
1426
- function Fn() {
1427
- if (pr) return pe;
1428
- pr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.validateKeywordUsage = pe.validSchemaType = pe.funcKeywordCode = pe.macroKeywordCode = void 0;
1425
+ var mr;
1426
+ function Kn() {
1427
+ if (mr) return pe;
1428
+ mr = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.validateKeywordUsage = pe.validSchemaType = pe.funcKeywordCode = pe.macroKeywordCode = void 0;
1429
1429
  const e = J(), t = _e(), a = me(), n = Nt();
1430
- function v($, y) {
1431
- const { gen: g, keyword: w, schema: c, parentSchema: d, it: r } = $, o = y.macro.call(r.self, c, d, r), h = b(g, w, o);
1430
+ function y($, g) {
1431
+ const { gen: v, keyword: w, schema: c, parentSchema: d, it: r } = $, o = g.macro.call(r.self, c, d, r), h = b(v, w, o);
1432
1432
  r.opts.validateSchema !== !1 && r.self.validateSchema(o, !0);
1433
- const s = g.name("valid");
1433
+ const s = v.name("valid");
1434
1434
  $.subschema({
1435
1435
  schema: o,
1436
1436
  schemaPath: e.nil,
@@ -1439,19 +1439,19 @@ function Fn() {
1439
1439
  compositeRule: !0
1440
1440
  }, s), $.pass(s, () => $.error(!0));
1441
1441
  }
1442
- pe.macroKeywordCode = v;
1443
- function i($, y) {
1444
- var g;
1442
+ pe.macroKeywordCode = y;
1443
+ function i($, g) {
1444
+ var v;
1445
1445
  const { gen: w, keyword: c, schema: d, parentSchema: r, $data: o, it: h } = $;
1446
- m(h, y);
1447
- const s = !o && y.compile ? y.compile.call(h.self, d, r, h) : y.validate, f = b(w, c, s), P = w.let("valid");
1448
- $.block$data(P, R), $.ok((g = y.valid) !== null && g !== void 0 ? g : P);
1449
- function R() {
1450
- if (y.errors === !1)
1451
- q(), y.modifying && p($), V(() => $.error());
1446
+ m(h, g);
1447
+ const s = !o && g.compile ? g.compile.call(h.self, d, r, h) : g.validate, f = b(w, c, s), P = w.let("valid");
1448
+ $.block$data(P, N), $.ok((v = g.valid) !== null && v !== void 0 ? v : P);
1449
+ function N() {
1450
+ if (g.errors === !1)
1451
+ q(), g.modifying && p($), V(() => $.error());
1452
1452
  else {
1453
- const F = y.async ? D() : z();
1454
- y.modifying && p($), V(() => u($, F));
1453
+ const F = g.async ? D() : z();
1454
+ g.modifying && p($), V(() => u($, F));
1455
1455
  }
1456
1456
  }
1457
1457
  function D() {
@@ -1462,59 +1462,59 @@ function Fn() {
1462
1462
  const F = (0, e._)`${f}.errors`;
1463
1463
  return w.assign(F, null), q(e.nil), F;
1464
1464
  }
1465
- function q(F = y.async ? (0, e._)`await ` : e.nil) {
1466
- const L = h.opts.passContext ? t.default.this : t.default.self, Q = !("compile" in y && !o || y.schema === !1);
1467
- w.assign(P, (0, e._)`${F}${(0, a.callValidateCode)($, f, L, Q)}`, y.modifying);
1465
+ function q(F = g.async ? (0, e._)`await ` : e.nil) {
1466
+ const L = h.opts.passContext ? t.default.this : t.default.self, Q = !("compile" in g && !o || g.schema === !1);
1467
+ w.assign(P, (0, e._)`${F}${(0, a.callValidateCode)($, f, L, Q)}`, g.modifying);
1468
1468
  }
1469
1469
  function V(F) {
1470
1470
  var L;
1471
- w.if((0, e.not)((L = y.valid) !== null && L !== void 0 ? L : P), F);
1471
+ w.if((0, e.not)((L = g.valid) !== null && L !== void 0 ? L : P), F);
1472
1472
  }
1473
1473
  }
1474
1474
  pe.funcKeywordCode = i;
1475
1475
  function p($) {
1476
- const { gen: y, data: g, it: w } = $;
1477
- y.if(w.parentData, () => y.assign(g, (0, e._)`${w.parentData}[${w.parentDataProperty}]`));
1476
+ const { gen: g, data: v, it: w } = $;
1477
+ g.if(w.parentData, () => g.assign(v, (0, e._)`${w.parentData}[${w.parentDataProperty}]`));
1478
1478
  }
1479
- function u($, y) {
1480
- const { gen: g } = $;
1481
- g.if((0, e._)`Array.isArray(${y})`, () => {
1482
- g.assign(t.default.vErrors, (0, e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors, (0, e._)`${t.default.vErrors}.length`), (0, n.extendErrors)($);
1479
+ function u($, g) {
1480
+ const { gen: v } = $;
1481
+ v.if((0, e._)`Array.isArray(${g})`, () => {
1482
+ v.assign(t.default.vErrors, (0, e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors, (0, e._)`${t.default.vErrors}.length`), (0, n.extendErrors)($);
1483
1483
  }, () => $.error());
1484
1484
  }
1485
- function m({ schemaEnv: $ }, y) {
1486
- if (y.async && !$.$async)
1485
+ function m({ schemaEnv: $ }, g) {
1486
+ if (g.async && !$.$async)
1487
1487
  throw new Error("async keyword in sync schema");
1488
1488
  }
1489
- function b($, y, g) {
1490
- if (g === void 0)
1491
- throw new Error(`keyword "${y}" failed to compile`);
1492
- return $.scopeValue("keyword", typeof g == "function" ? { ref: g } : { ref: g, code: (0, e.stringify)(g) });
1489
+ function b($, g, v) {
1490
+ if (v === void 0)
1491
+ throw new Error(`keyword "${g}" failed to compile`);
1492
+ return $.scopeValue("keyword", typeof v == "function" ? { ref: v } : { ref: v, code: (0, e.stringify)(v) });
1493
1493
  }
1494
- function _($, y, g = !1) {
1495
- return !y.length || y.some((w) => w === "array" ? Array.isArray($) : w === "object" ? $ && typeof $ == "object" && !Array.isArray($) : typeof $ == w || g && typeof $ > "u");
1494
+ function _($, g, v = !1) {
1495
+ return !g.length || g.some((w) => w === "array" ? Array.isArray($) : w === "object" ? $ && typeof $ == "object" && !Array.isArray($) : typeof $ == w || v && typeof $ > "u");
1496
1496
  }
1497
1497
  pe.validSchemaType = _;
1498
- function S({ schema: $, opts: y, self: g, errSchemaPath: w }, c, d) {
1498
+ function S({ schema: $, opts: g, self: v, errSchemaPath: w }, c, d) {
1499
1499
  if (Array.isArray(c.keyword) ? !c.keyword.includes(d) : c.keyword !== d)
1500
1500
  throw new Error("ajv implementation error");
1501
1501
  const r = c.dependencies;
1502
1502
  if (r?.some((o) => !Object.prototype.hasOwnProperty.call($, o)))
1503
1503
  throw new Error(`parent schema must have dependencies of ${d}: ${r.join(",")}`);
1504
1504
  if (c.validateSchema && !c.validateSchema($[d])) {
1505
- const h = `keyword "${d}" value is invalid at path "${w}": ` + g.errorsText(c.validateSchema.errors);
1506
- if (y.validateSchema === "log")
1507
- g.logger.error(h);
1505
+ const h = `keyword "${d}" value is invalid at path "${w}": ` + v.errorsText(c.validateSchema.errors);
1506
+ if (g.validateSchema === "log")
1507
+ v.logger.error(h);
1508
1508
  else
1509
1509
  throw new Error(h);
1510
1510
  }
1511
1511
  }
1512
1512
  return pe.validateKeywordUsage = S, pe;
1513
1513
  }
1514
- var ge = {}, mr;
1515
- function Ln() {
1516
- if (mr) return ge;
1517
- mr = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.extendSubschemaMode = ge.extendSubschemaData = ge.getSubschema = void 0;
1514
+ var ge = {}, hr;
1515
+ function Hn() {
1516
+ if (hr) return ge;
1517
+ hr = 1, Object.defineProperty(ge, "__esModule", { value: !0 }), ge.extendSubschemaMode = ge.extendSubschemaData = ge.getSubschema = void 0;
1518
1518
  const e = J(), t = Y();
1519
1519
  function a(i, { keyword: p, schemaProp: u, schema: m, schemaPath: b, errSchemaPath: _, topSchemaRef: S }) {
1520
1520
  if (p !== void 0 && m !== void 0)
@@ -1549,62 +1549,62 @@ function Ln() {
1549
1549
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1550
1550
  const { gen: $ } = p;
1551
1551
  if (u !== void 0) {
1552
- const { errorPath: g, dataPathArr: w, opts: c } = p, d = $.let("data", (0, e._)`${p.data}${(0, e.getProperty)(u)}`, !0);
1553
- y(d), i.errorPath = (0, e.str)`${g}${(0, t.getErrorPath)(u, m, c.jsPropertySyntax)}`, i.parentDataProperty = (0, e._)`${u}`, i.dataPathArr = [...w, i.parentDataProperty];
1552
+ const { errorPath: v, dataPathArr: w, opts: c } = p, d = $.let("data", (0, e._)`${p.data}${(0, e.getProperty)(u)}`, !0);
1553
+ g(d), i.errorPath = (0, e.str)`${v}${(0, t.getErrorPath)(u, m, c.jsPropertySyntax)}`, i.parentDataProperty = (0, e._)`${u}`, i.dataPathArr = [...w, i.parentDataProperty];
1554
1554
  }
1555
1555
  if (b !== void 0) {
1556
- const g = b instanceof e.Name ? b : $.let("data", b, !0);
1557
- y(g), S !== void 0 && (i.propertyName = S);
1556
+ const v = b instanceof e.Name ? b : $.let("data", b, !0);
1557
+ g(v), S !== void 0 && (i.propertyName = S);
1558
1558
  }
1559
1559
  _ && (i.dataTypes = _);
1560
- function y(g) {
1561
- i.data = g, i.dataLevel = p.dataLevel + 1, i.dataTypes = [], p.definedProperties = /* @__PURE__ */ new Set(), i.parentData = p.data, i.dataNames = [...p.dataNames, g];
1560
+ function g(v) {
1561
+ i.data = v, i.dataLevel = p.dataLevel + 1, i.dataTypes = [], p.definedProperties = /* @__PURE__ */ new Set(), i.parentData = p.data, i.dataNames = [...p.dataNames, v];
1562
1562
  }
1563
1563
  }
1564
1564
  ge.extendSubschemaData = n;
1565
- function v(i, { jtdDiscriminator: p, jtdMetadata: u, compositeRule: m, createErrors: b, allErrors: _ }) {
1565
+ function y(i, { jtdDiscriminator: p, jtdMetadata: u, compositeRule: m, createErrors: b, allErrors: _ }) {
1566
1566
  m !== void 0 && (i.compositeRule = m), b !== void 0 && (i.createErrors = b), _ !== void 0 && (i.allErrors = _), i.jtdDiscriminator = p, i.jtdMetadata = u;
1567
1567
  }
1568
- return ge.extendSubschemaMode = v, ge;
1568
+ return ge.extendSubschemaMode = y, ge;
1569
1569
  }
1570
- var se = {}, Lt, hr;
1570
+ var se = {}, Ut, yr;
1571
1571
  function bn() {
1572
- return hr || (hr = 1, Lt = function e(t, a) {
1572
+ return yr || (yr = 1, Ut = function e(t, a) {
1573
1573
  if (t === a) return !0;
1574
1574
  if (t && a && typeof t == "object" && typeof a == "object") {
1575
1575
  if (t.constructor !== a.constructor) return !1;
1576
- var n, v, i;
1576
+ var n, y, i;
1577
1577
  if (Array.isArray(t)) {
1578
1578
  if (n = t.length, n != a.length) return !1;
1579
- for (v = n; v-- !== 0; )
1580
- if (!e(t[v], a[v])) return !1;
1579
+ for (y = n; y-- !== 0; )
1580
+ if (!e(t[y], a[y])) return !1;
1581
1581
  return !0;
1582
1582
  }
1583
1583
  if (t.constructor === RegExp) return t.source === a.source && t.flags === a.flags;
1584
1584
  if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === a.valueOf();
1585
1585
  if (t.toString !== Object.prototype.toString) return t.toString() === a.toString();
1586
1586
  if (i = Object.keys(t), n = i.length, n !== Object.keys(a).length) return !1;
1587
- for (v = n; v-- !== 0; )
1588
- if (!Object.prototype.hasOwnProperty.call(a, i[v])) return !1;
1589
- for (v = n; v-- !== 0; ) {
1590
- var p = i[v];
1587
+ for (y = n; y-- !== 0; )
1588
+ if (!Object.prototype.hasOwnProperty.call(a, i[y])) return !1;
1589
+ for (y = n; y-- !== 0; ) {
1590
+ var p = i[y];
1591
1591
  if (!e(t[p], a[p])) return !1;
1592
1592
  }
1593
1593
  return !0;
1594
1594
  }
1595
1595
  return t !== t && a !== a;
1596
- }), Lt;
1596
+ }), Ut;
1597
1597
  }
1598
- var Ut = { exports: {} }, yr;
1599
- function Un() {
1600
- if (yr) return Ut.exports;
1601
- yr = 1;
1602
- var e = Ut.exports = function(n, v, i) {
1603
- typeof v == "function" && (i = v, v = {}), i = v.cb || i;
1598
+ var Kt = { exports: {} }, gr;
1599
+ function Gn() {
1600
+ if (gr) return Kt.exports;
1601
+ gr = 1;
1602
+ var e = Kt.exports = function(n, y, i) {
1603
+ typeof y == "function" && (i = y, y = {}), i = y.cb || i;
1604
1604
  var p = typeof i == "function" ? i : i.pre || function() {
1605
1605
  }, u = i.post || function() {
1606
1606
  };
1607
- t(v, p, u, n, "", n);
1607
+ t(y, p, u, n, "", n);
1608
1608
  };
1609
1609
  e.keywords = {
1610
1610
  additionalItems: !0,
@@ -1647,20 +1647,20 @@ function Un() {
1647
1647
  maxProperties: !0,
1648
1648
  minProperties: !0
1649
1649
  };
1650
- function t(n, v, i, p, u, m, b, _, S, $) {
1650
+ function t(n, y, i, p, u, m, b, _, S, $) {
1651
1651
  if (p && typeof p == "object" && !Array.isArray(p)) {
1652
- v(p, u, m, b, _, S, $);
1653
- for (var y in p) {
1654
- var g = p[y];
1655
- if (Array.isArray(g)) {
1656
- if (y in e.arrayKeywords)
1657
- for (var w = 0; w < g.length; w++)
1658
- t(n, v, i, g[w], u + "/" + y + "/" + w, m, u, y, p, w);
1659
- } else if (y in e.propsKeywords) {
1660
- if (g && typeof g == "object")
1661
- for (var c in g)
1662
- t(n, v, i, g[c], u + "/" + y + "/" + a(c), m, u, y, p, c);
1663
- } else (y in e.keywords || n.allKeys && !(y in e.skipKeywords)) && t(n, v, i, g, u + "/" + y, m, u, y, p);
1652
+ y(p, u, m, b, _, S, $);
1653
+ for (var g in p) {
1654
+ var v = p[g];
1655
+ if (Array.isArray(v)) {
1656
+ if (g in e.arrayKeywords)
1657
+ for (var w = 0; w < v.length; w++)
1658
+ t(n, y, i, v[w], u + "/" + g + "/" + w, m, u, g, p, w);
1659
+ } else if (g in e.propsKeywords) {
1660
+ if (v && typeof v == "object")
1661
+ for (var c in v)
1662
+ t(n, y, i, v[c], u + "/" + g + "/" + a(c), m, u, g, p, c);
1663
+ } else (g in e.keywords || n.allKeys && !(g in e.skipKeywords)) && t(n, y, i, v, u + "/" + g, m, u, g, p);
1664
1664
  }
1665
1665
  i(p, u, m, b, _, S, $);
1666
1666
  }
@@ -1668,13 +1668,13 @@ function Un() {
1668
1668
  function a(n) {
1669
1669
  return n.replace(/~/g, "~0").replace(/\//g, "~1");
1670
1670
  }
1671
- return Ut.exports;
1671
+ return Kt.exports;
1672
1672
  }
1673
- var gr;
1674
- function Rt() {
1675
- if (gr) return se;
1676
- gr = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.getSchemaRefs = se.resolveUrl = se.normalizeId = se._getFullPath = se.getFullPath = se.inlineRef = void 0;
1677
- const e = Y(), t = bn(), a = Un(), n = /* @__PURE__ */ new Set([
1673
+ var vr;
1674
+ function Ot() {
1675
+ if (vr) return se;
1676
+ vr = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.getSchemaRefs = se.resolveUrl = se.normalizeId = se._getFullPath = se.getFullPath = se.inlineRef = void 0;
1677
+ const e = Y(), t = bn(), a = Gn(), n = /* @__PURE__ */ new Set([
1678
1678
  "type",
1679
1679
  "format",
1680
1680
  "pattern",
@@ -1692,10 +1692,10 @@ function Rt() {
1692
1692
  "enum",
1693
1693
  "const"
1694
1694
  ]);
1695
- function v(w, c = !0) {
1695
+ function y(w, c = !0) {
1696
1696
  return typeof w == "boolean" ? !0 : c === !0 ? !p(w) : c ? u(w) <= c : !1;
1697
1697
  }
1698
- se.inlineRef = v;
1698
+ se.inlineRef = y;
1699
1699
  const i = /* @__PURE__ */ new Set([
1700
1700
  "$ref",
1701
1701
  "$recursiveRef",
@@ -1742,8 +1742,8 @@ function Rt() {
1742
1742
  return d = S(d), w.resolve(c, d);
1743
1743
  }
1744
1744
  se.resolveUrl = $;
1745
- const y = /^[a-z_][-a-z0-9._]*$/i;
1746
- function g(w, c) {
1745
+ const g = /^[a-z_][-a-z0-9._]*$/i;
1746
+ function v(w, c) {
1747
1747
  if (typeof w == "boolean")
1748
1748
  return {};
1749
1749
  const { schemaId: d, uriResolver: r } = this.opts, o = S(w[d] || c), h = { "": o }, s = m(r, o, !1), f = {}, P = /* @__PURE__ */ new Set();
@@ -1758,18 +1758,18 @@ function Rt() {
1758
1758
  if (x = S(Q ? le(Q, x) : x), P.has(x))
1759
1759
  throw D(x);
1760
1760
  P.add(x);
1761
- let A = this.refs[x];
1762
- return typeof A == "string" && (A = this.refs[A]), typeof A == "object" ? R(z, A.schema, x) : x !== S(L) && (x[0] === "#" ? (R(z, f[x], x), f[x] = z) : this.refs[x] = L), x;
1761
+ let M = this.refs[x];
1762
+ return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? N(z, M.schema, x) : x !== S(L) && (x[0] === "#" ? (N(z, f[x], x), f[x] = z) : this.refs[x] = L), x;
1763
1763
  }
1764
1764
  function ie(x) {
1765
1765
  if (typeof x == "string") {
1766
- if (!y.test(x))
1766
+ if (!g.test(x))
1767
1767
  throw new Error(`invalid anchor "${x}"`);
1768
1768
  ne.call(this, `#${x}`);
1769
1769
  }
1770
1770
  }
1771
1771
  }), f;
1772
- function R(z, q, V) {
1772
+ function N(z, q, V) {
1773
1773
  if (q !== void 0 && !t(z, q))
1774
1774
  throw D(V);
1775
1775
  }
@@ -1777,27 +1777,27 @@ function Rt() {
1777
1777
  return new Error(`reference "${z}" resolves to more than one schema`);
1778
1778
  }
1779
1779
  }
1780
- return se.getSchemaRefs = g, se;
1780
+ return se.getSchemaRefs = v, se;
1781
1781
  }
1782
- var vr;
1783
- function Ot() {
1784
- if (vr) return he;
1785
- vr = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.getData = he.KeywordCxt = he.validateFunctionCode = void 0;
1786
- const e = Vn(), t = _t(), a = $n(), n = _t(), v = zn(), i = Fn(), p = Ln(), u = J(), m = _e(), b = Rt(), _ = Y(), S = Nt();
1782
+ var _r;
1783
+ function qt() {
1784
+ if (_r) return he;
1785
+ _r = 1, Object.defineProperty(he, "__esModule", { value: !0 }), he.getData = he.KeywordCxt = he.validateFunctionCode = void 0;
1786
+ const e = Ln(), t = $t(), a = $n(), n = $t(), y = Un(), i = Kn(), p = Hn(), u = J(), m = _e(), b = Ot(), _ = Y(), S = Nt();
1787
1787
  function $(j) {
1788
1788
  if (s(j) && (P(j), h(j))) {
1789
1789
  c(j);
1790
1790
  return;
1791
1791
  }
1792
- y(j, () => (0, e.topBoolOrEmptySchema)(j));
1792
+ g(j, () => (0, e.topBoolOrEmptySchema)(j));
1793
1793
  }
1794
1794
  he.validateFunctionCode = $;
1795
- function y({ gen: j, validateName: I, schema: C, schemaEnv: M, opts: K }, W) {
1796
- K.code.es5 ? j.func(I, (0, u._)`${m.default.data}, ${m.default.valCxt}`, M.$async, () => {
1795
+ function g({ gen: j, validateName: I, schema: C, schemaEnv: A, opts: K }, W) {
1796
+ K.code.es5 ? j.func(I, (0, u._)`${m.default.data}, ${m.default.valCxt}`, A.$async, () => {
1797
1797
  j.code((0, u._)`"use strict"; ${r(C, K)}`), w(j, K), j.code(W);
1798
- }) : j.func(I, (0, u._)`${m.default.data}, ${g(K)}`, M.$async, () => j.code(r(C, K)).code(W));
1798
+ }) : j.func(I, (0, u._)`${m.default.data}, ${v(K)}`, A.$async, () => j.code(r(C, K)).code(W));
1799
1799
  }
1800
- function g(j) {
1800
+ function v(j) {
1801
1801
  return (0, u._)`{${m.default.instancePath}="", ${m.default.parentData}, ${m.default.parentDataProperty}, ${m.default.rootData}=${m.default.data}${j.dynamicRef ? (0, u._)`, ${m.default.dynamicAnchors}={}` : u.nil}}={}`;
1802
1802
  }
1803
1803
  function w(j, I) {
@@ -1808,9 +1808,9 @@ function Ot() {
1808
1808
  });
1809
1809
  }
1810
1810
  function c(j) {
1811
- const { schema: I, opts: C, gen: M } = j;
1812
- y(j, () => {
1813
- C.$comment && I.$comment && F(j), z(j), M.let(m.default.vErrors, null), M.let(m.default.errors, 0), C.unevaluated && d(j), R(j), L(j);
1811
+ const { schema: I, opts: C, gen: A } = j;
1812
+ g(j, () => {
1813
+ C.$comment && I.$comment && F(j), z(j), A.let(m.default.vErrors, null), A.let(m.default.errors, 0), C.unevaluated && d(j), N(j), L(j);
1814
1814
  });
1815
1815
  }
1816
1816
  function d(j) {
@@ -1840,23 +1840,23 @@ function Ot() {
1840
1840
  return typeof j.schema != "boolean";
1841
1841
  }
1842
1842
  function f(j, I) {
1843
- const { schema: C, gen: M, opts: K } = j;
1843
+ const { schema: C, gen: A, opts: K } = j;
1844
1844
  K.$comment && C.$comment && F(j), q(j), V(j);
1845
- const W = M.const("_errs", m.default.errors);
1846
- R(j, W), M.var(I, (0, u._)`${W} === ${m.default.errors}`);
1845
+ const W = A.const("_errs", m.default.errors);
1846
+ N(j, W), A.var(I, (0, u._)`${W} === ${m.default.errors}`);
1847
1847
  }
1848
1848
  function P(j) {
1849
1849
  (0, _.checkUnknownRules)(j), D(j);
1850
1850
  }
1851
- function R(j, I) {
1851
+ function N(j, I) {
1852
1852
  if (j.opts.jtd)
1853
1853
  return ne(j, [], !1, I);
1854
- const C = (0, t.getSchemaTypes)(j.schema), M = (0, t.coerceAndCheckDataType)(j, C);
1855
- ne(j, C, !M, I);
1854
+ const C = (0, t.getSchemaTypes)(j.schema), A = (0, t.coerceAndCheckDataType)(j, C);
1855
+ ne(j, C, !A, I);
1856
1856
  }
1857
1857
  function D(j) {
1858
- const { schema: I, errSchemaPath: C, opts: M, self: K } = j;
1859
- I.$ref && M.ignoreKeywordsWithRef && (0, _.schemaHasRulesButRef)(I, K.RULES) && K.logger.warn(`$ref: keywords ignored in schema at path "${C}"`);
1858
+ const { schema: I, errSchemaPath: C, opts: A, self: K } = j;
1859
+ I.$ref && A.ignoreKeywordsWithRef && (0, _.schemaHasRulesButRef)(I, K.RULES) && K.logger.warn(`$ref: keywords ignored in schema at path "${C}"`);
1860
1860
  }
1861
1861
  function z(j) {
1862
1862
  const { schema: I, opts: C } = j;
@@ -1870,23 +1870,23 @@ function Ot() {
1870
1870
  if (j.schema.$async && !j.schemaEnv.$async)
1871
1871
  throw new Error("async schema in sync schema");
1872
1872
  }
1873
- function F({ gen: j, schemaEnv: I, schema: C, errSchemaPath: M, opts: K }) {
1873
+ function F({ gen: j, schemaEnv: I, schema: C, errSchemaPath: A, opts: K }) {
1874
1874
  const W = C.$comment;
1875
1875
  if (K.$comment === !0)
1876
1876
  j.code((0, u._)`${m.default.self}.logger.log(${W})`);
1877
1877
  else if (typeof K.$comment == "function") {
1878
- const ee = (0, u.str)`${M}/$comment`, fe = j.scopeValue("root", { ref: I.root });
1878
+ const ee = (0, u.str)`${A}/$comment`, fe = j.scopeValue("root", { ref: I.root });
1879
1879
  j.code((0, u._)`${m.default.self}.opts.$comment(${W}, ${ee}, ${fe}.schema)`);
1880
1880
  }
1881
1881
  }
1882
1882
  function L(j) {
1883
- const { gen: I, schemaEnv: C, validateName: M, ValidationError: K, opts: W } = j;
1884
- C.$async ? I.if((0, u._)`${m.default.errors} === 0`, () => I.return(m.default.data), () => I.throw((0, u._)`new ${K}(${m.default.vErrors})`)) : (I.assign((0, u._)`${M}.errors`, m.default.vErrors), W.unevaluated && Q(j), I.return((0, u._)`${m.default.errors} === 0`));
1883
+ const { gen: I, schemaEnv: C, validateName: A, ValidationError: K, opts: W } = j;
1884
+ C.$async ? I.if((0, u._)`${m.default.errors} === 0`, () => I.return(m.default.data), () => I.throw((0, u._)`new ${K}(${m.default.vErrors})`)) : (I.assign((0, u._)`${A}.errors`, m.default.vErrors), W.unevaluated && Q(j), I.return((0, u._)`${m.default.errors} === 0`));
1885
1885
  }
1886
- function Q({ gen: j, evaluated: I, props: C, items: M }) {
1887
- C instanceof u.Name && j.assign((0, u._)`${I}.props`, C), M instanceof u.Name && j.assign((0, u._)`${I}.items`, M);
1886
+ function Q({ gen: j, evaluated: I, props: C, items: A }) {
1887
+ C instanceof u.Name && j.assign((0, u._)`${I}.props`, C), A instanceof u.Name && j.assign((0, u._)`${I}.items`, A);
1888
1888
  }
1889
- function ne(j, I, C, M) {
1889
+ function ne(j, I, C, A) {
1890
1890
  const { gen: K, schema: W, data: ee, allErrors: fe, opts: oe, self: ae } = j, { RULES: te } = ae;
1891
1891
  if (W.$ref && (oe.ignoreKeywordsWithRef || !(0, _.schemaHasRulesButRef)(W, te))) {
1892
1892
  K.block(() => U(j, "$ref", te.all.$ref.definition));
@@ -1898,18 +1898,18 @@ function Ot() {
1898
1898
  Ee(te.post);
1899
1899
  });
1900
1900
  function Ee(ue) {
1901
- (0, a.shouldUseGroup)(W, ue) && (ue.type ? (K.if((0, n.checkDataType)(ue.type, ee, oe.strictNumbers)), ie(j, ue), I.length === 1 && I[0] === ue.type && C && (K.else(), (0, n.reportTypeError)(j)), K.endIf()) : ie(j, ue), fe || K.if((0, u._)`${m.default.errors} === ${M || 0}`));
1901
+ (0, a.shouldUseGroup)(W, ue) && (ue.type ? (K.if((0, n.checkDataType)(ue.type, ee, oe.strictNumbers)), ie(j, ue), I.length === 1 && I[0] === ue.type && C && (K.else(), (0, n.reportTypeError)(j)), K.endIf()) : ie(j, ue), fe || K.if((0, u._)`${m.default.errors} === ${A || 0}`));
1902
1902
  }
1903
1903
  }
1904
1904
  function ie(j, I) {
1905
- const { gen: C, schema: M, opts: { useDefaults: K } } = j;
1906
- K && (0, v.assignDefaults)(j, I.type), C.block(() => {
1905
+ const { gen: C, schema: A, opts: { useDefaults: K } } = j;
1906
+ K && (0, y.assignDefaults)(j, I.type), C.block(() => {
1907
1907
  for (const W of I.rules)
1908
- (0, a.shouldUseRule)(M, W) && U(j, W.keyword, W.definition, I.type);
1908
+ (0, a.shouldUseRule)(A, W) && U(j, W.keyword, W.definition, I.type);
1909
1909
  });
1910
1910
  }
1911
1911
  function x(j, I) {
1912
- j.schemaEnv.meta || !j.opts.strictTypes || (le(j, I), j.opts.allowUnionTypes || A(j, I), k(j, j.dataTypes));
1912
+ j.schemaEnv.meta || !j.opts.strictTypes || (le(j, I), j.opts.allowUnionTypes || M(j, I), k(j, j.dataTypes));
1913
1913
  }
1914
1914
  function le(j, I) {
1915
1915
  if (I.length) {
@@ -1918,33 +1918,33 @@ function Ot() {
1918
1918
  return;
1919
1919
  }
1920
1920
  I.forEach((C) => {
1921
- N(j.dataTypes, C) || E(j, `type "${C}" not allowed by context "${j.dataTypes.join(",")}"`);
1921
+ R(j.dataTypes, C) || E(j, `type "${C}" not allowed by context "${j.dataTypes.join(",")}"`);
1922
1922
  }), l(j, I);
1923
1923
  }
1924
1924
  }
1925
- function A(j, I) {
1925
+ function M(j, I) {
1926
1926
  I.length > 1 && !(I.length === 2 && I.includes("null")) && E(j, "use allowUnionTypes to allow union type keyword");
1927
1927
  }
1928
1928
  function k(j, I) {
1929
1929
  const C = j.self.RULES.all;
1930
- for (const M in C) {
1931
- const K = C[M];
1930
+ for (const A in C) {
1931
+ const K = C[A];
1932
1932
  if (typeof K == "object" && (0, a.shouldUseRule)(j.schema, K)) {
1933
1933
  const { type: W } = K.definition;
1934
- W.length && !W.some((ee) => T(I, ee)) && E(j, `missing type "${W.join(",")}" for keyword "${M}"`);
1934
+ W.length && !W.some((ee) => T(I, ee)) && E(j, `missing type "${W.join(",")}" for keyword "${A}"`);
1935
1935
  }
1936
1936
  }
1937
1937
  }
1938
1938
  function T(j, I) {
1939
1939
  return j.includes(I) || I === "number" && j.includes("integer");
1940
1940
  }
1941
- function N(j, I) {
1941
+ function R(j, I) {
1942
1942
  return j.includes(I) || I === "integer" && j.includes("number");
1943
1943
  }
1944
1944
  function l(j, I) {
1945
1945
  const C = [];
1946
- for (const M of j.dataTypes)
1947
- N(I, M) ? C.push(M) : I.includes("integer") && M === "number" && C.push("integer");
1946
+ for (const A of j.dataTypes)
1947
+ R(I, A) ? C.push(A) : I.includes("integer") && A === "number" && C.push("integer");
1948
1948
  j.dataTypes = C;
1949
1949
  }
1950
1950
  function E(j, I) {
@@ -1952,18 +1952,18 @@ function Ot() {
1952
1952
  I += ` at "${C}" (strictTypes)`, (0, _.checkStrictMode)(j, I, j.opts.strictTypes);
1953
1953
  }
1954
1954
  class O {
1955
- constructor(I, C, M) {
1956
- if ((0, i.validateKeywordUsage)(I, C, M), this.gen = I.gen, this.allErrors = I.allErrors, this.keyword = M, this.data = I.data, this.schema = I.schema[M], this.$data = C.$data && I.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, _.schemaRefOrVal)(I, this.schema, M, this.$data), this.schemaType = C.schemaType, this.parentSchema = I.schema, this.params = {}, this.it = I, this.def = C, this.$data)
1955
+ constructor(I, C, A) {
1956
+ if ((0, i.validateKeywordUsage)(I, C, A), this.gen = I.gen, this.allErrors = I.allErrors, this.keyword = A, this.data = I.data, this.schema = I.schema[A], this.$data = C.$data && I.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, _.schemaRefOrVal)(I, this.schema, A, this.$data), this.schemaType = C.schemaType, this.parentSchema = I.schema, this.params = {}, this.it = I, this.def = C, this.$data)
1957
1957
  this.schemaCode = I.gen.const("vSchema", B(this.$data, I));
1958
1958
  else if (this.schemaCode = this.schemaValue, !(0, i.validSchemaType)(this.schema, C.schemaType, C.allowUndefined))
1959
- throw new Error(`${M} value must be ${JSON.stringify(C.schemaType)}`);
1959
+ throw new Error(`${A} value must be ${JSON.stringify(C.schemaType)}`);
1960
1960
  ("code" in C ? C.trackErrors : C.errors !== !1) && (this.errsCount = I.gen.const("_errs", m.default.errors));
1961
1961
  }
1962
- result(I, C, M) {
1963
- this.failResult((0, u.not)(I), C, M);
1962
+ result(I, C, A) {
1963
+ this.failResult((0, u.not)(I), C, A);
1964
1964
  }
1965
- failResult(I, C, M) {
1966
- this.gen.if(I), M ? M() : this.error(), C ? (this.gen.else(), C(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
1965
+ failResult(I, C, A) {
1966
+ this.gen.if(I), A ? A() : this.error(), C ? (this.gen.else(), C(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
1967
1967
  }
1968
1968
  pass(I, C) {
1969
1969
  this.failResult((0, u.not)(I), void 0, C);
@@ -1981,12 +1981,12 @@ function Ot() {
1981
1981
  const { schemaCode: C } = this;
1982
1982
  this.fail((0, u._)`${C} !== undefined && (${(0, u.or)(this.invalid$data(), I)})`);
1983
1983
  }
1984
- error(I, C, M) {
1984
+ error(I, C, A) {
1985
1985
  if (C) {
1986
- this.setParams(C), this._error(I, M), this.setParams({});
1986
+ this.setParams(C), this._error(I, A), this.setParams({});
1987
1987
  return;
1988
1988
  }
1989
- this._error(I, M);
1989
+ this._error(I, A);
1990
1990
  }
1991
1991
  _error(I, C) {
1992
1992
  (I ? S.reportExtraError : S.reportError)(this, this.def.error, C);
@@ -2005,25 +2005,25 @@ function Ot() {
2005
2005
  setParams(I, C) {
2006
2006
  C ? Object.assign(this.params, I) : this.params = I;
2007
2007
  }
2008
- block$data(I, C, M = u.nil) {
2008
+ block$data(I, C, A = u.nil) {
2009
2009
  this.gen.block(() => {
2010
- this.check$data(I, M), C();
2010
+ this.check$data(I, A), C();
2011
2011
  });
2012
2012
  }
2013
2013
  check$data(I = u.nil, C = u.nil) {
2014
2014
  if (!this.$data)
2015
2015
  return;
2016
- const { gen: M, schemaCode: K, schemaType: W, def: ee } = this;
2017
- M.if((0, u.or)((0, u._)`${K} === undefined`, C)), I !== u.nil && M.assign(I, !0), (W.length || ee.validateSchema) && (M.elseIf(this.invalid$data()), this.$dataError(), I !== u.nil && M.assign(I, !1)), M.else();
2016
+ const { gen: A, schemaCode: K, schemaType: W, def: ee } = this;
2017
+ A.if((0, u.or)((0, u._)`${K} === undefined`, C)), I !== u.nil && A.assign(I, !0), (W.length || ee.validateSchema) && (A.elseIf(this.invalid$data()), this.$dataError(), I !== u.nil && A.assign(I, !1)), A.else();
2018
2018
  }
2019
2019
  invalid$data() {
2020
- const { gen: I, schemaCode: C, schemaType: M, def: K, it: W } = this;
2020
+ const { gen: I, schemaCode: C, schemaType: A, def: K, it: W } = this;
2021
2021
  return (0, u.or)(ee(), fe());
2022
2022
  function ee() {
2023
- if (M.length) {
2023
+ if (A.length) {
2024
2024
  if (!(C instanceof u.Name))
2025
2025
  throw new Error("ajv implementation error");
2026
- const oe = Array.isArray(M) ? M : [M];
2026
+ const oe = Array.isArray(A) ? A : [A];
2027
2027
  return (0, u._)`${(0, n.checkDataTypes)(oe, C, W.opts.strictNumbers, n.DataType.Wrong)}`;
2028
2028
  }
2029
2029
  return u.nil;
@@ -2037,28 +2037,28 @@ function Ot() {
2037
2037
  }
2038
2038
  }
2039
2039
  subschema(I, C) {
2040
- const M = (0, p.getSubschema)(this.it, I);
2041
- (0, p.extendSubschemaData)(M, this.it, I), (0, p.extendSubschemaMode)(M, I);
2042
- const K = { ...this.it, ...M, items: void 0, props: void 0 };
2040
+ const A = (0, p.getSubschema)(this.it, I);
2041
+ (0, p.extendSubschemaData)(A, this.it, I), (0, p.extendSubschemaMode)(A, I);
2042
+ const K = { ...this.it, ...A, items: void 0, props: void 0 };
2043
2043
  return o(K, C), K;
2044
2044
  }
2045
2045
  mergeEvaluated(I, C) {
2046
- const { it: M, gen: K } = this;
2047
- M.opts.unevaluated && (M.props !== !0 && I.props !== void 0 && (M.props = _.mergeEvaluated.props(K, I.props, M.props, C)), M.items !== !0 && I.items !== void 0 && (M.items = _.mergeEvaluated.items(K, I.items, M.items, C)));
2046
+ const { it: A, gen: K } = this;
2047
+ A.opts.unevaluated && (A.props !== !0 && I.props !== void 0 && (A.props = _.mergeEvaluated.props(K, I.props, A.props, C)), A.items !== !0 && I.items !== void 0 && (A.items = _.mergeEvaluated.items(K, I.items, A.items, C)));
2048
2048
  }
2049
2049
  mergeValidEvaluated(I, C) {
2050
- const { it: M, gen: K } = this;
2051
- if (M.opts.unevaluated && (M.props !== !0 || M.items !== !0))
2050
+ const { it: A, gen: K } = this;
2051
+ if (A.opts.unevaluated && (A.props !== !0 || A.items !== !0))
2052
2052
  return K.if(C, () => this.mergeEvaluated(I, u.Name)), !0;
2053
2053
  }
2054
2054
  }
2055
2055
  he.KeywordCxt = O;
2056
- function U(j, I, C, M) {
2056
+ function U(j, I, C, A) {
2057
2057
  const K = new O(j, C, I);
2058
- "code" in C ? C.code(K, M) : K.$data && C.validate ? (0, i.funcKeywordCode)(K, C) : "macro" in C ? (0, i.macroKeywordCode)(K, C) : (C.compile || C.validate) && (0, i.funcKeywordCode)(K, C);
2058
+ "code" in C ? C.code(K, A) : K.$data && C.validate ? (0, i.funcKeywordCode)(K, C) : "macro" in C ? (0, i.macroKeywordCode)(K, C) : (C.compile || C.validate) && (0, i.funcKeywordCode)(K, C);
2059
2059
  }
2060
2060
  const H = /^\/(?:[^~]|~0|~1)*$/, Z = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2061
- function B(j, { dataLevel: I, dataNames: C, dataPathArr: M }) {
2061
+ function B(j, { dataLevel: I, dataNames: C, dataPathArr: A }) {
2062
2062
  let K, W;
2063
2063
  if (j === "")
2064
2064
  return m.default.rootData;
@@ -2074,7 +2074,7 @@ function Ot() {
2074
2074
  if (K = ae[2], K === "#") {
2075
2075
  if (te >= I)
2076
2076
  throw new Error(oe("property/index", te));
2077
- return M[I - te];
2077
+ return A[I - te];
2078
2078
  }
2079
2079
  if (te > I)
2080
2080
  throw new Error(oe("data", te));
@@ -2092,34 +2092,34 @@ function Ot() {
2092
2092
  }
2093
2093
  return he.getData = B, he;
2094
2094
  }
2095
- var Te = {}, _r;
2096
- function Bt() {
2097
- if (_r) return Te;
2098
- _r = 1, Object.defineProperty(Te, "__esModule", { value: !0 });
2095
+ var De = {}, $r;
2096
+ function Yt() {
2097
+ if ($r) return De;
2098
+ $r = 1, Object.defineProperty(De, "__esModule", { value: !0 });
2099
2099
  class e extends Error {
2100
2100
  constructor(a) {
2101
2101
  super("validation failed"), this.errors = a, this.ajv = this.validation = !0;
2102
2102
  }
2103
2103
  }
2104
- return Te.default = e, Te;
2104
+ return De.default = e, De;
2105
2105
  }
2106
- var De = {}, $r;
2107
- function qt() {
2108
- if ($r) return De;
2109
- $r = 1, Object.defineProperty(De, "__esModule", { value: !0 });
2110
- const e = Rt();
2106
+ var Me = {}, br;
2107
+ function Ct() {
2108
+ if (br) return Me;
2109
+ br = 1, Object.defineProperty(Me, "__esModule", { value: !0 });
2110
+ const e = Ot();
2111
2111
  class t extends Error {
2112
- constructor(n, v, i, p) {
2113
- super(p || `can't resolve reference ${i} from id ${v}`), this.missingRef = (0, e.resolveUrl)(n, v, i), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
2112
+ constructor(n, y, i, p) {
2113
+ super(p || `can't resolve reference ${i} from id ${y}`), this.missingRef = (0, e.resolveUrl)(n, y, i), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
2114
2114
  }
2115
2115
  }
2116
- return De.default = t, De;
2116
+ return Me.default = t, Me;
2117
2117
  }
2118
- var ce = {}, br;
2119
- function Yt() {
2120
- if (br) return ce;
2121
- br = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.resolveSchema = ce.getCompilingSchema = ce.resolveRef = ce.compileSchema = ce.SchemaEnv = void 0;
2122
- const e = J(), t = Bt(), a = _e(), n = Rt(), v = Y(), i = Ot();
2118
+ var ce = {}, wr;
2119
+ function Zt() {
2120
+ if (wr) return ce;
2121
+ wr = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.resolveSchema = ce.getCompilingSchema = ce.resolveRef = ce.compileSchema = ce.SchemaEnv = void 0;
2122
+ const e = J(), t = Yt(), a = _e(), n = Ot(), y = Y(), i = qt();
2123
2123
  class p {
2124
2124
  constructor(d) {
2125
2125
  var r;
@@ -2139,8 +2139,8 @@ function Yt() {
2139
2139
  ref: t.default,
2140
2140
  code: (0, e._)`require("ajv/dist/runtime/validation_error").default`
2141
2141
  }));
2142
- const R = f.scopeName("validate");
2143
- c.validateName = R;
2142
+ const N = f.scopeName("validate");
2143
+ c.validateName = N;
2144
2144
  const D = {
2145
2145
  gen: f,
2146
2146
  allErrors: this.opts.allErrors,
@@ -2154,7 +2154,7 @@ function Yt() {
2154
2154
  dataTypes: [],
2155
2155
  definedProperties: /* @__PURE__ */ new Set(),
2156
2156
  topSchemaRef: f.scopeValue("schema", this.opts.code.source === !0 ? { ref: c.schema, code: (0, e.stringify)(c.schema) } : { ref: c.schema }),
2157
- validateName: R,
2157
+ validateName: N,
2158
2158
  ValidationError: P,
2159
2159
  schema: c.schema,
2160
2160
  schemaEnv: c,
@@ -2172,7 +2172,7 @@ function Yt() {
2172
2172
  const q = f.toString();
2173
2173
  z = `${f.scopeRefs(a.default.scope)}return ${q}`, this.opts.code.process && (z = this.opts.code.process(z, c));
2174
2174
  const F = new Function(`${a.default.self}`, `${a.default.scope}`, z)(this, this.scope.get());
2175
- if (this.scope.value(R, { ref: F }), F.errors = null, F.schema = c.schema, F.schemaEnv = c, c.$async && (F.$async = !0), this.opts.code.source === !0 && (F.source = { validateName: R, validateCode: q, scopeValues: f._values }), this.opts.unevaluated) {
2175
+ if (this.scope.value(N, { ref: F }), F.errors = null, F.schema = c.schema, F.schemaEnv = c, c.$async && (F.$async = !0), this.opts.code.source === !0 && (F.source = { validateName: N, validateCode: q, scopeValues: f._values }), this.opts.unevaluated) {
2176
2176
  const { props: L, items: Q } = D;
2177
2177
  F.evaluated = {
2178
2178
  props: L instanceof e.Name ? void 0 : L,
@@ -2220,28 +2220,28 @@ function Yt() {
2220
2220
  let r;
2221
2221
  for (; typeof (r = this.refs[d]) == "string"; )
2222
2222
  d = r;
2223
- return r || this.schemas[d] || y.call(this, c, d);
2223
+ return r || this.schemas[d] || g.call(this, c, d);
2224
2224
  }
2225
- function y(c, d) {
2225
+ function g(c, d) {
2226
2226
  const r = this.opts.uriResolver.parse(d), o = (0, n._getFullPath)(this.opts.uriResolver, r);
2227
2227
  let h = (0, n.getFullPath)(this.opts.uriResolver, c.baseId, void 0);
2228
2228
  if (Object.keys(c.schema).length > 0 && o === h)
2229
2229
  return w.call(this, r, c);
2230
2230
  const s = (0, n.normalizeId)(o), f = this.refs[s] || this.schemas[s];
2231
2231
  if (typeof f == "string") {
2232
- const P = y.call(this, c, f);
2232
+ const P = g.call(this, c, f);
2233
2233
  return typeof P?.schema != "object" ? void 0 : w.call(this, r, P);
2234
2234
  }
2235
2235
  if (typeof f?.schema == "object") {
2236
2236
  if (f.validate || u.call(this, f), s === (0, n.normalizeId)(d)) {
2237
- const { schema: P } = f, { schemaId: R } = this.opts, D = P[R];
2238
- return D && (h = (0, n.resolveUrl)(this.opts.uriResolver, h, D)), new p({ schema: P, schemaId: R, root: c, baseId: h });
2237
+ const { schema: P } = f, { schemaId: N } = this.opts, D = P[N];
2238
+ return D && (h = (0, n.resolveUrl)(this.opts.uriResolver, h, D)), new p({ schema: P, schemaId: N, root: c, baseId: h });
2239
2239
  }
2240
2240
  return w.call(this, r, f);
2241
2241
  }
2242
2242
  }
2243
- ce.resolveSchema = y;
2244
- const g = /* @__PURE__ */ new Set([
2243
+ ce.resolveSchema = g;
2244
+ const v = /* @__PURE__ */ new Set([
2245
2245
  "properties",
2246
2246
  "patternProperties",
2247
2247
  "enum",
@@ -2255,17 +2255,17 @@ function Yt() {
2255
2255
  for (const P of c.fragment.slice(1).split("/")) {
2256
2256
  if (typeof r == "boolean")
2257
2257
  return;
2258
- const R = r[(0, v.unescapeFragment)(P)];
2259
- if (R === void 0)
2258
+ const N = r[(0, y.unescapeFragment)(P)];
2259
+ if (N === void 0)
2260
2260
  return;
2261
- r = R;
2261
+ r = N;
2262
2262
  const D = typeof r == "object" && r[this.opts.schemaId];
2263
- !g.has(P) && D && (d = (0, n.resolveUrl)(this.opts.uriResolver, d, D));
2263
+ !v.has(P) && D && (d = (0, n.resolveUrl)(this.opts.uriResolver, d, D));
2264
2264
  }
2265
2265
  let s;
2266
- if (typeof r != "boolean" && r.$ref && !(0, v.schemaHasRulesButRef)(r, this.RULES)) {
2266
+ if (typeof r != "boolean" && r.$ref && !(0, y.schemaHasRulesButRef)(r, this.RULES)) {
2267
2267
  const P = (0, n.resolveUrl)(this.opts.uriResolver, d, r.$ref);
2268
- s = y.call(this, o, P);
2268
+ s = g.call(this, o, P);
2269
2269
  }
2270
2270
  const { schemaId: f } = this.opts;
2271
2271
  if (s = s || new p({ schema: r, schemaId: f, root: o, baseId: d }), s.schema !== s.root.schema)
@@ -2273,169 +2273,169 @@ function Yt() {
2273
2273
  }
2274
2274
  return ce;
2275
2275
  }
2276
- const Kn = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Hn = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Gn = "object", Jn = ["$data"], Wn = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Bn = !1, Yn = {
2277
- $id: Kn,
2278
- description: Hn,
2279
- type: Gn,
2280
- required: Jn,
2281
- properties: Wn,
2282
- additionalProperties: Bn
2276
+ const Jn = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Wn = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Bn = "object", Yn = ["$data"], Zn = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Qn = !1, Xn = {
2277
+ $id: Jn,
2278
+ description: Wn,
2279
+ type: Bn,
2280
+ required: Yn,
2281
+ properties: Zn,
2282
+ additionalProperties: Qn
2283
2283
  };
2284
- var Ae = {}, Ne = { exports: {} }, Kt, wr;
2284
+ var Ae = {}, Re = { exports: {} }, Ht, Pr;
2285
2285
  function wn() {
2286
- if (wr) return Kt;
2287
- wr = 1;
2286
+ if (Pr) return Ht;
2287
+ Pr = 1;
2288
2288
  const e = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), t = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
2289
2289
  function a($) {
2290
- let y = "", g = 0, w = 0;
2290
+ let g = "", v = 0, w = 0;
2291
2291
  for (w = 0; w < $.length; w++)
2292
- if (g = $[w].charCodeAt(0), g !== 48) {
2293
- if (!(g >= 48 && g <= 57 || g >= 65 && g <= 70 || g >= 97 && g <= 102))
2292
+ if (v = $[w].charCodeAt(0), v !== 48) {
2293
+ if (!(v >= 48 && v <= 57 || v >= 65 && v <= 70 || v >= 97 && v <= 102))
2294
2294
  return "";
2295
- y += $[w];
2295
+ g += $[w];
2296
2296
  break;
2297
2297
  }
2298
2298
  for (w += 1; w < $.length; w++) {
2299
- if (g = $[w].charCodeAt(0), !(g >= 48 && g <= 57 || g >= 65 && g <= 70 || g >= 97 && g <= 102))
2299
+ if (v = $[w].charCodeAt(0), !(v >= 48 && v <= 57 || v >= 65 && v <= 70 || v >= 97 && v <= 102))
2300
2300
  return "";
2301
- y += $[w];
2301
+ g += $[w];
2302
2302
  }
2303
- return y;
2303
+ return g;
2304
2304
  }
2305
2305
  const n = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2306
- function v($) {
2306
+ function y($) {
2307
2307
  return $.length = 0, !0;
2308
2308
  }
2309
- function i($, y, g) {
2309
+ function i($, g, v) {
2310
2310
  if ($.length) {
2311
2311
  const w = a($);
2312
2312
  if (w !== "")
2313
- y.push(w);
2313
+ g.push(w);
2314
2314
  else
2315
- return g.error = !0, !1;
2315
+ return v.error = !0, !1;
2316
2316
  $.length = 0;
2317
2317
  }
2318
2318
  return !0;
2319
2319
  }
2320
2320
  function p($) {
2321
- let y = 0;
2322
- const g = { error: !1, address: "", zone: "" }, w = [], c = [];
2321
+ let g = 0;
2322
+ const v = { error: !1, address: "", zone: "" }, w = [], c = [];
2323
2323
  let d = !1, r = !1, o = i;
2324
2324
  for (let h = 0; h < $.length; h++) {
2325
2325
  const s = $[h];
2326
2326
  if (!(s === "[" || s === "]"))
2327
2327
  if (s === ":") {
2328
- if (d === !0 && (r = !0), !o(c, w, g))
2328
+ if (d === !0 && (r = !0), !o(c, w, v))
2329
2329
  break;
2330
- if (++y > 7) {
2331
- g.error = !0;
2330
+ if (++g > 7) {
2331
+ v.error = !0;
2332
2332
  break;
2333
2333
  }
2334
2334
  h > 0 && $[h - 1] === ":" && (d = !0), w.push(":");
2335
2335
  continue;
2336
2336
  } else if (s === "%") {
2337
- if (!o(c, w, g))
2337
+ if (!o(c, w, v))
2338
2338
  break;
2339
- o = v;
2339
+ o = y;
2340
2340
  } else {
2341
2341
  c.push(s);
2342
2342
  continue;
2343
2343
  }
2344
2344
  }
2345
- return c.length && (o === v ? g.zone = c.join("") : r ? w.push(c.join("")) : w.push(a(c))), g.address = w.join(""), g;
2345
+ return c.length && (o === y ? v.zone = c.join("") : r ? w.push(c.join("")) : w.push(a(c))), v.address = w.join(""), v;
2346
2346
  }
2347
2347
  function u($) {
2348
2348
  if (m($, ":") < 2)
2349
2349
  return { host: $, isIPV6: !1 };
2350
- const y = p($);
2351
- if (y.error)
2350
+ const g = p($);
2351
+ if (g.error)
2352
2352
  return { host: $, isIPV6: !1 };
2353
2353
  {
2354
- let g = y.address, w = y.address;
2355
- return y.zone && (g += "%" + y.zone, w += "%25" + y.zone), { host: g, isIPV6: !0, escapedHost: w };
2354
+ let v = g.address, w = g.address;
2355
+ return g.zone && (v += "%" + g.zone, w += "%25" + g.zone), { host: v, isIPV6: !0, escapedHost: w };
2356
2356
  }
2357
2357
  }
2358
- function m($, y) {
2359
- let g = 0;
2358
+ function m($, g) {
2359
+ let v = 0;
2360
2360
  for (let w = 0; w < $.length; w++)
2361
- $[w] === y && g++;
2362
- return g;
2361
+ $[w] === g && v++;
2362
+ return v;
2363
2363
  }
2364
2364
  function b($) {
2365
- let y = $;
2366
- const g = [];
2365
+ let g = $;
2366
+ const v = [];
2367
2367
  let w = -1, c = 0;
2368
- for (; c = y.length; ) {
2368
+ for (; c = g.length; ) {
2369
2369
  if (c === 1) {
2370
- if (y === ".")
2370
+ if (g === ".")
2371
2371
  break;
2372
- if (y === "/") {
2373
- g.push("/");
2372
+ if (g === "/") {
2373
+ v.push("/");
2374
2374
  break;
2375
2375
  } else {
2376
- g.push(y);
2376
+ v.push(g);
2377
2377
  break;
2378
2378
  }
2379
2379
  } else if (c === 2) {
2380
- if (y[0] === ".") {
2381
- if (y[1] === ".")
2380
+ if (g[0] === ".") {
2381
+ if (g[1] === ".")
2382
2382
  break;
2383
- if (y[1] === "/") {
2384
- y = y.slice(2);
2383
+ if (g[1] === "/") {
2384
+ g = g.slice(2);
2385
2385
  continue;
2386
2386
  }
2387
- } else if (y[0] === "/" && (y[1] === "." || y[1] === "/")) {
2388
- g.push("/");
2387
+ } else if (g[0] === "/" && (g[1] === "." || g[1] === "/")) {
2388
+ v.push("/");
2389
2389
  break;
2390
2390
  }
2391
- } else if (c === 3 && y === "/..") {
2392
- g.length !== 0 && g.pop(), g.push("/");
2391
+ } else if (c === 3 && g === "/..") {
2392
+ v.length !== 0 && v.pop(), v.push("/");
2393
2393
  break;
2394
2394
  }
2395
- if (y[0] === ".") {
2396
- if (y[1] === ".") {
2397
- if (y[2] === "/") {
2398
- y = y.slice(3);
2395
+ if (g[0] === ".") {
2396
+ if (g[1] === ".") {
2397
+ if (g[2] === "/") {
2398
+ g = g.slice(3);
2399
2399
  continue;
2400
2400
  }
2401
- } else if (y[1] === "/") {
2402
- y = y.slice(2);
2401
+ } else if (g[1] === "/") {
2402
+ g = g.slice(2);
2403
2403
  continue;
2404
2404
  }
2405
- } else if (y[0] === "/" && y[1] === ".") {
2406
- if (y[2] === "/") {
2407
- y = y.slice(2);
2405
+ } else if (g[0] === "/" && g[1] === ".") {
2406
+ if (g[2] === "/") {
2407
+ g = g.slice(2);
2408
2408
  continue;
2409
- } else if (y[2] === "." && y[3] === "/") {
2410
- y = y.slice(3), g.length !== 0 && g.pop();
2409
+ } else if (g[2] === "." && g[3] === "/") {
2410
+ g = g.slice(3), v.length !== 0 && v.pop();
2411
2411
  continue;
2412
2412
  }
2413
2413
  }
2414
- if ((w = y.indexOf("/", 1)) === -1) {
2415
- g.push(y);
2414
+ if ((w = g.indexOf("/", 1)) === -1) {
2415
+ v.push(g);
2416
2416
  break;
2417
2417
  } else
2418
- g.push(y.slice(0, w)), y = y.slice(w);
2418
+ v.push(g.slice(0, w)), g = g.slice(w);
2419
2419
  }
2420
- return g.join("");
2420
+ return v.join("");
2421
2421
  }
2422
- function _($, y) {
2423
- const g = y !== !0 ? escape : unescape;
2424
- return $.scheme !== void 0 && ($.scheme = g($.scheme)), $.userinfo !== void 0 && ($.userinfo = g($.userinfo)), $.host !== void 0 && ($.host = g($.host)), $.path !== void 0 && ($.path = g($.path)), $.query !== void 0 && ($.query = g($.query)), $.fragment !== void 0 && ($.fragment = g($.fragment)), $;
2422
+ function _($, g) {
2423
+ const v = g !== !0 ? escape : unescape;
2424
+ return $.scheme !== void 0 && ($.scheme = v($.scheme)), $.userinfo !== void 0 && ($.userinfo = v($.userinfo)), $.host !== void 0 && ($.host = v($.host)), $.path !== void 0 && ($.path = v($.path)), $.query !== void 0 && ($.query = v($.query)), $.fragment !== void 0 && ($.fragment = v($.fragment)), $;
2425
2425
  }
2426
2426
  function S($) {
2427
- const y = [];
2428
- if ($.userinfo !== void 0 && (y.push($.userinfo), y.push("@")), $.host !== void 0) {
2429
- let g = unescape($.host);
2430
- if (!t(g)) {
2431
- const w = u(g);
2432
- w.isIPV6 === !0 ? g = `[${w.escapedHost}]` : g = $.host;
2427
+ const g = [];
2428
+ if ($.userinfo !== void 0 && (g.push($.userinfo), g.push("@")), $.host !== void 0) {
2429
+ let v = unescape($.host);
2430
+ if (!t(v)) {
2431
+ const w = u(v);
2432
+ w.isIPV6 === !0 ? v = `[${w.escapedHost}]` : v = $.host;
2433
2433
  }
2434
- y.push(g);
2434
+ g.push(v);
2435
2435
  }
2436
- return (typeof $.port == "number" || typeof $.port == "string") && (y.push(":"), y.push(String($.port))), y.length ? y.join("") : void 0;
2436
+ return (typeof $.port == "number" || typeof $.port == "string") && (g.push(":"), g.push(String($.port))), g.length ? g.join("") : void 0;
2437
2437
  }
2438
- return Kt = {
2438
+ return Ht = {
2439
2439
  nonSimpleDomain: n,
2440
2440
  recomposeAuthority: S,
2441
2441
  normalizeComponentEncoding: _,
@@ -2444,12 +2444,12 @@ function wn() {
2444
2444
  isUUID: e,
2445
2445
  normalizeIPv6: u,
2446
2446
  stringArrayToHexStripped: a
2447
- }, Kt;
2447
+ }, Ht;
2448
2448
  }
2449
- var Ht, Pr;
2450
- function Zn() {
2451
- if (Pr) return Ht;
2452
- Pr = 1;
2449
+ var Gt, Er;
2450
+ function xn() {
2451
+ if (Er) return Gt;
2452
+ Er = 1;
2453
2453
  const { isUUID: e } = wn(), t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, a = (
2454
2454
  /** @type {const} */
2455
2455
  [
@@ -2467,7 +2467,7 @@ function Zn() {
2467
2467
  s
2468
2468
  ) !== -1;
2469
2469
  }
2470
- function v(s) {
2470
+ function y(s) {
2471
2471
  return s.secure === !0 ? !0 : s.secure === !1 ? !1 : s.scheme ? s.scheme.length === 3 && (s.scheme[0] === "w" || s.scheme[0] === "W") && (s.scheme[1] === "s" || s.scheme[1] === "S") && (s.scheme[2] === "s" || s.scheme[2] === "S") : !1;
2472
2472
  }
2473
2473
  function i(s) {
@@ -2478,10 +2478,10 @@ function Zn() {
2478
2478
  return (s.port === (f ? 443 : 80) || s.port === "") && (s.port = void 0), s.path || (s.path = "/"), s;
2479
2479
  }
2480
2480
  function u(s) {
2481
- return s.secure = v(s), s.resourceName = (s.path || "/") + (s.query ? "?" + s.query : ""), s.path = void 0, s.query = void 0, s;
2481
+ return s.secure = y(s), s.resourceName = (s.path || "/") + (s.query ? "?" + s.query : ""), s.path = void 0, s.query = void 0, s;
2482
2482
  }
2483
2483
  function m(s) {
2484
- if ((s.port === (v(s) ? 443 : 80) || s.port === "") && (s.port = void 0), typeof s.secure == "boolean" && (s.scheme = s.secure ? "wss" : "ws", s.secure = void 0), s.resourceName) {
2484
+ if ((s.port === (y(s) ? 443 : 80) || s.port === "") && (s.port = void 0), typeof s.secure == "boolean" && (s.scheme = s.secure ? "wss" : "ws", s.secure = void 0), s.resourceName) {
2485
2485
  const [f, P] = s.resourceName.split("?");
2486
2486
  s.path = f && f !== "/" ? f : void 0, s.query = P, s.resourceName = void 0;
2487
2487
  }
@@ -2492,9 +2492,9 @@ function Zn() {
2492
2492
  return s.error = "URN can not be parsed", s;
2493
2493
  const P = s.path.match(t);
2494
2494
  if (P) {
2495
- const R = f.scheme || s.scheme || "urn";
2495
+ const N = f.scheme || s.scheme || "urn";
2496
2496
  s.nid = P[1].toLowerCase(), s.nss = P[2];
2497
- const D = `${R}:${f.nid || s.nid}`, z = h(D);
2497
+ const D = `${N}:${f.nid || s.nid}`, z = h(D);
2498
2498
  s.path = void 0, z && (s = z.parse(s, f));
2499
2499
  } else
2500
2500
  s.error = s.error || "URN can not be parsed.";
@@ -2503,10 +2503,10 @@ function Zn() {
2503
2503
  function _(s, f) {
2504
2504
  if (s.nid === void 0)
2505
2505
  throw new Error("URN without nid cannot be serialized");
2506
- const P = f.scheme || s.scheme || "urn", R = s.nid.toLowerCase(), D = `${P}:${f.nid || R}`, z = h(D);
2506
+ const P = f.scheme || s.scheme || "urn", N = s.nid.toLowerCase(), D = `${P}:${f.nid || N}`, z = h(D);
2507
2507
  z && (s = z.serialize(s, f));
2508
2508
  const q = s, V = s.nss;
2509
- return q.path = `${R || f.nid}:${V}`, f.skipEscape = !0, q;
2509
+ return q.path = `${N || f.nid}:${V}`, f.skipEscape = !0, q;
2510
2510
  }
2511
2511
  function S(s, f) {
2512
2512
  const P = s;
@@ -2516,7 +2516,7 @@ function Zn() {
2516
2516
  const f = s;
2517
2517
  return f.nss = (s.uuid || "").toLowerCase(), f;
2518
2518
  }
2519
- const y = (
2519
+ const g = (
2520
2520
  /** @type {SchemeHandler} */
2521
2521
  {
2522
2522
  scheme: "http",
@@ -2524,11 +2524,11 @@ function Zn() {
2524
2524
  parse: i,
2525
2525
  serialize: p
2526
2526
  }
2527
- ), g = (
2527
+ ), v = (
2528
2528
  /** @type {SchemeHandler} */
2529
2529
  {
2530
2530
  scheme: "https",
2531
- domainHost: y.domainHost,
2531
+ domainHost: g.domainHost,
2532
2532
  parse: i,
2533
2533
  serialize: p
2534
2534
  }
@@ -2551,8 +2551,8 @@ function Zn() {
2551
2551
  ), o = (
2552
2552
  /** @type {Record<SchemeName, SchemeHandler>} */
2553
2553
  {
2554
- http: y,
2555
- https: g,
2554
+ http: g,
2555
+ https: v,
2556
2556
  ws: w,
2557
2557
  wss: c,
2558
2558
  urn: (
@@ -2585,33 +2585,33 @@ function Zn() {
2585
2585
  s.toLowerCase()
2586
2586
  ]) || void 0;
2587
2587
  }
2588
- return Ht = {
2589
- wsIsSecure: v,
2588
+ return Gt = {
2589
+ wsIsSecure: y,
2590
2590
  SCHEMES: o,
2591
2591
  isValidSchemeName: n,
2592
2592
  getSchemeHandler: h
2593
- }, Ht;
2593
+ }, Gt;
2594
2594
  }
2595
- var Er;
2596
- function Qn() {
2597
- if (Er) return Ne.exports;
2598
- Er = 1;
2599
- const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: a, normalizeComponentEncoding: n, isIPv4: v, nonSimpleDomain: i } = wn(), { SCHEMES: p, getSchemeHandler: u } = Zn();
2595
+ var Sr;
2596
+ function ei() {
2597
+ if (Sr) return Re.exports;
2598
+ Sr = 1;
2599
+ const { normalizeIPv6: e, removeDotSegments: t, recomposeAuthority: a, normalizeComponentEncoding: n, isIPv4: y, nonSimpleDomain: i } = wn(), { SCHEMES: p, getSchemeHandler: u } = xn();
2600
2600
  function m(c, d) {
2601
2601
  return typeof c == "string" ? c = /** @type {T} */
2602
- $(g(c, d), d) : typeof c == "object" && (c = /** @type {T} */
2603
- g($(c, d), d)), c;
2602
+ $(v(c, d), d) : typeof c == "object" && (c = /** @type {T} */
2603
+ v($(c, d), d)), c;
2604
2604
  }
2605
2605
  function b(c, d, r) {
2606
- const o = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, h = _(g(c, o), g(d, o), o, !0);
2606
+ const o = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, h = _(v(c, o), v(d, o), o, !0);
2607
2607
  return o.skipEscape = !0, $(h, o);
2608
2608
  }
2609
2609
  function _(c, d, r, o) {
2610
2610
  const h = {};
2611
- return o || (c = g($(c, r), r), d = g($(d, r), r)), r = r || {}, !r.tolerant && d.scheme ? (h.scheme = d.scheme, h.userinfo = d.userinfo, h.host = d.host, h.port = d.port, h.path = t(d.path || ""), h.query = d.query) : (d.userinfo !== void 0 || d.host !== void 0 || d.port !== void 0 ? (h.userinfo = d.userinfo, h.host = d.host, h.port = d.port, h.path = t(d.path || ""), h.query = d.query) : (d.path ? (d.path[0] === "/" ? h.path = t(d.path) : ((c.userinfo !== void 0 || c.host !== void 0 || c.port !== void 0) && !c.path ? h.path = "/" + d.path : c.path ? h.path = c.path.slice(0, c.path.lastIndexOf("/") + 1) + d.path : h.path = d.path, h.path = t(h.path)), h.query = d.query) : (h.path = c.path, d.query !== void 0 ? h.query = d.query : h.query = c.query), h.userinfo = c.userinfo, h.host = c.host, h.port = c.port), h.scheme = c.scheme), h.fragment = d.fragment, h;
2611
+ return o || (c = v($(c, r), r), d = v($(d, r), r)), r = r || {}, !r.tolerant && d.scheme ? (h.scheme = d.scheme, h.userinfo = d.userinfo, h.host = d.host, h.port = d.port, h.path = t(d.path || ""), h.query = d.query) : (d.userinfo !== void 0 || d.host !== void 0 || d.port !== void 0 ? (h.userinfo = d.userinfo, h.host = d.host, h.port = d.port, h.path = t(d.path || ""), h.query = d.query) : (d.path ? (d.path[0] === "/" ? h.path = t(d.path) : ((c.userinfo !== void 0 || c.host !== void 0 || c.port !== void 0) && !c.path ? h.path = "/" + d.path : c.path ? h.path = c.path.slice(0, c.path.lastIndexOf("/") + 1) + d.path : h.path = d.path, h.path = t(h.path)), h.query = d.query) : (h.path = c.path, d.query !== void 0 ? h.query = d.query : h.query = c.query), h.userinfo = c.userinfo, h.host = c.host, h.port = c.port), h.scheme = c.scheme), h.fragment = d.fragment, h;
2612
2612
  }
2613
2613
  function S(c, d, r) {
2614
- return typeof c == "string" ? (c = unescape(c), c = $(n(g(c, r), !0), { ...r, skipEscape: !0 })) : typeof c == "object" && (c = $(n(c, !0), { ...r, skipEscape: !0 })), typeof d == "string" ? (d = unescape(d), d = $(n(g(d, r), !0), { ...r, skipEscape: !0 })) : typeof d == "object" && (d = $(n(d, !0), { ...r, skipEscape: !0 })), c.toLowerCase() === d.toLowerCase();
2614
+ return typeof c == "string" ? (c = unescape(c), c = $(n(v(c, r), !0), { ...r, skipEscape: !0 })) : typeof c == "object" && (c = $(n(c, !0), { ...r, skipEscape: !0 })), typeof d == "string" ? (d = unescape(d), d = $(n(v(d, r), !0), { ...r, skipEscape: !0 })) : typeof d == "object" && (d = $(n(d, !0), { ...r, skipEscape: !0 })), c.toLowerCase() === d.toLowerCase();
2615
2615
  }
2616
2616
  function $(c, d) {
2617
2617
  const r = {
@@ -2638,8 +2638,8 @@ function Qn() {
2638
2638
  }
2639
2639
  return r.query !== void 0 && h.push("?", r.query), r.fragment !== void 0 && h.push("#", r.fragment), h.join("");
2640
2640
  }
2641
- const y = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2642
- function g(c, d) {
2641
+ const g = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2642
+ function v(c, d) {
2643
2643
  const r = Object.assign({}, d), o = {
2644
2644
  scheme: void 0,
2645
2645
  userinfo: void 0,
@@ -2651,12 +2651,12 @@ function Qn() {
2651
2651
  };
2652
2652
  let h = !1;
2653
2653
  r.reference === "suffix" && (r.scheme ? c = r.scheme + ":" + c : c = "//" + c);
2654
- const s = c.match(y);
2654
+ const s = c.match(g);
2655
2655
  if (s) {
2656
2656
  if (o.scheme = s[1], o.userinfo = s[3], o.host = s[4], o.port = parseInt(s[5], 10), o.path = s[6] || "", o.query = s[7], o.fragment = s[8], isNaN(o.port) && (o.port = s[5]), o.host)
2657
- if (v(o.host) === !1) {
2658
- const R = e(o.host);
2659
- o.host = R.host.toLowerCase(), h = R.isIPV6;
2657
+ if (y(o.host) === !1) {
2658
+ const N = e(o.host);
2659
+ o.host = N.host.toLowerCase(), h = N.isIPV6;
2660
2660
  } else
2661
2661
  h = !0;
2662
2662
  o.scheme === void 0 && o.userinfo === void 0 && o.host === void 0 && o.port === void 0 && o.query === void 0 && !o.path ? o.reference = "same-document" : o.scheme === void 0 ? o.reference = "relative" : o.fragment === void 0 ? o.reference = "absolute" : o.reference = "uri", r.reference && r.reference !== "suffix" && r.reference !== o.reference && (o.error = o.error || "URI is not a " + r.reference + " reference.");
@@ -2679,22 +2679,22 @@ function Qn() {
2679
2679
  resolveComponent: _,
2680
2680
  equal: S,
2681
2681
  serialize: $,
2682
- parse: g
2682
+ parse: v
2683
2683
  };
2684
- return Ne.exports = w, Ne.exports.default = w, Ne.exports.fastUri = w, Ne.exports;
2684
+ return Re.exports = w, Re.exports.default = w, Re.exports.fastUri = w, Re.exports;
2685
2685
  }
2686
- var Sr;
2687
- function Xn() {
2688
- if (Sr) return Ae;
2689
- Sr = 1, Object.defineProperty(Ae, "__esModule", { value: !0 });
2690
- const e = Qn();
2686
+ var jr;
2687
+ function ti() {
2688
+ if (jr) return Ae;
2689
+ jr = 1, Object.defineProperty(Ae, "__esModule", { value: !0 });
2690
+ const e = ei();
2691
2691
  return e.code = 'require("ajv/dist/runtime/uri").default', Ae.default = e, Ae;
2692
2692
  }
2693
- var jr;
2694
- function xn() {
2695
- return jr || (jr = 1, (function(e) {
2693
+ var kr;
2694
+ function ri() {
2695
+ return kr || (kr = 1, (function(e) {
2696
2696
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2697
- var t = Ot();
2697
+ var t = qt();
2698
2698
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
2699
2699
  return t.KeywordCxt;
2700
2700
  } });
@@ -2712,9 +2712,9 @@ function xn() {
2712
2712
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2713
2713
  return a.CodeGen;
2714
2714
  } });
2715
- const n = Bt(), v = qt(), i = _n(), p = Yt(), u = J(), m = Rt(), b = _t(), _ = Y(), S = Yn, $ = Xn(), y = (A, k) => new RegExp(A, k);
2716
- y.code = "new RegExp";
2717
- const g = ["removeAdditional", "useDefaults", "coerceTypes"], w = /* @__PURE__ */ new Set([
2715
+ const n = Yt(), y = Ct(), i = _n(), p = Zt(), u = J(), m = Ot(), b = $t(), _ = Y(), S = Xn, $ = ti(), g = (M, k) => new RegExp(M, k);
2716
+ g.code = "new RegExp";
2717
+ const v = ["removeAdditional", "useDefaults", "coerceTypes"], w = /* @__PURE__ */ new Set([
2718
2718
  "validate",
2719
2719
  "serialize",
2720
2720
  "parse",
@@ -2749,68 +2749,68 @@ function xn() {
2749
2749
  jsPropertySyntax: "",
2750
2750
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2751
2751
  }, r = 200;
2752
- function o(A) {
2753
- var k, T, N, l, E, O, U, H, Z, B, j, I, C, M, K, W, ee, fe, oe, ae, te, Ee, ue, Ct, Tt;
2754
- const ke = A.strict, Dt = (k = A.code) === null || k === void 0 ? void 0 : k.optimize, Xt = Dt === !0 || Dt === void 0 ? 1 : Dt || 0, xt = (N = (T = A.code) === null || T === void 0 ? void 0 : T.regExp) !== null && N !== void 0 ? N : y, Mn = (l = A.uriResolver) !== null && l !== void 0 ? l : $.default;
2752
+ function o(M) {
2753
+ var k, T, R, l, E, O, U, H, Z, B, j, I, C, A, K, W, ee, fe, oe, ae, te, Ee, ue, Tt, Dt;
2754
+ const ke = M.strict, Mt = (k = M.code) === null || k === void 0 ? void 0 : k.optimize, xt = Mt === !0 || Mt === void 0 ? 1 : Mt || 0, er = (R = (T = M.code) === null || T === void 0 ? void 0 : T.regExp) !== null && R !== void 0 ? R : g, Fn = (l = M.uriResolver) !== null && l !== void 0 ? l : $.default;
2755
2755
  return {
2756
- strictSchema: (O = (E = A.strictSchema) !== null && E !== void 0 ? E : ke) !== null && O !== void 0 ? O : !0,
2757
- strictNumbers: (H = (U = A.strictNumbers) !== null && U !== void 0 ? U : ke) !== null && H !== void 0 ? H : !0,
2758
- strictTypes: (B = (Z = A.strictTypes) !== null && Z !== void 0 ? Z : ke) !== null && B !== void 0 ? B : "log",
2759
- strictTuples: (I = (j = A.strictTuples) !== null && j !== void 0 ? j : ke) !== null && I !== void 0 ? I : "log",
2760
- strictRequired: (M = (C = A.strictRequired) !== null && C !== void 0 ? C : ke) !== null && M !== void 0 ? M : !1,
2761
- code: A.code ? { ...A.code, optimize: Xt, regExp: xt } : { optimize: Xt, regExp: xt },
2762
- loopRequired: (K = A.loopRequired) !== null && K !== void 0 ? K : r,
2763
- loopEnum: (W = A.loopEnum) !== null && W !== void 0 ? W : r,
2764
- meta: (ee = A.meta) !== null && ee !== void 0 ? ee : !0,
2765
- messages: (fe = A.messages) !== null && fe !== void 0 ? fe : !0,
2766
- inlineRefs: (oe = A.inlineRefs) !== null && oe !== void 0 ? oe : !0,
2767
- schemaId: (ae = A.schemaId) !== null && ae !== void 0 ? ae : "$id",
2768
- addUsedSchema: (te = A.addUsedSchema) !== null && te !== void 0 ? te : !0,
2769
- validateSchema: (Ee = A.validateSchema) !== null && Ee !== void 0 ? Ee : !0,
2770
- validateFormats: (ue = A.validateFormats) !== null && ue !== void 0 ? ue : !0,
2771
- unicodeRegExp: (Ct = A.unicodeRegExp) !== null && Ct !== void 0 ? Ct : !0,
2772
- int32range: (Tt = A.int32range) !== null && Tt !== void 0 ? Tt : !0,
2773
- uriResolver: Mn
2756
+ strictSchema: (O = (E = M.strictSchema) !== null && E !== void 0 ? E : ke) !== null && O !== void 0 ? O : !0,
2757
+ strictNumbers: (H = (U = M.strictNumbers) !== null && U !== void 0 ? U : ke) !== null && H !== void 0 ? H : !0,
2758
+ strictTypes: (B = (Z = M.strictTypes) !== null && Z !== void 0 ? Z : ke) !== null && B !== void 0 ? B : "log",
2759
+ strictTuples: (I = (j = M.strictTuples) !== null && j !== void 0 ? j : ke) !== null && I !== void 0 ? I : "log",
2760
+ strictRequired: (A = (C = M.strictRequired) !== null && C !== void 0 ? C : ke) !== null && A !== void 0 ? A : !1,
2761
+ code: M.code ? { ...M.code, optimize: xt, regExp: er } : { optimize: xt, regExp: er },
2762
+ loopRequired: (K = M.loopRequired) !== null && K !== void 0 ? K : r,
2763
+ loopEnum: (W = M.loopEnum) !== null && W !== void 0 ? W : r,
2764
+ meta: (ee = M.meta) !== null && ee !== void 0 ? ee : !0,
2765
+ messages: (fe = M.messages) !== null && fe !== void 0 ? fe : !0,
2766
+ inlineRefs: (oe = M.inlineRefs) !== null && oe !== void 0 ? oe : !0,
2767
+ schemaId: (ae = M.schemaId) !== null && ae !== void 0 ? ae : "$id",
2768
+ addUsedSchema: (te = M.addUsedSchema) !== null && te !== void 0 ? te : !0,
2769
+ validateSchema: (Ee = M.validateSchema) !== null && Ee !== void 0 ? Ee : !0,
2770
+ validateFormats: (ue = M.validateFormats) !== null && ue !== void 0 ? ue : !0,
2771
+ unicodeRegExp: (Tt = M.unicodeRegExp) !== null && Tt !== void 0 ? Tt : !0,
2772
+ int32range: (Dt = M.int32range) !== null && Dt !== void 0 ? Dt : !0,
2773
+ uriResolver: Fn
2774
2774
  };
2775
2775
  }
2776
2776
  class h {
2777
2777
  constructor(k = {}) {
2778
2778
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), k = this.opts = { ...k, ...o(k) };
2779
- const { es5: T, lines: N } = this.opts.code;
2780
- this.scope = new u.ValueScope({ scope: {}, prefixes: w, es5: T, lines: N }), this.logger = V(k.logger);
2779
+ const { es5: T, lines: R } = this.opts.code;
2780
+ this.scope = new u.ValueScope({ scope: {}, prefixes: w, es5: T, lines: R }), this.logger = V(k.logger);
2781
2781
  const l = k.validateFormats;
2782
- k.validateFormats = !1, this.RULES = (0, i.getRules)(), s.call(this, c, k, "NOT SUPPORTED"), s.call(this, d, k, "DEPRECATED", "warn"), this._metaOpts = z.call(this), k.formats && R.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), k.keywords && D.call(this, k.keywords), typeof k.meta == "object" && this.addMetaSchema(k.meta), P.call(this), k.validateFormats = l;
2782
+ k.validateFormats = !1, this.RULES = (0, i.getRules)(), s.call(this, c, k, "NOT SUPPORTED"), s.call(this, d, k, "DEPRECATED", "warn"), this._metaOpts = z.call(this), k.formats && N.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), k.keywords && D.call(this, k.keywords), typeof k.meta == "object" && this.addMetaSchema(k.meta), P.call(this), k.validateFormats = l;
2783
2783
  }
2784
2784
  _addVocabularies() {
2785
2785
  this.addKeyword("$async");
2786
2786
  }
2787
2787
  _addDefaultMetaSchema() {
2788
- const { $data: k, meta: T, schemaId: N } = this.opts;
2788
+ const { $data: k, meta: T, schemaId: R } = this.opts;
2789
2789
  let l = S;
2790
- N === "id" && (l = { ...S }, l.id = l.$id, delete l.$id), T && k && this.addMetaSchema(l, l[N], !1);
2790
+ R === "id" && (l = { ...S }, l.id = l.$id, delete l.$id), T && k && this.addMetaSchema(l, l[R], !1);
2791
2791
  }
2792
2792
  defaultMeta() {
2793
2793
  const { meta: k, schemaId: T } = this.opts;
2794
2794
  return this.opts.defaultMeta = typeof k == "object" ? k[T] || k : void 0;
2795
2795
  }
2796
2796
  validate(k, T) {
2797
- let N;
2797
+ let R;
2798
2798
  if (typeof k == "string") {
2799
- if (N = this.getSchema(k), !N)
2799
+ if (R = this.getSchema(k), !R)
2800
2800
  throw new Error(`no schema with key or ref "${k}"`);
2801
2801
  } else
2802
- N = this.compile(k);
2803
- const l = N(T);
2804
- return "$async" in N || (this.errors = N.errors), l;
2802
+ R = this.compile(k);
2803
+ const l = R(T);
2804
+ return "$async" in R || (this.errors = R.errors), l;
2805
2805
  }
2806
2806
  compile(k, T) {
2807
- const N = this._addSchema(k, T);
2808
- return N.validate || this._compileSchemaEnv(N);
2807
+ const R = this._addSchema(k, T);
2808
+ return R.validate || this._compileSchemaEnv(R);
2809
2809
  }
2810
2810
  compileAsync(k, T) {
2811
2811
  if (typeof this.opts.loadSchema != "function")
2812
2812
  throw new Error("options.loadSchema should be a function");
2813
- const { loadSchema: N } = this.opts;
2813
+ const { loadSchema: R } = this.opts;
2814
2814
  return l.call(this, k, T);
2815
2815
  async function l(B, j) {
2816
2816
  await E.call(this, B.$schema);
@@ -2824,7 +2824,7 @@ function xn() {
2824
2824
  try {
2825
2825
  return this._compileSchemaEnv(B);
2826
2826
  } catch (j) {
2827
- if (!(j instanceof v.default))
2827
+ if (!(j instanceof y.default))
2828
2828
  throw j;
2829
2829
  return U.call(this, j), await H.call(this, j.missingSchema), O.call(this, B);
2830
2830
  }
@@ -2842,17 +2842,17 @@ function xn() {
2842
2842
  if (j)
2843
2843
  return j;
2844
2844
  try {
2845
- return await (this._loading[B] = N(B));
2845
+ return await (this._loading[B] = R(B));
2846
2846
  } finally {
2847
2847
  delete this._loading[B];
2848
2848
  }
2849
2849
  }
2850
2850
  }
2851
2851
  // Adds schema to the instance
2852
- addSchema(k, T, N, l = this.opts.validateSchema) {
2852
+ addSchema(k, T, R, l = this.opts.validateSchema) {
2853
2853
  if (Array.isArray(k)) {
2854
2854
  for (const O of k)
2855
- this.addSchema(O, void 0, N, l);
2855
+ this.addSchema(O, void 0, R, l);
2856
2856
  return this;
2857
2857
  }
2858
2858
  let E;
@@ -2861,23 +2861,23 @@ function xn() {
2861
2861
  if (E = k[O], E !== void 0 && typeof E != "string")
2862
2862
  throw new Error(`schema ${O} must be string`);
2863
2863
  }
2864
- return T = (0, m.normalizeId)(T || E), this._checkUnique(T), this.schemas[T] = this._addSchema(k, N, T, l, !0), this;
2864
+ return T = (0, m.normalizeId)(T || E), this._checkUnique(T), this.schemas[T] = this._addSchema(k, R, T, l, !0), this;
2865
2865
  }
2866
2866
  // Add schema that will be used to validate other schemas
2867
2867
  // options in META_IGNORE_OPTIONS are alway set to false
2868
- addMetaSchema(k, T, N = this.opts.validateSchema) {
2869
- return this.addSchema(k, T, !0, N), this;
2868
+ addMetaSchema(k, T, R = this.opts.validateSchema) {
2869
+ return this.addSchema(k, T, !0, R), this;
2870
2870
  }
2871
2871
  // Validate schema against its meta-schema
2872
2872
  validateSchema(k, T) {
2873
2873
  if (typeof k == "boolean")
2874
2874
  return !0;
2875
- let N;
2876
- if (N = k.$schema, N !== void 0 && typeof N != "string")
2875
+ let R;
2876
+ if (R = k.$schema, R !== void 0 && typeof R != "string")
2877
2877
  throw new Error("$schema must be a string");
2878
- if (N = N || this.opts.defaultMeta || this.defaultMeta(), !N)
2878
+ if (R = R || this.opts.defaultMeta || this.defaultMeta(), !R)
2879
2879
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
2880
- const l = this.validate(N, k);
2880
+ const l = this.validate(R, k);
2881
2881
  if (!l && T) {
2882
2882
  const E = "schema is invalid: " + this.errorsText();
2883
2883
  if (this.opts.validateSchema === "log")
@@ -2894,7 +2894,7 @@ function xn() {
2894
2894
  for (; typeof (T = f.call(this, k)) == "string"; )
2895
2895
  k = T;
2896
2896
  if (T === void 0) {
2897
- const { schemaId: N } = this.opts, l = new p.SchemaEnv({ schema: {}, schemaId: N });
2897
+ const { schemaId: R } = this.opts, l = new p.SchemaEnv({ schema: {}, schemaId: R });
2898
2898
  if (T = p.resolveSchema.call(this, l, k), !T)
2899
2899
  return;
2900
2900
  this.refs[k] = T;
@@ -2918,8 +2918,8 @@ function xn() {
2918
2918
  case "object": {
2919
2919
  const T = k;
2920
2920
  this._cache.delete(T);
2921
- let N = k[this.opts.schemaId];
2922
- return N && (N = (0, m.normalizeId)(N), delete this.schemas[N], delete this.refs[N]), this;
2921
+ let R = k[this.opts.schemaId];
2922
+ return R && (R = (0, m.normalizeId)(R), delete this.schemas[R], delete this.refs[R]), this;
2923
2923
  }
2924
2924
  default:
2925
2925
  throw new Error("ajv.removeSchema: invalid parameter");
@@ -2932,23 +2932,23 @@ function xn() {
2932
2932
  return this;
2933
2933
  }
2934
2934
  addKeyword(k, T) {
2935
- let N;
2935
+ let R;
2936
2936
  if (typeof k == "string")
2937
- N = k, typeof T == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), T.keyword = N);
2937
+ R = k, typeof T == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), T.keyword = R);
2938
2938
  else if (typeof k == "object" && T === void 0) {
2939
- if (T = k, N = T.keyword, Array.isArray(N) && !N.length)
2939
+ if (T = k, R = T.keyword, Array.isArray(R) && !R.length)
2940
2940
  throw new Error("addKeywords: keyword must be string or non-empty array");
2941
2941
  } else
2942
2942
  throw new Error("invalid addKeywords parameters");
2943
- if (L.call(this, N, T), !T)
2944
- return (0, _.eachItem)(N, (E) => Q.call(this, E)), this;
2943
+ if (L.call(this, R, T), !T)
2944
+ return (0, _.eachItem)(R, (E) => Q.call(this, E)), this;
2945
2945
  ie.call(this, T);
2946
2946
  const l = {
2947
2947
  ...T,
2948
2948
  type: (0, b.getJSONTypes)(T.type),
2949
2949
  schemaType: (0, b.getJSONTypes)(T.schemaType)
2950
2950
  };
2951
- return (0, _.eachItem)(N, l.type.length === 0 ? (E) => Q.call(this, E, l) : (E) => l.type.forEach((O) => Q.call(this, E, l, O))), this;
2951
+ return (0, _.eachItem)(R, l.type.length === 0 ? (E) => Q.call(this, E, l) : (E) => l.type.forEach((O) => Q.call(this, E, l, O))), this;
2952
2952
  }
2953
2953
  getKeyword(k) {
2954
2954
  const T = this.RULES.all[k];
@@ -2958,9 +2958,9 @@ function xn() {
2958
2958
  removeKeyword(k) {
2959
2959
  const { RULES: T } = this;
2960
2960
  delete T.keywords[k], delete T.all[k];
2961
- for (const N of T.rules) {
2962
- const l = N.rules.findIndex((E) => E.keyword === k);
2963
- l >= 0 && N.rules.splice(l, 1);
2961
+ for (const R of T.rules) {
2962
+ const l = R.rules.findIndex((E) => E.keyword === k);
2963
+ l >= 0 && R.rules.splice(l, 1);
2964
2964
  }
2965
2965
  return this;
2966
2966
  }
@@ -2968,19 +2968,19 @@ function xn() {
2968
2968
  addFormat(k, T) {
2969
2969
  return typeof T == "string" && (T = new RegExp(T)), this.formats[k] = T, this;
2970
2970
  }
2971
- errorsText(k = this.errors, { separator: T = ", ", dataVar: N = "data" } = {}) {
2972
- return !k || k.length === 0 ? "No errors" : k.map((l) => `${N}${l.instancePath} ${l.message}`).reduce((l, E) => l + T + E);
2971
+ errorsText(k = this.errors, { separator: T = ", ", dataVar: R = "data" } = {}) {
2972
+ return !k || k.length === 0 ? "No errors" : k.map((l) => `${R}${l.instancePath} ${l.message}`).reduce((l, E) => l + T + E);
2973
2973
  }
2974
2974
  $dataMetaSchema(k, T) {
2975
- const N = this.RULES.all;
2975
+ const R = this.RULES.all;
2976
2976
  k = JSON.parse(JSON.stringify(k));
2977
2977
  for (const l of T) {
2978
2978
  const E = l.split("/").slice(1);
2979
2979
  let O = k;
2980
2980
  for (const U of E)
2981
2981
  O = O[U];
2982
- for (const U in N) {
2983
- const H = N[U];
2982
+ for (const U in R) {
2983
+ const H = R[U];
2984
2984
  if (typeof H != "object")
2985
2985
  continue;
2986
2986
  const { $data: Z } = H.definition, B = O[U];
@@ -2990,12 +2990,12 @@ function xn() {
2990
2990
  return k;
2991
2991
  }
2992
2992
  _removeAllSchemas(k, T) {
2993
- for (const N in k) {
2994
- const l = k[N];
2995
- (!T || T.test(N)) && (typeof l == "string" ? delete k[N] : l && !l.meta && (this._cache.delete(l.schema), delete k[N]));
2993
+ for (const R in k) {
2994
+ const l = k[R];
2995
+ (!T || T.test(R)) && (typeof l == "string" ? delete k[R] : l && !l.meta && (this._cache.delete(l.schema), delete k[R]));
2996
2996
  }
2997
2997
  }
2998
- _addSchema(k, T, N, l = this.opts.validateSchema, E = this.opts.addUsedSchema) {
2998
+ _addSchema(k, T, R, l = this.opts.validateSchema, E = this.opts.addUsedSchema) {
2999
2999
  let O;
3000
3000
  const { schemaId: U } = this.opts;
3001
3001
  if (typeof k == "object")
@@ -3009,9 +3009,9 @@ function xn() {
3009
3009
  let H = this._cache.get(k);
3010
3010
  if (H !== void 0)
3011
3011
  return H;
3012
- N = (0, m.normalizeId)(O || N);
3013
- const Z = m.getSchemaRefs.call(this, k, N);
3014
- return H = new p.SchemaEnv({ schema: k, schemaId: U, meta: T, baseId: N, localRefs: Z }), this._cache.set(H.schema, H), E && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = H), l && this.validateSchema(k, !0), H;
3012
+ R = (0, m.normalizeId)(O || R);
3013
+ const Z = m.getSchemaRefs.call(this, k, R);
3014
+ return H = new p.SchemaEnv({ schema: k, schemaId: U, meta: T, baseId: R, localRefs: Z }), this._cache.set(H.schema, H), E && !R.startsWith("#") && (R && this._checkUnique(R), this.refs[R] = H), l && this.validateSchema(k, !0), H;
3015
3015
  }
3016
3016
  _checkUnique(k) {
3017
3017
  if (this.schemas[k] || this.refs[k])
@@ -3032,152 +3032,152 @@ function xn() {
3032
3032
  }
3033
3033
  }
3034
3034
  }
3035
- h.ValidationError = n.default, h.MissingRefError = v.default, e.default = h;
3036
- function s(A, k, T, N = "error") {
3037
- for (const l in A) {
3035
+ h.ValidationError = n.default, h.MissingRefError = y.default, e.default = h;
3036
+ function s(M, k, T, R = "error") {
3037
+ for (const l in M) {
3038
3038
  const E = l;
3039
- E in k && this.logger[N](`${T}: option ${l}. ${A[E]}`);
3039
+ E in k && this.logger[R](`${T}: option ${l}. ${M[E]}`);
3040
3040
  }
3041
3041
  }
3042
- function f(A) {
3043
- return A = (0, m.normalizeId)(A), this.schemas[A] || this.refs[A];
3042
+ function f(M) {
3043
+ return M = (0, m.normalizeId)(M), this.schemas[M] || this.refs[M];
3044
3044
  }
3045
3045
  function P() {
3046
- const A = this.opts.schemas;
3047
- if (A)
3048
- if (Array.isArray(A))
3049
- this.addSchema(A);
3046
+ const M = this.opts.schemas;
3047
+ if (M)
3048
+ if (Array.isArray(M))
3049
+ this.addSchema(M);
3050
3050
  else
3051
- for (const k in A)
3052
- this.addSchema(A[k], k);
3051
+ for (const k in M)
3052
+ this.addSchema(M[k], k);
3053
3053
  }
3054
- function R() {
3055
- for (const A in this.opts.formats) {
3056
- const k = this.opts.formats[A];
3057
- k && this.addFormat(A, k);
3054
+ function N() {
3055
+ for (const M in this.opts.formats) {
3056
+ const k = this.opts.formats[M];
3057
+ k && this.addFormat(M, k);
3058
3058
  }
3059
3059
  }
3060
- function D(A) {
3061
- if (Array.isArray(A)) {
3062
- this.addVocabulary(A);
3060
+ function D(M) {
3061
+ if (Array.isArray(M)) {
3062
+ this.addVocabulary(M);
3063
3063
  return;
3064
3064
  }
3065
3065
  this.logger.warn("keywords option as map is deprecated, pass array");
3066
- for (const k in A) {
3067
- const T = A[k];
3066
+ for (const k in M) {
3067
+ const T = M[k];
3068
3068
  T.keyword || (T.keyword = k), this.addKeyword(T);
3069
3069
  }
3070
3070
  }
3071
3071
  function z() {
3072
- const A = { ...this.opts };
3073
- for (const k of g)
3074
- delete A[k];
3075
- return A;
3072
+ const M = { ...this.opts };
3073
+ for (const k of v)
3074
+ delete M[k];
3075
+ return M;
3076
3076
  }
3077
3077
  const q = { log() {
3078
3078
  }, warn() {
3079
3079
  }, error() {
3080
3080
  } };
3081
- function V(A) {
3082
- if (A === !1)
3081
+ function V(M) {
3082
+ if (M === !1)
3083
3083
  return q;
3084
- if (A === void 0)
3084
+ if (M === void 0)
3085
3085
  return console;
3086
- if (A.log && A.warn && A.error)
3087
- return A;
3086
+ if (M.log && M.warn && M.error)
3087
+ return M;
3088
3088
  throw new Error("logger must implement log, warn and error methods");
3089
3089
  }
3090
3090
  const F = /^[a-z_$][a-z0-9_$:-]*$/i;
3091
- function L(A, k) {
3091
+ function L(M, k) {
3092
3092
  const { RULES: T } = this;
3093
- if ((0, _.eachItem)(A, (N) => {
3094
- if (T.keywords[N])
3095
- throw new Error(`Keyword ${N} is already defined`);
3096
- if (!F.test(N))
3097
- throw new Error(`Keyword ${N} has invalid name`);
3093
+ if ((0, _.eachItem)(M, (R) => {
3094
+ if (T.keywords[R])
3095
+ throw new Error(`Keyword ${R} is already defined`);
3096
+ if (!F.test(R))
3097
+ throw new Error(`Keyword ${R} has invalid name`);
3098
3098
  }), !!k && k.$data && !("code" in k || "validate" in k))
3099
3099
  throw new Error('$data keyword must have "code" or "validate" function');
3100
3100
  }
3101
- function Q(A, k, T) {
3102
- var N;
3101
+ function Q(M, k, T) {
3102
+ var R;
3103
3103
  const l = k?.post;
3104
3104
  if (T && l)
3105
3105
  throw new Error('keyword with "post" flag cannot have "type"');
3106
3106
  const { RULES: E } = this;
3107
3107
  let O = l ? E.post : E.rules.find(({ type: H }) => H === T);
3108
- if (O || (O = { type: T, rules: [] }, E.rules.push(O)), E.keywords[A] = !0, !k)
3108
+ if (O || (O = { type: T, rules: [] }, E.rules.push(O)), E.keywords[M] = !0, !k)
3109
3109
  return;
3110
3110
  const U = {
3111
- keyword: A,
3111
+ keyword: M,
3112
3112
  definition: {
3113
3113
  ...k,
3114
3114
  type: (0, b.getJSONTypes)(k.type),
3115
3115
  schemaType: (0, b.getJSONTypes)(k.schemaType)
3116
3116
  }
3117
3117
  };
3118
- k.before ? ne.call(this, O, U, k.before) : O.rules.push(U), E.all[A] = U, (N = k.implements) === null || N === void 0 || N.forEach((H) => this.addKeyword(H));
3118
+ k.before ? ne.call(this, O, U, k.before) : O.rules.push(U), E.all[M] = U, (R = k.implements) === null || R === void 0 || R.forEach((H) => this.addKeyword(H));
3119
3119
  }
3120
- function ne(A, k, T) {
3121
- const N = A.rules.findIndex((l) => l.keyword === T);
3122
- N >= 0 ? A.rules.splice(N, 0, k) : (A.rules.push(k), this.logger.warn(`rule ${T} is not defined`));
3120
+ function ne(M, k, T) {
3121
+ const R = M.rules.findIndex((l) => l.keyword === T);
3122
+ R >= 0 ? M.rules.splice(R, 0, k) : (M.rules.push(k), this.logger.warn(`rule ${T} is not defined`));
3123
3123
  }
3124
- function ie(A) {
3125
- let { metaSchema: k } = A;
3126
- k !== void 0 && (A.$data && this.opts.$data && (k = le(k)), A.validateSchema = this.compile(k, !0));
3124
+ function ie(M) {
3125
+ let { metaSchema: k } = M;
3126
+ k !== void 0 && (M.$data && this.opts.$data && (k = le(k)), M.validateSchema = this.compile(k, !0));
3127
3127
  }
3128
3128
  const x = {
3129
3129
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
3130
3130
  };
3131
- function le(A) {
3132
- return { anyOf: [A, x] };
3131
+ function le(M) {
3132
+ return { anyOf: [M, x] };
3133
3133
  }
3134
3134
  })(At)), At;
3135
3135
  }
3136
- var Me = {}, Ve = {}, ze = {}, kr;
3137
- function ei() {
3138
- if (kr) return ze;
3139
- kr = 1, Object.defineProperty(ze, "__esModule", { value: !0 });
3136
+ var Ve = {}, ze = {}, Fe = {}, Ir;
3137
+ function ni() {
3138
+ if (Ir) return Fe;
3139
+ Ir = 1, Object.defineProperty(Fe, "__esModule", { value: !0 });
3140
3140
  const e = {
3141
3141
  keyword: "id",
3142
3142
  code() {
3143
3143
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
3144
3144
  }
3145
3145
  };
3146
- return ze.default = e, ze;
3146
+ return Fe.default = e, Fe;
3147
3147
  }
3148
- var ve = {}, Ir;
3149
- function ti() {
3150
- if (Ir) return ve;
3151
- Ir = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.callRef = ve.getValidate = void 0;
3152
- const e = qt(), t = me(), a = J(), n = _e(), v = Yt(), i = Y(), p = {
3148
+ var ve = {}, Rr;
3149
+ function ii() {
3150
+ if (Rr) return ve;
3151
+ Rr = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.callRef = ve.getValidate = void 0;
3152
+ const e = Ct(), t = me(), a = J(), n = _e(), y = Zt(), i = Y(), p = {
3153
3153
  keyword: "$ref",
3154
3154
  schemaType: "string",
3155
3155
  code(b) {
3156
- const { gen: _, schema: S, it: $ } = b, { baseId: y, schemaEnv: g, validateName: w, opts: c, self: d } = $, { root: r } = g;
3157
- if ((S === "#" || S === "#/") && y === r.baseId)
3156
+ const { gen: _, schema: S, it: $ } = b, { baseId: g, schemaEnv: v, validateName: w, opts: c, self: d } = $, { root: r } = v;
3157
+ if ((S === "#" || S === "#/") && g === r.baseId)
3158
3158
  return h();
3159
- const o = v.resolveRef.call(d, r, y, S);
3159
+ const o = y.resolveRef.call(d, r, g, S);
3160
3160
  if (o === void 0)
3161
- throw new e.default($.opts.uriResolver, y, S);
3162
- if (o instanceof v.SchemaEnv)
3161
+ throw new e.default($.opts.uriResolver, g, S);
3162
+ if (o instanceof y.SchemaEnv)
3163
3163
  return s(o);
3164
3164
  return f(o);
3165
3165
  function h() {
3166
- if (g === r)
3167
- return m(b, w, g, g.$async);
3166
+ if (v === r)
3167
+ return m(b, w, v, v.$async);
3168
3168
  const P = _.scopeValue("root", { ref: r });
3169
3169
  return m(b, (0, a._)`${P}.validate`, r, r.$async);
3170
3170
  }
3171
3171
  function s(P) {
3172
- const R = u(b, P);
3173
- m(b, R, P, P.$async);
3172
+ const N = u(b, P);
3173
+ m(b, N, P, P.$async);
3174
3174
  }
3175
3175
  function f(P) {
3176
- const R = _.scopeValue("schema", c.code.source === !0 ? { ref: P, code: (0, a.stringify)(P) } : { ref: P }), D = _.name("valid"), z = b.subschema({
3176
+ const N = _.scopeValue("schema", c.code.source === !0 ? { ref: P, code: (0, a.stringify)(P) } : { ref: P }), D = _.name("valid"), z = b.subschema({
3177
3177
  schema: P,
3178
3178
  dataTypes: [],
3179
3179
  schemaPath: a.nil,
3180
- topSchemaRef: R,
3180
+ topSchemaRef: N,
3181
3181
  errSchemaPath: S
3182
3182
  }, D);
3183
3183
  b.mergeEvaluated(z), b.ok(D);
@@ -3190,53 +3190,53 @@ function ti() {
3190
3190
  }
3191
3191
  ve.getValidate = u;
3192
3192
  function m(b, _, S, $) {
3193
- const { gen: y, it: g } = b, { allErrors: w, schemaEnv: c, opts: d } = g, r = d.passContext ? n.default.this : a.nil;
3193
+ const { gen: g, it: v } = b, { allErrors: w, schemaEnv: c, opts: d } = v, r = d.passContext ? n.default.this : a.nil;
3194
3194
  $ ? o() : h();
3195
3195
  function o() {
3196
3196
  if (!c.$async)
3197
3197
  throw new Error("async schema referenced by sync schema");
3198
- const P = y.let("valid");
3199
- y.try(() => {
3200
- y.code((0, a._)`await ${(0, t.callValidateCode)(b, _, r)}`), f(_), w || y.assign(P, !0);
3201
- }, (R) => {
3202
- y.if((0, a._)`!(${R} instanceof ${g.ValidationError})`, () => y.throw(R)), s(R), w || y.assign(P, !1);
3198
+ const P = g.let("valid");
3199
+ g.try(() => {
3200
+ g.code((0, a._)`await ${(0, t.callValidateCode)(b, _, r)}`), f(_), w || g.assign(P, !0);
3201
+ }, (N) => {
3202
+ g.if((0, a._)`!(${N} instanceof ${v.ValidationError})`, () => g.throw(N)), s(N), w || g.assign(P, !1);
3203
3203
  }), b.ok(P);
3204
3204
  }
3205
3205
  function h() {
3206
3206
  b.result((0, t.callValidateCode)(b, _, r), () => f(_), () => s(_));
3207
3207
  }
3208
3208
  function s(P) {
3209
- const R = (0, a._)`${P}.errors`;
3210
- y.assign(n.default.vErrors, (0, a._)`${n.default.vErrors} === null ? ${R} : ${n.default.vErrors}.concat(${R})`), y.assign(n.default.errors, (0, a._)`${n.default.vErrors}.length`);
3209
+ const N = (0, a._)`${P}.errors`;
3210
+ g.assign(n.default.vErrors, (0, a._)`${n.default.vErrors} === null ? ${N} : ${n.default.vErrors}.concat(${N})`), g.assign(n.default.errors, (0, a._)`${n.default.vErrors}.length`);
3211
3211
  }
3212
3212
  function f(P) {
3213
- var R;
3214
- if (!g.opts.unevaluated)
3213
+ var N;
3214
+ if (!v.opts.unevaluated)
3215
3215
  return;
3216
- const D = (R = S?.validate) === null || R === void 0 ? void 0 : R.evaluated;
3217
- if (g.props !== !0)
3216
+ const D = (N = S?.validate) === null || N === void 0 ? void 0 : N.evaluated;
3217
+ if (v.props !== !0)
3218
3218
  if (D && !D.dynamicProps)
3219
- D.props !== void 0 && (g.props = i.mergeEvaluated.props(y, D.props, g.props));
3219
+ D.props !== void 0 && (v.props = i.mergeEvaluated.props(g, D.props, v.props));
3220
3220
  else {
3221
- const z = y.var("props", (0, a._)`${P}.evaluated.props`);
3222
- g.props = i.mergeEvaluated.props(y, z, g.props, a.Name);
3221
+ const z = g.var("props", (0, a._)`${P}.evaluated.props`);
3222
+ v.props = i.mergeEvaluated.props(g, z, v.props, a.Name);
3223
3223
  }
3224
- if (g.items !== !0)
3224
+ if (v.items !== !0)
3225
3225
  if (D && !D.dynamicItems)
3226
- D.items !== void 0 && (g.items = i.mergeEvaluated.items(y, D.items, g.items));
3226
+ D.items !== void 0 && (v.items = i.mergeEvaluated.items(g, D.items, v.items));
3227
3227
  else {
3228
- const z = y.var("items", (0, a._)`${P}.evaluated.items`);
3229
- g.items = i.mergeEvaluated.items(y, z, g.items, a.Name);
3228
+ const z = g.var("items", (0, a._)`${P}.evaluated.items`);
3229
+ v.items = i.mergeEvaluated.items(g, z, v.items, a.Name);
3230
3230
  }
3231
3231
  }
3232
3232
  }
3233
3233
  return ve.callRef = m, ve.default = p, ve;
3234
3234
  }
3235
3235
  var Nr;
3236
- function ri() {
3237
- if (Nr) return Ve;
3238
- Nr = 1, Object.defineProperty(Ve, "__esModule", { value: !0 });
3239
- const e = ei(), t = ti(), a = [
3236
+ function si() {
3237
+ if (Nr) return ze;
3238
+ Nr = 1, Object.defineProperty(ze, "__esModule", { value: !0 });
3239
+ const e = ni(), t = ii(), a = [
3240
3240
  "$schema",
3241
3241
  "$id",
3242
3242
  "$defs",
@@ -3246,12 +3246,12 @@ function ri() {
3246
3246
  e.default,
3247
3247
  t.default
3248
3248
  ];
3249
- return Ve.default = a, Ve;
3249
+ return ze.default = a, ze;
3250
3250
  }
3251
- var Fe = {}, Le = {}, Rr;
3252
- function ni() {
3253
- if (Rr) return Le;
3254
- Rr = 1, Object.defineProperty(Le, "__esModule", { value: !0 });
3251
+ var Le = {}, Ue = {}, Or;
3252
+ function oi() {
3253
+ if (Or) return Ue;
3254
+ Or = 1, Object.defineProperty(Ue, "__esModule", { value: !0 });
3255
3255
  const e = J(), t = e.operators, a = {
3256
3256
  maximum: { okStr: "<=", ok: t.LTE, fail: t.GT },
3257
3257
  minimum: { okStr: ">=", ok: t.GTE, fail: t.LT },
@@ -3260,7 +3260,7 @@ function ni() {
3260
3260
  }, n = {
3261
3261
  message: ({ keyword: i, schemaCode: p }) => (0, e.str)`must be ${a[i].okStr} ${p}`,
3262
3262
  params: ({ keyword: i, schemaCode: p }) => (0, e._)`{comparison: ${a[i].okStr}, limit: ${p}}`
3263
- }, v = {
3263
+ }, y = {
3264
3264
  keyword: Object.keys(a),
3265
3265
  type: "number",
3266
3266
  schemaType: "number",
@@ -3271,12 +3271,12 @@ function ni() {
3271
3271
  i.fail$data((0, e._)`${u} ${a[p].fail} ${m} || isNaN(${u})`);
3272
3272
  }
3273
3273
  };
3274
- return Le.default = v, Le;
3274
+ return Ue.default = y, Ue;
3275
3275
  }
3276
- var Ue = {}, Or;
3277
- function ii() {
3278
- if (Or) return Ue;
3279
- Or = 1, Object.defineProperty(Ue, "__esModule", { value: !0 });
3276
+ var Ke = {}, qr;
3277
+ function ai() {
3278
+ if (qr) return Ke;
3279
+ qr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 });
3280
3280
  const e = J(), a = {
3281
3281
  keyword: "multipleOf",
3282
3282
  type: "number",
@@ -3287,30 +3287,30 @@ function ii() {
3287
3287
  params: ({ schemaCode: n }) => (0, e._)`{multipleOf: ${n}}`
3288
3288
  },
3289
3289
  code(n) {
3290
- const { gen: v, data: i, schemaCode: p, it: u } = n, m = u.opts.multipleOfPrecision, b = v.let("res"), _ = m ? (0, e._)`Math.abs(Math.round(${b}) - ${b}) > 1e-${m}` : (0, e._)`${b} !== parseInt(${b})`;
3290
+ const { gen: y, data: i, schemaCode: p, it: u } = n, m = u.opts.multipleOfPrecision, b = y.let("res"), _ = m ? (0, e._)`Math.abs(Math.round(${b}) - ${b}) > 1e-${m}` : (0, e._)`${b} !== parseInt(${b})`;
3291
3291
  n.fail$data((0, e._)`(${p} === 0 || (${b} = ${i}/${p}, ${_}))`);
3292
3292
  }
3293
3293
  };
3294
- return Ue.default = a, Ue;
3294
+ return Ke.default = a, Ke;
3295
3295
  }
3296
- var Ke = {}, He = {}, qr;
3297
- function si() {
3298
- if (qr) return He;
3299
- qr = 1, Object.defineProperty(He, "__esModule", { value: !0 });
3296
+ var He = {}, Ge = {}, Cr;
3297
+ function ci() {
3298
+ if (Cr) return Ge;
3299
+ Cr = 1, Object.defineProperty(Ge, "__esModule", { value: !0 });
3300
3300
  function e(t) {
3301
3301
  const a = t.length;
3302
- let n = 0, v = 0, i;
3303
- for (; v < a; )
3304
- n++, i = t.charCodeAt(v++), i >= 55296 && i <= 56319 && v < a && (i = t.charCodeAt(v), (i & 64512) === 56320 && v++);
3302
+ let n = 0, y = 0, i;
3303
+ for (; y < a; )
3304
+ n++, i = t.charCodeAt(y++), i >= 55296 && i <= 56319 && y < a && (i = t.charCodeAt(y), (i & 64512) === 56320 && y++);
3305
3305
  return n;
3306
3306
  }
3307
- return He.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', He;
3307
+ return Ge.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Ge;
3308
3308
  }
3309
- var Cr;
3310
- function oi() {
3311
- if (Cr) return Ke;
3312
- Cr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 });
3313
- const e = J(), t = Y(), a = si(), v = {
3309
+ var Tr;
3310
+ function di() {
3311
+ if (Tr) return He;
3312
+ Tr = 1, Object.defineProperty(He, "__esModule", { value: !0 });
3313
+ const e = J(), t = Y(), a = ci(), y = {
3314
3314
  keyword: ["maxLength", "minLength"],
3315
3315
  type: "string",
3316
3316
  schemaType: "number",
@@ -3327,56 +3327,56 @@ function oi() {
3327
3327
  i.fail$data((0, e._)`${S} ${_} ${m}`);
3328
3328
  }
3329
3329
  };
3330
- return Ke.default = v, Ke;
3330
+ return He.default = y, He;
3331
3331
  }
3332
- var Ge = {}, Tr;
3333
- function ai() {
3334
- if (Tr) return Ge;
3335
- Tr = 1, Object.defineProperty(Ge, "__esModule", { value: !0 });
3332
+ var Je = {}, Dr;
3333
+ function ui() {
3334
+ if (Dr) return Je;
3335
+ Dr = 1, Object.defineProperty(Je, "__esModule", { value: !0 });
3336
3336
  const e = me(), t = J(), n = {
3337
3337
  keyword: "pattern",
3338
3338
  type: "string",
3339
3339
  schemaType: "string",
3340
3340
  $data: !0,
3341
3341
  error: {
3342
- message: ({ schemaCode: v }) => (0, t.str)`must match pattern "${v}"`,
3343
- params: ({ schemaCode: v }) => (0, t._)`{pattern: ${v}}`
3342
+ message: ({ schemaCode: y }) => (0, t.str)`must match pattern "${y}"`,
3343
+ params: ({ schemaCode: y }) => (0, t._)`{pattern: ${y}}`
3344
3344
  },
3345
- code(v) {
3346
- const { data: i, $data: p, schema: u, schemaCode: m, it: b } = v, _ = b.opts.unicodeRegExp ? "u" : "", S = p ? (0, t._)`(new RegExp(${m}, ${_}))` : (0, e.usePattern)(v, u);
3347
- v.fail$data((0, t._)`!${S}.test(${i})`);
3345
+ code(y) {
3346
+ const { data: i, $data: p, schema: u, schemaCode: m, it: b } = y, _ = b.opts.unicodeRegExp ? "u" : "", S = p ? (0, t._)`(new RegExp(${m}, ${_}))` : (0, e.usePattern)(y, u);
3347
+ y.fail$data((0, t._)`!${S}.test(${i})`);
3348
3348
  }
3349
3349
  };
3350
- return Ge.default = n, Ge;
3350
+ return Je.default = n, Je;
3351
3351
  }
3352
- var Je = {}, Dr;
3353
- function ci() {
3354
- if (Dr) return Je;
3355
- Dr = 1, Object.defineProperty(Je, "__esModule", { value: !0 });
3352
+ var We = {}, Mr;
3353
+ function li() {
3354
+ if (Mr) return We;
3355
+ Mr = 1, Object.defineProperty(We, "__esModule", { value: !0 });
3356
3356
  const e = J(), a = {
3357
3357
  keyword: ["maxProperties", "minProperties"],
3358
3358
  type: "object",
3359
3359
  schemaType: "number",
3360
3360
  $data: !0,
3361
3361
  error: {
3362
- message({ keyword: n, schemaCode: v }) {
3362
+ message({ keyword: n, schemaCode: y }) {
3363
3363
  const i = n === "maxProperties" ? "more" : "fewer";
3364
- return (0, e.str)`must NOT have ${i} than ${v} properties`;
3364
+ return (0, e.str)`must NOT have ${i} than ${y} properties`;
3365
3365
  },
3366
3366
  params: ({ schemaCode: n }) => (0, e._)`{limit: ${n}}`
3367
3367
  },
3368
3368
  code(n) {
3369
- const { keyword: v, data: i, schemaCode: p } = n, u = v === "maxProperties" ? e.operators.GT : e.operators.LT;
3369
+ const { keyword: y, data: i, schemaCode: p } = n, u = y === "maxProperties" ? e.operators.GT : e.operators.LT;
3370
3370
  n.fail$data((0, e._)`Object.keys(${i}).length ${u} ${p}`);
3371
3371
  }
3372
3372
  };
3373
- return Je.default = a, Je;
3373
+ return We.default = a, We;
3374
3374
  }
3375
- var We = {}, Ar;
3376
- function di() {
3377
- if (Ar) return We;
3378
- Ar = 1, Object.defineProperty(We, "__esModule", { value: !0 });
3379
- const e = me(), t = J(), a = Y(), v = {
3375
+ var Be = {}, Ar;
3376
+ function fi() {
3377
+ if (Ar) return Be;
3378
+ Ar = 1, Object.defineProperty(Be, "__esModule", { value: !0 });
3379
+ const e = me(), t = J(), a = Y(), y = {
3380
3380
  keyword: "required",
3381
3381
  type: "object",
3382
3382
  schemaType: "array",
@@ -3389,8 +3389,8 @@ function di() {
3389
3389
  const { gen: p, schema: u, schemaCode: m, data: b, $data: _, it: S } = i, { opts: $ } = S;
3390
3390
  if (!_ && u.length === 0)
3391
3391
  return;
3392
- const y = u.length >= $.loopRequired;
3393
- if (S.allErrors ? g() : w(), $.strictRequired) {
3392
+ const g = u.length >= $.loopRequired;
3393
+ if (S.allErrors ? v() : w(), $.strictRequired) {
3394
3394
  const r = i.parentSchema.properties, { definedProperties: o } = i.it;
3395
3395
  for (const h of u)
3396
3396
  if (r?.[h] === void 0 && !o.has(h)) {
@@ -3398,8 +3398,8 @@ function di() {
3398
3398
  (0, a.checkStrictMode)(S, f, S.opts.strictRequired);
3399
3399
  }
3400
3400
  }
3401
- function g() {
3402
- if (y || _)
3401
+ function v() {
3402
+ if (g || _)
3403
3403
  i.block$data(t.nil, c);
3404
3404
  else
3405
3405
  for (const r of u)
@@ -3407,7 +3407,7 @@ function di() {
3407
3407
  }
3408
3408
  function w() {
3409
3409
  const r = p.let("missing");
3410
- if (y || _) {
3410
+ if (g || _) {
3411
3411
  const o = p.let("valid", !0);
3412
3412
  i.block$data(o, () => d(r, o)), i.ok(o);
3413
3413
  } else
@@ -3427,43 +3427,43 @@ function di() {
3427
3427
  }
3428
3428
  }
3429
3429
  };
3430
- return We.default = v, We;
3430
+ return Be.default = y, Be;
3431
3431
  }
3432
- var Be = {}, Mr;
3433
- function ui() {
3434
- if (Mr) return Be;
3435
- Mr = 1, Object.defineProperty(Be, "__esModule", { value: !0 });
3432
+ var Ye = {}, Vr;
3433
+ function pi() {
3434
+ if (Vr) return Ye;
3435
+ Vr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 });
3436
3436
  const e = J(), a = {
3437
3437
  keyword: ["maxItems", "minItems"],
3438
3438
  type: "array",
3439
3439
  schemaType: "number",
3440
3440
  $data: !0,
3441
3441
  error: {
3442
- message({ keyword: n, schemaCode: v }) {
3442
+ message({ keyword: n, schemaCode: y }) {
3443
3443
  const i = n === "maxItems" ? "more" : "fewer";
3444
- return (0, e.str)`must NOT have ${i} than ${v} items`;
3444
+ return (0, e.str)`must NOT have ${i} than ${y} items`;
3445
3445
  },
3446
3446
  params: ({ schemaCode: n }) => (0, e._)`{limit: ${n}}`
3447
3447
  },
3448
3448
  code(n) {
3449
- const { keyword: v, data: i, schemaCode: p } = n, u = v === "maxItems" ? e.operators.GT : e.operators.LT;
3449
+ const { keyword: y, data: i, schemaCode: p } = n, u = y === "maxItems" ? e.operators.GT : e.operators.LT;
3450
3450
  n.fail$data((0, e._)`${i}.length ${u} ${p}`);
3451
3451
  }
3452
3452
  };
3453
- return Be.default = a, Be;
3453
+ return Ye.default = a, Ye;
3454
3454
  }
3455
- var Ye = {}, Ze = {}, Vr;
3456
- function Zt() {
3457
- if (Vr) return Ze;
3458
- Vr = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
3455
+ var Ze = {}, Qe = {}, zr;
3456
+ function Qt() {
3457
+ if (zr) return Qe;
3458
+ zr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
3459
3459
  const e = bn();
3460
- return e.code = 'require("ajv/dist/runtime/equal").default', Ze.default = e, Ze;
3460
+ return e.code = 'require("ajv/dist/runtime/equal").default', Qe.default = e, Qe;
3461
3461
  }
3462
- var zr;
3463
- function li() {
3464
- if (zr) return Ye;
3465
- zr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 });
3466
- const e = _t(), t = J(), a = Y(), n = Zt(), i = {
3462
+ var Fr;
3463
+ function mi() {
3464
+ if (Fr) return Ze;
3465
+ Fr = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
3466
+ const e = $t(), t = J(), a = Y(), n = Qt(), i = {
3467
3467
  keyword: "uniqueItems",
3468
3468
  type: "array",
3469
3469
  schemaType: "boolean",
@@ -3473,41 +3473,41 @@ function li() {
3473
3473
  params: ({ params: { i: p, j: u } }) => (0, t._)`{i: ${p}, j: ${u}}`
3474
3474
  },
3475
3475
  code(p) {
3476
- const { gen: u, data: m, $data: b, schema: _, parentSchema: S, schemaCode: $, it: y } = p;
3476
+ const { gen: u, data: m, $data: b, schema: _, parentSchema: S, schemaCode: $, it: g } = p;
3477
3477
  if (!b && !_)
3478
3478
  return;
3479
- const g = u.let("valid"), w = S.items ? (0, e.getSchemaTypes)(S.items) : [];
3480
- p.block$data(g, c, (0, t._)`${$} === false`), p.ok(g);
3479
+ const v = u.let("valid"), w = S.items ? (0, e.getSchemaTypes)(S.items) : [];
3480
+ p.block$data(v, c, (0, t._)`${$} === false`), p.ok(v);
3481
3481
  function c() {
3482
3482
  const h = u.let("i", (0, t._)`${m}.length`), s = u.let("j");
3483
- p.setParams({ i: h, j: s }), u.assign(g, !0), u.if((0, t._)`${h} > 1`, () => (d() ? r : o)(h, s));
3483
+ p.setParams({ i: h, j: s }), u.assign(v, !0), u.if((0, t._)`${h} > 1`, () => (d() ? r : o)(h, s));
3484
3484
  }
3485
3485
  function d() {
3486
3486
  return w.length > 0 && !w.some((h) => h === "object" || h === "array");
3487
3487
  }
3488
3488
  function r(h, s) {
3489
- const f = u.name("item"), P = (0, e.checkDataTypes)(w, f, y.opts.strictNumbers, e.DataType.Wrong), R = u.const("indices", (0, t._)`{}`);
3489
+ const f = u.name("item"), P = (0, e.checkDataTypes)(w, f, g.opts.strictNumbers, e.DataType.Wrong), N = u.const("indices", (0, t._)`{}`);
3490
3490
  u.for((0, t._)`;${h}--;`, () => {
3491
- u.let(f, (0, t._)`${m}[${h}]`), u.if(P, (0, t._)`continue`), w.length > 1 && u.if((0, t._)`typeof ${f} == "string"`, (0, t._)`${f} += "_"`), u.if((0, t._)`typeof ${R}[${f}] == "number"`, () => {
3492
- u.assign(s, (0, t._)`${R}[${f}]`), p.error(), u.assign(g, !1).break();
3493
- }).code((0, t._)`${R}[${f}] = ${h}`);
3491
+ u.let(f, (0, t._)`${m}[${h}]`), u.if(P, (0, t._)`continue`), w.length > 1 && u.if((0, t._)`typeof ${f} == "string"`, (0, t._)`${f} += "_"`), u.if((0, t._)`typeof ${N}[${f}] == "number"`, () => {
3492
+ u.assign(s, (0, t._)`${N}[${f}]`), p.error(), u.assign(v, !1).break();
3493
+ }).code((0, t._)`${N}[${f}] = ${h}`);
3494
3494
  });
3495
3495
  }
3496
3496
  function o(h, s) {
3497
3497
  const f = (0, a.useFunc)(u, n.default), P = u.name("outer");
3498
3498
  u.label(P).for((0, t._)`;${h}--;`, () => u.for((0, t._)`${s} = ${h}; ${s}--;`, () => u.if((0, t._)`${f}(${m}[${h}], ${m}[${s}])`, () => {
3499
- p.error(), u.assign(g, !1).break(P);
3499
+ p.error(), u.assign(v, !1).break(P);
3500
3500
  })));
3501
3501
  }
3502
3502
  }
3503
3503
  };
3504
- return Ye.default = i, Ye;
3504
+ return Ze.default = i, Ze;
3505
3505
  }
3506
- var Qe = {}, Fr;
3507
- function fi() {
3508
- if (Fr) return Qe;
3509
- Fr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
3510
- const e = J(), t = Y(), a = Zt(), v = {
3506
+ var Xe = {}, Lr;
3507
+ function hi() {
3508
+ if (Lr) return Xe;
3509
+ Lr = 1, Object.defineProperty(Xe, "__esModule", { value: !0 });
3510
+ const e = J(), t = Y(), a = Qt(), y = {
3511
3511
  keyword: "const",
3512
3512
  $data: !0,
3513
3513
  error: {
@@ -3519,13 +3519,13 @@ function fi() {
3519
3519
  m || _ && typeof _ == "object" ? i.fail$data((0, e._)`!${(0, t.useFunc)(p, a.default)}(${u}, ${b})`) : i.fail((0, e._)`${_} !== ${u}`);
3520
3520
  }
3521
3521
  };
3522
- return Qe.default = v, Qe;
3522
+ return Xe.default = y, Xe;
3523
3523
  }
3524
- var Xe = {}, Lr;
3525
- function pi() {
3526
- if (Lr) return Xe;
3527
- Lr = 1, Object.defineProperty(Xe, "__esModule", { value: !0 });
3528
- const e = J(), t = Y(), a = Zt(), v = {
3524
+ var xe = {}, Ur;
3525
+ function yi() {
3526
+ if (Ur) return xe;
3527
+ Ur = 1, Object.defineProperty(xe, "__esModule", { value: !0 });
3528
+ const e = J(), t = Y(), a = Qt(), y = {
3529
3529
  keyword: "enum",
3530
3530
  schemaType: "array",
3531
3531
  $data: !0,
@@ -3538,8 +3538,8 @@ function pi() {
3538
3538
  if (!m && b.length === 0)
3539
3539
  throw new Error("enum must have non-empty array");
3540
3540
  const $ = b.length >= S.opts.loopEnum;
3541
- let y;
3542
- const g = () => y ?? (y = (0, t.useFunc)(p, a.default));
3541
+ let g;
3542
+ const v = () => g ?? (g = (0, t.useFunc)(p, a.default));
3543
3543
  let w;
3544
3544
  if ($ || m)
3545
3545
  w = p.let("valid"), i.block$data(w, c);
@@ -3551,21 +3551,21 @@ function pi() {
3551
3551
  }
3552
3552
  i.pass(w);
3553
3553
  function c() {
3554
- p.assign(w, !1), p.forOf("v", _, (r) => p.if((0, e._)`${g()}(${u}, ${r})`, () => p.assign(w, !0).break()));
3554
+ p.assign(w, !1), p.forOf("v", _, (r) => p.if((0, e._)`${v()}(${u}, ${r})`, () => p.assign(w, !0).break()));
3555
3555
  }
3556
3556
  function d(r, o) {
3557
3557
  const h = b[o];
3558
- return typeof h == "object" && h !== null ? (0, e._)`${g()}(${u}, ${r}[${o}])` : (0, e._)`${u} === ${h}`;
3558
+ return typeof h == "object" && h !== null ? (0, e._)`${v()}(${u}, ${r}[${o}])` : (0, e._)`${u} === ${h}`;
3559
3559
  }
3560
3560
  }
3561
3561
  };
3562
- return Xe.default = v, Xe;
3562
+ return xe.default = y, xe;
3563
3563
  }
3564
- var Ur;
3565
- function mi() {
3566
- if (Ur) return Fe;
3567
- Ur = 1, Object.defineProperty(Fe, "__esModule", { value: !0 });
3568
- const e = ni(), t = ii(), a = oi(), n = ai(), v = ci(), i = di(), p = ui(), u = li(), m = fi(), b = pi(), _ = [
3564
+ var Kr;
3565
+ function gi() {
3566
+ if (Kr) return Le;
3567
+ Kr = 1, Object.defineProperty(Le, "__esModule", { value: !0 });
3568
+ const e = oi(), t = ai(), a = di(), n = ui(), y = li(), i = fi(), p = pi(), u = mi(), m = hi(), b = yi(), _ = [
3569
3569
  // number
3570
3570
  e.default,
3571
3571
  t.default,
@@ -3573,7 +3573,7 @@ function mi() {
3573
3573
  a.default,
3574
3574
  n.default,
3575
3575
  // object
3576
- v.default,
3576
+ y.default,
3577
3577
  i.default,
3578
3578
  // array
3579
3579
  p.default,
@@ -3584,12 +3584,12 @@ function mi() {
3584
3584
  m.default,
3585
3585
  b.default
3586
3586
  ];
3587
- return Fe.default = _, Fe;
3587
+ return Le.default = _, Le;
3588
3588
  }
3589
- var xe = {}, Se = {}, Kr;
3589
+ var et = {}, Se = {}, Hr;
3590
3590
  function Pn() {
3591
- if (Kr) return Se;
3592
- Kr = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.validateAdditionalItems = void 0;
3591
+ if (Hr) return Se;
3592
+ Hr = 1, Object.defineProperty(Se, "__esModule", { value: !0 }), Se.validateAdditionalItems = void 0;
3593
3593
  const e = J(), t = Y(), n = {
3594
3594
  keyword: "additionalItems",
3595
3595
  type: "array",
@@ -3605,31 +3605,31 @@ function Pn() {
3605
3605
  (0, t.checkStrictMode)(u, '"additionalItems" is ignored when "items" is not an array of schemas');
3606
3606
  return;
3607
3607
  }
3608
- v(i, m);
3608
+ y(i, m);
3609
3609
  }
3610
3610
  };
3611
- function v(i, p) {
3611
+ function y(i, p) {
3612
3612
  const { gen: u, schema: m, data: b, keyword: _, it: S } = i;
3613
3613
  S.items = !0;
3614
3614
  const $ = u.const("len", (0, e._)`${b}.length`);
3615
3615
  if (m === !1)
3616
3616
  i.setParams({ len: p.length }), i.pass((0, e._)`${$} <= ${p.length}`);
3617
3617
  else if (typeof m == "object" && !(0, t.alwaysValidSchema)(S, m)) {
3618
- const g = u.var("valid", (0, e._)`${$} <= ${p.length}`);
3619
- u.if((0, e.not)(g), () => y(g)), i.ok(g);
3618
+ const v = u.var("valid", (0, e._)`${$} <= ${p.length}`);
3619
+ u.if((0, e.not)(v), () => g(v)), i.ok(v);
3620
3620
  }
3621
- function y(g) {
3621
+ function g(v) {
3622
3622
  u.forRange("i", p.length, $, (w) => {
3623
- i.subschema({ keyword: _, dataProp: w, dataPropType: t.Type.Num }, g), S.allErrors || u.if((0, e.not)(g), () => u.break());
3623
+ i.subschema({ keyword: _, dataProp: w, dataPropType: t.Type.Num }, v), S.allErrors || u.if((0, e.not)(v), () => u.break());
3624
3624
  });
3625
3625
  }
3626
3626
  }
3627
- return Se.validateAdditionalItems = v, Se.default = n, Se;
3627
+ return Se.validateAdditionalItems = y, Se.default = n, Se;
3628
3628
  }
3629
- var et = {}, je = {}, Hr;
3629
+ var tt = {}, je = {}, Gr;
3630
3630
  function En() {
3631
- if (Hr) return je;
3632
- Hr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.validateTuple = void 0;
3631
+ if (Gr) return je;
3632
+ Gr = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.validateTuple = void 0;
3633
3633
  const e = J(), t = Y(), a = me(), n = {
3634
3634
  keyword: "items",
3635
3635
  type: "array",
@@ -3638,20 +3638,20 @@ function En() {
3638
3638
  code(i) {
3639
3639
  const { schema: p, it: u } = i;
3640
3640
  if (Array.isArray(p))
3641
- return v(i, "additionalItems", p);
3641
+ return y(i, "additionalItems", p);
3642
3642
  u.items = !0, !(0, t.alwaysValidSchema)(u, p) && i.ok((0, a.validateArray)(i));
3643
3643
  }
3644
3644
  };
3645
- function v(i, p, u = i.schema) {
3645
+ function y(i, p, u = i.schema) {
3646
3646
  const { gen: m, parentSchema: b, data: _, keyword: S, it: $ } = i;
3647
3647
  w(b), $.opts.unevaluated && u.length && $.items !== !0 && ($.items = t.mergeEvaluated.items(m, u.length, $.items));
3648
- const y = m.name("valid"), g = m.const("len", (0, e._)`${_}.length`);
3648
+ const g = m.name("valid"), v = m.const("len", (0, e._)`${_}.length`);
3649
3649
  u.forEach((c, d) => {
3650
- (0, t.alwaysValidSchema)($, c) || (m.if((0, e._)`${g} > ${d}`, () => i.subschema({
3650
+ (0, t.alwaysValidSchema)($, c) || (m.if((0, e._)`${v} > ${d}`, () => i.subschema({
3651
3651
  keyword: S,
3652
3652
  schemaProp: d,
3653
3653
  dataProp: d
3654
- }, y)), i.ok(y));
3654
+ }, g)), i.ok(g));
3655
3655
  });
3656
3656
  function w(c) {
3657
3657
  const { opts: d, errSchemaPath: r } = $, o = u.length, h = o === c.minItems && (o === c.maxItems || c[p] === !1);
@@ -3661,12 +3661,12 @@ function En() {
3661
3661
  }
3662
3662
  }
3663
3663
  }
3664
- return je.validateTuple = v, je.default = n, je;
3664
+ return je.validateTuple = y, je.default = n, je;
3665
3665
  }
3666
- var Gr;
3667
- function hi() {
3668
- if (Gr) return et;
3669
- Gr = 1, Object.defineProperty(et, "__esModule", { value: !0 });
3666
+ var Jr;
3667
+ function vi() {
3668
+ if (Jr) return tt;
3669
+ Jr = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
3670
3670
  const e = En(), t = {
3671
3671
  keyword: "prefixItems",
3672
3672
  type: "array",
@@ -3674,12 +3674,12 @@ function hi() {
3674
3674
  before: "uniqueItems",
3675
3675
  code: (a) => (0, e.validateTuple)(a, "items")
3676
3676
  };
3677
- return et.default = t, et;
3677
+ return tt.default = t, tt;
3678
3678
  }
3679
- var tt = {}, Jr;
3680
- function yi() {
3681
- if (Jr) return tt;
3682
- Jr = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
3679
+ var rt = {}, Wr;
3680
+ function _i() {
3681
+ if (Wr) return rt;
3682
+ Wr = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
3683
3683
  const e = J(), t = Y(), a = me(), n = Pn(), i = {
3684
3684
  keyword: "items",
3685
3685
  type: "array",
@@ -3694,12 +3694,12 @@ function yi() {
3694
3694
  b.items = !0, !(0, t.alwaysValidSchema)(b, u) && (_ ? (0, n.validateAdditionalItems)(p, _) : p.ok((0, a.validateArray)(p)));
3695
3695
  }
3696
3696
  };
3697
- return tt.default = i, tt;
3697
+ return rt.default = i, rt;
3698
3698
  }
3699
- var rt = {}, Wr;
3700
- function gi() {
3701
- if (Wr) return rt;
3702
- Wr = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
3699
+ var nt = {}, Br;
3700
+ function $i() {
3701
+ if (Br) return nt;
3702
+ Br = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
3703
3703
  const e = J(), t = Y(), n = {
3704
3704
  keyword: "contains",
3705
3705
  type: "array",
@@ -3707,38 +3707,38 @@ function gi() {
3707
3707
  before: "uniqueItems",
3708
3708
  trackErrors: !0,
3709
3709
  error: {
3710
- message: ({ params: { min: v, max: i } }) => i === void 0 ? (0, e.str)`must contain at least ${v} valid item(s)` : (0, e.str)`must contain at least ${v} and no more than ${i} valid item(s)`,
3711
- params: ({ params: { min: v, max: i } }) => i === void 0 ? (0, e._)`{minContains: ${v}}` : (0, e._)`{minContains: ${v}, maxContains: ${i}}`
3710
+ message: ({ params: { min: y, max: i } }) => i === void 0 ? (0, e.str)`must contain at least ${y} valid item(s)` : (0, e.str)`must contain at least ${y} and no more than ${i} valid item(s)`,
3711
+ params: ({ params: { min: y, max: i } }) => i === void 0 ? (0, e._)`{minContains: ${y}}` : (0, e._)`{minContains: ${y}, maxContains: ${i}}`
3712
3712
  },
3713
- code(v) {
3714
- const { gen: i, schema: p, parentSchema: u, data: m, it: b } = v;
3713
+ code(y) {
3714
+ const { gen: i, schema: p, parentSchema: u, data: m, it: b } = y;
3715
3715
  let _, S;
3716
- const { minContains: $, maxContains: y } = u;
3717
- b.opts.next ? (_ = $ === void 0 ? 1 : $, S = y) : _ = 1;
3718
- const g = i.const("len", (0, e._)`${m}.length`);
3719
- if (v.setParams({ min: _, max: S }), S === void 0 && _ === 0) {
3716
+ const { minContains: $, maxContains: g } = u;
3717
+ b.opts.next ? (_ = $ === void 0 ? 1 : $, S = g) : _ = 1;
3718
+ const v = i.const("len", (0, e._)`${m}.length`);
3719
+ if (y.setParams({ min: _, max: S }), S === void 0 && _ === 0) {
3720
3720
  (0, t.checkStrictMode)(b, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
3721
3721
  return;
3722
3722
  }
3723
3723
  if (S !== void 0 && _ > S) {
3724
- (0, t.checkStrictMode)(b, '"minContains" > "maxContains" is always invalid'), v.fail();
3724
+ (0, t.checkStrictMode)(b, '"minContains" > "maxContains" is always invalid'), y.fail();
3725
3725
  return;
3726
3726
  }
3727
3727
  if ((0, t.alwaysValidSchema)(b, p)) {
3728
- let o = (0, e._)`${g} >= ${_}`;
3729
- S !== void 0 && (o = (0, e._)`${o} && ${g} <= ${S}`), v.pass(o);
3728
+ let o = (0, e._)`${v} >= ${_}`;
3729
+ S !== void 0 && (o = (0, e._)`${o} && ${v} <= ${S}`), y.pass(o);
3730
3730
  return;
3731
3731
  }
3732
3732
  b.items = !0;
3733
3733
  const w = i.name("valid");
3734
- S === void 0 && _ === 1 ? d(w, () => i.if(w, () => i.break())) : _ === 0 ? (i.let(w, !0), S !== void 0 && i.if((0, e._)`${m}.length > 0`, c)) : (i.let(w, !1), c()), v.result(w, () => v.reset());
3734
+ S === void 0 && _ === 1 ? d(w, () => i.if(w, () => i.break())) : _ === 0 ? (i.let(w, !0), S !== void 0 && i.if((0, e._)`${m}.length > 0`, c)) : (i.let(w, !1), c()), y.result(w, () => y.reset());
3735
3735
  function c() {
3736
3736
  const o = i.name("_valid"), h = i.let("count", 0);
3737
3737
  d(o, () => i.if(o, () => r(h)));
3738
3738
  }
3739
3739
  function d(o, h) {
3740
- i.forRange("i", 0, g, (s) => {
3741
- v.subschema({
3740
+ i.forRange("i", 0, v, (s) => {
3741
+ y.subschema({
3742
3742
  keyword: "contains",
3743
3743
  dataProp: s,
3744
3744
  dataPropType: t.Type.Num,
@@ -3751,11 +3751,11 @@ function gi() {
3751
3751
  }
3752
3752
  }
3753
3753
  };
3754
- return rt.default = n, rt;
3754
+ return nt.default = n, nt;
3755
3755
  }
3756
- var Gt = {}, Br;
3757
- function vi() {
3758
- return Br || (Br = 1, (function(e) {
3756
+ var Jt = {}, Yr;
3757
+ function bi() {
3758
+ return Yr || (Yr = 1, (function(e) {
3759
3759
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
3760
3760
  const t = J(), a = Y(), n = me();
3761
3761
  e.error = {
@@ -3769,7 +3769,7 @@ function vi() {
3769
3769
  deps: ${_}}`
3770
3770
  // TODO change to reference
3771
3771
  };
3772
- const v = {
3772
+ const y = {
3773
3773
  keyword: "dependencies",
3774
3774
  type: "object",
3775
3775
  schemaType: "object",
@@ -3793,75 +3793,75 @@ function vi() {
3793
3793
  const { gen: _, data: S, it: $ } = m;
3794
3794
  if (Object.keys(b).length === 0)
3795
3795
  return;
3796
- const y = _.let("missing");
3797
- for (const g in b) {
3798
- const w = b[g];
3796
+ const g = _.let("missing");
3797
+ for (const v in b) {
3798
+ const w = b[v];
3799
3799
  if (w.length === 0)
3800
3800
  continue;
3801
- const c = (0, n.propertyInData)(_, S, g, $.opts.ownProperties);
3801
+ const c = (0, n.propertyInData)(_, S, v, $.opts.ownProperties);
3802
3802
  m.setParams({
3803
- property: g,
3803
+ property: v,
3804
3804
  depsCount: w.length,
3805
3805
  deps: w.join(", ")
3806
3806
  }), $.allErrors ? _.if(c, () => {
3807
3807
  for (const d of w)
3808
3808
  (0, n.checkReportMissingProp)(m, d);
3809
- }) : (_.if((0, t._)`${c} && (${(0, n.checkMissingProp)(m, w, y)})`), (0, n.reportMissingProp)(m, y), _.else());
3809
+ }) : (_.if((0, t._)`${c} && (${(0, n.checkMissingProp)(m, w, g)})`), (0, n.reportMissingProp)(m, g), _.else());
3810
3810
  }
3811
3811
  }
3812
3812
  e.validatePropertyDeps = p;
3813
3813
  function u(m, b = m.schema) {
3814
- const { gen: _, data: S, keyword: $, it: y } = m, g = _.name("valid");
3814
+ const { gen: _, data: S, keyword: $, it: g } = m, v = _.name("valid");
3815
3815
  for (const w in b)
3816
- (0, a.alwaysValidSchema)(y, b[w]) || (_.if(
3817
- (0, n.propertyInData)(_, S, w, y.opts.ownProperties),
3816
+ (0, a.alwaysValidSchema)(g, b[w]) || (_.if(
3817
+ (0, n.propertyInData)(_, S, w, g.opts.ownProperties),
3818
3818
  () => {
3819
- const c = m.subschema({ keyword: $, schemaProp: w }, g);
3820
- m.mergeValidEvaluated(c, g);
3819
+ const c = m.subschema({ keyword: $, schemaProp: w }, v);
3820
+ m.mergeValidEvaluated(c, v);
3821
3821
  },
3822
- () => _.var(g, !0)
3822
+ () => _.var(v, !0)
3823
3823
  // TODO var
3824
- ), m.ok(g));
3824
+ ), m.ok(v));
3825
3825
  }
3826
- e.validateSchemaDeps = u, e.default = v;
3827
- })(Gt)), Gt;
3826
+ e.validateSchemaDeps = u, e.default = y;
3827
+ })(Jt)), Jt;
3828
3828
  }
3829
- var nt = {}, Yr;
3830
- function _i() {
3831
- if (Yr) return nt;
3832
- Yr = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
3829
+ var it = {}, Zr;
3830
+ function wi() {
3831
+ if (Zr) return it;
3832
+ Zr = 1, Object.defineProperty(it, "__esModule", { value: !0 });
3833
3833
  const e = J(), t = Y(), n = {
3834
3834
  keyword: "propertyNames",
3835
3835
  type: "object",
3836
3836
  schemaType: ["object", "boolean"],
3837
3837
  error: {
3838
3838
  message: "property name must be valid",
3839
- params: ({ params: v }) => (0, e._)`{propertyName: ${v.propertyName}}`
3839
+ params: ({ params: y }) => (0, e._)`{propertyName: ${y.propertyName}}`
3840
3840
  },
3841
- code(v) {
3842
- const { gen: i, schema: p, data: u, it: m } = v;
3841
+ code(y) {
3842
+ const { gen: i, schema: p, data: u, it: m } = y;
3843
3843
  if ((0, t.alwaysValidSchema)(m, p))
3844
3844
  return;
3845
3845
  const b = i.name("valid");
3846
3846
  i.forIn("key", u, (_) => {
3847
- v.setParams({ propertyName: _ }), v.subschema({
3847
+ y.setParams({ propertyName: _ }), y.subschema({
3848
3848
  keyword: "propertyNames",
3849
3849
  data: _,
3850
3850
  dataTypes: ["string"],
3851
3851
  propertyName: _,
3852
3852
  compositeRule: !0
3853
3853
  }, b), i.if((0, e.not)(b), () => {
3854
- v.error(!0), m.allErrors || i.break();
3854
+ y.error(!0), m.allErrors || i.break();
3855
3855
  });
3856
- }), v.ok(b);
3856
+ }), y.ok(b);
3857
3857
  }
3858
3858
  };
3859
- return nt.default = n, nt;
3859
+ return it.default = n, it;
3860
3860
  }
3861
- var it = {}, Zr;
3861
+ var st = {}, Qr;
3862
3862
  function Sn() {
3863
- if (Zr) return it;
3864
- Zr = 1, Object.defineProperty(it, "__esModule", { value: !0 });
3863
+ if (Qr) return st;
3864
+ Qr = 1, Object.defineProperty(st, "__esModule", { value: !0 });
3865
3865
  const e = me(), t = J(), a = _e(), n = Y(), i = {
3866
3866
  keyword: "additionalProperties",
3867
3867
  type: ["object"],
@@ -3876,8 +3876,8 @@ function Sn() {
3876
3876
  const { gen: u, schema: m, parentSchema: b, data: _, errsCount: S, it: $ } = p;
3877
3877
  if (!S)
3878
3878
  throw new Error("ajv implementation error");
3879
- const { allErrors: y, opts: g } = $;
3880
- if ($.props = !0, g.removeAdditional !== "all" && (0, n.alwaysValidSchema)($, m))
3879
+ const { allErrors: g, opts: v } = $;
3880
+ if ($.props = !0, v.removeAdditional !== "all" && (0, n.alwaysValidSchema)($, m))
3881
3881
  return;
3882
3882
  const w = (0, e.allSchemaProperties)(b.properties), c = (0, e.allSchemaProperties)(b.patternProperties);
3883
3883
  d(), p.ok((0, t._)`${S} === ${a.default.errors}`);
@@ -3889,37 +3889,37 @@ function Sn() {
3889
3889
  function r(f) {
3890
3890
  let P;
3891
3891
  if (w.length > 8) {
3892
- const R = (0, n.schemaRefOrVal)($, b.properties, "properties");
3893
- P = (0, e.isOwnProperty)(u, R, f);
3894
- } else w.length ? P = (0, t.or)(...w.map((R) => (0, t._)`${f} === ${R}`)) : P = t.nil;
3895
- return c.length && (P = (0, t.or)(P, ...c.map((R) => (0, t._)`${(0, e.usePattern)(p, R)}.test(${f})`))), (0, t.not)(P);
3892
+ const N = (0, n.schemaRefOrVal)($, b.properties, "properties");
3893
+ P = (0, e.isOwnProperty)(u, N, f);
3894
+ } else w.length ? P = (0, t.or)(...w.map((N) => (0, t._)`${f} === ${N}`)) : P = t.nil;
3895
+ return c.length && (P = (0, t.or)(P, ...c.map((N) => (0, t._)`${(0, e.usePattern)(p, N)}.test(${f})`))), (0, t.not)(P);
3896
3896
  }
3897
3897
  function o(f) {
3898
3898
  u.code((0, t._)`delete ${_}[${f}]`);
3899
3899
  }
3900
3900
  function h(f) {
3901
- if (g.removeAdditional === "all" || g.removeAdditional && m === !1) {
3901
+ if (v.removeAdditional === "all" || v.removeAdditional && m === !1) {
3902
3902
  o(f);
3903
3903
  return;
3904
3904
  }
3905
3905
  if (m === !1) {
3906
- p.setParams({ additionalProperty: f }), p.error(), y || u.break();
3906
+ p.setParams({ additionalProperty: f }), p.error(), g || u.break();
3907
3907
  return;
3908
3908
  }
3909
3909
  if (typeof m == "object" && !(0, n.alwaysValidSchema)($, m)) {
3910
3910
  const P = u.name("valid");
3911
- g.removeAdditional === "failing" ? (s(f, P, !1), u.if((0, t.not)(P), () => {
3911
+ v.removeAdditional === "failing" ? (s(f, P, !1), u.if((0, t.not)(P), () => {
3912
3912
  p.reset(), o(f);
3913
- })) : (s(f, P), y || u.if((0, t.not)(P), () => u.break()));
3913
+ })) : (s(f, P), g || u.if((0, t.not)(P), () => u.break()));
3914
3914
  }
3915
3915
  }
3916
- function s(f, P, R) {
3916
+ function s(f, P, N) {
3917
3917
  const D = {
3918
3918
  keyword: "additionalProperties",
3919
3919
  dataProp: f,
3920
3920
  dataPropType: n.Type.Str
3921
3921
  };
3922
- R === !1 && Object.assign(D, {
3922
+ N === !1 && Object.assign(D, {
3923
3923
  compositeRule: !0,
3924
3924
  createErrors: !1,
3925
3925
  allErrors: !1
@@ -3927,13 +3927,13 @@ function Sn() {
3927
3927
  }
3928
3928
  }
3929
3929
  };
3930
- return it.default = i, it;
3930
+ return st.default = i, st;
3931
3931
  }
3932
- var st = {}, Qr;
3933
- function $i() {
3934
- if (Qr) return st;
3935
- Qr = 1, Object.defineProperty(st, "__esModule", { value: !0 });
3936
- const e = Ot(), t = me(), a = Y(), n = Sn(), v = {
3932
+ var ot = {}, Xr;
3933
+ function Pi() {
3934
+ if (Xr) return ot;
3935
+ Xr = 1, Object.defineProperty(ot, "__esModule", { value: !0 });
3936
+ const e = qt(), t = me(), a = Y(), n = Sn(), y = {
3937
3937
  keyword: "properties",
3938
3938
  type: "object",
3939
3939
  schemaType: "object",
@@ -3947,10 +3947,10 @@ function $i() {
3947
3947
  const $ = S.filter((c) => !(0, a.alwaysValidSchema)(_, u[c]));
3948
3948
  if ($.length === 0)
3949
3949
  return;
3950
- const y = p.name("valid");
3950
+ const g = p.name("valid");
3951
3951
  for (const c of $)
3952
- g(c) ? w(c) : (p.if((0, t.propertyInData)(p, b, c, _.opts.ownProperties)), w(c), _.allErrors || p.else().var(y, !0), p.endIf()), i.it.definedProperties.add(c), i.ok(y);
3953
- function g(c) {
3952
+ v(c) ? w(c) : (p.if((0, t.propertyInData)(p, b, c, _.opts.ownProperties)), w(c), _.allErrors || p.else().var(g, !0), p.endIf()), i.it.definedProperties.add(c), i.ok(g);
3953
+ function v(c) {
3954
3954
  return _.opts.useDefaults && !_.compositeRule && u[c].default !== void 0;
3955
3955
  }
3956
3956
  function w(c) {
@@ -3958,40 +3958,40 @@ function $i() {
3958
3958
  keyword: "properties",
3959
3959
  schemaProp: c,
3960
3960
  dataProp: c
3961
- }, y);
3961
+ }, g);
3962
3962
  }
3963
3963
  }
3964
3964
  };
3965
- return st.default = v, st;
3965
+ return ot.default = y, ot;
3966
3966
  }
3967
- var ot = {}, Xr;
3968
- function bi() {
3969
- if (Xr) return ot;
3970
- Xr = 1, Object.defineProperty(ot, "__esModule", { value: !0 });
3971
- const e = me(), t = J(), a = Y(), n = Y(), v = {
3967
+ var at = {}, xr;
3968
+ function Ei() {
3969
+ if (xr) return at;
3970
+ xr = 1, Object.defineProperty(at, "__esModule", { value: !0 });
3971
+ const e = me(), t = J(), a = Y(), n = Y(), y = {
3972
3972
  keyword: "patternProperties",
3973
3973
  type: "object",
3974
3974
  schemaType: "object",
3975
3975
  code(i) {
3976
- const { gen: p, schema: u, data: m, parentSchema: b, it: _ } = i, { opts: S } = _, $ = (0, e.allSchemaProperties)(u), y = $.filter((h) => (0, a.alwaysValidSchema)(_, u[h]));
3977
- if ($.length === 0 || y.length === $.length && (!_.opts.unevaluated || _.props === !0))
3976
+ const { gen: p, schema: u, data: m, parentSchema: b, it: _ } = i, { opts: S } = _, $ = (0, e.allSchemaProperties)(u), g = $.filter((h) => (0, a.alwaysValidSchema)(_, u[h]));
3977
+ if ($.length === 0 || g.length === $.length && (!_.opts.unevaluated || _.props === !0))
3978
3978
  return;
3979
- const g = S.strictSchema && !S.allowMatchingProperties && b.properties, w = p.name("valid");
3979
+ const v = S.strictSchema && !S.allowMatchingProperties && b.properties, w = p.name("valid");
3980
3980
  _.props !== !0 && !(_.props instanceof t.Name) && (_.props = (0, n.evaluatedPropsToName)(p, _.props));
3981
3981
  const { props: c } = _;
3982
3982
  d();
3983
3983
  function d() {
3984
3984
  for (const h of $)
3985
- g && r(h), _.allErrors ? o(h) : (p.var(w, !0), o(h), p.if(w));
3985
+ v && r(h), _.allErrors ? o(h) : (p.var(w, !0), o(h), p.if(w));
3986
3986
  }
3987
3987
  function r(h) {
3988
- for (const s in g)
3988
+ for (const s in v)
3989
3989
  new RegExp(h).test(s) && (0, a.checkStrictMode)(_, `property ${s} matches pattern ${h} (use allowMatchingProperties)`);
3990
3990
  }
3991
3991
  function o(h) {
3992
3992
  p.forIn("key", m, (s) => {
3993
3993
  p.if((0, t._)`${(0, e.usePattern)(i, h)}.test(${s})`, () => {
3994
- const f = y.includes(h);
3994
+ const f = g.includes(h);
3995
3995
  f || i.subschema({
3996
3996
  keyword: "patternProperties",
3997
3997
  schemaProp: h,
@@ -4003,19 +4003,19 @@ function bi() {
4003
4003
  }
4004
4004
  }
4005
4005
  };
4006
- return ot.default = v, ot;
4006
+ return at.default = y, at;
4007
4007
  }
4008
- var at = {}, xr;
4009
- function wi() {
4010
- if (xr) return at;
4011
- xr = 1, Object.defineProperty(at, "__esModule", { value: !0 });
4008
+ var ct = {}, en;
4009
+ function Si() {
4010
+ if (en) return ct;
4011
+ en = 1, Object.defineProperty(ct, "__esModule", { value: !0 });
4012
4012
  const e = Y(), t = {
4013
4013
  keyword: "not",
4014
4014
  schemaType: ["object", "boolean"],
4015
4015
  trackErrors: !0,
4016
4016
  code(a) {
4017
- const { gen: n, schema: v, it: i } = a;
4018
- if ((0, e.alwaysValidSchema)(i, v)) {
4017
+ const { gen: n, schema: y, it: i } = a;
4018
+ if ((0, e.alwaysValidSchema)(i, y)) {
4019
4019
  a.fail();
4020
4020
  return;
4021
4021
  }
@@ -4029,12 +4029,12 @@ function wi() {
4029
4029
  },
4030
4030
  error: { message: "must NOT be valid" }
4031
4031
  };
4032
- return at.default = t, at;
4032
+ return ct.default = t, ct;
4033
4033
  }
4034
- var ct = {}, en;
4035
- function Pi() {
4036
- if (en) return ct;
4037
- en = 1, Object.defineProperty(ct, "__esModule", { value: !0 });
4034
+ var dt = {}, tn;
4035
+ function ji() {
4036
+ if (tn) return dt;
4037
+ tn = 1, Object.defineProperty(dt, "__esModule", { value: !0 });
4038
4038
  const t = {
4039
4039
  keyword: "anyOf",
4040
4040
  schemaType: "array",
@@ -4042,57 +4042,57 @@ function Pi() {
4042
4042
  code: me().validateUnion,
4043
4043
  error: { message: "must match a schema in anyOf" }
4044
4044
  };
4045
- return ct.default = t, ct;
4045
+ return dt.default = t, dt;
4046
4046
  }
4047
- var dt = {}, tn;
4048
- function Ei() {
4049
- if (tn) return dt;
4050
- tn = 1, Object.defineProperty(dt, "__esModule", { value: !0 });
4047
+ var ut = {}, rn;
4048
+ function ki() {
4049
+ if (rn) return ut;
4050
+ rn = 1, Object.defineProperty(ut, "__esModule", { value: !0 });
4051
4051
  const e = J(), t = Y(), n = {
4052
4052
  keyword: "oneOf",
4053
4053
  schemaType: "array",
4054
4054
  trackErrors: !0,
4055
4055
  error: {
4056
4056
  message: "must match exactly one schema in oneOf",
4057
- params: ({ params: v }) => (0, e._)`{passingSchemas: ${v.passing}}`
4057
+ params: ({ params: y }) => (0, e._)`{passingSchemas: ${y.passing}}`
4058
4058
  },
4059
- code(v) {
4060
- const { gen: i, schema: p, parentSchema: u, it: m } = v;
4059
+ code(y) {
4060
+ const { gen: i, schema: p, parentSchema: u, it: m } = y;
4061
4061
  if (!Array.isArray(p))
4062
4062
  throw new Error("ajv implementation error");
4063
4063
  if (m.opts.discriminator && u.discriminator)
4064
4064
  return;
4065
4065
  const b = p, _ = i.let("valid", !1), S = i.let("passing", null), $ = i.name("_valid");
4066
- v.setParams({ passing: S }), i.block(y), v.result(_, () => v.reset(), () => v.error(!0));
4067
- function y() {
4068
- b.forEach((g, w) => {
4066
+ y.setParams({ passing: S }), i.block(g), y.result(_, () => y.reset(), () => y.error(!0));
4067
+ function g() {
4068
+ b.forEach((v, w) => {
4069
4069
  let c;
4070
- (0, t.alwaysValidSchema)(m, g) ? i.var($, !0) : c = v.subschema({
4070
+ (0, t.alwaysValidSchema)(m, v) ? i.var($, !0) : c = y.subschema({
4071
4071
  keyword: "oneOf",
4072
4072
  schemaProp: w,
4073
4073
  compositeRule: !0
4074
4074
  }, $), w > 0 && i.if((0, e._)`${$} && ${_}`).assign(_, !1).assign(S, (0, e._)`[${S}, ${w}]`).else(), i.if($, () => {
4075
- i.assign(_, !0), i.assign(S, w), c && v.mergeEvaluated(c, e.Name);
4075
+ i.assign(_, !0), i.assign(S, w), c && y.mergeEvaluated(c, e.Name);
4076
4076
  });
4077
4077
  });
4078
4078
  }
4079
4079
  }
4080
4080
  };
4081
- return dt.default = n, dt;
4081
+ return ut.default = n, ut;
4082
4082
  }
4083
- var ut = {}, rn;
4084
- function Si() {
4085
- if (rn) return ut;
4086
- rn = 1, Object.defineProperty(ut, "__esModule", { value: !0 });
4083
+ var lt = {}, nn;
4084
+ function Ii() {
4085
+ if (nn) return lt;
4086
+ nn = 1, Object.defineProperty(lt, "__esModule", { value: !0 });
4087
4087
  const e = Y(), t = {
4088
4088
  keyword: "allOf",
4089
4089
  schemaType: "array",
4090
4090
  code(a) {
4091
- const { gen: n, schema: v, it: i } = a;
4092
- if (!Array.isArray(v))
4091
+ const { gen: n, schema: y, it: i } = a;
4092
+ if (!Array.isArray(y))
4093
4093
  throw new Error("ajv implementation error");
4094
4094
  const p = n.name("valid");
4095
- v.forEach((u, m) => {
4095
+ y.forEach((u, m) => {
4096
4096
  if ((0, e.alwaysValidSchema)(i, u))
4097
4097
  return;
4098
4098
  const b = a.subschema({ keyword: "allOf", schemaProp: m }, p);
@@ -4100,12 +4100,12 @@ function Si() {
4100
4100
  });
4101
4101
  }
4102
4102
  };
4103
- return ut.default = t, ut;
4103
+ return lt.default = t, lt;
4104
4104
  }
4105
- var lt = {}, nn;
4106
- function ji() {
4107
- if (nn) return lt;
4108
- nn = 1, Object.defineProperty(lt, "__esModule", { value: !0 });
4105
+ var ft = {}, sn;
4106
+ function Ri() {
4107
+ if (sn) return ft;
4108
+ sn = 1, Object.defineProperty(ft, "__esModule", { value: !0 });
4109
4109
  const e = J(), t = Y(), n = {
4110
4110
  keyword: "if",
4111
4111
  schemaType: ["object", "boolean"],
@@ -4117,16 +4117,16 @@ function ji() {
4117
4117
  code(i) {
4118
4118
  const { gen: p, parentSchema: u, it: m } = i;
4119
4119
  u.then === void 0 && u.else === void 0 && (0, t.checkStrictMode)(m, '"if" without "then" and "else" is ignored');
4120
- const b = v(m, "then"), _ = v(m, "else");
4120
+ const b = y(m, "then"), _ = y(m, "else");
4121
4121
  if (!b && !_)
4122
4122
  return;
4123
4123
  const S = p.let("valid", !0), $ = p.name("_valid");
4124
- if (y(), i.reset(), b && _) {
4124
+ if (g(), i.reset(), b && _) {
4125
4125
  const w = p.let("ifClause");
4126
- i.setParams({ ifClause: w }), p.if($, g("then", w), g("else", w));
4127
- } else b ? p.if($, g("then")) : p.if((0, e.not)($), g("else"));
4126
+ i.setParams({ ifClause: w }), p.if($, v("then", w), v("else", w));
4127
+ } else b ? p.if($, v("then")) : p.if((0, e.not)($), v("else"));
4128
4128
  i.pass(S, () => i.error(!0));
4129
- function y() {
4129
+ function g() {
4130
4130
  const w = i.subschema({
4131
4131
  keyword: "if",
4132
4132
  compositeRule: !0,
@@ -4135,7 +4135,7 @@ function ji() {
4135
4135
  }, $);
4136
4136
  i.mergeEvaluated(w);
4137
4137
  }
4138
- function g(w, c) {
4138
+ function v(w, c) {
4139
4139
  return () => {
4140
4140
  const d = i.subschema({ keyword: w }, $);
4141
4141
  p.assign(S, $), i.mergeValidEvaluated(d, S), c ? p.assign(c, (0, e._)`${w}`) : i.setParams({ ifClause: w });
@@ -4143,38 +4143,38 @@ function ji() {
4143
4143
  }
4144
4144
  }
4145
4145
  };
4146
- function v(i, p) {
4146
+ function y(i, p) {
4147
4147
  const u = i.schema[p];
4148
4148
  return u !== void 0 && !(0, t.alwaysValidSchema)(i, u);
4149
4149
  }
4150
- return lt.default = n, lt;
4150
+ return ft.default = n, ft;
4151
4151
  }
4152
- var ft = {}, sn;
4153
- function ki() {
4154
- if (sn) return ft;
4155
- sn = 1, Object.defineProperty(ft, "__esModule", { value: !0 });
4152
+ var pt = {}, on;
4153
+ function Ni() {
4154
+ if (on) return pt;
4155
+ on = 1, Object.defineProperty(pt, "__esModule", { value: !0 });
4156
4156
  const e = Y(), t = {
4157
4157
  keyword: ["then", "else"],
4158
4158
  schemaType: ["object", "boolean"],
4159
- code({ keyword: a, parentSchema: n, it: v }) {
4160
- n.if === void 0 && (0, e.checkStrictMode)(v, `"${a}" without "if" is ignored`);
4159
+ code({ keyword: a, parentSchema: n, it: y }) {
4160
+ n.if === void 0 && (0, e.checkStrictMode)(y, `"${a}" without "if" is ignored`);
4161
4161
  }
4162
4162
  };
4163
- return ft.default = t, ft;
4163
+ return pt.default = t, pt;
4164
4164
  }
4165
- var on;
4166
- function Ii() {
4167
- if (on) return xe;
4168
- on = 1, Object.defineProperty(xe, "__esModule", { value: !0 });
4169
- const e = Pn(), t = hi(), a = En(), n = yi(), v = gi(), i = vi(), p = _i(), u = Sn(), m = $i(), b = bi(), _ = wi(), S = Pi(), $ = Ei(), y = Si(), g = ji(), w = ki();
4165
+ var an;
4166
+ function Oi() {
4167
+ if (an) return et;
4168
+ an = 1, Object.defineProperty(et, "__esModule", { value: !0 });
4169
+ const e = Pn(), t = vi(), a = En(), n = _i(), y = $i(), i = bi(), p = wi(), u = Sn(), m = Pi(), b = Ei(), _ = Si(), S = ji(), $ = ki(), g = Ii(), v = Ri(), w = Ni();
4170
4170
  function c(d = !1) {
4171
4171
  const r = [
4172
4172
  // any
4173
4173
  _.default,
4174
4174
  S.default,
4175
4175
  $.default,
4176
- y.default,
4177
4176
  g.default,
4177
+ v.default,
4178
4178
  w.default,
4179
4179
  // object
4180
4180
  p.default,
@@ -4183,14 +4183,14 @@ function Ii() {
4183
4183
  m.default,
4184
4184
  b.default
4185
4185
  ];
4186
- return d ? r.push(t.default, n.default) : r.push(e.default, a.default), r.push(v.default), r;
4186
+ return d ? r.push(t.default, n.default) : r.push(e.default, a.default), r.push(y.default), r;
4187
4187
  }
4188
- return xe.default = c, xe;
4188
+ return et.default = c, et;
4189
4189
  }
4190
- var pt = {}, mt = {}, an;
4191
- function Ni() {
4192
- if (an) return mt;
4193
- an = 1, Object.defineProperty(mt, "__esModule", { value: !0 });
4190
+ var mt = {}, ht = {}, cn;
4191
+ function qi() {
4192
+ if (cn) return ht;
4193
+ cn = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
4194
4194
  const e = J(), a = {
4195
4195
  keyword: "format",
4196
4196
  type: ["number", "string"],
@@ -4200,14 +4200,14 @@ function Ni() {
4200
4200
  message: ({ schemaCode: n }) => (0, e.str)`must match format "${n}"`,
4201
4201
  params: ({ schemaCode: n }) => (0, e._)`{format: ${n}}`
4202
4202
  },
4203
- code(n, v) {
4204
- const { gen: i, data: p, $data: u, schema: m, schemaCode: b, it: _ } = n, { opts: S, errSchemaPath: $, schemaEnv: y, self: g } = _;
4203
+ code(n, y) {
4204
+ const { gen: i, data: p, $data: u, schema: m, schemaCode: b, it: _ } = n, { opts: S, errSchemaPath: $, schemaEnv: g, self: v } = _;
4205
4205
  if (!S.validateFormats)
4206
4206
  return;
4207
4207
  u ? w() : c();
4208
4208
  function w() {
4209
4209
  const d = i.scopeValue("formats", {
4210
- ref: g.formats,
4210
+ ref: v.formats,
4211
4211
  code: S.code.formats
4212
4212
  }), r = i.const("fDef", (0, e._)`${d}[${b}]`), o = i.let("fType"), h = i.let("format");
4213
4213
  i.if((0, e._)`typeof ${r} == "object" && !(${r} instanceof RegExp)`, () => i.assign(o, (0, e._)`${r}.type || "string"`).assign(h, (0, e._)`${r}.validate`), () => i.assign(o, (0, e._)`"string"`).assign(h, r)), n.fail$data((0, e.or)(s(), f()));
@@ -4215,12 +4215,12 @@ function Ni() {
4215
4215
  return S.strictSchema === !1 ? e.nil : (0, e._)`${b} && !${h}`;
4216
4216
  }
4217
4217
  function f() {
4218
- const P = y.$async ? (0, e._)`(${r}.async ? await ${h}(${p}) : ${h}(${p}))` : (0, e._)`${h}(${p})`, R = (0, e._)`(typeof ${h} == "function" ? ${P} : ${h}.test(${p}))`;
4219
- return (0, e._)`${h} && ${h} !== true && ${o} === ${v} && !${R}`;
4218
+ const P = g.$async ? (0, e._)`(${r}.async ? await ${h}(${p}) : ${h}(${p}))` : (0, e._)`${h}(${p})`, N = (0, e._)`(typeof ${h} == "function" ? ${P} : ${h}.test(${p}))`;
4219
+ return (0, e._)`${h} && ${h} !== true && ${o} === ${y} && !${N}`;
4220
4220
  }
4221
4221
  }
4222
4222
  function c() {
4223
- const d = g.formats[m];
4223
+ const d = v.formats[m];
4224
4224
  if (!d) {
4225
4225
  s();
4226
4226
  return;
@@ -4228,24 +4228,24 @@ function Ni() {
4228
4228
  if (d === !0)
4229
4229
  return;
4230
4230
  const [r, o, h] = f(d);
4231
- r === v && n.pass(P());
4231
+ r === y && n.pass(P());
4232
4232
  function s() {
4233
4233
  if (S.strictSchema === !1) {
4234
- g.logger.warn(R());
4234
+ v.logger.warn(N());
4235
4235
  return;
4236
4236
  }
4237
- throw new Error(R());
4238
- function R() {
4237
+ throw new Error(N());
4238
+ function N() {
4239
4239
  return `unknown format "${m}" ignored in schema at path "${$}"`;
4240
4240
  }
4241
4241
  }
4242
- function f(R) {
4243
- const D = R instanceof RegExp ? (0, e.regexpCode)(R) : S.code.formats ? (0, e._)`${S.code.formats}${(0, e.getProperty)(m)}` : void 0, z = i.scopeValue("formats", { key: m, ref: R, code: D });
4244
- return typeof R == "object" && !(R instanceof RegExp) ? [R.type || "string", R.validate, (0, e._)`${z}.validate`] : ["string", R, z];
4242
+ function f(N) {
4243
+ const D = N instanceof RegExp ? (0, e.regexpCode)(N) : S.code.formats ? (0, e._)`${S.code.formats}${(0, e.getProperty)(m)}` : void 0, z = i.scopeValue("formats", { key: m, ref: N, code: D });
4244
+ return typeof N == "object" && !(N instanceof RegExp) ? [N.type || "string", N.validate, (0, e._)`${z}.validate`] : ["string", N, z];
4245
4245
  }
4246
4246
  function P() {
4247
4247
  if (typeof d == "object" && !(d instanceof RegExp) && d.async) {
4248
- if (!y.$async)
4248
+ if (!g.$async)
4249
4249
  throw new Error("async format in sync schema");
4250
4250
  return (0, e._)`await ${h}(${p})`;
4251
4251
  }
@@ -4254,18 +4254,18 @@ function Ni() {
4254
4254
  }
4255
4255
  }
4256
4256
  };
4257
- return mt.default = a, mt;
4257
+ return ht.default = a, ht;
4258
4258
  }
4259
- var cn;
4260
- function Ri() {
4261
- if (cn) return pt;
4262
- cn = 1, Object.defineProperty(pt, "__esModule", { value: !0 });
4263
- const t = [Ni().default];
4264
- return pt.default = t, pt;
4259
+ var dn;
4260
+ function Ci() {
4261
+ if (dn) return mt;
4262
+ dn = 1, Object.defineProperty(mt, "__esModule", { value: !0 });
4263
+ const t = [qi().default];
4264
+ return mt.default = t, mt;
4265
4265
  }
4266
- var Pe = {}, dn;
4267
- function Oi() {
4268
- return dn || (dn = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.contentVocabulary = Pe.metadataVocabulary = void 0, Pe.metadataVocabulary = [
4266
+ var we = {}, un;
4267
+ function Ti() {
4268
+ return un || (un = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.contentVocabulary = we.metadataVocabulary = void 0, we.metadataVocabulary = [
4269
4269
  "title",
4270
4270
  "description",
4271
4271
  "default",
@@ -4273,40 +4273,40 @@ function Oi() {
4273
4273
  "readOnly",
4274
4274
  "writeOnly",
4275
4275
  "examples"
4276
- ], Pe.contentVocabulary = [
4276
+ ], we.contentVocabulary = [
4277
4277
  "contentMediaType",
4278
4278
  "contentEncoding",
4279
4279
  "contentSchema"
4280
- ]), Pe;
4280
+ ]), we;
4281
4281
  }
4282
- var un;
4283
- function qi() {
4284
- if (un) return Me;
4285
- un = 1, Object.defineProperty(Me, "__esModule", { value: !0 });
4286
- const e = ri(), t = mi(), a = Ii(), n = Ri(), v = Oi(), i = [
4282
+ var ln;
4283
+ function Di() {
4284
+ if (ln) return Ve;
4285
+ ln = 1, Object.defineProperty(Ve, "__esModule", { value: !0 });
4286
+ const e = si(), t = gi(), a = Oi(), n = Ci(), y = Ti(), i = [
4287
4287
  e.default,
4288
4288
  t.default,
4289
4289
  (0, a.default)(),
4290
4290
  n.default,
4291
- v.metadataVocabulary,
4292
- v.contentVocabulary
4291
+ y.metadataVocabulary,
4292
+ y.contentVocabulary
4293
4293
  ];
4294
- return Me.default = i, Me;
4294
+ return Ve.default = i, Ve;
4295
4295
  }
4296
- var ht = {}, Re = {}, ln;
4297
- function Ci() {
4298
- if (ln) return Re;
4299
- ln = 1, Object.defineProperty(Re, "__esModule", { value: !0 }), Re.DiscrError = void 0;
4296
+ var yt = {}, Ne = {}, fn;
4297
+ function Mi() {
4298
+ if (fn) return Ne;
4299
+ fn = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.DiscrError = void 0;
4300
4300
  var e;
4301
4301
  return (function(t) {
4302
4302
  t.Tag = "tag", t.Mapping = "mapping";
4303
- })(e || (Re.DiscrError = e = {})), Re;
4303
+ })(e || (Ne.DiscrError = e = {})), Ne;
4304
4304
  }
4305
- var fn;
4306
- function Ti() {
4307
- if (fn) return ht;
4308
- fn = 1, Object.defineProperty(ht, "__esModule", { value: !0 });
4309
- const e = J(), t = Ci(), a = Yt(), n = qt(), v = Y(), p = {
4305
+ var pn;
4306
+ function Ai() {
4307
+ if (pn) return yt;
4308
+ pn = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
4309
+ const e = J(), t = Mi(), a = Zt(), n = Ct(), y = Y(), p = {
4310
4310
  keyword: "discriminator",
4311
4311
  type: "object",
4312
4312
  schemaType: "object",
@@ -4315,24 +4315,24 @@ function Ti() {
4315
4315
  params: ({ params: { discrError: u, tag: m, tagName: b } }) => (0, e._)`{error: ${u}, tag: ${b}, tagValue: ${m}}`
4316
4316
  },
4317
4317
  code(u) {
4318
- const { gen: m, data: b, schema: _, parentSchema: S, it: $ } = u, { oneOf: y } = S;
4318
+ const { gen: m, data: b, schema: _, parentSchema: S, it: $ } = u, { oneOf: g } = S;
4319
4319
  if (!$.opts.discriminator)
4320
4320
  throw new Error("discriminator: requires discriminator option");
4321
- const g = _.propertyName;
4322
- if (typeof g != "string")
4321
+ const v = _.propertyName;
4322
+ if (typeof v != "string")
4323
4323
  throw new Error("discriminator: requires propertyName");
4324
4324
  if (_.mapping)
4325
4325
  throw new Error("discriminator: mapping is not supported");
4326
- if (!y)
4326
+ if (!g)
4327
4327
  throw new Error("discriminator: requires oneOf keyword");
4328
- const w = m.let("valid", !1), c = m.const("tag", (0, e._)`${b}${(0, e.getProperty)(g)}`);
4329
- m.if((0, e._)`typeof ${c} == "string"`, () => d(), () => u.error(!1, { discrError: t.DiscrError.Tag, tag: c, tagName: g })), u.ok(w);
4328
+ const w = m.let("valid", !1), c = m.const("tag", (0, e._)`${b}${(0, e.getProperty)(v)}`);
4329
+ m.if((0, e._)`typeof ${c} == "string"`, () => d(), () => u.error(!1, { discrError: t.DiscrError.Tag, tag: c, tagName: v })), u.ok(w);
4330
4330
  function d() {
4331
4331
  const h = o();
4332
4332
  m.if(!1);
4333
4333
  for (const s in h)
4334
4334
  m.elseIf((0, e._)`${c} === ${s}`), m.assign(w, r(h[s]));
4335
- m.else(), u.error(!1, { discrError: t.DiscrError.Mapping, tag: c, tagName: g }), m.endIf();
4335
+ m.else(), u.error(!1, { discrError: t.DiscrError.Mapping, tag: c, tagName: v }), m.endIf();
4336
4336
  }
4337
4337
  function r(h) {
4338
4338
  const s = m.name("valid"), f = u.subschema({ keyword: "oneOf", schemaProp: h }, s);
@@ -4340,25 +4340,25 @@ function Ti() {
4340
4340
  }
4341
4341
  function o() {
4342
4342
  var h;
4343
- const s = {}, f = R(S);
4343
+ const s = {}, f = N(S);
4344
4344
  let P = !0;
4345
- for (let q = 0; q < y.length; q++) {
4346
- let V = y[q];
4347
- if (V?.$ref && !(0, v.schemaHasRulesButRef)(V, $.self.RULES)) {
4345
+ for (let q = 0; q < g.length; q++) {
4346
+ let V = g[q];
4347
+ if (V?.$ref && !(0, y.schemaHasRulesButRef)(V, $.self.RULES)) {
4348
4348
  const L = V.$ref;
4349
4349
  if (V = a.resolveRef.call($.self, $.schemaEnv.root, $.baseId, L), V instanceof a.SchemaEnv && (V = V.schema), V === void 0)
4350
4350
  throw new n.default($.opts.uriResolver, $.baseId, L);
4351
4351
  }
4352
- const F = (h = V?.properties) === null || h === void 0 ? void 0 : h[g];
4352
+ const F = (h = V?.properties) === null || h === void 0 ? void 0 : h[v];
4353
4353
  if (typeof F != "object")
4354
- throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${g}"`);
4355
- P = P && (f || R(V)), D(F, q);
4354
+ throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);
4355
+ P = P && (f || N(V)), D(F, q);
4356
4356
  }
4357
4357
  if (!P)
4358
- throw new Error(`discriminator: "${g}" must be required`);
4358
+ throw new Error(`discriminator: "${v}" must be required`);
4359
4359
  return s;
4360
- function R({ required: q }) {
4361
- return Array.isArray(q) && q.includes(g);
4360
+ function N({ required: q }) {
4361
+ return Array.isArray(q) && q.includes(v);
4362
4362
  }
4363
4363
  function D(q, V) {
4364
4364
  if (q.const)
@@ -4367,48 +4367,48 @@ function Ti() {
4367
4367
  for (const F of q.enum)
4368
4368
  z(F, V);
4369
4369
  else
4370
- throw new Error(`discriminator: "properties/${g}" must have "const" or "enum"`);
4370
+ throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`);
4371
4371
  }
4372
4372
  function z(q, V) {
4373
4373
  if (typeof q != "string" || q in s)
4374
- throw new Error(`discriminator: "${g}" values must be unique strings`);
4374
+ throw new Error(`discriminator: "${v}" values must be unique strings`);
4375
4375
  s[q] = V;
4376
4376
  }
4377
4377
  }
4378
4378
  }
4379
4379
  };
4380
- return ht.default = p, ht;
4380
+ return yt.default = p, yt;
4381
4381
  }
4382
- const Di = "http://json-schema.org/draft-07/schema#", Ai = "http://json-schema.org/draft-07/schema#", Mi = "Core schema meta-schema", Vi = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, zi = ["object", "boolean"], Fi = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, Li = {
4383
- $schema: Di,
4384
- $id: Ai,
4385
- title: Mi,
4386
- definitions: Vi,
4387
- type: zi,
4388
- properties: Fi,
4382
+ const Vi = "http://json-schema.org/draft-07/schema#", zi = "http://json-schema.org/draft-07/schema#", Fi = "Core schema meta-schema", Li = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Ui = ["object", "boolean"], Ki = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, Hi = {
4383
+ $schema: Vi,
4384
+ $id: zi,
4385
+ title: Fi,
4386
+ definitions: Li,
4387
+ type: Ui,
4388
+ properties: Ki,
4389
4389
  default: !0
4390
4390
  };
4391
- var pn;
4391
+ var mn;
4392
4392
  function jn() {
4393
- return pn || (pn = 1, (function(e, t) {
4393
+ return mn || (mn = 1, (function(e, t) {
4394
4394
  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;
4395
- const a = xn(), n = qi(), v = Ti(), i = Li, p = ["/properties"], u = "http://json-schema.org/draft-07/schema";
4395
+ const a = ri(), n = Di(), y = Ai(), i = Hi, p = ["/properties"], u = "http://json-schema.org/draft-07/schema";
4396
4396
  class m extends a.default {
4397
4397
  _addVocabularies() {
4398
- super._addVocabularies(), n.default.forEach((g) => this.addVocabulary(g)), this.opts.discriminator && this.addKeyword(v.default);
4398
+ super._addVocabularies(), n.default.forEach((v) => this.addVocabulary(v)), this.opts.discriminator && this.addKeyword(y.default);
4399
4399
  }
4400
4400
  _addDefaultMetaSchema() {
4401
4401
  if (super._addDefaultMetaSchema(), !this.opts.meta)
4402
4402
  return;
4403
- const g = this.opts.$data ? this.$dataMetaSchema(i, p) : i;
4404
- this.addMetaSchema(g, u, !1), this.refs["http://json-schema.org/schema"] = u;
4403
+ const v = this.opts.$data ? this.$dataMetaSchema(i, p) : i;
4404
+ this.addMetaSchema(v, u, !1), this.refs["http://json-schema.org/schema"] = u;
4405
4405
  }
4406
4406
  defaultMeta() {
4407
4407
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(u) ? u : void 0);
4408
4408
  }
4409
4409
  }
4410
4410
  t.Ajv = m, e.exports = t = m, e.exports.Ajv = m, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = m;
4411
- var b = Ot();
4411
+ var b = qt();
4412
4412
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
4413
4413
  return b.KeywordCxt;
4414
4414
  } });
@@ -4426,21 +4426,21 @@ function jn() {
4426
4426
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
4427
4427
  return _.CodeGen;
4428
4428
  } });
4429
- var S = Bt();
4429
+ var S = Yt();
4430
4430
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
4431
4431
  return S.default;
4432
4432
  } });
4433
- var $ = qt();
4433
+ var $ = Ct();
4434
4434
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
4435
4435
  return $.default;
4436
4436
  } });
4437
- })(qe, qe.exports)), qe.exports;
4437
+ })(Ce, Ce.exports)), Ce.exports;
4438
4438
  }
4439
- var Ui = jn();
4440
- const kn = /* @__PURE__ */ vn(Ui);
4441
- var yt = { exports: {} }, Jt = {}, mn;
4442
- function Ki() {
4443
- return mn || (mn = 1, (function(e) {
4439
+ var Gi = jn();
4440
+ const kn = /* @__PURE__ */ vn(Gi);
4441
+ var gt = { exports: {} }, Wt = {}, hn;
4442
+ function Ji() {
4443
+ return hn || (hn = 1, (function(e) {
4444
4444
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
4445
4445
  function t(q, V) {
4446
4446
  return { validate: q, compare: V };
@@ -4450,9 +4450,9 @@ function Ki() {
4450
4450
  date: t(i, p),
4451
4451
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
4452
4452
  time: t(m(!0), b),
4453
- "date-time": t($(!0), y),
4453
+ "date-time": t($(!0), g),
4454
4454
  "iso-time": t(m(), _),
4455
- "iso-date-time": t($(), g),
4455
+ "iso-date-time": t($(), v),
4456
4456
  // duration: https://tools.ietf.org/html/rfc3339#appendix-A
4457
4457
  duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
4458
4458
  uri: d,
@@ -4484,9 +4484,9 @@ function Ki() {
4484
4484
  // signed 64 bit integer
4485
4485
  int64: { type: "number", validate: P },
4486
4486
  // C-type float
4487
- float: { type: "number", validate: R },
4487
+ float: { type: "number", validate: N },
4488
4488
  // C-type double
4489
- double: { type: "number", validate: R },
4489
+ double: { type: "number", validate: N },
4490
4490
  // hint to the UI to hide input strings
4491
4491
  password: !0,
4492
4492
  // unchecked string payload
@@ -4495,9 +4495,9 @@ function Ki() {
4495
4495
  ...e.fullFormats,
4496
4496
  date: t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, p),
4497
4497
  time: t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, b),
4498
- "date-time": t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, y),
4498
+ "date-time": t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, g),
4499
4499
  "iso-time": t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, _),
4500
- "iso-date-time": t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, g),
4500
+ "iso-date-time": t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, v),
4501
4501
  // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
4502
4502
  uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
4503
4503
  "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
@@ -4509,13 +4509,13 @@ function Ki() {
4509
4509
  function a(q) {
4510
4510
  return q % 4 === 0 && (q % 100 !== 0 || q % 400 === 0);
4511
4511
  }
4512
- const n = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, v = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4512
+ const n = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, y = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
4513
4513
  function i(q) {
4514
4514
  const V = n.exec(q);
4515
4515
  if (!V)
4516
4516
  return !1;
4517
4517
  const F = +V[1], L = +V[2], Q = +V[3];
4518
- return L >= 1 && L <= 12 && Q >= 1 && Q <= (L === 2 && a(F) ? 29 : v[L]);
4518
+ return L >= 1 && L <= 12 && Q >= 1 && Q <= (L === 2 && a(F) ? 29 : y[L]);
4519
4519
  }
4520
4520
  function p(q, V) {
4521
4521
  if (q && V)
@@ -4527,13 +4527,13 @@ function Ki() {
4527
4527
  const L = u.exec(F);
4528
4528
  if (!L)
4529
4529
  return !1;
4530
- const Q = +L[1], ne = +L[2], ie = +L[3], x = L[4], le = L[5] === "-" ? -1 : 1, A = +(L[6] || 0), k = +(L[7] || 0);
4531
- if (A > 23 || k > 59 || q && !x)
4530
+ const Q = +L[1], ne = +L[2], ie = +L[3], x = L[4], le = L[5] === "-" ? -1 : 1, M = +(L[6] || 0), k = +(L[7] || 0);
4531
+ if (M > 23 || k > 59 || q && !x)
4532
4532
  return !1;
4533
4533
  if (Q <= 23 && ne <= 59 && ie < 60)
4534
4534
  return !0;
4535
- const T = ne - k * le, N = Q - A * le - (T < 0 ? 1 : 0);
4536
- return (N === 23 || N === -1) && (T === 59 || T === -1) && ie < 61;
4535
+ const T = ne - k * le, R = Q - M * le - (T < 0 ? 1 : 0);
4536
+ return (R === 23 || R === -1) && (T === 59 || T === -1) && ie < 61;
4537
4537
  };
4538
4538
  }
4539
4539
  function b(q, V) {
@@ -4558,14 +4558,14 @@ function Ki() {
4558
4558
  return Q.length === 2 && i(Q[0]) && V(Q[1]);
4559
4559
  };
4560
4560
  }
4561
- function y(q, V) {
4561
+ function g(q, V) {
4562
4562
  if (!(q && V))
4563
4563
  return;
4564
4564
  const F = new Date(q).valueOf(), L = new Date(V).valueOf();
4565
4565
  if (F && L)
4566
4566
  return F - L;
4567
4567
  }
4568
- function g(q, V) {
4568
+ function v(q, V) {
4569
4569
  if (!(q && V))
4570
4570
  return;
4571
4571
  const [F, L] = q.split(S), [Q, ne] = V.split(S), ie = p(F, Q);
@@ -4587,7 +4587,7 @@ function Ki() {
4587
4587
  function P(q) {
4588
4588
  return Number.isInteger(q);
4589
4589
  }
4590
- function R() {
4590
+ function N() {
4591
4591
  return !0;
4592
4592
  }
4593
4593
  const D = /[^\\]\\Z/;
@@ -4600,42 +4600,42 @@ function Ki() {
4600
4600
  return !1;
4601
4601
  }
4602
4602
  }
4603
- })(Jt)), Jt;
4603
+ })(Wt)), Wt;
4604
4604
  }
4605
- var Wt = {}, hn;
4606
- function Hi() {
4607
- return hn || (hn = 1, (function(e) {
4605
+ var Bt = {}, yn;
4606
+ function Wi() {
4607
+ return yn || (yn = 1, (function(e) {
4608
4608
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
4609
- const t = jn(), a = J(), n = a.operators, v = {
4609
+ const t = jn(), a = J(), n = a.operators, y = {
4610
4610
  formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
4611
4611
  formatMinimum: { okStr: ">=", ok: n.GTE, fail: n.LT },
4612
4612
  formatExclusiveMaximum: { okStr: "<", ok: n.LT, fail: n.GTE },
4613
4613
  formatExclusiveMinimum: { okStr: ">", ok: n.GT, fail: n.LTE }
4614
4614
  }, i = {
4615
- message: ({ keyword: u, schemaCode: m }) => (0, a.str)`should be ${v[u].okStr} ${m}`,
4616
- params: ({ keyword: u, schemaCode: m }) => (0, a._)`{comparison: ${v[u].okStr}, limit: ${m}}`
4615
+ message: ({ keyword: u, schemaCode: m }) => (0, a.str)`should be ${y[u].okStr} ${m}`,
4616
+ params: ({ keyword: u, schemaCode: m }) => (0, a._)`{comparison: ${y[u].okStr}, limit: ${m}}`
4617
4617
  };
4618
4618
  e.formatLimitDefinition = {
4619
- keyword: Object.keys(v),
4619
+ keyword: Object.keys(y),
4620
4620
  type: "string",
4621
4621
  schemaType: "string",
4622
4622
  $data: !0,
4623
4623
  error: i,
4624
4624
  code(u) {
4625
- const { gen: m, data: b, schemaCode: _, keyword: S, it: $ } = u, { opts: y, self: g } = $;
4626
- if (!y.validateFormats)
4625
+ const { gen: m, data: b, schemaCode: _, keyword: S, it: $ } = u, { opts: g, self: v } = $;
4626
+ if (!g.validateFormats)
4627
4627
  return;
4628
- const w = new t.KeywordCxt($, g.RULES.all.format.definition, "format");
4628
+ const w = new t.KeywordCxt($, v.RULES.all.format.definition, "format");
4629
4629
  w.$data ? c() : d();
4630
4630
  function c() {
4631
4631
  const o = m.scopeValue("formats", {
4632
- ref: g.formats,
4633
- code: y.code.formats
4632
+ ref: v.formats,
4633
+ code: g.code.formats
4634
4634
  }), h = m.const("fmt", (0, a._)`${o}[${w.schemaCode}]`);
4635
4635
  u.fail$data((0, a.or)((0, a._)`typeof ${h} != "object"`, (0, a._)`${h} instanceof RegExp`, (0, a._)`typeof ${h}.compare != "function"`, r(h)));
4636
4636
  }
4637
4637
  function d() {
4638
- const o = w.schema, h = g.formats[o];
4638
+ const o = w.schema, h = v.formats[o];
4639
4639
  if (!h || h === !0)
4640
4640
  return;
4641
4641
  if (typeof h != "object" || h instanceof RegExp || typeof h.compare != "function")
@@ -4643,29 +4643,29 @@ function Hi() {
4643
4643
  const s = m.scopeValue("formats", {
4644
4644
  key: o,
4645
4645
  ref: h,
4646
- code: y.code.formats ? (0, a._)`${y.code.formats}${(0, a.getProperty)(o)}` : void 0
4646
+ code: g.code.formats ? (0, a._)`${g.code.formats}${(0, a.getProperty)(o)}` : void 0
4647
4647
  });
4648
4648
  u.fail$data(r(s));
4649
4649
  }
4650
4650
  function r(o) {
4651
- return (0, a._)`${o}.compare(${b}, ${_}) ${v[S].fail} 0`;
4651
+ return (0, a._)`${o}.compare(${b}, ${_}) ${y[S].fail} 0`;
4652
4652
  }
4653
4653
  },
4654
4654
  dependencies: ["format"]
4655
4655
  };
4656
4656
  const p = (u) => (u.addKeyword(e.formatLimitDefinition), u);
4657
4657
  e.default = p;
4658
- })(Wt)), Wt;
4658
+ })(Bt)), Bt;
4659
4659
  }
4660
- var yn;
4661
- function Gi() {
4662
- return yn || (yn = 1, (function(e, t) {
4660
+ var gn;
4661
+ function Bi() {
4662
+ return gn || (gn = 1, (function(e, t) {
4663
4663
  Object.defineProperty(t, "__esModule", { value: !0 });
4664
- const a = Ki(), n = Hi(), v = J(), i = new v.Name("fullFormats"), p = new v.Name("fastFormats"), u = (b, _ = { keywords: !0 }) => {
4664
+ const a = Ji(), n = Wi(), y = J(), i = new y.Name("fullFormats"), p = new y.Name("fastFormats"), u = (b, _ = { keywords: !0 }) => {
4665
4665
  if (Array.isArray(_))
4666
4666
  return m(b, _, a.fullFormats, i), b;
4667
- const [S, $] = _.mode === "fast" ? [a.fastFormats, p] : [a.fullFormats, i], y = _.formats || a.formatNames;
4668
- return m(b, y, S, $), _.keywords && (0, n.default)(b), b;
4667
+ const [S, $] = _.mode === "fast" ? [a.fastFormats, p] : [a.fullFormats, i], g = _.formats || a.formatNames;
4668
+ return m(b, g, S, $), _.keywords && (0, n.default)(b), b;
4669
4669
  };
4670
4670
  u.get = (b, _ = "full") => {
4671
4671
  const $ = (_ === "fast" ? a.fastFormats : a.fullFormats)[b];
@@ -4674,31 +4674,48 @@ function Gi() {
4674
4674
  return $;
4675
4675
  };
4676
4676
  function m(b, _, S, $) {
4677
- var y, g;
4678
- (y = (g = b.opts.code).formats) !== null && y !== void 0 || (g.formats = (0, v._)`require("ajv-formats/dist/formats").${$}`);
4677
+ var g, v;
4678
+ (g = (v = b.opts.code).formats) !== null && g !== void 0 || (v.formats = (0, y._)`require("ajv-formats/dist/formats").${$}`);
4679
4679
  for (const w of _)
4680
4680
  b.addFormat(w, S[w]);
4681
4681
  }
4682
4682
  e.exports = t = u, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = u;
4683
- })(yt, yt.exports)), yt.exports;
4683
+ })(gt, gt.exports)), gt.exports;
4684
4684
  }
4685
- var Ji = Gi();
4686
- const In = /* @__PURE__ */ vn(Ji), Wi = "http://json-schema.org/draft-07/schema#", Bi = "object", Yi = { version: { type: "string" }, meta: { $ref: "#/definitions/MetaInfo" }, pages: { type: "array", items: { $ref: "#/definitions/CICPage" } }, registry: { $ref: "#/definitions/Registry" }, variables: { $ref: "#/definitions/Variables" }, deps: { $ref: "#/definitions/Dependencies" }, extensions: { type: "object" } }, Zi = ["version", "meta", "pages"], Qi = !1, Xi = "CIC 配置定义 说明:定义了 CIC 项目的全局配置,包含版本、元数据、页面、组件、变量、依赖等。", xi = /* @__PURE__ */ JSON.parse('{"MetaInfo":{"type":"object","properties":{"projectId":{"type":"string","description":"项目唯一标识符"},"projectName":{"type":"string","description":"项目名称"},"description":{"type":"string","description":"项目描述"},"layout":{"$ref":"#/definitions/LayoutConfig","description":"布局配置"},"language":{"type":"string","description":"语言代码 (e.g. zh-CN, en-US)"},"createTime":{"type":"string","description":"创建时间 (ISO 8601)","format":"date-time"},"updateTime":{"type":"string","description":"更新时间 (ISO 8601)","format":"date-time"},"author":{"type":"string","description":"作者"},"extensions":{"type":"object","description":"扩展字段"}},"additionalProperties":false,"description":"项目元信息 包含项目的基本信息、布局配置、语言、创建时间、更新时间、作者和扩展信息。"},"LayoutConfig":{"type":"object","properties":{"type":{"type":"string","enum":["free","grid"],"description":"布局类型: free(自由布局) 或 grid(网格布局)"},"config":{"type":"object","properties":{"width":{"type":"number","description":"设计稿宽度","minimum":1,"default":1920},"height":{"type":"number","description":"设计稿高度","minimum":1,"default":1080},"scaleMode":{"type":"string","enum":["aspectFit","fill"],"description":"缩放模式","default":"aspectFit"}},"required":["width","height","scaleMode"],"additionalProperties":false}},"required":["type","config"],"additionalProperties":false},"CICPage":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"layout":{"$ref":"#/definitions/LayoutConfig"},"components":{"type":"array","items":{"$ref":"#/definitions/ComponentInstance"}},"dataSources":{"type":"array","items":{"$ref":"#/definitions/DataSourceItem"}},"extensions":{"type":"object"}},"required":["id","name","path"],"additionalProperties":false,"description":"CIC 页面定义 说明:定义了 CIC 中页面的结构,包含页面 ID、名称、路径、布局、组件等。"},"ComponentInstance":{"anyOf":[{"$ref":"#/definitions/ViewComponentInstance"},{"$ref":"#/definitions/ContainerComponentInstance"},{"$ref":"#/definitions/LogicComponentInstanceRef"}]},"ViewComponentInstance":{"type":"object","properties":{"id":{"type":"string"},"props":{"type":"object"},"style":{"type":"object","additionalProperties":{"$ref":"#/definitions/StyleValue"}},"events":{"$ref":"#/definitions/CICEventMap"},"data":{"$ref":"#/definitions/Data"},"deps":{"type":"array","items":{"type":"string"}},"extensions":{"type":"object"},"role":{"type":"string","const":"view"},"component":{"$ref":"#/definitions/ComponentRef"}},"required":["component","id","role"],"additionalProperties":false},"StyleValue":{"anyOf":[{"type":"string"},{"type":"number"},{"$ref":"#/definitions/Expr"}],"description":"样式值可以是静态或表达式"},"Expr":{"type":"string","description":"通用表达式(用于条件、模板等)"},"CICEventMap":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/definitions/CICEventWithMeta"}},"description":"某组件的所有事件 说明:定义了 CIC 项目中组件的所有事件,包含事件类型、动作、参数、调度顺序、延迟时间和条件。 (key: 事件名, value: 处理逻辑数组)"},"CICEventWithMeta":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"vars"},"action":{"$ref":"#/definitions/VarsAction"},"params":{"$ref":"#/definitions/VarsParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"navigate"},"action":{"type":"string","const":"internal"},"params":{"$ref":"#/definitions/NavigateInternalParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"navigate"},"action":{"type":"string","const":"external"},"params":{"$ref":"#/definitions/NavigateExternalParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"comp"},"action":{"$ref":"#/definitions/CompAction"},"params":{"$ref":"#/definitions/CompParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"toggle"},"action":{"type":"string","const":"visibility"},"params":{"$ref":"#/definitions/ToggleParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"camera"},"action":{"type":"string","const":"focus"},"params":{"$ref":"#/definitions/CameraFocusParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"material"},"action":{"type":"string","const":"change"},"params":{"$ref":"#/definitions/MaterialChangeParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"custom"},"action":{"type":"string","const":"local"},"params":{"$ref":"#/definitions/CustomLocalParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"custom"},"action":{"type":"string","const":"remote"},"params":{"$ref":"#/definitions/CustomRemoteParams"}},"required":["action","order","params","type"]}],"description":"带调度信息"},"EventCondition":{"anyOf":[{"$ref":"#/definitions/KeyCondition"},{"type":"array","items":{"$ref":"#/definitions/KeyCondition"}},{"$ref":"#/definitions/ExpressionCondition"}],"description":"多条件(AND) + 表达式"},"KeyCondition":{"type":"object","properties":{"key":{"type":"string"},"op":{"$ref":"#/definitions/ConditionOperator"},"value":{}},"required":["key"],"additionalProperties":false},"ConditionOperator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","not-in","exists","not-exists"]},"ExpressionCondition":{"type":"object","properties":{"expression":{"type":"string"}},"required":["expression"],"additionalProperties":false,"description":"表达式条件:支持如 \\"ctx.id === 5 && ctx.level > 1\\""},"VarsAction":{"type":"string","enum":["add","update","delete"],"description":"变量事件动作"},"VarsParams":{"type":"object","properties":{"key":{"type":"string"},"value":{},"exclude":{"type":"array","items":{"type":"string"}}},"required":["key","value"],"additionalProperties":false},"NavigateInternalParams":{"type":"object","properties":{"name":{"type":"string"},"params":{"type":"object"}},"required":["name"],"additionalProperties":false},"NavigateExternalParams":{"type":"object","properties":{"url":{"type":"string"},"openNewTab":{"type":"boolean"}},"required":["url"],"additionalProperties":false},"CompAction":{"type":"string","enum":["add","update","delete"],"description":"组件事件动作"},"CompParams":{"type":"object","properties":{"comps":{"type":"array","items":{"type":"string"}},"props":{"type":"object"}},"required":["comps"],"additionalProperties":false},"ToggleParams":{"type":"object","properties":{"show":{"type":"array","items":{"type":"string"}},"hide":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"CameraFocusParams":{"type":"object","properties":{"target":{"type":["string","number"]},"duration":{"type":"number"}},"required":["target"],"additionalProperties":false},"MaterialChangeParams":{"type":"object","properties":{"target":{"type":"string"},"materials":{"type":"string"}},"required":["target","materials"],"additionalProperties":false},"CustomLocalParams":{"type":"object","properties":{"code":{"type":"string"},"depends":{"type":"array","items":{"type":"string"}}},"required":["code"],"additionalProperties":false},"CustomRemoteParams":{"type":"object","properties":{"url":{"type":"string"},"depends":{"type":"array","items":{"type":"string"}}},"required":["url"],"additionalProperties":false},"Data":{"type":"object","properties":{"id":{"type":"string","description":"数据ID"},"mapping":{"$ref":"#/definitions/IMapping","description":"字段映射配置"},"converse":{"$ref":"#/definitions/IConverse","description":"转换规则配置"}},"required":["id"],"additionalProperties":false,"description":"数据配置"},"IMapping":{"type":"object","properties":{"use":{"type":"boolean"},"mapFields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"源字段名"},"mapField":{"type":"string","description":"目标字段名"},"value":{"description":"映射值或公式"},"type":{"type":"string","enum":["copy","const","formula"],"description":"映射类型:默认(普通映射)、copy(复制) const(常量)、formula(公式)"},"description":{"type":"string","description":"描述"}},"required":["field","mapField"],"additionalProperties":false}}},"required":["use","mapFields"],"additionalProperties":false,"description":"字段映射配置"},"IConverse":{"type":"object","properties":{"use":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"转换代码"},"depeedVars":{"type":"array","items":{"type":"string"},"description":"依赖变量列表(用于响应式重执行)"}},"required":["code"],"additionalProperties":false}}},"required":["use","data"],"additionalProperties":false,"description":"转换规则配置"},"ComponentRef":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"id"},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}],"description":"component 引用:字符串或 object 描述"},"ContainerComponentInstance":{"type":"object","properties":{"id":{"type":"string"},"props":{"type":"object"},"style":{"type":"object","additionalProperties":{"$ref":"#/definitions/StyleValue"}},"events":{"$ref":"#/definitions/CICEventMap"},"data":{"$ref":"#/definitions/Data"},"deps":{"type":"array","items":{"type":"string"}},"extensions":{"type":"object"},"role":{"type":"string","const":"container"},"children":{"type":"array","items":{"$ref":"#/definitions/ComponentInstance"}}},"required":["children","id","role"],"additionalProperties":false},"LogicComponentInstanceRef":{"type":"object","properties":{"id":{"type":"string"},"props":{"type":"object"},"style":{"type":"object","additionalProperties":{"$ref":"#/definitions/StyleValue"}},"events":{"$ref":"#/definitions/CICEventMap"},"data":{"$ref":"#/definitions/Data"},"deps":{"type":"array","items":{"type":"string"}},"extensions":{"type":"object"},"role":{"type":"string","const":"logic"},"component":{"$ref":"#/definitions/LogicRef"}},"required":["component","id","role"],"additionalProperties":false},"LogicRef":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","enum":["url","code"]},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}]},"DataSourceItem":{"anyOf":[{"$ref":"#/definitions/DataSourceRest"},{"$ref":"#/definitions/DataSourceWebSocket"},{"$ref":"#/definitions/DataSourceStatic"},{"$ref":"#/definitions/DataSourceFunction"}]},"DataSourceRest":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"rest"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"continueOnError":{"type":"boolean"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"params":{"type":"object"},"body":{},"timeout":{"$ref":"#/definitions/Milliseconds"}},"required":["id","method","type","url"],"additionalProperties":false},"Milliseconds":{"type":"number"},"DataSourceWebSocket":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"websocket"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"continueOnError":{"type":"boolean"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"url":{"type":"string"},"protocols":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"subscribeMessage":{},"heartbeat":{"type":"object","properties":{"interval":{"$ref":"#/definitions/Milliseconds"},"message":{}},"required":["interval","message"],"additionalProperties":false}},"required":["id","type","url"],"additionalProperties":false},"DataSourceStatic":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"static"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"continueOnError":{"type":"boolean"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"value":{}},"required":["id","type","value"],"additionalProperties":false},"DataSourceFunction":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"function"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"continueOnError":{"type":"boolean"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"code":{"type":"string"},"timeout":{"$ref":"#/definitions/Milliseconds"}},"required":["code","id","type"],"additionalProperties":false},"Registry":{"type":"object","properties":{"components":{"type":"array","items":{"$ref":"#/definitions/RegistryComponents"}},"plugins":{"type":"object","description":"插件后期可扩展"}},"additionalProperties":false,"description":"注册表"},"RegistryComponents":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"version":{"type":"string"},"author":{"type":"string"},"defaultProps":{"type":"object"},"data":{},"deps":{"type":"array","items":{"type":"string"}}},"required":["id"],"additionalProperties":false,"description":"注册中心组件项 说明:定义了 CIC 项目中组件注册中心的组件项,包含组件 ID、类型和配置。","examples":[{"id":"comp_echarts_line","name":"折线图","description":"用于展示时间序列数据的折线图组件","version":"1.0.0","author":"component_dev","defaultProps":{"title":{"type":"string","default":"折线图标题","description":"图表的标题"},"xAxis":{"type":"array","default":[],"description":"X轴数据"},"yAxis":{"type":"array","default":[],"description":"Y轴数据"},"lineColor":{"type":"string","default":"#5470C6","description":"折线颜色"}},"data":{"x":123,"y":456},"deps":["1","2"]}]},"Variables":{"type":"object","properties":{"global":{"$ref":"#/definitions/VariablesMap","description":"全局变量,对所有页面和组件均生效。"},"page":{"type":"object","additionalProperties":{"$ref":"#/definitions/VariablesMap"},"description":"页面级变量,键为页面 ID,值为该页面的变量映射。"},"component":{"type":"object","additionalProperties":{"$ref":"#/definitions/VariablesMap"},"description":"组件级变量,键为组件 ID,值为该组件的变量映射。"}},"required":["global","page","component"],"additionalProperties":false,"description":"变量集合,按作用域组织:global/page/component。"},"VariablesMap":{"type":"object","additionalProperties":{"$ref":"#/definitions/Variable"},"description":"变量映射,键为变量名,值为变量定义。"},"Variable":{"anyOf":[{"$ref":"#/definitions/StringVariable"},{"$ref":"#/definitions/NumberVariable"},{"$ref":"#/definitions/BooleanVariable"},{"$ref":"#/definitions/ArrayVariable"},{"$ref":"#/definitions/FunctionVariable"},{"$ref":"#/definitions/ObjectVariable"}],"description":"变量联合类型,涵盖五类变量定义。"},"StringVariable":{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string"},"default":{"type":"string"},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"字符串变量,包含当前值与默认值,可选描述。"},"NumberVariable":{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"},"default":{"type":"number"},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"数字变量,包含当前值与默认值,可选描述。"},"BooleanVariable":{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"},"default":{"type":"boolean"},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"布尔变量,包含当前值与默认值,可选描述。"},"ArrayVariable":{"type":"object","properties":{"type":{"type":"string","const":"array"},"value":{"type":"array","items":{}},"default":{"type":"array","items":{}},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"数组变量,元素类型不做限制,包含当前值与默认值,可选描述。"},"FunctionVariable":{"type":"object","properties":{"type":{"type":"string","const":"function"},"value":{"type":"string"},"default":{"type":"string"},"description":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","value","default"],"additionalProperties":false,"description":"函数变量,以字符串保存函数实现;支持 `args` 指定入参名列表。"},"ObjectVariable":{"type":"object","properties":{"type":{"type":"string","const":"object"},"value":{"type":"object","additionalProperties":{"$ref":"#/definitions/Variable"}},"default":{"type":"object","additionalProperties":{"$ref":"#/definitions/Variable"}},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"对象变量,键到变量的映射;支持递归嵌套。"},"Dependencies":{"type":"array","items":{"$ref":"#/definitions/Dependency"},"description":"依赖数组"},"Dependency":{"anyOf":[{"$ref":"#/definitions/JSDependency"},{"$ref":"#/definitions/CSSDependency"},{"$ref":"#/definitions/FontDependency"},{"$ref":"#/definitions/ImageDependency"},{"$ref":"#/definitions/JSONDependency"},{"$ref":"#/definitions/WasmDependency"},{"$ref":"#/definitions/OtherDependency"}],"description":"判别联合"},"JSDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"js"},"format":{"$ref":"#/definitions/JSFormat"},"crossOrigin":{"type":"string","enum":["anonymous","use-credentials"]},"module":{"type":"boolean"}},"required":["format","id","type"],"additionalProperties":false,"description":"JS 资源"},"JSFormat":{"type":"string","enum":["esm","umd","iife","cjs"],"description":"JS 格式"},"CSSDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"css"},"media":{"type":"string"}},"required":["id","type"],"additionalProperties":false,"description":"CSS"},"FontDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"font"},"family":{"type":"string"},"weight":{"type":["number","string"]},"style":{"type":"string","enum":["normal","italic"]}},"required":["id","type"],"additionalProperties":false,"description":"字体"},"ImageDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"image"},"mime":{"type":"string"}},"required":["id","type"],"additionalProperties":false,"description":"图片"},"JSONDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"json"}},"required":["id","type"],"additionalProperties":false,"description":"JSON"},"WasmDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"wasm"},"init":{"type":"string","enum":["async","sync"]}},"required":["id","type"],"additionalProperties":false,"description":"WASM"},"OtherDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"other"},"kind":{"type":"string"}},"required":["id","type"],"additionalProperties":false,"description":"其他"}}'), $t = {
4687
- $schema: Wi,
4688
- type: Bi,
4689
- properties: Yi,
4690
- required: Zi,
4691
- additionalProperties: Qi,
4692
- description: Xi,
4693
- definitions: xi
4685
+ var Yi = Bi();
4686
+ const In = /* @__PURE__ */ vn(Yi), Zi = "http://json-schema.org/draft-07/schema#", Qi = "#/definitions/CICConfig", Xi = /* @__PURE__ */ JSON.parse('{"CICConfig":{"type":"object","properties":{"version":{"type":"string"},"meta":{"$ref":"#/definitions/Meta"},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"layout":{"$ref":"#/definitions/Layout"},"components":{"type":"array","items":{"$ref":"#/definitions/ComponentInstance"}},"dataSources":{"type":"array","items":{"$ref":"#/definitions/DataSourceItem"}},"extensions":{"type":"object"}},"required":["id","name","path"],"additionalProperties":false,"description":"CIC 页面定义 说明:定义了 CIC 中页面的结构,包含页面 ID、名称、路径、布局、组件等。"}},"registry":{"$ref":"#/definitions/Registry"},"variables":{"$ref":"#/definitions/Variables"},"deps":{"type":"array","items":{"$ref":"#/definitions/Dependency"}},"extensions":{"type":"object"}},"required":["version","meta","pages"],"additionalProperties":false,"description":"CIC 配置定义 说明:定义了 CIC 项目的全局配置,包含版本、元数据、页面、组件、变量、依赖等。"},"Meta":{"type":"object","properties":{"projectId":{"type":"string","description":"项目唯一标识符"},"projectName":{"type":"string","description":"项目名称"},"description":{"type":"string","description":"项目描述"},"layout":{"$ref":"#/definitions/Layout","description":"布局配置"},"language":{"type":"string","description":"语言代码 (e.g. zh-CN, en-US)"},"createTime":{"type":"string","description":"创建时间 (ISO 8601)","format":"date-time"},"updateTime":{"type":"string","description":"更新时间 (ISO 8601)","format":"date-time"},"author":{"type":"string","description":"作者"},"extensions":{"type":"object","description":"扩展字段"}},"additionalProperties":false,"description":"项目元信息 包含项目的基本信息、布局配置、语言、创建时间、更新时间、作者和扩展信息。"},"Layout":{"type":"object","properties":{"type":{"type":"string","enum":["free","grid"],"description":"布局类型: free(自由布局) 或 grid(网格布局)"},"config":{"type":"object","properties":{"width":{"type":"number","description":"设计稿宽度","minimum":1,"default":1920},"height":{"type":"number","description":"设计稿高度","minimum":1,"default":1080},"scaleMode":{"type":"string","enum":["aspectFit","fill"],"description":"缩放模式","default":"aspectFit"}},"required":["width","height","scaleMode"],"additionalProperties":false}},"required":["type","config"],"additionalProperties":false,"description":"布局配置"},"ComponentInstance":{"anyOf":[{"$ref":"#/definitions/ViewComponentInstance"},{"$ref":"#/definitions/ContainerComponentInstance"},{"$ref":"#/definitions/LogicComponentInstanceRef"}],"description":"组件实例(view/container/logic 类型)"},"ViewComponentInstance":{"type":"object","properties":{"id":{"type":"string"},"props":{"type":"object"},"style":{"type":"object","additionalProperties":{"$ref":"#/definitions/StyleValue"}},"events":{"$ref":"#/definitions/CICEventMap"},"data":{"$ref":"#/definitions/Data"},"deps":{"type":"array","items":{"type":"string"}},"extensions":{"type":"object"},"role":{"type":"string","const":"view"},"component":{"$ref":"#/definitions/ComponentRef"}},"required":["component","id","role"],"additionalProperties":false},"StyleValue":{"anyOf":[{"type":"string"},{"type":"number"},{"$ref":"#/definitions/Expr"}],"description":"样式值可以是静态或表达式"},"Expr":{"type":"string","description":"通用表达式(用于条件、模板等)"},"CICEventMap":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/definitions/CICEventWithMeta"}},"description":"某组件的所有事件 说明:定义了 CIC 项目中组件的所有事件,包含事件类型、动作、参数、调度顺序、延迟时间和条件。 (key: 事件名, value: 处理逻辑数组)"},"CICEventWithMeta":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"vars"},"action":{"$ref":"#/definitions/VarsAction"},"params":{"$ref":"#/definitions/VarsParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"navigate"},"action":{"type":"string","const":"internal"},"params":{"$ref":"#/definitions/NavigateInternalParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"navigate"},"action":{"type":"string","const":"external"},"params":{"$ref":"#/definitions/NavigateExternalParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"comp"},"action":{"$ref":"#/definitions/CompAction"},"params":{"$ref":"#/definitions/CompParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"toggle"},"action":{"type":"string","const":"visibility"},"params":{"$ref":"#/definitions/ToggleParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"camera"},"action":{"type":"string","const":"focus"},"params":{"$ref":"#/definitions/CameraFocusParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"material"},"action":{"type":"string","const":"change"},"params":{"$ref":"#/definitions/MaterialChangeParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"custom"},"action":{"type":"string","const":"local"},"params":{"$ref":"#/definitions/CustomLocalParams"}},"required":["action","order","params","type"]},{"type":"object","additionalProperties":false,"properties":{"order":{"type":"number"},"delay":{"type":"number"},"condition":{"$ref":"#/definitions/EventCondition"},"type":{"type":"string","const":"custom"},"action":{"type":"string","const":"remote"},"params":{"$ref":"#/definitions/CustomRemoteParams"}},"required":["action","order","params","type"]}],"description":"带调度信息"},"EventCondition":{"anyOf":[{"$ref":"#/definitions/KeyCondition"},{"type":"array","items":{"$ref":"#/definitions/KeyCondition"}},{"$ref":"#/definitions/ExpressionCondition"}],"description":"多条件(AND) + 表达式"},"KeyCondition":{"type":"object","properties":{"key":{"type":"string"},"op":{"$ref":"#/definitions/ConditionOperator"},"value":{}},"required":["key"],"additionalProperties":false},"ConditionOperator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","in","not-in","exists","not-exists"]},"ExpressionCondition":{"type":"object","properties":{"expression":{"type":"string"}},"required":["expression"],"additionalProperties":false,"description":"表达式条件:支持如 \\"ctx.id === 5 && ctx.level > 1\\""},"VarsAction":{"type":"string","enum":["add","update","delete"],"description":"变量事件动作"},"VarsParams":{"type":"object","properties":{"key":{"type":"string"},"value":{},"exclude":{"type":"array","items":{"type":"string"}}},"required":["key","value"],"additionalProperties":false},"NavigateInternalParams":{"type":"object","properties":{"name":{"type":"string"},"params":{"type":"object"}},"required":["name"],"additionalProperties":false},"NavigateExternalParams":{"type":"object","properties":{"url":{"type":"string"},"openNewTab":{"type":"boolean"}},"required":["url"],"additionalProperties":false},"CompAction":{"type":"string","enum":["add","update","delete"],"description":"组件事件动作"},"CompParams":{"type":"object","properties":{"comps":{"type":"array","items":{"type":"string"}},"props":{"type":"object"}},"required":["comps"],"additionalProperties":false},"ToggleParams":{"type":"object","properties":{"show":{"type":"array","items":{"type":"string"}},"hide":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"CameraFocusParams":{"type":"object","properties":{"target":{"type":["string","number"]},"duration":{"type":"number"}},"required":["target"],"additionalProperties":false},"MaterialChangeParams":{"type":"object","properties":{"target":{"type":"string"},"materials":{"type":"string"}},"required":["target","materials"],"additionalProperties":false},"CustomLocalParams":{"type":"object","properties":{"code":{"type":"string"},"depends":{"type":"array","items":{"type":"string"}}},"required":["code"],"additionalProperties":false},"CustomRemoteParams":{"type":"object","properties":{"url":{"type":"string"},"depends":{"type":"array","items":{"type":"string"}}},"required":["url"],"additionalProperties":false},"Data":{"type":"object","properties":{"id":{"type":"string","description":"数据ID"},"mapping":{"$ref":"#/definitions/IMapping","description":"字段映射配置"},"converse":{"$ref":"#/definitions/IConverse","description":"转换规则配置"}},"required":["id"],"additionalProperties":false,"description":"数据配置"},"IMapping":{"type":"object","properties":{"use":{"type":"boolean"},"mapFields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"源字段名"},"mapField":{"type":"string","description":"目标字段名"},"value":{"description":"映射值或公式"},"type":{"type":"string","enum":["copy","const","formula"],"description":"映射类型:默认(普通映射)、copy(复制) const(常量)、formula(公式)"},"description":{"type":"string","description":"描述"}},"required":["field","mapField"],"additionalProperties":false}}},"required":["use","mapFields"],"additionalProperties":false,"description":"字段映射配置"},"IConverse":{"type":"object","properties":{"use":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","description":"转换代码"},"depeedVars":{"type":"array","items":{"type":"string"},"description":"依赖变量列表(用于响应式重执行)"}},"required":["code"],"additionalProperties":false}}},"required":["use","data"],"additionalProperties":false,"description":"转换规则配置"},"ComponentRef":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"id"},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}],"description":"component 引用:字符串或 object 描述"},"ContainerComponentInstance":{"type":"object","properties":{"id":{"type":"string"},"props":{"type":"object"},"style":{"type":"object","additionalProperties":{"$ref":"#/definitions/StyleValue"}},"events":{"$ref":"#/definitions/CICEventMap"},"data":{"$ref":"#/definitions/Data"},"deps":{"type":"array","items":{"type":"string"}},"extensions":{"type":"object"},"role":{"type":"string","const":"container"},"children":{"type":"array","items":{"$ref":"#/definitions/ComponentInstance"}}},"required":["children","id","role"],"additionalProperties":false},"LogicComponentInstanceRef":{"type":"object","properties":{"id":{"type":"string"},"props":{"type":"object"},"style":{"type":"object","additionalProperties":{"$ref":"#/definitions/StyleValue"}},"events":{"$ref":"#/definitions/CICEventMap"},"data":{"$ref":"#/definitions/Data"},"deps":{"type":"array","items":{"type":"string"}},"extensions":{"type":"object"},"role":{"type":"string","const":"logic"},"component":{"$ref":"#/definitions/LogicRef"}},"required":["component","id","role"],"additionalProperties":false},"LogicRef":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","enum":["url","code"]},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}]},"DataSourceItem":{"anyOf":[{"$ref":"#/definitions/DataSourceRest"},{"$ref":"#/definitions/DataSourceWebSocket"},{"$ref":"#/definitions/DataSourceStatic"},{"$ref":"#/definitions/DataSourceFunction"}],"description":"数据源项(rest/websocket/static/function 类型)"},"DataSourceRest":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"rest"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"url":{"type":"string"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"params":{"type":"object"},"body":{},"timeout":{"$ref":"#/definitions/Milliseconds"}},"required":["id","method","type","url"],"additionalProperties":false},"Milliseconds":{"type":"number"},"DataSourceWebSocket":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"websocket"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"url":{"type":"string"},"protocols":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"subscribeMessage":{},"heartbeat":{"type":"object","properties":{"interval":{"$ref":"#/definitions/Milliseconds"},"message":{}},"required":["interval","message"],"additionalProperties":false}},"required":["id","type","url"],"additionalProperties":false},"DataSourceStatic":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"static"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"value":{}},"required":["id","type","value"],"additionalProperties":false},"DataSourceFunction":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"function"},"order":{"type":"number"},"pollInterval":{"$ref":"#/definitions/Milliseconds"},"transform":{"anyOf":[{"type":"string"},{"$comment":"(res: any) => any","type":"object","properties":{"namedArgs":{"type":"object","properties":{"res":{}},"required":["res"],"additionalProperties":false}}}]},"code":{"type":"string"},"timeout":{"$ref":"#/definitions/Milliseconds"}},"required":["code","id","type"],"additionalProperties":false},"Registry":{"type":"object","properties":{"components":{"type":"array","items":{"$ref":"#/definitions/RegistryComponents"}},"plugins":{"type":"object","description":"插件后期可扩展"}},"additionalProperties":false,"description":"注册表"},"RegistryComponents":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"version":{"type":"string"},"author":{"type":"string"},"defaultProps":{"type":"object"},"data":{},"deps":{"type":"array","items":{"type":"string"}}},"required":["id"],"additionalProperties":false,"description":"注册中心组件项 说明:定义了 CIC 项目中组件注册中心的组件项,包含组件 ID、类型和配置。"},"Variables":{"type":"object","properties":{"global":{"$ref":"#/definitions/VariablesMap","description":"全局变量,对所有页面和组件均生效。"},"page":{"type":"object","additionalProperties":{"$ref":"#/definitions/VariablesMap"},"description":"页面级变量,键为页面 ID,值为该页面的变量映射。"},"component":{"type":"object","additionalProperties":{"$ref":"#/definitions/VariablesMap"},"description":"组件级变量,键为组件 ID,值为该组件的变量映射。"}},"required":["global","page","component"],"additionalProperties":false,"description":"变量集合,按作用域组织:global/page/component。"},"VariablesMap":{"type":"object","additionalProperties":{"$ref":"#/definitions/Variable"},"description":"变量映射,键为变量名,值为变量定义。"},"Variable":{"anyOf":[{"$ref":"#/definitions/StringVariable"},{"$ref":"#/definitions/NumberVariable"},{"$ref":"#/definitions/BooleanVariable"},{"$ref":"#/definitions/ArrayVariable"},{"$ref":"#/definitions/FunctionVariable"},{"$ref":"#/definitions/ObjectVariable"}],"description":"变量联合类型,涵盖五类变量定义。"},"StringVariable":{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string"},"default":{"type":"string"},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"字符串变量,包含当前值与默认值,可选描述。"},"NumberVariable":{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"},"default":{"type":"number"},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"数字变量,包含当前值与默认值,可选描述。"},"BooleanVariable":{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"},"default":{"type":"boolean"},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"布尔变量,包含当前值与默认值,可选描述。"},"ArrayVariable":{"type":"object","properties":{"type":{"type":"string","const":"array"},"value":{"type":"array","items":{}},"default":{"type":"array","items":{}},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"数组变量,元素类型不做限制,包含当前值与默认值,可选描述。"},"FunctionVariable":{"type":"object","properties":{"type":{"type":"string","const":"function"},"value":{"type":"string"},"default":{"type":"string"},"description":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}},"required":["type","value","default"],"additionalProperties":false,"description":"函数变量,以字符串保存函数实现;支持 `args` 指定入参名列表。"},"ObjectVariable":{"type":"object","properties":{"type":{"type":"string","const":"object"},"value":{"type":"object","additionalProperties":{"$ref":"#/definitions/Variable"}},"default":{"type":"object","additionalProperties":{"$ref":"#/definitions/Variable"}},"description":{"type":"string"}},"required":["type","value","default"],"additionalProperties":false,"description":"对象变量,键到变量的映射;支持递归嵌套。"},"Dependency":{"anyOf":[{"$ref":"#/definitions/JSDependency"},{"$ref":"#/definitions/CSSDependency"},{"$ref":"#/definitions/FontDependency"},{"$ref":"#/definitions/ImageDependency"},{"$ref":"#/definitions/JSONDependency"},{"$ref":"#/definitions/WasmDependency"},{"$ref":"#/definitions/OtherDependency"}],"description":"依赖项"},"JSDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"js"},"format":{"$ref":"#/definitions/JSFormat"},"crossOrigin":{"type":"string","enum":["anonymous","use-credentials"]},"module":{"type":"boolean"}},"required":["format","id","type"],"additionalProperties":false,"description":"JS 资源"},"JSFormat":{"type":"string","enum":["esm","umd","iife","cjs"],"description":"JS 格式"},"CSSDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"css"},"media":{"type":"string"}},"required":["id","type"],"additionalProperties":false,"description":"CSS"},"FontDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"font"},"family":{"type":"string"},"weight":{"type":["number","string"]},"style":{"type":"string","enum":["normal","italic"]}},"required":["id","type"],"additionalProperties":false,"description":"字体"},"ImageDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"image"},"mime":{"type":"string"}},"required":["id","type"],"additionalProperties":false,"description":"图片"},"JSONDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"json"}},"required":["id","type"],"additionalProperties":false,"description":"JSON"},"WasmDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"wasm"},"init":{"type":"string","enum":["async","sync"]}},"required":["id","type"],"additionalProperties":false,"description":"WASM"},"OtherDependency":{"type":"object","properties":{"id":{"type":"string","description":"全局唯一 ID,用于运行时索引"},"name":{"type":"string","description":"可选:人类可读名称(展示用)"},"version":{"type":"string","description":"版本号(语义化版本 / 字体权重皆可)"},"url":{"type":"string","description":"资源 URL,可以是绝对地址或相对地址"},"localPath":{"type":"string","description":"本地路径(构建后使用)"},"group":{"type":"string","description":"分组:方便批量加载"},"strategy":{"type":"object","properties":{"preload":{"anyOf":[{"type":"boolean"},{"type":"string","const":"module"},{"type":"string","const":"style"}],"description":"预加载/预取"},"prefetch":{"type":"boolean"},"async":{"type":"boolean","description":"是否异步加载"},"when":{"type":"string","description":"仅在某些条件下加载(如主题)"}},"additionalProperties":false,"description":"加载策略"},"type":{"type":"string","const":"other"},"kind":{"type":"string"}},"required":["id","type"],"additionalProperties":false,"description":"其他"}}'), qe = {
4687
+ $schema: Zi,
4688
+ $ref: Qi,
4689
+ definitions: Xi
4694
4690
  };
4695
- let gt = null;
4696
- const es = () => (gt || (gt = new kn({ allErrors: !0, strict: !1 }), In(gt)), gt), gn = /* @__PURE__ */ new Map(), ts = JSON.stringify($t.definitions), $e = (e) => {
4697
- const t = es(), a = `${e}::${ts}`, n = gn.get(a);
4691
+ let vt = null;
4692
+ const Rn = () => (vt || (vt = new kn({ allErrors: !0, strict: !1 }), In(vt)), vt), bt = /* @__PURE__ */ new Map(), Nn = JSON.stringify(qe), xi = {
4693
+ CICPage: ["#/definitions/CICPage", "#/$defs/CICPage", "#/properties/pages/items", "#/definitions/CICConfig/properties/pages/items"],
4694
+ Meta: ["#/definitions/Meta", "#/$defs/Meta", "#/properties/meta"],
4695
+ Layout: ["#/definitions/Layout", "#/$defs/Layout", "#/properties/meta/properties/layout"],
4696
+ ComponentInstance: ["#/definitions/ComponentInstance", "#/$defs/ComponentInstance"],
4697
+ DataSourceItem: ["#/definitions/DataSourceItem", "#/$defs/DataSourceItem"],
4698
+ RegistryComponents: ["#/definitions/RegistryComponents", "#/$defs/RegistryComponents"],
4699
+ Variables: ["#/definitions/Variables", "#/$defs/Variables", "#/properties/variables"],
4700
+ Dependency: ["#/definitions/Dependency", "#/$defs/Dependency"],
4701
+ LayoutConfig: ["#/definitions/Layout", "#/properties/meta/properties/layout"]
4702
+ }, On = (e, t) => e.compile({ $ref: t, definitions: qe.definitions, properties: qe.properties }), es = (e) => {
4703
+ const t = Rn(), a = `${e}::${Nn}`, n = bt.get(a);
4698
4704
  if (n) return n;
4699
- const v = t.compile({ $ref: e, definitions: $t.definitions });
4700
- return gn.set(a, v), v;
4701
- }, Oe = (e) => typeof e == "number" && isFinite(e) && e > 0, Qt = () => {
4705
+ const y = On(t, e);
4706
+ return bt.set(a, y), y;
4707
+ }, Pe = (e) => {
4708
+ const t = Rn(), a = `type:${e}::${Nn}`, n = bt.get(a);
4709
+ if (n) return n;
4710
+ const y = xi[e] || [`#/definitions/${e}`, `#/$defs/${e}`];
4711
+ for (const i of y)
4712
+ try {
4713
+ const p = On(t, i);
4714
+ return bt.set(a, p), p;
4715
+ } catch {
4716
+ }
4717
+ throw new Error(`VALIDATOR_REF_NOT_FOUND:${e}`);
4718
+ }, Oe = (e) => typeof e == "number" && isFinite(e) && e > 0, Xt = () => {
4702
4719
  const e = globalThis;
4703
4720
  if (e?.crypto?.randomUUID) return e.crypto.randomUUID();
4704
4721
  if (e?.crypto?.getRandomValues) {
@@ -4711,20 +4728,20 @@ const es = () => (gt || (gt = new kn({ allErrors: !0, strict: !1 }), In(gt)), gt
4711
4728
  const a = Math.random() * 16 | 0;
4712
4729
  return (t === "x" ? a : a & 3 | 8).toString(16);
4713
4730
  });
4714
- }, rs = (e, t = "https://example.com/resource") => typeof e == "string" && /^https?:\/\//.test(e) ? e : t, ns = (e, t = "wss://example.com/socket") => typeof e == "string" && /^wss?:\/\//.test(e) ? e : t, bt = $e("#/definitions/DataSourceItem"), is = (e, t) => {
4731
+ }, ts = (e, t = "https://example.com/resource") => typeof e == "string" && /^https?:\/\//.test(e) ? e : t, rs = (e, t = "wss://example.com/socket") => typeof e == "string" && /^wss?:\/\//.test(e) ? e : t, wt = Pe("DataSourceItem"), ns = (e, t) => {
4715
4732
  const a = { ...t?.defaults || {} }, n = { ...e };
4716
- if (t?.generateId && !n.id && (n.id = Qt()), !n.type) throw new Error("type is required");
4717
- return n.continueOnError = typeof n.continueOnError == "boolean" ? n.continueOnError : a.continueOnError ?? !1, n.type === "rest" ? (n.url = rs(n.url), n.method = n.method || "GET", n.headers = n.headers || {}, n.params = n.params || {}, n.body = n.body || {}, n.pollInterval = Oe(n.pollInterval) ? Math.round(n.pollInterval) : a.pollInterval ?? 1e3, n.timeout = Oe(n.timeout) ? Math.round(n.timeout) : a.timeout ?? 1e3) : n.type === "websocket" ? (n.url = ns(n.url), n.heartbeat && typeof n.heartbeat == "object" && (n.heartbeat.interval = Oe(n.heartbeat.interval) ? Math.round(n.heartbeat.interval) : a.heartbeatInterval ?? 1e3, n.heartbeat.message = n.heartbeat.message ?? {}), n.pollInterval = Oe(n.pollInterval) ? Math.round(n.pollInterval) : a.pollInterval ?? 1e3) : n.type === "static" ? n.value = n.value ?? {} : n.type === "function" && (n.code = typeof n.code == "string" ? n.code : "export default async function(ctx){ return null }", n.timeout = Oe(n.timeout) ? Math.round(n.timeout) : a.timeout ?? 1e3), n;
4718
- }, ss = (e) => bt(e) ? { ok: !0 } : { ok: !1, errors: bt.errors || [] }, Nn = (e, t) => {
4719
- const a = is(e, t);
4720
- return bt(a) ? { ok: !0, value: a } : { ok: !1, errors: bt.errors || [] };
4721
- }, os = (e, t) => {
4722
- const a = Nn(e, t);
4733
+ if (t?.generateId && !n.id && (n.id = Xt()), !n.type) throw new Error("type is required");
4734
+ return n.continueOnError = typeof n.continueOnError == "boolean" ? n.continueOnError : a.continueOnError ?? !1, n.type === "rest" ? (n.url = ts(n.url), n.method = n.method || "GET", n.headers = n.headers || {}, n.params = n.params || {}, n.body = n.body || {}, n.pollInterval = Oe(n.pollInterval) ? Math.round(n.pollInterval) : a.pollInterval ?? 1e3, n.timeout = Oe(n.timeout) ? Math.round(n.timeout) : a.timeout ?? 1e3) : n.type === "websocket" ? (n.url = rs(n.url), n.heartbeat && typeof n.heartbeat == "object" && (n.heartbeat.interval = Oe(n.heartbeat.interval) ? Math.round(n.heartbeat.interval) : a.heartbeatInterval ?? 1e3, n.heartbeat.message = n.heartbeat.message ?? {}), n.pollInterval = Oe(n.pollInterval) ? Math.round(n.pollInterval) : a.pollInterval ?? 1e3) : n.type === "static" ? n.value = n.value ?? {} : n.type === "function" && (n.code = typeof n.code == "string" ? n.code : "export default async function(ctx){ return null }", n.timeout = Oe(n.timeout) ? Math.round(n.timeout) : a.timeout ?? 1e3), n;
4735
+ }, is = (e) => wt(e) ? { ok: !0 } : { ok: !1, errors: wt.errors || [] }, qn = (e, t) => {
4736
+ const a = ns(e, t);
4737
+ return wt(a) ? { ok: !0, value: a } : { ok: !1, errors: wt.errors || [] };
4738
+ }, ss = (e, t) => {
4739
+ const a = qn(e, t);
4723
4740
  if (!a.ok) throw new Error("VALIDATION_FAILED");
4724
4741
  return a.value;
4725
- }, wt = $e("#/definitions/ComponentInstance"), as = (e, t) => {
4742
+ }, Pt = Pe("ComponentInstance"), os = (e, t) => {
4726
4743
  const a = { ...e };
4727
- if (t?.generateId && !a.id && (a.id = Qt()), !a.role) throw new Error("role is required");
4744
+ if (t?.generateId && !a.id && (a.id = Xt()), !a.role) throw new Error("role is required");
4728
4745
  if (a.role === "view") {
4729
4746
  if (!a.component) throw new Error("component is required for view");
4730
4747
  delete a.children;
@@ -4736,41 +4753,41 @@ const es = () => (gt || (gt = new kn({ allErrors: !0, strict: !1 }), In(gt)), gt
4736
4753
  delete a.children;
4737
4754
  }
4738
4755
  return a;
4739
- }, cs = (e) => wt(e) ? { ok: !0 } : { ok: !1, errors: wt.errors || [] }, Rn = (e, t) => {
4740
- const a = as(e, t);
4741
- return wt(a) ? { ok: !0, value: a } : { ok: !1, errors: wt.errors || [] };
4742
- }, ds = (e, t) => {
4743
- const a = Rn(e, t);
4756
+ }, as = (e) => Pt(e) ? { ok: !0 } : { ok: !1, errors: Pt.errors || [] }, Cn = (e, t) => {
4757
+ const a = os(e, t);
4758
+ return Pt(a) ? { ok: !0, value: a } : { ok: !1, errors: Pt.errors || [] };
4759
+ }, cs = (e, t) => {
4760
+ const a = Cn(e, t);
4744
4761
  if (!a.ok) throw new Error("VALIDATION_FAILED");
4745
4762
  return a.value;
4746
- }, Pt = $e("#/definitions/CICPage"), us = (e, t) => {
4763
+ }, Et = Pe("CICPage"), ds = (e, t) => {
4747
4764
  const a = { ...e };
4748
- return t?.generateId && !a.id && (a.id = Qt()), a;
4749
- }, ls = (e) => Pt(e) ? { ok: !0 } : { ok: !1, errors: Pt.errors || [] }, On = (e, t) => {
4750
- const a = us(e, t);
4751
- return Pt(a) ? { ok: !0, value: a } : { ok: !1, errors: Pt.errors || [] };
4752
- }, fs = (e, t) => {
4753
- const a = On(e, t);
4765
+ return t?.generateId && !a.id && (a.id = Xt()), a;
4766
+ }, us = (e) => Et(e) ? { ok: !0 } : { ok: !1, errors: Et.errors || [] }, Tn = (e, t) => {
4767
+ const a = ds(e, t);
4768
+ return Et(a) ? { ok: !0, value: a } : { ok: !1, errors: Et.errors || [] };
4769
+ }, ls = (e, t) => {
4770
+ const a = Tn(e, t);
4754
4771
  if (!a.ok) throw new Error("VALIDATION_FAILED");
4755
4772
  return a.value;
4756
- }, Et = $e("#/definitions/MetaInfo"), St = $e("#/definitions/LayoutConfig"), ps = (e) => Et(e) ? { ok: !0 } : { ok: !1, errors: Et.errors || [] }, ms = (e) => St(e) ? { ok: !0 } : { ok: !1, errors: St.errors || [] }, qn = (e) => Et(e) ? { ok: !0, value: e } : { ok: !1, errors: Et.errors || [] }, Cn = (e) => St(e) ? { ok: !0, value: e } : { ok: !1, errors: St.errors || [] }, hs = (e) => {
4757
- const t = qn(e);
4773
+ }, St = Pe("Meta"), jt = Pe("Layout"), fs = (e) => St(e) ? { ok: !0 } : { ok: !1, errors: St.errors || [] }, ps = (e) => jt(e) ? { ok: !0 } : { ok: !1, errors: jt.errors || [] }, Dn = (e) => St(e) ? { ok: !0, value: e } : { ok: !1, errors: St.errors || [] }, Mn = (e) => jt(e) ? { ok: !0, value: e } : { ok: !1, errors: jt.errors || [] }, ms = (e) => {
4774
+ const t = Dn(e);
4758
4775
  if (!t.ok) throw new Error("VALIDATION_FAILED");
4759
4776
  return t.value;
4760
- }, ys = (e) => {
4761
- const t = Cn(e);
4777
+ }, hs = (e) => {
4778
+ const t = Mn(e);
4762
4779
  if (!t.ok) throw new Error("VALIDATION_FAILED");
4763
4780
  return t.value;
4764
- }, jt = $e("#/definitions/Variables"), gs = (e) => jt(e) ? { ok: !0 } : { ok: !1, errors: jt.errors || [] }, Tn = (e) => jt(e) ? { ok: !0, value: e } : { ok: !1, errors: jt.errors || [] }, vs = (e) => {
4765
- const t = Tn(e);
4781
+ }, kt = es("#/definitions/Variables"), ys = (e) => kt(e) ? { ok: !0 } : { ok: !1, errors: kt.errors || [] }, An = (e) => kt(e) ? { ok: !0, value: e } : { ok: !1, errors: kt.errors || [] }, gs = (e) => {
4782
+ const t = An(e);
4766
4783
  if (!t.ok) throw new Error("VALIDATION_FAILED");
4767
4784
  return t.value;
4768
- }, kt = $e("#/definitions/Dependency"), _s = (e) => kt(e) ? { ok: !0 } : { ok: !1, errors: kt.errors || [] }, Dn = (e) => kt(e) ? { ok: !0, value: e } : { ok: !1, errors: kt.errors || [] }, $s = (e) => {
4769
- const t = Dn(e);
4785
+ }, It = Pe("Dependency"), vs = (e) => It(e) ? { ok: !0 } : { ok: !1, errors: It.errors || [] }, Vn = (e) => It(e) ? { ok: !0, value: e } : { ok: !1, errors: It.errors || [] }, _s = (e) => {
4786
+ const t = Vn(e);
4770
4787
  if (!t.ok) throw new Error("VALIDATION_FAILED");
4771
4788
  return t.value;
4772
- }, It = $e("#/definitions/RegistryComponents"), bs = (e) => It(e) ? { ok: !0 } : { ok: !1, errors: It.errors || [] }, An = (e) => It(e) ? { ok: !0, value: e } : { ok: !1, errors: It.errors || [] }, ws = (e) => {
4773
- const t = An(e);
4789
+ }, Rt = Pe("RegistryComponents"), $s = (e) => Rt(e) ? { ok: !0 } : { ok: !1, errors: Rt.errors || [] }, zn = (e) => Rt(e) ? { ok: !0, value: e } : { ok: !1, errors: Rt.errors || [] }, bs = (e) => {
4790
+ const t = zn(e);
4774
4791
  if (!t.ok) throw new Error("VALIDATION_FAILED");
4775
4792
  return t.value;
4776
4793
  };
@@ -4794,32 +4811,32 @@ class de {
4794
4811
  }
4795
4812
  findPageByComponent(t) {
4796
4813
  let a;
4797
- return this.walkComponents((n, v) => n.id === t ? (a = v, !1) : !0), a;
4814
+ return this.walkComponents((n, y) => n.id === t ? (a = y, !1) : !0), a;
4798
4815
  }
4799
4816
  getVariable(t, a) {
4800
4817
  const n = this.config.variables;
4801
4818
  if (n) {
4802
4819
  if (t.componentId && n.component && n.component[t.componentId]) {
4803
- const v = n.component[t.componentId][a];
4804
- if (v) return v.value ?? v.default;
4820
+ const y = n.component[t.componentId][a];
4821
+ if (y) return y.value ?? y.default;
4805
4822
  }
4806
4823
  if (t.pageId && n.page && n.page[t.pageId]) {
4807
- const v = n.page[t.pageId][a];
4808
- if (v) return v.value ?? v.default;
4824
+ const y = n.page[t.pageId][a];
4825
+ if (y) return y.value ?? y.default;
4809
4826
  }
4810
4827
  if (n.global && n.global[a]) {
4811
- const v = n.global[a];
4812
- return v.value ?? v.default;
4828
+ const y = n.global[a];
4829
+ return y.value ?? y.default;
4813
4830
  }
4814
4831
  }
4815
4832
  }
4816
4833
  getVariableByRef(t) {
4817
4834
  const a = t.match(/^(global|page|component)(?::([^\.]+))?\.(.+)$/);
4818
4835
  if (!a) return;
4819
- const [, n, v, i] = a;
4836
+ const [, n, y, i] = a;
4820
4837
  if (n === "global") return this.getVariable({}, i);
4821
- if (n === "page") return this.getVariable({ pageId: v }, i);
4822
- if (n === "component") return this.getVariable({ componentId: v }, i);
4838
+ if (n === "page") return this.getVariable({ pageId: y }, i);
4839
+ if (n === "component") return this.getVariable({ componentId: y }, i);
4823
4840
  }
4824
4841
  walkComponents(t) {
4825
4842
  if (this.config.pages)
@@ -4827,18 +4844,18 @@ class de {
4827
4844
  const n = [];
4828
4845
  for (const i of a.components || [])
4829
4846
  n.push({ node: i });
4830
- let v = !1;
4831
- for (; n.length > 0 && !v; ) {
4847
+ let y = !1;
4848
+ for (; n.length > 0 && !y; ) {
4832
4849
  const { node: i, parent: p } = n.pop();
4833
4850
  if (t(i, a, p) === !1) {
4834
- v = !0;
4851
+ y = !0;
4835
4852
  break;
4836
4853
  }
4837
4854
  if (i.children && i.children.length > 0)
4838
4855
  for (let m = i.children.length - 1; m >= 0; m--)
4839
4856
  n.push({ node: i.children[m], parent: i });
4840
4857
  }
4841
- if (v) break;
4858
+ if (y) break;
4842
4859
  }
4843
4860
  }
4844
4861
  // --- 静态工具方法 ---
@@ -4847,20 +4864,20 @@ class de {
4847
4864
  */
4848
4865
  static validateConfig(t) {
4849
4866
  if (!t) return { valid: !1, error: "Config is null or undefined" };
4850
- const a = JSON.stringify($t);
4851
- return (!de.validator || de.schemaHash !== a) && (de.validator = new kn({ allErrors: !0, strict: !1 }), In(de.validator), de.validator.addFormat("color-hex", /^#[0-9a-fA-F]{6}$/), de.validate = de.validator.compile($t), de.schemaHash = a), de.validate(t) ? { valid: !0 } : { valid: !1, error: de.validate.errors.map((i) => `${i.instancePath} ${i.message}`).join("; ") };
4867
+ const a = JSON.stringify(qe);
4868
+ return (!de.validator || de.schemaHash !== a) && (de.validator = new kn({ allErrors: !0, strict: !1 }), In(de.validator), de.validator.addFormat("color-hex", /^#[0-9a-fA-F]{6}$/), de.validate = de.validator.compile(qe), de.schemaHash = a), de.validate(t) ? { valid: !0 } : { valid: !1, error: de.validate.errors.map((i) => `${i.instancePath} ${i.message}`).join("; ") };
4852
4869
  }
4853
4870
  /**
4854
4871
  * 按路径获取对象值(支持 a.b[0].c 语法)
4855
4872
  */
4856
4873
  static getValueByPath(t, a, n) {
4857
4874
  if (t == null || !a) return n;
4858
- const v = [];
4875
+ const y = [];
4859
4876
  a.replace(/\[(\d+)\]/g, ".$1").split(".").forEach((p) => {
4860
- p.trim() && v.push(p.trim());
4877
+ p.trim() && y.push(p.trim());
4861
4878
  });
4862
4879
  let i = t;
4863
- for (const p of v) {
4880
+ for (const p of y) {
4864
4881
  if (i == null) return n;
4865
4882
  i = i[p];
4866
4883
  }
@@ -4871,41 +4888,41 @@ class de {
4871
4888
  * 用于单独处理某个组件树片段
4872
4889
  */
4873
4890
  static traverseTree(t, a, n) {
4874
- const v = Array.isArray(t) ? t : [t];
4875
- for (const i of v)
4891
+ const y = Array.isArray(t) ? t : [t];
4892
+ for (const i of y)
4876
4893
  a(i, n) !== !1 && i.children && i.children.length > 0 && de.traverseTree(i.children, a, i);
4877
4894
  }
4878
4895
  /** 创建 DataSource */
4879
- static createDataSource = Nn;
4880
- static validateDataSource = ss;
4881
- static normalizeDataSource = os;
4896
+ static createDataSource = qn;
4897
+ static validateDataSource = is;
4898
+ static normalizeDataSource = ss;
4882
4899
  /** 创建 Component */
4883
- static createComponent = Rn;
4884
- static validateComponent = cs;
4885
- static normalizeComponent = ds;
4900
+ static createComponent = Cn;
4901
+ static validateComponent = as;
4902
+ static normalizeComponent = cs;
4886
4903
  /** 创建 Page */
4887
- static createPage = On;
4888
- static validatePage = ls;
4889
- static normalizePage = fs;
4904
+ static createPage = Tn;
4905
+ static validatePage = us;
4906
+ static normalizePage = ls;
4890
4907
  /** 创建 Meta/Layout */
4891
- static createMeta = qn;
4892
- static createLayout = Cn;
4893
- static validateMeta = ps;
4894
- static validateLayout = ms;
4895
- static normalizeMeta = hs;
4896
- static normalizeLayout = ys;
4908
+ static createMeta = Dn;
4909
+ static createLayout = Mn;
4910
+ static validateMeta = fs;
4911
+ static validateLayout = ps;
4912
+ static normalizeMeta = ms;
4913
+ static normalizeLayout = hs;
4897
4914
  /** 创建 Variables */
4898
- static createVariables = Tn;
4899
- static validateVariables = gs;
4900
- static normalizeVariables = vs;
4915
+ static createVariables = An;
4916
+ static validateVariables = ys;
4917
+ static normalizeVariables = gs;
4901
4918
  /** 创建 Dependency */
4902
- static createDependency = Dn;
4903
- static validateDependency = _s;
4904
- static normalizeDependency = $s;
4919
+ static createDependency = Vn;
4920
+ static validateDependency = vs;
4921
+ static normalizeDependency = _s;
4905
4922
  /** 创建 Registry 组件项 */
4906
- static createRegistryComponent = An;
4907
- static validateRegistryComponent = bs;
4908
- static normalizeRegistryComponent = ws;
4923
+ static createRegistryComponent = zn;
4924
+ static validateRegistryComponent = $s;
4925
+ static normalizeRegistryComponent = bs;
4909
4926
  }
4910
4927
  export {
4911
4928
  de as CICSDK